@golstats/gsc-game-data 1.0.49 → 1.0.50

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.
@@ -11,7 +11,7 @@
11
11
  * Vue 3 Carousel 0.3.1
12
12
  * (c) 2023
13
13
  * @license MIT
14
- */const st={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"}},iu={itemsToShow:{default:st.itemsToShow,type:Number},itemsToScroll:{default:st.itemsToScroll,type:Number},wrapAround:{default:st.wrapAround,type:Boolean},throttle:{default:st.throttle,type:Number},snapAlign:{default:st.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:st.transition,type:Number},breakpoints:{default:st.breakpoints,type:Object},autoplay:{default:st.autoplay,type:Number},pauseAutoplayOnHover:{default:st.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:st.mouseDrag,type:Boolean},touchDrag:{default:st.touchDrag,type:Boolean},dir:{default:st.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:st.i18n,type:Object},settings:{default(){return{}},type:Object}};function $S({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function BS({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function gd({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function xS({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:gd({val:r,max:o-i,min:0})}function ru(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...ru(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function yd({val:e,max:a,min:o=0}){return e>a?yd({val:e-(a+1),max:a,min:o}):e<o?yd({val:e+(a+1),max:a,min:o}):e}function VS(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function IS(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function AS(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var OS=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},st))),a=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"},AS(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),TS=t.defineComponent({name:"Carousel",props:iu,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},st));let l=Object.assign({},st),m;const p=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),g=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",h),t.provide("currentSlide",p),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(O=>Number(O)).sort((O,oe)=>+oe-+O);let T=Object.assign({},l);S.some(O=>{const oe=window.matchMedia(`(min-width: ${O}px)`).matches;return oe&&(T=Object.assign(Object.assign({},T),m[O])),oe}),E(T)}function E(S){Object.entries(S).forEach(([T,O])=>d[T]=O)}const x=IS(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=$S({config:d,slidesCount:h.value}),f.value=BS({config:d,slidesCount:h.value}),d.wrapAround||(p.value=gd({val:p.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),Le(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const z={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),F=t.ref(!1),ee=t.ref(!1),re=()=>{F.value=!0},Q=()=>{F.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||P.value)&&(z.x=$?S.touches[0].clientX:S.clientX,z.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",R,!0)))}const N=VS(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const T=A.x-z.x,O=A.y-z.y;I.y=O,I.x=T},d.throttle);function R(){const S=d.dir==="rtl"?-1:1,T=Math.sign(I.x)*.4,O=Math.round(I.x/c.value+T)*S;if(O&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(p.value-O),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",R,!0)}function Le(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&F.value||te()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),Le()}const P=t.ref(!1);function K(S){const T=d.wrapAround?S:gd({val:S,max:u.value,min:f.value});p.value===T||P.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!0,y.value=p.value,p.value=T,k=setTimeout(()=>{if(d.wrapAround){const O=yd({val:T,max:u.value,min:0});O!==p.value&&(p.value=O,o("loop",{currentSlideIndex:p.value,slidingToIndex:S}))}o("update:modelValue",p.value),o("slide-end",{currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!1,se()},d.transition))}function te(){K(p.value+d.itemsToScroll)}function ae(){K(p.value-d.itemsToScroll)}const ne={slideTo:K,next:te,prev:ae};t.provide("nav",ne),t.provide("isSliding",P);const ie=t.computed(()=>xS({config:d,currentSlide:p.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,T=ie.value*c.value*S;return{transform:`translateX(${I.x-T}px)`,transition:`${P.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),B(),V(),se()}Object.keys(iu).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==p.value&&K(Number(S))}),t.watch(h,B),o("before-init"),w();const xe={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:p,maxSlide:u,minSlide:f,middleSlide:g};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:ne,data:xe});const Re=a.default||a.slides,Pe=a.addons,ve=t.reactive(xe);return()=>{const S=ru(Re==null?void 0:Re(ve)),T=(Pe==null?void 0:Pe(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let O=S;if(d.wrapAround){const Oe=S.map((ze,le)=>t.cloneVNode(ze,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((ze,le)=>t.cloneVNode(ze,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));O=[...Oe,...S,...Te]}r.value=S,h.value=Math.max(S.length,1);const oe=t.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:d.mouseDrag?C:null,onTouchstartPassiveCapture:d.touchDrag?C:null},O),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":P.value,"is-dragging":ee.value,"is-hover":F.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,T,t.h(OS)])}}}),ud;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ud||(ud={}));const zS={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 FS(e){return e in ud}const fd=e=>{const a=t.inject("config",t.reactive(Object.assign({},st))),o=String(e.name),s=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!FS(o))return;const n=zS[o],i=t.h("path",{d:n}),r=a.i18n[s]||e.title||o,c=t.h("title",r);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[c,i])};fd.props={name:String,title:String};const RS=(e,{slots:a,attrs:o})=>{const{next:s,prev:n}=a||{},i=t.inject("config",t.reactive(Object.assign({},st))),r=t.inject("maxSlide",t.ref(1)),c=t.inject("minSlide",t.ref(1)),h=t.inject("currentSlide",t.ref(1)),d=t.inject("nav",{}),{dir:l,wrapAround:m,i18n:p}=i,y=l==="rtl",g=t.h("button",{type:"button",class:["carousel__prev",!m&&h.value<=c.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":p.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||t.h(fd,{name:y?"arrowRight":"arrowLeft"})),u=t.h("button",{type:"button",class:["carousel__next",!m&&h.value>=r.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":p.ariaNextSlide,onClick:d.next},(s==null?void 0:s())||t.h(fd,{name:y?"arrowLeft":"arrowRight"}));return[g,u]};var PS=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},st))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,h=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;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":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const Ht=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},DS={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e,s=t.computed(()=>{const c={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(c["border-bottom"]=`solid 1px ${o.bottomLineColor}`,c["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(c["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),c}),n=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 r(c){a("click-match-day",c)}return(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...s.value}),onClick:h[0]||(h[0]=d=>r(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(n.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},LS=Ht(DS,[["__scopeId","data-v-89459353"]]),jS={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e;t.useCssVars(d=>({"469bccd0":i.value,"469dfb50":r.value}));const s=t.ref(null),n=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),i=t.computed(()=>s.value.data.currentSlide.value==0?"none":"inline"),r=t.computed(()=>s.value.data.currentSlide.value==s.value.data.maxSlide.value?"none":"inline"),c=t.ref({});t.watch(()=>o.closestMatchDay,d=>{if(d){const l=o.matchDays.find(m=>m.key===d);h(l||o.matchDays[0],!0)}}),t.watch(()=>o.matchDays,d=>{if(!o.closestMatchDay&&d&&d.length){const l=d.find(m=>m.key===o.defaultMatchDayKey);c.value=l||d[0],a("change-match-day",c.value)}},{immediate:!0});function h(d,l=!1){l&&s.value.slideTo(d.index),c.value=d,a("change-match-day",c.value)}return(d,l)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(TS),t.mergeProps(n.value,{ref_key:"matchDayPickerCarousel",ref:s}),{addons:t.withCtx(()=>[t.createVNode(t.unref(RS))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,m=>(t.openBlock(),t.createBlock(t.unref(PS),{key:m.key},{default:t.withCtx(()=>[t.createVNode(LS,t.mergeProps(o,{"match-day":m,"match-day-selected":c.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:h}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},vS=Ht(jS,[["__scopeId","data-v-930cd509"]]);function So(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function lu(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function MS(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const HS={class:"game-info__teams"},US={class:"game-info__teams__team__logo"},GS=["src"],WS={class:"game-info__teams__detail"},qS={key:0,class:"game-info__teams__detail__pre-game"},JS={class:"game-info__teams__team__logo away"},XS=["src"],ZS={key:0},YS={key:0},KS={key:1},QS={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,o=t.computed(()=>{const d=new Date(a.game.dateTimeMillis),l=d.getHours(),m=d.getMinutes();return`${l<10?`0${l}`:l}:${m<10?`0${m}`:m}`}),s=t.computed(()=>{let d="120px";return(a.isLandingMode||a.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),c=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),h=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(d,l)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",HS,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(n.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",US,[t.createElementVNode("img",{src:t.unref(So)(e.game.home_team.team_id),alt:""},null,8,GS)])],4),t.createElementVNode("div",WS,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",qS,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(h.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(c.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(r.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",JS,[t.createElementVNode("img",{src:t.unref(So)(e.game.visiting_team.team_id),alt:""},null,8,XS)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(n.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",ZS,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",YS,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",KS,t.toDisplayString(t.unref(MS)(e.game)),1))],4)],4))}},cu=Ht(QS,[["__scopeId","data-v-afb1954b"]]),du=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),eE={class:"game-status"},tE={key:0,class:"game-status__day__live"},aE=du(()=>t.createElementVNode("span",null,"LIVE",-1)),oE=du(()=>t.createElementVNode("span",{class:"dot"},null,-1)),sE=[aE,oE],nE={key:0,class:"game-status__round"},iE={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],s=t.computed(()=>{let r="";if(a.dateTimeMillis){const c=new Date(a.dateTimeMillis);r=`${c.getDate()} ${o[c.getMonth()]}`}return r}),n=t.computed(()=>({"font-size":a.fontSize})),i=t.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,c)=>(t.openBlock(),t.createElementBlock("div",eE,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",i.value]),style:t.normalizeStyle(n.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",tE,sE)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(s.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",nE,t.toDisplayString(e.roundAbbreviation),1))]))}},mu=Ht(iE,[["__scopeId","data-v-8839c56d"]]),Ut={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},rE=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),lE={class:"actions"},cE={class:"actions__row"},dE=rE(()=>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)),mE=[dE],pE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hE=["fill"],gE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yE=["fill"],uE={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function n(i){a("action",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",lE,[t.createElementVNode("div",cE,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:r[0]||(r[0]=c=>n(t.unref(Ut).STATISTICS))},mE,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:r[1]||(r[1]=c=>n(t.unref(Ut).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",pE,[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,hE)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=c=>n(t.unref(Ut).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",gE,[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,yE)]))])):t.createCommentVNode("",!0)])]))}},fE=Ht(uE,[["__scopeId","data-v-0d97b1a8"]]),_d=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),_E={class:"actions"},bE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wE=["fill"],CE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kE=["fill"],SE=_d(()=>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)),EE=[SE],NE={key:0,class:"actions__videos"},$E={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},BE=["fill"],xE={key:1,class:"actions__videos__thumbnails"},VE=_d(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),IE=_d(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),AE={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OE=["stroke"],TE={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),n=t.computed(()=>{const h=[];return o.componentWidth<540&&h.push("mobile"),h}),i=t.computed(()=>o.componentWidth>730),r=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function c(h){a("action",h)}return(h,d)=>(t.openBlock(),t.createElementBlock("div",_E,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=l=>c(t.unref(Ut).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",bE,[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,wE)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:d[1]||(d[1]=l=>c(t.unref(Ut).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",CE,[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,kE)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:d[2]||(d[2]=l=>c(t.unref(Ut).STATISTICS))},EE,4)],2),i.value?(t.openBlock(),t.createElementBlock("div",NE,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=l=>c(t.unref(Ut).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",$E,[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,BE)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",xE,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=l=>c(t.unref(Ut).PLAY_GOALS))},[VE,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(r.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=l=>c(t.unref(Ut).PLAY_RESUME))},[IE,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(r.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=l=>c(t.unref(Ut).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",AE,[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,OE)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},zE=Ht(TE,[["__scopeId","data-v-af6919bd"]]),Ci=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),FE={class:"row-landing__game-status"},RE={class:"row-landing__game-actions"},PE={class:"row-full__game-status"},DE={class:"row-full__game-info"},LE={key:0},jE={class:"row-full__game-actions"},vE={class:"game-events-container"},ME=Ci(()=>t.createElementVNode("div",{class:"separator"},null,-1)),HE=Ci(()=>t.createElementVNode("div",null,null,-1)),UE={class:"game-events__data"},GE={class:"game-events__data__team"},WE=["src"],qE={class:"game-events__data__team__event__text"},JE={class:"game-events__data__team away"},XE={class:"game-events__data__team__event__text"},ZE=["src"],YE=Ci(()=>t.createElementVNode("div",null,null,-1)),KE=Ci(()=>t.createElementVNode("div",null,null,-1)),QE={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const o=e,s={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},n=t.ref(!1),i=t.ref(!1),r=t.computed(()=>{const u={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(u.homeTeam.push(...y(o.game.minutes.home_goals_minutes,s.GOAL)),u.homeTeam.push(...y(o.game.minutes.home_red_cards_minutes,s.RED_CARD)),u.homeTeam.push(...y(o.game.minutes.home_yellow_cards_minutes,s.YELLOW_CARD)),u.awayTeam.push(...y(o.game.minutes.visiting_goals_minutes,s.GOAL)),u.awayTeam.push(...y(o.game.minutes.away_red_cards_minutes,s.RED_CARD)),u.awayTeam.push(...y(o.game.minutes.away_yellow_cards_minutes,s.YELLOW_CARD))),u}),c=t.computed(()=>{const u=r.value.homeTeam.length,f=r.value.awayTeam.length;return u+f>0}),h=t.computed(()=>({"background-color":o.backgroundColor})),d=t.computed(()=>({height:o.height})),l=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 y(u,f){return u.map(_=>({iconUrl:f,text:_}))}function g(u){u===Ut.SHOW_GAME_EVENTS?n.value=!n.value:a("action",{action:u,game:o.game})}return(u,f)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(h.value)},[t.createVNode(cu,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",FE,[t.createVNode(mu,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(lu)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",RE,[t.createVNode(fE,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:g},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(h.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",l.value.game]),style:t.normalizeStyle(d.value)},[t.createElementVNode("div",PE,[t.createVNode(mu,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(lu)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",DE,[t.createVNode(cu,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",LE,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",jE,[t.createVNode(zE,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":c.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:g},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",vE,[ME,t.createElementVNode("div",{class:t.normalizeClass(["game-events",l.value.events])},[HE,t.createElementVNode("div",UE,[t.createElementVNode("div",GE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value.homeTeam,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`h${k}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:_.iconUrl},null,8,WE),t.createElementVNode("div",qE,t.toDisplayString(_.text),1)]))),128))]),t.createElementVNode("div",JE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value.awayTeam,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`a${k}`,class:"game-events__data__team__event"},[t.createElementVNode("div",XE,t.toDisplayString(_.text),1),t.createElementVNode("img",{src:_.iconUrl},null,8,ZE)]))),128))])]),YE,KE],2)],512),[[t.vShow,n.value]])]),_:1})],4))}},pu=Ht(QE,[["__scopeId","data-v-43a88f53"]]),eN={class:"calendar-table"},tN={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e;function s(i){return i%2===0?o.evenRowColor:o.oddRowColor}function n(i){a("action",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",eN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(c,h)=>(t.openBlock(),t.createBlock(pu,{key:c.game_id,game:c,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":s(h),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},aN=Ht(tN,[["__scopeId","data-v-47b333f0"]]),oN={class:"calendar-by-team"},sN={class:"playing-as-picker"},nN={class:"calendar-by-team__page"},iN={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,s=t.ref(0),n=t.computed(()=>{let h=[];if(o.gamesPages.size>0){const d=Array.from(o.gamesPages.entries()).reduce((l,[m,p])=>{const y=Number(m),g=Number.isNaN(y)?m:`Jornada ${y<10?"0":""}${y}`,u=p.reduce((f,_)=>(f.push(..._),f),[]).filter(f=>s.value===0||s.value===1&&f.visiting_team.team_id===o.teamId?!0:s.value===2&&f.home_team.team_id===o.teamId);return u.length>0&&l.push({roundName:g,games:u}),l},[]);h.push(d)}return h});function i(h){a("action",h)}function r(h){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),s.value=h,document.querySelector("#opc"+h).classList.add("selected")}function c(h){let d=h;switch(h){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(h,d)=>(t.openBlock(),t.createElementBlock("div",oN,[t.createElementVNode("div",sN,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=l=>r(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=l=>r(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=l=>r(2))},"Local")]),t.createVNode(t.unref(nu),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:t.withCtx(({item:l})=>[t.createElementVNode("div",nN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l,(m,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(c(m.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.games,y=>(t.openBlock(),t.createBlock(pu,{key:y.game_id,game:y,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},rN=Ht(iN,[["__scopeId","data-v-1cad2737"]]),lN="_image62Icon_1lvdf_3",cN="_imgChivasIcon_1lvdf_21",dN="_nameDesktop_1lvdf_35",mN="_nameMobile_1lvdf_61",pN="_homeTeam_1lvdf_85",hN="_sbado16De_1lvdf_107",gN="_gameDate_1lvdf_125",yN="_sab16092023_1lvdf_133",uN="_div_1lvdf_159",fN="_divscore_1lvdf_177",_N="_cst_1lvdf_197",bN="_hour_1lvdf_215",wN="_score_1lvdf_217",CN="_chivasTvCanal_1lvdf_239",kN="_gameStatus_1lvdf_263",SN="_matchInfo_1lvdf_285",EN="_image62Icon1_1lvdf_311",NN="_name_1lvdf_35",$N="_imgAtlasIcon_1lvdf_355",BN="_name1_1lvdf_369",xN="_awayTeam_1lvdf_393",VN="_matchCard_1lvdf_415",IN={image62Icon:lN,imgChivasIcon:cN,nameDesktop:dN,nameMobile:mN,homeTeam:pN,sbado16De:hN,gameDate:gN,sab16092023:yN,div:uN,divscore:fN,cst:_N,hour:bN,score:wN,chivasTvCanal:CN,gameStatus:kN,matchInfo:SN,image62Icon1:EN,name:NN,imgAtlasIcon:$N,name1:BN,awayTeam:xN,matchCard:VN},AN=["src"],ON=["src"],TN={key:0},zN=["src"],FN=["src"],RN={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const n={...a.game};return n.gameSchedule=a.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function s(n,i){const r=new Date(n);if(i==1){const c=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],h=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${c[r.getDay()]} ${r.getDate()} de ${h[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(So)(o.value.home_team.team_id,150)},null,10,AN),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(So)(o.value.home_team.team_id)},null,10,ON),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$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(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(s(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(s(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(s(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(s(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",TN," - 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(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(So)(o.value.visiting_team.team_id,150)},null,10,zN),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(So)(o.value.visiting_team.team_id)},null,10,FN),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},PN={$style:IN},DN=Ht(RN,[["__cssModules",PN]]),LN={class:"calendar-by-game__carousel"},jN={__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const o=e;let s=null;const n=t.ref([]),i=t.ref({}),r=t.ref(0),c=t.ref(null),h=t.ref({}),d=t.ref(new Map),l=t.ref(!1),m=t.ref(null),p=t.ref(null),y=t.ref(null),g=t.computed(()=>o.isCup),u=t.computed(()=>o.isCupLegacy),f=t.computed(()=>({height:o.height,width:o.width})),_=t.computed(()=>o.games?F(o.games):d.value.get(h.value.key)||[]),k=t.ref(0),w=t.ref("1"),b=t.ref([]),E=t.ref([]),x=t.computed(()=>E.value&&E.value.length?B(i.value):V(i.value));t.watch(()=>x.value,se=>{k.value=b.value.findIndex(P=>P===se),w.value=se}),t.watch(()=>o.seasons,se=>{se&&se.length&&(l.value=!0,n.value=se.map(P=>P.id),A(se,!0))},{immediate:!0,deep:!0});function V(se){const P=Object.entries(Object.entries(se).reduce((ae,[ne,ie])=>(ae[ne]=[],ie.forEach(ce=>{ce.games.forEach(me=>{const xe=new Date(me.date_time_utc).getTime()+66e5;ae[ne].push(xe)})}),ae),{}));if(!P.length)return"1";const K=new Date().getTime(),te=P.reduce((ae,[ne,ie])=>{let ce=null;return ie.forEach(me=>{const xe=me-K;xe>=0&&(ce===null||xe<ce)&&(ce=xe)}),ce&&(ae.shortestTime===null||ce<ae.shortestTime)&&(ae.round=ne,ae.shortestTime=ce),ae},{round:"",shortestTime:null});return te.shortestTime!==null?te.round:P[P.length-1][0]}function B(se){let P=1;if(E.value.length){const K=E.value[0];for(const[te,ae]of Object.entries(se))for(const ne of ae)if(ne.games.find(ie=>ie.game_id===K.game_id))return te}return P}t.watch(()=>o.teamId,()=>{I()},{immediate:!0});async function $(se,P,K=""){let te=K;try{const ae={};o.token&&(ae.Authorization=o.token),te||(te="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",se.forEach((ce,me)=>{te+=`${me===0?"":"&"}seasons=${ce}`}));const{data:{data:ne,teams:ie}}=await tu.get(te,{headers:ae});return{seasonsAndGames:ne,seasonsAndTeams:ie}}catch(ae){if(P>0)return $(se,P-1,te);throw new Error(ae)}}function z(se){for(const P of se)if(!n.value.includes(P.season_id))return!0;return!1}async function A(se,P){try{i.value={};let K=0;const{seasonsAndGames:te,seasonsAndTeams:ae}=await $(se.map(ie=>ie.id),3);if(P&&z(te))return;te.forEach(ie=>{const{type:ce}=se.find(me=>me.id===ie.season_id);ie.type=ce,ie.games.forEach(me=>{me.season_id=ie.season_id}),ce===0&&(K=ie.season_id)}),m.value={seasonsGames:te};const{teams:ne}=ae.find(ie=>ie.season_id===K);p.value=ne,a("change-teams",ne),I()}catch(K){throw new Error(K)}}function I(){if(!p.value)return;E.value=[];const se=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(P=>{const K=P.games.reduce((te,ae)=>{const ne={...ae};return ne.dateTimeMillis=new Date(ne.date_time_utc).valueOf(),ne.home_team=p.value.find(ie=>ie.team_id===ae.home_team),ne.visiting_team=p.value.find(ie=>ie.team_id===ae.visiting_team),o.teamId&&ne.home_team.team_id!==o.teamId&&ne.visiting_team.team_id!==o.teamId||(te[ae.matchday_abbreviation]?te[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]?te[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date].push(ne):te[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]=[ne]:te[ae.matchday_abbreviation]={[ae.game_status===3?"canceled":ae.date]:[ne]},o.userTeamId&&ne.game_status===4&&(ne.home_team.team_id===o.userTeamId||ne.visiting_team.team_id===o.userTeamId)&&E.value.push(ne)),te},{});for(let[te,ae]of Object.entries(K))K[te]=Object.entries(ae).map(([ne,ie])=>({date:ne,games:ie.sort((ce,me)=>ce.dateTimeMillis-me.dateTimeMillis)})),K[te].sort((ne,ie)=>ne.date<ie.date?-1:ne.date>ie.date?1:0);return{type:P.type,weight:P.type===0?0:P.type===2?1:2,schedule:K}}):[];se.sort((P,K)=>P.weight-K.weight),i.value=se.reduce((P,K)=>{for(const[te,ae]of Object.entries(K.schedule))if(K.type===0)if(g.value){const ne=te.replace("M",""),ie=ne;u.value?P[NS[ne]||ie]=ae:P[ES[te]||ie]=ae}else P[Number(te.replace("M","")).toString()]=ae;else K.type===2?te.charAt(1)=="I"?P[`PI${Number(te.replace("PI",""))}`]=ae:P[`R${Number(te.replace("PO",""))}`]=ae:K.type===1&&(P[SS[te]]=ae);return P},{}),d.value=new Map,b.value=Array.from(Object.entries(i.value).reduce((P,[K,te],ae)=>{const ne=Number(K);let ie="";Number.isNaN(ne)?ie=K:ie=ne<10?`0${ne}`:K,P.set(K,{key:K,value:ne,valueText:ie,index:ae});const ce=te.reduce((xe,Re)=>(Re.games.forEach(Pe=>{Pe.game_id===o.defaultGameId&&(y.value=K),Pe.roundAbbreviation=Number.isNaN(ne)?ne:`J ${ne}`}),xe=xe.concat(Re.games),xe),[]),me=F(ce);return d.value.set(K,me),P},new Map).values())}function F(se){const P=[];if(o.gamesPerMatchDay>0){let K=[];se.forEach((te,ae)=>{K.push(te),(ae+1)%o.gamesPerMatchDay===0&&(P.push([...K]),K=[])}),K.length&&P.push([...K])}else P.push(se);return P}async function ee(se){try{const{data:P}=await tu.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return P}catch(P){if(se>0)return ee(se-1);throw new Error(P)}}function re(){if(window.ResizeObserver)s=new ResizeObserver(()=>{r.value=c.value.clientWidth}),s.observe(c.value);else throw new Error("Resize observer not supported!")}function Q(se){h.value=se,a("change-round",se)}function C(se){o.areGamesCarouselType&&a("change-game-carousel",se.selectedItem)}function N(se){a("action",se),R(se)}function R(se){const P="PLAY_RESUME",K="PLAY_GOALS",te=[607,608,12,55,54,35,14,52,15,53,466,477],ae=[12,55,"35_r","54_r"],{game_id:ne,season_id:ie}=se.game;let ce={seasonId:ie,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[ne],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};se.action===P?(ce.categoryIds=te,ce.advancedFilter.playListTitle="Resumen",a("openmedia",ce)):se.action===K&&(ce.categoryIds=ae,ce.advancedFilter.playListTitle="Goles",a("openmedia",ce))}async function Le(){try{if(!o.awaitForSeasons&&!o.games){const se=(await ee(3)).find(te=>te._id===1),P=se.seasons[0],K=[{id:P.id,type:P.type}];se&&se.tournament&&a("tournament-selected",se.tournament),P.related_seasons&&P.related_seasons.length&&K.push(...P.related_seasons.map(te=>({id:te.id,type:te.type}))),await A(K,!1)}}catch(se){throw new Error(se)}}return t.onMounted(()=>{re()}),Le(),(se,P)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:t.normalizeStyle(f.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(rN,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":d.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:N},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&b.value?(t.openBlock(),t.createBlock(vS,{key:0,"match-days":b.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":y.value,"closest-match-day":x.value,onChangeMatchDay:Q},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",LN,[_.value?(t.openBlock(),t.createBlock(t.unref(nu),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?_.value[0]:_.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:C},{default:t.withCtx(({item:K})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(DN,{key:0,game:K},null,8,["game"])):(t.openBlock(),t.createBlock(aN,{key:1,"games-per-page":K,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:N},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},vN=Ht(jN,[["__scopeId","data-v-f884d6f4"]]),vve="",Fe=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},hu=Fe({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({"--height":o.height,"--width":o.width,"--padding":o.padding,"--border-radius":o.borderRadius,"--border":`solid ${o.borderWidth} ${o.borderColor}`,"--background-color":o.backgroundColor,"--white-space":o.whiteSpace,"--font-color":o.fontColor,"--font-size":o.fontSize,"--font-family":o.fontFamily,"--active-background-color":o.activeBackgroundColor||o.backgroundColor,"--active-border-color":o.activeBorderColor||o.borderColor,"--active-font-color":o.activeFontColor||o.fontColor}));function n(){a("click")}return(i,r)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(s.value),onClick:n},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-69cf823e"]]),MN=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},HN={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e;t.useCssVars(y=>({"321b6381":e.width,"14b0f61d":h.value,"62e0e83c":e.menuWidth}));const s=t.ref(null),n=t.ref(!1),i=t.ref(null),r=t.ref({}),c=t.computed(()=>{const y={top:"0px"};if(s.value){const g=s.value.getBoundingClientRect();y.top=`${g.height+o.menuMarginTop}px`}return y}),h=t.computed(()=>n.value?o.zIndexOpen:1);t.watch(()=>o.modelValue,y=>{y!==n.value&&(n.value=y)},{immediate:!0}),t.watch(n,y=>{y||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function d(y){const g=window.innerWidth,u=y.boundingClientRect.x,f=y.boundingClientRect.x+y.boundingClientRect.width,_=u<=0?Math.abs(u)+4:f>=g?g-(f+10):0;r.value["--translate-x"]=`${_}px`}function l(){new IntersectionObserver(y=>{y[0].intersectionRatio>0&&d(y[0])}).observe(i.value)}function m(){n.value=!n.value,a("update:modelValue",n.value)}function p(){n.value=!1,a("update:modelValue",n.value)}return t.onMounted(()=>{t.nextTick(()=>{l()})}),(y,g)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[n.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:p})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:s,class:"menu-container__trigger",onClick:m},[t.renderSlot(y.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:i,class:"menu-container__menu",style:t.normalizeStyle(c.value)},[t.renderSlot(y.$slots,"menu",{},void 0,!0)],4),[[t.vShow,n.value]])]),_:3})],4)],64))}},UN=MN(HN,[["__scopeId","data-v-2f344053"]]),Hve="",GN=(e=>(t.pushScopeId("data-v-a8936b64"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),WN={class:"button__text"},qN={key:0},JN={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XN=["fill"],ZN=Fe({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const a=e,o=t.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),s=t.computed(()=>({"--info-background-color":a.infoBackgroundColor,"--info-border-color":a.infoBorderColor,"--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth}));return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(o.value)},[GN,t.createElementVNode("div",WN,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(s.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",qN,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",JN,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,XN)]))],2)],4))}},[["__scopeId","data-v-a8936b64"]]),YN=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},KN={key:1},QN={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e$=["fill"],t$={key:0,class:"checkbox__teams"},a$={class:"checkbox__teams__logo"},o$=["src"],s$={class:"checkbox__teams__logo"},n$=["src"],i$={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e;t.useCssVars(d=>({"6582e90e":e.width,"310b3edf":e.height}));const s=t.ref(!1),n=t.computed(()=>{const d={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return s.value?(d["background-color"]=o.boxBackgroundColor,d.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):d.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,d}),i=t.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),r=t.computed(()=>{const d={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(d[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),d});t.watch(()=>o.modelValue,d=>{d!==s.value&&(s.value=d)},{immediate:!0});function c(){o.avoidInteraction||!s.value&&o.avoidToCheck||(s.value=!s.value,a("update:modelValue",s.value))}function h(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:c},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(n.value)},[s.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",KN,[(t.openBlock(),t.createElementBlock("svg",QN,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,e$)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",t$,[t.createElementVNode("div",a$,[t.createElementVNode("img",{src:h(e.teamsIds[0]),alt:""},null,8,o$)]),t.createElementVNode("div",s$,[t.createElementVNode("img",{src:h(e.teamsIds[1]),alt:""},null,8,n$)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(r.value)},t.toDisplayString(e.label),5)],2))}},gu=YN(i$,[["__scopeId","data-v-bcf3bcc6"]]),Wve="",ki=e=>(t.pushScopeId("data-v-3e7cb100"),e=e(),t.popScopeId(),e),r$={class:"details__header"},l$=ki(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),c$={class:"details__header__checkbox"},d$={class:"details__body"},m$={class:"details__body__playing-as"},p$=["onClick"],h$={class:"details__header"},g$=ki(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),y$={class:"details__header__checkbox"},u$={class:"details__body"},f$=ki(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),_$={class:"details__body__game-section"},b$=["onClick"],w$={class:"details__body"},C$=ki(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),k$={class:"details__body__game-section"},S$=["onClick"],E$=Fe({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(l=>({"057a1337":e.buttonsBackgroundColor,"4ababc18":e.buttonsTextColor,a6bfbb48:e.buttonsBorderWidth,a8edb80e:e.buttonsBorderColor,"6a6af91d":e.buttonsBackgroundColorActive,"54e7b53e":e.buttonsTextColorActive,"805f4efc":e.buttonsBorderWidthActive,f9321f42:e.buttonsBorderColorActive}));const o=t.computed(()=>a.playingAs.every(l=>l.isSelected)),s=t.computed(()=>a.gameSections.every(l=>l.isSelected)),n=t.computed(()=>a.gameSections.reduce((l,m)=>(m.value<=3?l.firstHalf.push(m):l.secondHalf.push(m),l),{firstHalf:[],secondHalf:[]})),i=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function r(l){l?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,p)=>{m.isSelected=p===0})}function c(l){a.playingAs.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function h(l){a.gameSections.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function d(l){l?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,p)=>{m.isSelected=p===0})}return(l,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",r$,[l$,t.createElementVNode("div",c$,[t.createVNode(t.unref(gu),{label:"Todos","model-value":o.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),t.createElementVNode("div",d$,[t.createElementVNode("div",m$,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(p,y)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${y}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:g=>c(p)},t.toDisplayString(p.name),11,p$))),128))])]),t.createElementVNode("div",h$,[g$,t.createElementVNode("div",y$,[t.createVNode(t.unref(gu),{label:"Todos","model-value":s.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",u$,[f$,t.createElementVNode("div",_$,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value.firstHalf,(p,y)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${y}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:g=>h(p)},t.toDisplayString(p.text),11,b$))),128))])]),t.createElementVNode("div",w$,[C$,t.createElementVNode("div",k$,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value.secondHalf,(p,y)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${y}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:g=>h(p)},t.toDisplayString(p.text),11,S$))),128))])])],4))}},[["__scopeId","data-v-3e7cb100"]]),N$={class:"statistics-filter-button"},$$={__name:"StatisticsFilterButton",setup(e){const a=t.ref(!1);return(o,s)=>(t.openBlock(),t.createElementBlock("div",N$,[t.createVNode(t.unref(UN),{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=n=>a.value=n),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(ZN,{text:"Filtros","is-active":a.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(E$)]),_:1},8,["modelValue"])]))}};function B$(){return yu().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yu(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const x$=typeof Proxy=="function",V$="devtools-plugin:setup",I$="plugin:settings:set";let Eo,bd;function A$(){var e;return Eo!==void 0||(typeof window<"u"&&window.performance?(Eo=!0,bd=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Eo=!0,bd=global.perf_hooks.performance):Eo=!1),Eo}function O$(){return A$()?bd.now():Date.now()}class T${constructor(a,o){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=o;const s={};if(a.settings)for(const r in a.settings){const c=a.settings[r];s[r]=c.defaultValue}const n=`__vue-devtools-plugin-settings__${a.id}`;let i=Object.assign({},s);try{const r=localStorage.getItem(n),c=JSON.parse(r);Object.assign(i,c)}catch{}this.fallbacks={getSettings(){return i},setSettings(r){try{localStorage.setItem(n,JSON.stringify(r))}catch{}i=r},now(){return O$()}},o&&o.on(I$,(r,c)=>{r===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(r,c)=>this.target?this.target.on[c]:(...h)=>{this.onQueue.push({method:c,args:h})}}),this.proxiedTarget=new Proxy({},{get:(r,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...h)=>(this.targetQueue.push({method:c,args:h,resolve:()=>{}}),this.fallbacks[c](...h)):(...h)=>new Promise(d=>{this.targetQueue.push({method:c,args:h,resolve:d})})})}async setRealTarget(a){this.target=a;for(const o of this.onQueue)this.target.on[o.method](...o.args);for(const o of this.targetQueue)o.resolve(await this.target[o.method](...o.args))}}function z$(e,a){const o=e,s=yu(),n=B$(),i=x$&&o.enableEarlyProxy;if(n&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit(V$,e,a);else{const r=i?new T$(o,n):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:o,setupFn:a,proxy:r}),r&&a(r.proxiedTarget)}}/*!
14
+ */const st={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"}},iu={itemsToShow:{default:st.itemsToShow,type:Number},itemsToScroll:{default:st.itemsToScroll,type:Number},wrapAround:{default:st.wrapAround,type:Boolean},throttle:{default:st.throttle,type:Number},snapAlign:{default:st.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:st.transition,type:Number},breakpoints:{default:st.breakpoints,type:Object},autoplay:{default:st.autoplay,type:Number},pauseAutoplayOnHover:{default:st.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:st.mouseDrag,type:Boolean},touchDrag:{default:st.touchDrag,type:Boolean},dir:{default:st.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:st.i18n,type:Object},settings:{default(){return{}},type:Object}};function $S({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function BS({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function gd({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function xS({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:gd({val:r,max:o-i,min:0})}function ru(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...ru(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function yd({val:e,max:a,min:o=0}){return e>a?yd({val:e-(a+1),max:a,min:o}):e<o?yd({val:e+(a+1),max:a,min:o}):e}function VS(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function IS(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function AS(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var OS=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},st))),a=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"},AS(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),TS=t.defineComponent({name:"Carousel",props:iu,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},st));let l=Object.assign({},st),m;const p=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),g=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",h),t.provide("currentSlide",p),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(O=>Number(O)).sort((O,oe)=>+oe-+O);let T=Object.assign({},l);S.some(O=>{const oe=window.matchMedia(`(min-width: ${O}px)`).matches;return oe&&(T=Object.assign(Object.assign({},T),m[O])),oe}),E(T)}function E(S){Object.entries(S).forEach(([T,O])=>d[T]=O)}const x=IS(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=$S({config:d,slidesCount:h.value}),f.value=BS({config:d,slidesCount:h.value}),d.wrapAround||(p.value=gd({val:p.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),Le(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const z={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),F=t.ref(!1),ee=t.ref(!1),re=()=>{F.value=!0},Q=()=>{F.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||P.value)&&(z.x=$?S.touches[0].clientX:S.clientX,z.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",R,!0)))}const N=VS(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const T=A.x-z.x,O=A.y-z.y;I.y=O,I.x=T},d.throttle);function R(){const S=d.dir==="rtl"?-1:1,T=Math.sign(I.x)*.4,O=Math.round(I.x/c.value+T)*S;if(O&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(p.value-O),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",R,!0)}function Le(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&F.value||te()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),Le()}const P=t.ref(!1);function K(S){const T=d.wrapAround?S:gd({val:S,max:u.value,min:f.value});p.value===T||P.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!0,y.value=p.value,p.value=T,k=setTimeout(()=>{if(d.wrapAround){const O=yd({val:T,max:u.value,min:0});O!==p.value&&(p.value=O,o("loop",{currentSlideIndex:p.value,slidingToIndex:S}))}o("update:modelValue",p.value),o("slide-end",{currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!1,se()},d.transition))}function te(){K(p.value+d.itemsToScroll)}function ae(){K(p.value-d.itemsToScroll)}const ne={slideTo:K,next:te,prev:ae};t.provide("nav",ne),t.provide("isSliding",P);const ie=t.computed(()=>xS({config:d,currentSlide:p.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,T=ie.value*c.value*S;return{transform:`translateX(${I.x-T}px)`,transition:`${P.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),B(),V(),se()}Object.keys(iu).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==p.value&&K(Number(S))}),t.watch(h,B),o("before-init"),w();const xe={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:p,maxSlide:u,minSlide:f,middleSlide:g};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:ne,data:xe});const Re=a.default||a.slides,Pe=a.addons,ve=t.reactive(xe);return()=>{const S=ru(Re==null?void 0:Re(ve)),T=(Pe==null?void 0:Pe(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let O=S;if(d.wrapAround){const Oe=S.map((ze,le)=>t.cloneVNode(ze,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((ze,le)=>t.cloneVNode(ze,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));O=[...Oe,...S,...Te]}r.value=S,h.value=Math.max(S.length,1);const oe=t.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:d.mouseDrag?C:null,onTouchstartPassiveCapture:d.touchDrag?C:null},O),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":P.value,"is-dragging":ee.value,"is-hover":F.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,T,t.h(OS)])}}}),ud;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(ud||(ud={}));const zS={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 FS(e){return e in ud}const fd=e=>{const a=t.inject("config",t.reactive(Object.assign({},st))),o=String(e.name),s=`icon${o.charAt(0).toUpperCase()+o.slice(1)}`;if(!o||typeof o!="string"||!FS(o))return;const n=zS[o],i=t.h("path",{d:n}),r=a.i18n[s]||e.title||o,c=t.h("title",r);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":r},[c,i])};fd.props={name:String,title:String};const RS=(e,{slots:a,attrs:o})=>{const{next:s,prev:n}=a||{},i=t.inject("config",t.reactive(Object.assign({},st))),r=t.inject("maxSlide",t.ref(1)),c=t.inject("minSlide",t.ref(1)),h=t.inject("currentSlide",t.ref(1)),d=t.inject("nav",{}),{dir:l,wrapAround:m,i18n:p}=i,y=l==="rtl",g=t.h("button",{type:"button",class:["carousel__prev",!m&&h.value<=c.value&&"carousel__prev--disabled",o==null?void 0:o.class],"aria-label":p.ariaPreviousSlide,onClick:d.prev},(n==null?void 0:n())||t.h(fd,{name:y?"arrowRight":"arrowLeft"})),u=t.h("button",{type:"button",class:["carousel__next",!m&&h.value>=r.value&&"carousel__next--disabled",o==null?void 0:o.class],"aria-label":p.ariaNextSlide,onClick:d.next},(s==null?void 0:s())||t.h(fd,{name:y?"arrowLeft":"arrowRight"}));return[g,u]};var PS=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},st))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,h=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;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":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const Ht=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},DS={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e,s=t.computed(()=>{const c={"background-color":o.backgroundColor,height:o.height};return o.matchDay.key===o.matchDaySelected.key&&(c["border-bottom"]=`solid 1px ${o.bottomLineColor}`,c["background-color"]=o.selectedMatchDayBackgroundColor),o.isLandingMode||(c["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),c}),n=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 r(c){a("click-match-day",c)}return(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...s.value}),onClick:h[0]||(h[0]=d=>r(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(n.value)},t.toDisplayString(e.matchDay.valueText),5),Number.isNaN(e.matchDay.value)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",i.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5))],4))}},LS=Ht(DS,[["__scopeId","data-v-89459353"]]),jS={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:a}){const o=e;t.useCssVars(d=>({"469bccd0":i.value,"469dfb50":r.value}));const s=t.ref(null),n=t.computed(()=>({itemsToShow:o.itemsToShow,itemsToScroll:o.itemsToScroll,snapAlign:"start"})),i=t.computed(()=>s.value.data.currentSlide.value==0?"none":"inline"),r=t.computed(()=>s.value.data.currentSlide.value==s.value.data.maxSlide.value?"none":"inline"),c=t.ref({});t.watch(()=>o.closestMatchDay,d=>{if(d){const l=o.matchDays.find(m=>m.key===d);h(l||o.matchDays[0],!0)}}),t.watch(()=>o.matchDays,d=>{if(!o.closestMatchDay&&d&&d.length){const l=d.find(m=>m.key===o.defaultMatchDayKey);c.value=l||d[0],a("change-match-day",c.value)}},{immediate:!0});function h(d,l=!1){l&&s.value.slideTo(d.index),c.value=d,a("change-match-day",c.value)}return(d,l)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[t.createVNode(t.unref(TS),t.mergeProps(n.value,{ref_key:"matchDayPickerCarousel",ref:s}),{addons:t.withCtx(()=>[t.createVNode(t.unref(RS))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,m=>(t.openBlock(),t.createBlock(t.unref(PS),{key:m.key},{default:t.withCtx(()=>[t.createVNode(LS,t.mergeProps(o,{"match-day":m,"match-day-selected":c.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:h}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16)],4))}},vS=Ht(jS,[["__scopeId","data-v-930cd509"]]);function So(e,a=80){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-"}${a}/${e}.png`}function lu(e){if(typeof e=="string"){let a=e.replace("M","J ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a}}function MS(e){let a="";return e.game_status!=4&&(a+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(a+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),a}const HS={class:"game-info__teams"},US={class:"game-info__teams__team__logo"},GS=["src"],WS={class:"game-info__teams__detail"},qS={key:0,class:"game-info__teams__detail__pre-game"},JS={class:"game-info__teams__team__logo away"},XS=["src"],ZS={key:0},YS={key:0},KS={key:1},QS={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const a=e,o=t.computed(()=>{const d=new Date(a.game.dateTimeMillis),l=d.getHours(),m=d.getMinutes();return`${l<10?`0${l}`:l}:${m<10?`0${m}`:m}`}),s=t.computed(()=>{let d="120px";return(a.isLandingMode||a.isAcronymVisible)&&(d="70px"),{"min-width":d}}),n=t.computed(()=>({"font-size":a.namesFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),i=t.computed(()=>({"font-size":a.additionalInfoFontSize,"font-family":a.additionalInfoFontFamily,color:a.colorSecondary})),r=t.computed(()=>({"font-size":a.scoreFontSize,"font-family":a.scoreFontFamily,color:a.colorPrimary})),c=t.computed(()=>({"font-size":a.timeZoneFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary})),h=t.computed(()=>({"font-size":a.timeFontSize,"font-family":a.namesFontFamily,color:a.colorPrimary}));return(d,l)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",HS,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(n.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",US,[t.createElementVNode("img",{src:t.unref(So)(e.game.home_team.team_id),alt:""},null,8,GS)])],4),t.createElementVNode("div",WS,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",qS,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(h.value)},t.toDisplayString(o.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(c.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(r.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(s.value)},[t.createElementVNode("div",JS,[t.createElementVNode("img",{src:t.unref(So)(e.game.visiting_team.team_id),alt:""},null,8,XS)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(n.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([i.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",ZS,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",YS,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",KS,t.toDisplayString(t.unref(MS)(e.game)),1))],4)],4))}},cu=Ht(QS,[["__scopeId","data-v-afb1954b"]]),du=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),eE={class:"game-status"},tE={key:0,class:"game-status__day__live"},aE=du(()=>t.createElementVNode("span",null,"LIVE",-1)),oE=du(()=>t.createElementVNode("span",{class:"dot"},null,-1)),sE=[aE,oE],nE={key:0,class:"game-status__round"},iE={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const a=e,o=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],s=t.computed(()=>{let r="";if(a.dateTimeMillis){const c=new Date(a.dateTimeMillis);r=`${c.getDate()} ${o[c.getMonth()]}`}return r}),n=t.computed(()=>({"font-size":a.fontSize})),i=t.computed(()=>{let r=[];return a.isLive?r.push("live"):a.status!==1&&r.push("pre-match"),r});return(r,c)=>(t.openBlock(),t.createElementBlock("div",eE,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",i.value]),style:t.normalizeStyle(n.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",tE,sE)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(s.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",nE,t.toDisplayString(e.roundAbbreviation),1))]))}},mu=Ht(iE,[["__scopeId","data-v-8839c56d"]]),Ut={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},rE=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),lE={class:"actions"},cE={class:"actions__row"},dE=rE(()=>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)),mE=[dE],pE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hE=["fill"],gE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yE=["fill"],uE={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor}));function n(i){a("action",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",lE,[t.createElementVNode("div",cE,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:r[0]||(r[0]=c=>n(t.unref(Ut).STATISTICS))},mE,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:r[1]||(r[1]=c=>n(t.unref(Ut).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",pE,[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,hE)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:r[2]||(r[2]=c=>n(t.unref(Ut).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",gE,[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,yE)]))])):t.createCommentVNode("",!0)])]))}},fE=Ht(uE,[["__scopeId","data-v-0d97b1a8"]]),_d=e=>(t.pushScopeId("data-v-af6919bd"),e=e(),t.popScopeId(),e),_E={class:"actions"},bE={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wE=["fill"],CE={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kE=["fill"],SE=_d(()=>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)),EE=[SE],NE={key:0,class:"actions__videos"},$E={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},BE=["fill"],xE={key:1,class:"actions__videos__thumbnails"},VE=_d(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),IE=_d(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),AE={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OE=["stroke"],TE={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({backgroundColor:o.iconBackgroundColor,borderColor:o.iconBorderColor})),n=t.computed(()=>{const h=[];return o.componentWidth<540&&h.push("mobile"),h}),i=t.computed(()=>o.componentWidth>730),r=t.computed(()=>({color:o.thumbnailColor,fontFamily:o.thumbnailFontFamily,fontSize:o.thumbnailFontSize}));function c(h){a("action",h)}return(h,d)=>(t.openBlock(),t.createElementBlock("div",_E,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",n.value])},[e.gameStatus===4444&&!e.isLive&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[0]||(d[0]=l=>c(t.unref(Ut).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",bE,[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,wE)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!i.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:d[1]||(d[1]=l=>c(t.unref(Ut).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",CE,[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,kE)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(s.value),onClick:d[2]||(d[2]=l=>c(t.unref(Ut).STATISTICS))},EE,4)],2),i.value?(t.openBlock(),t.createElementBlock("div",NE,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:d[3]||(d[3]=l=>c(t.unref(Ut).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",$E,[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,BE)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",xE,[t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[4]||(d[4]=l=>c(t.unref(Ut).PLAY_GOALS))},[VE,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(r.value)}," Goles ",4)]),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:d[5]||(d[5]=l=>c(t.unref(Ut).PLAY_RESUME))},[IE,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(r.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:d[6]||(d[6]=l=>c(t.unref(Ut).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",AE,[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,OE)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},zE=Ht(TE,[["__scopeId","data-v-af6919bd"]]),Ci=e=>(t.pushScopeId("data-v-43a88f53"),e=e(),t.popScopeId(),e),FE={class:"row-landing__game-status"},RE={class:"row-landing__game-actions"},PE={class:"row-full__game-status"},DE={class:"row-full__game-info"},LE={key:0},jE={class:"row-full__game-actions"},vE={class:"game-events-container"},ME=Ci(()=>t.createElementVNode("div",{class:"separator"},null,-1)),HE=Ci(()=>t.createElementVNode("div",null,null,-1)),UE={class:"game-events__data"},GE={class:"game-events__data__team"},WE=["src"],qE={class:"game-events__data__team__event__text"},JE={class:"game-events__data__team away"},XE={class:"game-events__data__team__event__text"},ZE=["src"],YE=Ci(()=>t.createElementVNode("div",null,null,-1)),KE=Ci(()=>t.createElementVNode("div",null,null,-1)),QE={__name:"CalendarRow",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"}},emits:["action"],setup(e,{emit:a}){const o=e,s={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},n=t.ref(!1),i=t.ref(!1),r=t.computed(()=>{const u={homeTeam:[],awayTeam:[]};return o.game&&o.game.game_status!==4&&!o.game.is_live&&o.game.minutes&&(u.homeTeam.push(...y(o.game.minutes.home_goals_minutes,s.GOAL)),u.homeTeam.push(...y(o.game.minutes.home_red_cards_minutes,s.RED_CARD)),u.homeTeam.push(...y(o.game.minutes.home_yellow_cards_minutes,s.YELLOW_CARD)),u.awayTeam.push(...y(o.game.minutes.visiting_goals_minutes,s.GOAL)),u.awayTeam.push(...y(o.game.minutes.away_red_cards_minutes,s.RED_CARD)),u.awayTeam.push(...y(o.game.minutes.away_yellow_cards_minutes,s.YELLOW_CARD))),u}),c=t.computed(()=>{const u=r.value.homeTeam.length,f=r.value.awayTeam.length;return u+f>0}),h=t.computed(()=>({"background-color":o.backgroundColor})),d=t.computed(()=>({height:o.height})),l=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 y(u,f){return u.map(_=>({iconUrl:f,text:_}))}function g(u){u===Ut.SHOW_GAME_EVENTS?n.value=!n.value:a("action",{action:u,game:o.game})}return(u,f)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(h.value)},[t.createVNode(cu,{game:e.game,"is-landing-mode":e.isLandingMode},null,8,["game","is-landing-mode"]),t.createElementVNode("div",FE,[t.createVNode(mu,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(lu)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",RE,[t.createVNode(fE,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"game-status":e.game.game_status,"show-play-button":!0,onAction:g},null,8,["is-live","has-video","game-status"])])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(h.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",l.value.game]),style:t.normalizeStyle(d.value)},[t.createElementVNode("div",PE,[t.createVNode(mu,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(lu)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",DE,[t.createVNode(cu,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",LE,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",jE,[t.createVNode(zE,{"is-live":!!e.game.is_live,"has-video":!!e.game.has_video,"has-actions":c.value,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":n.value,"component-width":e.componentWidth,onAction:g},null,8,["is-live","has-video","has-actions","game-status","are-events-visible","component-width"])])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",vE,[ME,t.createElementVNode("div",{class:t.normalizeClass(["game-events",l.value.events])},[HE,t.createElementVNode("div",UE,[t.createElementVNode("div",GE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value.homeTeam,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`h${k}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:_.iconUrl},null,8,WE),t.createElementVNode("div",qE,t.toDisplayString(_.text),1)]))),128))]),t.createElementVNode("div",JE,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r.value.awayTeam,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`a${k}`,class:"game-events__data__team__event"},[t.createElementVNode("div",XE,t.toDisplayString(_.text),1),t.createElementVNode("img",{src:_.iconUrl},null,8,ZE)]))),128))])]),YE,KE],2)],512),[[t.vShow,n.value]])]),_:1})],4))}},pu=Ht(QE,[["__scopeId","data-v-43a88f53"]]),eN={class:"calendar-table"},tN={__name:"CalendarTable",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e;function s(i){return i%2===0?o.evenRowColor:o.oddRowColor}function n(i){a("action",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",eN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(c,h)=>(t.openBlock(),t.createBlock(pu,{key:c.game_id,game:c,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":s(h),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:n},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))}},aN=Ht(tN,[["__scopeId","data-v-47b333f0"]]),oN={class:"calendar-by-team"},sN={class:"playing-as-picker"},nN={class:"calendar-by-team__page"},iN={__name:"CalendarTableByTeam",props:{teamId:{type:Number,default:0},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:a}){const o=e,s=t.ref(0),n=t.computed(()=>{let h=[];if(o.gamesPages.size>0){const d=Array.from(o.gamesPages.entries()).reduce((l,[m,p])=>{const y=Number(m),g=Number.isNaN(y)?m:`Jornada ${y<10?"0":""}${y}`,u=p.reduce((f,_)=>(f.push(..._),f),[]).filter(f=>s.value===0||s.value===1&&f.visiting_team.team_id===o.teamId?!0:s.value===2&&f.home_team.team_id===o.teamId);return u.length>0&&l.push({roundName:g,games:u}),l},[]);h.push(d)}return h});function i(h){a("action",h)}function r(h){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),s.value=h,document.querySelector("#opc"+h).classList.add("selected")}function c(h){let d=h;switch(h){case"PI1":d="Play In 1";break;case"PI2":d="Play In 2";break;case"R1":d="Repechaje";break;case"CFI":d="Cuartos de final - Ida";break;case"CFV":d="Cuartos de final - Vuelta";break;case"SFI":d="Semifinal - Ida";break;case"SFV":d="Semifinal - Vuelta";break;case"FI":d="Final - Ida";break;case"FV":d="Final - Vuelta";break}return d}return(h,d)=>(t.openBlock(),t.createElementBlock("div",oN,[t.createElementVNode("div",sN,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:d[0]||(d[0]=l=>r(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:d[1]||(d[1]=l=>r(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:d[2]||(d[2]=l=>r(2))},"Local")]),t.createVNode(t.unref(nu),{"is-pagination-visible":e.isPaginationVisible,items:n.value},{default:t.withCtx(({item:l})=>[t.createElementVNode("div",nN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(l,(m,p)=>(t.openBlock(),t.createElementBlock("div",{key:p,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(c(m.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.games,y=>(t.openBlock(),t.createBlock(pu,{key:y.game_id,game:y,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,onAction:i},null,8,["game","is-landing-mode","height","background-color","component-width","is-round-mode"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},rN=Ht(iN,[["__scopeId","data-v-1cad2737"]]),lN="_image62Icon_1lvdf_3",cN="_imgChivasIcon_1lvdf_21",dN="_nameDesktop_1lvdf_35",mN="_nameMobile_1lvdf_61",pN="_homeTeam_1lvdf_85",hN="_sbado16De_1lvdf_107",gN="_gameDate_1lvdf_125",yN="_sab16092023_1lvdf_133",uN="_div_1lvdf_159",fN="_divscore_1lvdf_177",_N="_cst_1lvdf_197",bN="_hour_1lvdf_215",wN="_score_1lvdf_217",CN="_chivasTvCanal_1lvdf_239",kN="_gameStatus_1lvdf_263",SN="_matchInfo_1lvdf_285",EN="_image62Icon1_1lvdf_311",NN="_name_1lvdf_35",$N="_imgAtlasIcon_1lvdf_355",BN="_name1_1lvdf_369",xN="_awayTeam_1lvdf_393",VN="_matchCard_1lvdf_415",IN={image62Icon:lN,imgChivasIcon:cN,nameDesktop:dN,nameMobile:mN,homeTeam:pN,sbado16De:hN,gameDate:gN,sab16092023:yN,div:uN,divscore:fN,cst:_N,hour:bN,score:wN,chivasTvCanal:CN,gameStatus:kN,matchInfo:SN,image62Icon1:EN,name:NN,imgAtlasIcon:$N,name1:BN,awayTeam:xN,matchCard:VN},AN=["src"],ON=["src"],TN={key:0},zN=["src"],FN=["src"],RN={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}}},setup(e){const a=e,o=t.computed(()=>{const n={...a.game};return n.gameSchedule=a.game.schedule.split(":"),n.gameSchedule.pop(),n.gameSchedule=n.gameSchedule.join(":"),n});function s(n,i){const r=new Date(n);if(i==1){const c=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],h=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${c[r.getDay()]} ${r.getDate()} de ${h[r.getMonth()]}`}else return`${r.getDate()}-${r.getMonth()+1}-${r.getFullYear()}`}return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(n.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon),alt:"",src:t.unref(So)(o.value.home_team.team_id,150)},null,10,AN),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgChivasIcon),alt:"",src:t.unref(So)(o.value.home_team.team_id)},null,10,ON),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.nameDesktop),id:"team-name"},t.toDisplayString(o.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(n.$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(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.sbado16De)},t.toDisplayString(s(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.sab16092023)},t.toDisplayString(s(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.div)},t.toDisplayString(o.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.chivasTvCanal)},t.toDisplayString(o.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(n.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass([n.$style.sbado16De,n.$style.gameDate])},t.toDisplayString(s(o.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([n.$style.sab16092023,n.$style.gameDate])},t.toDisplayString(s(o.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(n.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(n.$style.divscore)},t.toDisplayString(o.value.score.join(" - ")),3)],2),t.createElementVNode("div",{class:t.normalizeClass(n.$style.gameStatus)},[t.createTextVNode(" Finalizado "),o.value.penalties_score_home_team!=0||o.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",TN," - 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(n.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(n.$style.image62Icon1),alt:"",src:t.unref(So)(o.value.visiting_team.team_id,150)},null,10,zN),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name),id:"team-name"},t.toDisplayString(o.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(n.$style.imgAtlasIcon),alt:"",src:t.unref(So)(o.value.visiting_team.team_id)},null,10,FN),t.createElementVNode("h3",{class:t.normalizeClass(n.$style.name1),id:"team-name"},t.toDisplayString(o.value.visiting_team.acronym),3)],2)],2))}},PN={$style:IN},DN=Ht(RN,[["__cssModules",PN]]),LN={class:"calendar-by-game__carousel"},jN={__name:"GSC-CalendarByGame",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action"],setup(e,{emit:a}){const o=e;let s=null;const n=t.ref([]),i=t.ref({}),r=t.ref(0),c=t.ref(null),h=t.ref({}),d=t.ref(new Map),l=t.ref(!1),m=t.ref(null),p=t.ref(null),y=t.ref(null),g=t.computed(()=>o.isCup),u=t.computed(()=>o.isCupLegacy),f=t.computed(()=>({height:o.height,width:o.width})),_=t.computed(()=>o.games?F(o.games):d.value.get(h.value.key)||[]),k=t.ref(0),w=t.ref("1"),b=t.ref([]),E=t.ref([]),x=t.computed(()=>E.value&&E.value.length?B(i.value):V(i.value));t.watch(()=>x.value,se=>{k.value=b.value.findIndex(P=>P===se),w.value=se}),t.watch(()=>o.seasons,se=>{se&&se.length&&(l.value=!0,n.value=se.map(P=>P.id),A(se,!0))},{immediate:!0,deep:!0});function V(se){const P=Object.entries(Object.entries(se).reduce((ae,[ne,ie])=>(ae[ne]=[],ie.forEach(ce=>{ce.games.forEach(me=>{const xe=new Date(me.date_time_utc).getTime()+66e5;ae[ne].push(xe)})}),ae),{}));if(!P.length)return"1";const K=new Date().getTime(),te=P.reduce((ae,[ne,ie])=>{let ce=null;return ie.forEach(me=>{const xe=me-K;xe>=0&&(ce===null||xe<ce)&&(ce=xe)}),ce&&(ae.shortestTime===null||ce<ae.shortestTime)&&(ae.round=ne,ae.shortestTime=ce),ae},{round:"",shortestTime:null});return te.shortestTime!==null?te.round:P[P.length-1][0]}function B(se){let P=1;if(E.value.length){const K=E.value[0];for(const[te,ae]of Object.entries(se))for(const ne of ae)if(ne.games.find(ie=>ie.game_id===K.game_id))return te}return P}t.watch(()=>o.teamId,()=>{I()},{immediate:!0});async function $(se,P,K=""){let te=K;try{const ae={};o.token&&(ae.Authorization=o.token),te||(te="https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",se.forEach((ce,me)=>{te+=`${me===0?"":"&"}seasons=${ce}`}));const{data:{data:ne,teams:ie}}=await tu.get(te,{headers:ae});return{seasonsAndGames:ne,seasonsAndTeams:ie}}catch(ae){if(P>0)return $(se,P-1,te);throw new Error(ae)}}function z(se){for(const P of se)if(!n.value.includes(P.season_id))return!0;return!1}async function A(se,P){try{i.value={};let K=0;const{seasonsAndGames:te,seasonsAndTeams:ae}=await $(se.map(ie=>ie.id),3);if(P&&z(te))return;te.forEach(ie=>{const{type:ce}=se.find(me=>me.id===ie.season_id);ie.type=ce,ie.games.forEach(me=>{me.season_id=ie.season_id}),ce===0&&(K=ie.season_id)}),m.value={seasonsGames:te};const{teams:ne}=ae.find(ie=>ie.season_id===K);p.value=ne,a("change-teams",ne),I()}catch(K){throw new Error(K)}}function I(){if(!p.value)return;E.value=[];const se=m.value&&m.value.seasonsGames?m.value.seasonsGames.map(P=>{const K=P.games.reduce((te,ae)=>{const ne={...ae};return ne.dateTimeMillis=new Date(ne.date_time_utc).valueOf(),ne.home_team=p.value.find(ie=>ie.team_id===ae.home_team),ne.visiting_team=p.value.find(ie=>ie.team_id===ae.visiting_team),o.teamId&&ne.home_team.team_id!==o.teamId&&ne.visiting_team.team_id!==o.teamId||(te[ae.matchday_abbreviation]?te[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]?te[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date].push(ne):te[ae.matchday_abbreviation][ae.game_status===3?"canceled":ae.date]=[ne]:te[ae.matchday_abbreviation]={[ae.game_status===3?"canceled":ae.date]:[ne]},o.userTeamId&&ne.game_status===4&&(ne.home_team.team_id===o.userTeamId||ne.visiting_team.team_id===o.userTeamId)&&E.value.push(ne)),te},{});for(let[te,ae]of Object.entries(K))K[te]=Object.entries(ae).map(([ne,ie])=>({date:ne,games:ie.sort((ce,me)=>ce.dateTimeMillis-me.dateTimeMillis)})),K[te].sort((ne,ie)=>ne.date<ie.date?-1:ne.date>ie.date?1:0);return{type:P.type,weight:P.type===0?0:P.type===2?1:2,schedule:K}}):[];se.sort((P,K)=>P.weight-K.weight),i.value=se.reduce((P,K)=>{for(const[te,ae]of Object.entries(K.schedule))if(K.type===0)if(g.value){const ne=te.replace("M",""),ie=ne;u.value?P[NS[ne]||ie]=ae:P[ES[te]||ie]=ae}else P[Number(te.replace("M","")).toString()]=ae;else K.type===2?te.charAt(1)=="I"?P[`PI${Number(te.replace("PI",""))}`]=ae:P[`R${Number(te.replace("PO",""))}`]=ae:K.type===1&&(P[SS[te]]=ae);return P},{}),d.value=new Map,b.value=Array.from(Object.entries(i.value).reduce((P,[K,te],ae)=>{const ne=Number(K);let ie="";Number.isNaN(ne)?ie=K:ie=ne<10?`0${ne}`:K,P.set(K,{key:K,value:ne,valueText:ie,index:ae});const ce=te.reduce((xe,Re)=>(Re.games.forEach(Pe=>{Pe.game_id===o.defaultGameId&&(y.value=K),Pe.roundAbbreviation=Number.isNaN(ne)?ne:`J ${ne}`}),xe=xe.concat(Re.games),xe),[]),me=F(ce);return d.value.set(K,me),P},new Map).values())}function F(se){const P=[];if(o.gamesPerMatchDay>0){let K=[];se.forEach((te,ae)=>{K.push(te),(ae+1)%o.gamesPerMatchDay===0&&(P.push([...K]),K=[])}),K.length&&P.push([...K])}else P.push(se);return P}async function ee(se){try{const{data:P}=await tu.get("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments");return P}catch(P){if(se>0)return ee(se-1);throw new Error(P)}}function re(){if(window.ResizeObserver)s=new ResizeObserver(()=>{r.value=c.value.clientWidth}),s.observe(c.value);else throw new Error("Resize observer not supported!")}function Q(se){h.value=se,a("change-round",se)}function C(se){o.areGamesCarouselType&&a("change-game-carousel",se.selectedItem)}function N(se){a("action",se),R(se)}function R(se){const P="PLAY_RESUME",K="PLAY_GOALS",te=[607,608,12,55,54,35,14,52,15,53,466,477],ae=[12,55,"35_r","54_r"],{game_id:ne,season_id:ie}=se.game;let ce={seasonId:ie,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIds:[ne],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};se.action===P?(ce.categoryIds=te,ce.advancedFilter.playListTitle="Resumen",a("openmedia",ce)):se.action===K&&(ce.categoryIds=ae,ce.advancedFilter.playListTitle="Goles",a("openmedia",ce))}async function Le(){try{if(!o.awaitForSeasons&&!o.games){const se=(await ee(3)).find(te=>te._id===1),P=se.seasons[0],K=[{id:P.id,type:P.type}];se&&se.tournament&&a("tournament-selected",se.tournament),P.related_seasons&&P.related_seasons.length&&K.push(...P.related_seasons.map(te=>({id:te.id,type:te.type}))),await A(K,!1)}}catch(se){throw new Error(se)}}return t.onMounted(()=>{re()}),Le(),(se,P)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:c,class:"calendar-by-game",style:t.normalizeStyle(f.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(rN,{key:0,"full-tournament-schedule":i.value,"team-id":e.teamId,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":d.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,onAction:N},null,8,["full-tournament-schedule","team-id","row-height","component-width","games-pages","is-pagination-visible","is-round-mode"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&b.value?(t.openBlock(),t.createBlock(vS,{key:0,"match-days":b.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":y.value,"closest-match-day":e.sortCalendar?x.value:"",onChangeMatchDay:Q},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",LN,[_.value?(t.openBlock(),t.createBlock(t.unref(nu),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:e.areGamesCarouselType?_.value[0]:_.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType,"items-to-show":e.areGamesCarouselType?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:C},{default:t.withCtx(({item:K})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(DN,{key:0,game:K},null,8,["game"])):(t.openBlock(),t.createBlock(aN,{key:1,"games-per-page":K,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,onAction:N},null,8,["games-per-page","is-landing-mode","row-height","component-width","is-round-mode"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},vN=Ht(jN,[["__scopeId","data-v-94228d1d"]]),vve="",Fe=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},hu=Fe({__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeBorderWidth:{type:String,default:"1px"},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},whiteSpace:{type:String,default:"nowrap"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:a}){const o=e,s=t.computed(()=>({"--height":o.height,"--width":o.width,"--padding":o.padding,"--border-radius":o.borderRadius,"--border":`solid ${o.borderWidth} ${o.borderColor}`,"--background-color":o.backgroundColor,"--white-space":o.whiteSpace,"--font-color":o.fontColor,"--font-size":o.fontSize,"--font-family":o.fontFamily,"--active-background-color":o.activeBackgroundColor||o.backgroundColor,"--active-border-color":o.activeBorderColor||o.borderColor,"--active-font-color":o.activeFontColor||o.fontColor}));function n(){a("click")}return(i,r)=>(t.openBlock(),t.createElementBlock("button",{class:t.normalizeClass(["button",{active:e.isActive}]),style:t.normalizeStyle(s.value),onClick:n},t.toDisplayString(e.text),7))}},[["__scopeId","data-v-69cf823e"]]),MN=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},HN={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(e){return!Number.isNaN(e)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e;t.useCssVars(y=>({"321b6381":e.width,"14b0f61d":h.value,"62e0e83c":e.menuWidth}));const s=t.ref(null),n=t.ref(!1),i=t.ref(null),r=t.ref({}),c=t.computed(()=>{const y={top:"0px"};if(s.value){const g=s.value.getBoundingClientRect();y.top=`${g.height+o.menuMarginTop}px`}return y}),h=t.computed(()=>n.value?o.zIndexOpen:1);t.watch(()=>o.modelValue,y=>{y!==n.value&&(n.value=y)},{immediate:!0}),t.watch(n,y=>{y||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function d(y){const g=window.innerWidth,u=y.boundingClientRect.x,f=y.boundingClientRect.x+y.boundingClientRect.width,_=u<=0?Math.abs(u)+4:f>=g?g-(f+10):0;r.value["--translate-x"]=`${_}px`}function l(){new IntersectionObserver(y=>{y[0].intersectionRatio>0&&d(y[0])}).observe(i.value)}function m(){n.value=!n.value,a("update:modelValue",n.value)}function p(){n.value=!1,a("update:modelValue",n.value)}return t.onMounted(()=>{t.nextTick(()=>{l()})}),(y,g)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[n.value?(t.openBlock(),t.createElementBlock("div",{key:0,id:"menu-overlay",onClick:p})):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"menu-container",style:t.normalizeStyle(r.value)},[t.createElementVNode("div",{ref_key:"trigger",ref:s,class:"menu-container__trigger",onClick:m},[t.renderSlot(y.$slots,"trigger",{},void 0,!0)],512),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref_key:"menu",ref:i,class:"menu-container__menu",style:t.normalizeStyle(c.value)},[t.renderSlot(y.$slots,"menu",{},void 0,!0)],4),[[t.vShow,n.value]])]),_:3})],4)],64))}},UN=MN(HN,[["__scopeId","data-v-2f344053"]]),Hve="",GN=(e=>(t.pushScopeId("data-v-a8936b64"),e=e(),t.popScopeId(),e))(()=>t.createElementVNode("div",{class:"button__icon"},null,-1)),WN={class:"button__text"},qN={key:0},JN={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},XN=["fill"],ZN=Fe({__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"}},setup(e){const a=e,o=t.computed(()=>({"--height":a.height,"--width":a.width,"--text-font-family":a.textFontFamily,"--text-font-size":a.textFontSize,"--background-color":a.backgroundColor,"--border-radius":a.borderRadius,"--border-color":a.isActive?a.borderColorActive:a.borderColor,"--border-width":a.borderWidth,"--padding":a.padding,"--font-color":a.fontColor})),s=t.computed(()=>({"--info-background-color":a.infoBackgroundColor,"--info-border-color":a.infoBorderColor,"--info-border-radius":a.infoBorderRadius,"--info-font-family":a.infoFontFamily,"--info-font-size":a.infoFontSize,"--info-font-color":a.infoFontColor,"--info-height":a.infoHeight,"--info-width":a.infoWidth}));return(n,i)=>(t.openBlock(),t.createElementBlock("div",{class:"button",style:t.normalizeStyle(o.value)},[GN,t.createElementVNode("div",WN,t.toDisplayString(e.text),1),t.createElementVNode("div",{class:"button__info",style:t.normalizeStyle(s.value)},[e.infoValue?(t.openBlock(),t.createElementBlock("span",qN,t.toDisplayString(e.infoValue),1)):t.createCommentVNode("",!0)],4),t.createElementVNode("div",{class:t.normalizeClass(["button__arrow",{"rotated-180":e.isActive}])},[(t.openBlock(),t.createElementBlock("svg",JN,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:e.arrowColor},null,8,XN)]))],2)],4))}},[["__scopeId","data-v-a8936b64"]]),YN=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},KN={key:1},QN={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e$=["fill"],t$={key:0,class:"checkbox__teams"},a$={class:"checkbox__teams__logo"},o$=["src"],s$={class:"checkbox__teams__logo"},n$=["src"],i$={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:a}){const o=e;t.useCssVars(d=>({"6582e90e":e.width,"310b3edf":e.height}));const s=t.ref(!1),n=t.computed(()=>{const d={color:o.boxValueColor,"font-family":o.fontFamily,height:o.boxWidthAndHeight,width:o.boxWidthAndHeight,minWidth:o.boxWidthAndHeight,"border-radius":o.boxBorderRadius,"margin-top":o.boxMarginTop};return s.value?(d["background-color"]=o.boxBackgroundColor,d.border=`solid ${o.boxBorderWidth} ${o.boxBackgroundColor}`):d.border=`solid ${o.boxBorderWidth} ${o.boxBorderColor}`,d}),i=t.computed(()=>({"font-family":o.boxValueFontFamily,"font-size":o.boxValueFontSize,color:o.boxValueColor,"line-height":1})),r=t.computed(()=>{const d={color:o.labelColor,"font-family":o.fontFamily,"font-size":o.labelFontSize,"white-space":o.labelWhiteSpace,"text-align":o.boxPosition==="top"||o.boxPosition==="bottom"?"center":o.boxPosition};return(o.boxPosition==="left"||o.boxPosition==="right")&&(d[`margin-${o.boxPosition}`]=o.isBoxOnly?"0":o.teamsIds?"8px":"10px"),d});t.watch(()=>o.modelValue,d=>{d!==s.value&&(s.value=d)},{immediate:!0});function c(){o.avoidInteraction||!s.value&&o.avoidToCheck||(s.value=!s.value,a("update:modelValue",s.value))}function h(d){return`${{}.TEAM_LOGOS_URL||"https://az755631.vo.msecnd.net/teams-80/"}${d}.png`}return(d,l)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:c},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(n.value)},[s.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(i.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",KN,[(t.openBlock(),t.createElementBlock("svg",QN,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,e$)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",t$,[t.createElementVNode("div",a$,[t.createElementVNode("img",{src:h(e.teamsIds[0]),alt:""},null,8,o$)]),t.createElementVNode("div",s$,[t.createElementVNode("img",{src:h(e.teamsIds[1]),alt:""},null,8,n$)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(r.value)},t.toDisplayString(e.label),5)],2))}},gu=YN(i$,[["__scopeId","data-v-bcf3bcc6"]]),Wve="",ki=e=>(t.pushScopeId("data-v-3e7cb100"),e=e(),t.popScopeId(),e),r$={class:"details__header"},l$=ki(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),c$={class:"details__header__checkbox"},d$={class:"details__body"},m$={class:"details__body__playing-as"},p$=["onClick"],h$={class:"details__header"},g$=ki(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),y$={class:"details__header__checkbox"},u$={class:"details__body"},f$=ki(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),_$={class:"details__body__game-section"},b$=["onClick"],w$={class:"details__body"},C$=ki(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),k$={class:"details__body__game-section"},S$=["onClick"],E$=Fe({__name:"StatisticsFilterTemplate",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},results:{type:Array,default:()=>[1,2,3]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const a=e;t.useCssVars(l=>({"057a1337":e.buttonsBackgroundColor,"4ababc18":e.buttonsTextColor,a6bfbb48:e.buttonsBorderWidth,a8edb80e:e.buttonsBorderColor,"6a6af91d":e.buttonsBackgroundColorActive,"54e7b53e":e.buttonsTextColorActive,"805f4efc":e.buttonsBorderWidthActive,f9321f42:e.buttonsBorderColorActive}));const o=t.computed(()=>a.playingAs.every(l=>l.isSelected)),s=t.computed(()=>a.gameSections.every(l=>l.isSelected)),n=t.computed(()=>a.gameSections.reduce((l,m)=>(m.value<=3?l.firstHalf.push(m):l.secondHalf.push(m),l),{firstHalf:[],secondHalf:[]})),i=t.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function r(l){l?a.playingAs.forEach(m=>{m.isSelected=!0}):a.playingAs.forEach((m,p)=>{m.isSelected=p===0})}function c(l){a.playingAs.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function h(l){a.gameSections.filter(m=>m.isSelected).length===1&&l.isSelected||(l.isSelected=!l.isSelected)}function d(l){l?a.gameSections.forEach(m=>{m.isSelected=!0}):a.gameSections.forEach((m,p)=>{m.isSelected=p===0})}return(l,m)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(i.value)},[t.createElementVNode("div",r$,[l$,t.createElementVNode("div",c$,[t.createVNode(t.unref(gu),{label:"Todos","model-value":o.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),t.createElementVNode("div",d$,[t.createElementVNode("div",m$,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.playingAs,(p,y)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${y}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:g=>c(p)},t.toDisplayString(p.name),11,p$))),128))])]),t.createElementVNode("div",h$,[g$,t.createElementVNode("div",y$,[t.createVNode(t.unref(gu),{label:"Todos","model-value":s.value,"onUpdate:modelValue":d},null,8,["model-value"])])]),t.createElementVNode("div",u$,[f$,t.createElementVNode("div",_$,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value.firstHalf,(p,y)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${y}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:g=>h(p)},t.toDisplayString(p.text),11,b$))),128))])]),t.createElementVNode("div",w$,[C$,t.createElementVNode("div",k$,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value.secondHalf,(p,y)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${y}`,class:t.normalizeClass(["details__body__button",{active:p.isSelected}]),onClick:g=>h(p)},t.toDisplayString(p.text),11,S$))),128))])])],4))}},[["__scopeId","data-v-3e7cb100"]]),N$={class:"statistics-filter-button"},$$={__name:"StatisticsFilterButton",setup(e){const a=t.ref(!1);return(o,s)=>(t.openBlock(),t.createElementBlock("div",N$,[t.createVNode(t.unref(UN),{modelValue:a.value,"onUpdate:modelValue":s[0]||(s[0]=n=>a.value=n),"menu-margin-top":18},{trigger:t.withCtx(()=>[t.createVNode(ZN,{text:"Filtros","is-active":a.value,"background-color":"rgba(255, 255, 255, 0.05)","border-color":"rgba(255, 255, 255, 0.20)","info-width":"0",padding:"6px 12px"},null,8,["is-active"])]),menu:t.withCtx(()=>[t.createVNode(E$)]),_:1},8,["modelValue"])]))}};function B$(){return yu().__VUE_DEVTOOLS_GLOBAL_HOOK__}function yu(){return typeof navigator<"u"&&typeof window<"u"?window:typeof global<"u"?global:{}}const x$=typeof Proxy=="function",V$="devtools-plugin:setup",I$="plugin:settings:set";let Eo,bd;function A$(){var e;return Eo!==void 0||(typeof window<"u"&&window.performance?(Eo=!0,bd=window.performance):typeof global<"u"&&(!((e=global.perf_hooks)===null||e===void 0)&&e.performance)?(Eo=!0,bd=global.perf_hooks.performance):Eo=!1),Eo}function O$(){return A$()?bd.now():Date.now()}class T${constructor(a,o){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=a,this.hook=o;const s={};if(a.settings)for(const r in a.settings){const c=a.settings[r];s[r]=c.defaultValue}const n=`__vue-devtools-plugin-settings__${a.id}`;let i=Object.assign({},s);try{const r=localStorage.getItem(n),c=JSON.parse(r);Object.assign(i,c)}catch{}this.fallbacks={getSettings(){return i},setSettings(r){try{localStorage.setItem(n,JSON.stringify(r))}catch{}i=r},now(){return O$()}},o&&o.on(I$,(r,c)=>{r===this.plugin.id&&this.fallbacks.setSettings(c)}),this.proxiedOn=new Proxy({},{get:(r,c)=>this.target?this.target.on[c]:(...h)=>{this.onQueue.push({method:c,args:h})}}),this.proxiedTarget=new Proxy({},{get:(r,c)=>this.target?this.target[c]:c==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(c)?(...h)=>(this.targetQueue.push({method:c,args:h,resolve:()=>{}}),this.fallbacks[c](...h)):(...h)=>new Promise(d=>{this.targetQueue.push({method:c,args:h,resolve:d})})})}async setRealTarget(a){this.target=a;for(const o of this.onQueue)this.target.on[o.method](...o.args);for(const o of this.targetQueue)o.resolve(await this.target[o.method](...o.args))}}function z$(e,a){const o=e,s=yu(),n=B$(),i=x$&&o.enableEarlyProxy;if(n&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!i))n.emit(V$,e,a);else{const r=i?new T$(o,n):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:o,setupFn:a,proxy:r}),r&&a(r.proxiedTarget)}}/*!
15
15
  * vuex v4.0.2
16
16
  * (c) 2021 Evan You
17
17
  * @license MIT
@@ -40,7 +40,7 @@
40
40
  * Vue 3 Carousel 0.3.1
41
41
  * (c) 2023
42
42
  * @license MIT
43
- */const ct={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"}},n_={itemsToShow:{default:ct.itemsToShow,type:Number},itemsToScroll:{default:ct.itemsToScroll,type:Number},wrapAround:{default:ct.wrapAround,type:Boolean},throttle:{default:ct.throttle,type:Number},snapAlign:{default:ct.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ct.transition,type:Number},breakpoints:{default:ct.breakpoints,type:Object},autoplay:{default:ct.autoplay,type:Number},pauseAutoplayOnHover:{default:ct.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ct.mouseDrag,type:Boolean},touchDrag:{default:ct.touchDrag,type:Boolean},dir:{default:ct.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ct.i18n,type:Object},settings:{default(){return{}},type:Object}};function xD({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function VD({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function zm({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function ID({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:zm({val:r,max:o-i,min:0})}function i_(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...i_(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Fm({val:e,max:a,min:o=0}){return e>a?Fm({val:e-(a+1),max:a,min:o}):e<o?Fm({val:e+(a+1),max:a,min:o}):e}function AD(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function OD(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function TD(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var zD=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},ct))),a=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"},TD(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),FD=t.defineComponent({name:"Carousel",props:n_,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},ct));let l=Object.assign({},ct),m;const p=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),g=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",h),t.provide("currentSlide",p),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(O=>Number(O)).sort((O,oe)=>+oe-+O);let T=Object.assign({},l);S.some(O=>{const oe=window.matchMedia(`(min-width: ${O}px)`).matches;return oe&&(T=Object.assign(Object.assign({},T),m[O])),oe}),E(T)}function E(S){Object.entries(S).forEach(([T,O])=>d[T]=O)}const x=OD(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=xD({config:d,slidesCount:h.value}),f.value=VD({config:d,slidesCount:h.value}),d.wrapAround||(p.value=zm({val:p.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),Le(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const z={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),F=t.ref(!1),ee=t.ref(!1),re=()=>{F.value=!0},Q=()=>{F.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||P.value)&&(z.x=$?S.touches[0].clientX:S.clientX,z.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",R,!0)))}const N=AD(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const T=A.x-z.x,O=A.y-z.y;I.y=O,I.x=T},d.throttle);function R(){const S=d.dir==="rtl"?-1:1,T=Math.sign(I.x)*.4,O=Math.round(I.x/c.value+T)*S;if(O&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(p.value-O),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",R,!0)}function Le(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&F.value||te()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),Le()}const P=t.ref(!1);function K(S){const T=d.wrapAround?S:zm({val:S,max:u.value,min:f.value});p.value===T||P.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!0,y.value=p.value,p.value=T,k=setTimeout(()=>{if(d.wrapAround){const O=Fm({val:T,max:u.value,min:0});O!==p.value&&(p.value=O,o("loop",{currentSlideIndex:p.value,slidingToIndex:S}))}o("update:modelValue",p.value),o("slide-end",{currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!1,se()},d.transition))}function te(){K(p.value+d.itemsToScroll)}function ae(){K(p.value-d.itemsToScroll)}const ne={slideTo:K,next:te,prev:ae};t.provide("nav",ne),t.provide("isSliding",P);const ie=t.computed(()=>ID({config:d,currentSlide:p.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,T=ie.value*c.value*S;return{transform:`translateX(${I.x-T}px)`,transition:`${P.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),B(),V(),se()}Object.keys(n_).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==p.value&&K(Number(S))}),t.watch(h,B),o("before-init"),w();const xe={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:p,maxSlide:u,minSlide:f,middleSlide:g};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:ne,data:xe});const Re=a.default||a.slides,Pe=a.addons,ve=t.reactive(xe);return()=>{const S=i_(Re==null?void 0:Re(ve)),T=(Pe==null?void 0:Pe(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let O=S;if(d.wrapAround){const Oe=S.map((ze,le)=>t.cloneVNode(ze,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((ze,le)=>t.cloneVNode(ze,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));O=[...Oe,...S,...Te]}r.value=S,h.value=Math.max(S.length,1);const oe=t.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:d.mouseDrag?C:null,onTouchstartPassiveCapture:d.touchDrag?C:null},O),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":P.value,"is-dragging":ee.value,"is-hover":F.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,T,t.h(zD)])}}}),r_;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(r_||(r_={}));var RD=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},ct))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,h=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;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":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const PD=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},DD=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),LD={class:"gsc-carousel"},jD={key:0},vD=DD(()=>t.createElementVNode("div",null,"no hay",-1)),MD=[vD],HD={class:"gsc-carousel__2d__slides"},UD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GD=["fill"],WD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qD=["fill"],JD={class:"gsc-carousel__2d__navigation"},XD={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZD=["stroke"],YD={key:1,class:"gsc-carousel__2d__navigation__pagination"},KD=["onClick"],QD={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eL=["stroke"],tL={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const s=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,u=>{u&&c.value?(c.value=!1,h(s.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,u=>{r.value!==u&&p(u)}),t.watch(()=>s.items,u=>{n.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&n.value){if(s.defaultItemByProp){const f=s.items.findIndex(_=>_[s.defaultItemByProp.propName]===s.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=s.defaultItemByIndex,i.value=u[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(){n.value&&n.value.updateSlideWidth()}function p(u){n.value&&n.value.slideTo(u)}function y(u){n.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?s.items.length-1:u.slidingToIndex===s.items.length?0:u.slidingToIndex;r.value=f,i.value=s.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:m,slideTo:p}),(u,f)=>(t.openBlock(),t.createElementBlock("div",LD,[s.is3d?(t.openBlock(),t.createElementBlock("div",jD,MD)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",HD,[t.createVNode(t.unref(FD),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:g},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createBlock(t.unref(RD),{key:k},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:f[0]||(f[0]=_=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",UD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,GD)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:f[1]||(f[1]=_=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",WD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,qD)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",JD,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:f[2]||(f[2]=_=>l())},[(t.openBlock(),t.createElementBlock("svg",XD,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:s.arrowsColor},null,8,ZD)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",YD,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===k?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===k?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>y(k)},null,12,KD))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:f[3]||(f[3]=_=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",QD,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:s.arrowsColor},null,8,eL)]))])):t.createCommentVNode("",!0)])],2))]))}},gr=PD(tL,[["__scopeId","data-v-dd3cbf69"]]),aL=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Rm={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))}}},l_=()=>{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}))},c_=Rm.setup;Rm.setup=c_?(e,a)=>(l_(),c_(e,a)):l_;const oL=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),sL=["src"],nL={key:1,class:"text"},iL=["src"],rL={class:"stats"},lL=oL(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),cL={class:"numstats"},dL={class:"leyend"};function mL(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,n.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[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,sL)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nL,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,iL)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.createElementVNode("div",rL,[lL,t.createElementVNode("div",cL,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",dL,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const pL=aL(Rm,[["render",mL],["__scopeId","data-v-fb269a1e"]]),hL={class:"gsc-dropdown__main-container__item-selected"},gL=["height","width"],yL=["stroke"],uL={class:"gsc-dropdown__items-container"},fL=["onClick"],_L={key:0,class:"gsc-dropdown__items-footer"},Pm={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},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(a=>a 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},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,s=t.ref({}),n=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(y,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&y&&y.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,s.value=y[u]):(i.value=0,s.value=y[0])}else s.value=y[o.defaultItemByIndex];a("input",s.value)}},{immediate:!0}),t.watch(()=>o.modelValue,y=>{if(y){const g=o.items.findIndex(u=>typeof y=="object"?JSON.stringify(u)===JSON.stringify(y):u===y);g!==-1&&(i.value=g,s.value=o.items[g],a("update:modelValue",s.value))}},{immediate:!0});const c=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}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),h=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(r.value=!r.value)}function l(y){n.value&&!n.value.contains(y.target)&&(r.value=!1)}function m(y,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),s.value=y,a("input",s.value),a("update:modelValue",s.value)}function p(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(y,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",hL,[t.renderSlot(y.$slots,"default",{selectedItem:s.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:t.normalizeStyle(h.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,yL)],8,gL))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",uL,[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,(u,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:f===i.value}]),key:f,onClick:_=>m(u,f)},[t.renderSlot(y.$slots,"availableItem",{item:u})],10,fL))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",_L,[t.createVNode(t.unref(pL),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:p})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let d_=null;const bL={components:{LineupField:UR,LineupRecentItem:aP,LineupMainHeader:NP,LineupFilter:qP,MatchDetails:e_,GscSwitchComponent:Zs,GSCCarousel:gr,GSCDropdown:Pm},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,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"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:zR},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter()}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game)))}catch(a){throw new Error(a)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.updateCarouselGames+=1,this.matchFilter())},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])):this.gamesRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]));else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])}else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.filterObject=e,this.matchFilter()},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const a=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const a=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].id)}},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var a={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getLineUp(a.game_id)},changeDropdown(e){const a=this.gamesRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},async changeCarouselItem(e){this.getMinutesData(e.selectedItem.minutes);var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id,this.selectedIndexOption=e.selectedItemIndex},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,a.data.games_historic&&a.data.games_historic.length>0)for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});if(this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[],a.data.home_team_games_recent&&a.data.home_team_games_recent.length>0)for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});if(a.data.away_team_games_recent&&a.data.away_team_games_recent.length>0)for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:a.data.away_team_games_recent[o].matchday_abbreviation.replace("M","Jornada "),id:a.data.away_team_games_recent[o].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)d_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),d_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineupDataProbablesAway(e){try{const h=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!h||!h.data)throw new Error("There is not lineups for this game.");if(h.data.home_team.team_id==this.gameInfoheader.away_team){for(let d=0;d<h.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+"_g.svg","away",0);var a=h.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.home_team.starting_lineup[0].lineup[d].x;r=Math.abs(r-100);var c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.home_team.team_id,number:h.data.home_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.home_team.starting_lineup[0].lineup[d].player_id+".png",posX:c+7,posY:h.data.home_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.home_team.team_id+".png"}this.playersAway.sort((d,l)=>d.position_id>l.position_id?1:l.position_id>d.position_id?-1:0)}if(h.data.away_team.team_id==this.gameInfoheader.away_team)for(let d=0;d<h.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+"_g.svg","away",0);var a=h.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.away_team.starting_lineup[0].lineup[d].x,c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.away_team.team_id,number:h.data.away_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.away_team.starting_lineup[0].lineup[d].player_id+".png",posX:100-(100-h.data.away_team.starting_lineup[0].lineup[d].x)*50/100,posY:h.data.away_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.away_team.team_id+".png"}}catch(h){return Promise.reject(h)}},async getLineupDataProbablesHome(e){try{const l=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!l||!l.data)throw new Error("There is not lineups for this game.");if(l.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.home_team.players,l.data.home_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+"_g.svg","home",0);var a=l.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[m].x,c=r*50/100;this.players.push({team_id:l.data.home_team.team_id,number:l.data.home_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[m].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[m].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[m].y}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.home_team.team_id+".png"}}if(l.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.away_team.players,l.data.away_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+"_g.svg","home",0);var a=l.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[m].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[m].y;d=Math.abs(d-100),this.players.push({team_id:l.data.away_team.team_id,number:l.data.away_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[m].player_id+".png",posX:c-2,posY:d-9}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.away_team.team_id+".png"}}}catch(l){return Promise.reject(l)}},async getLineUp(e){if(Jf(),!this.playersHome.length)try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",posX:C.data.home_team.starting_lineup[0].lineup[N].x*50/100,posY:C.data.home_team.starting_lineup[0].lineup[N].y}),this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!1,name:E+". "+b,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",posX:100-(100-C.data.away_team.starting_lineup[0].lineup[N].x)*50/100,posY:C.data.away_team.starting_lineup[0].lineup[N].y}),this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}this.game.prematch||this.getMXM(this.game.game_id)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Ys=e=>(t.pushScopeId("data-v-4880f212"),e=e(),t.popScopeId(),e),wL={class:"lineup__header",ref:"gamesContainer"},CL=Ys(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),kL={key:0,style:{width:"325px"}},SL={class:"lineup__card"},EL={key:0},NL={key:1},$L={key:2},BL={key:3,class:"lineup__card-body"},xL={key:0,class:"lineup__selector",style:{margin:"auto"}},VL={class:"lineup__selector-item"},IL={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},AL={class:"lineup__filters"},OL={class:"selector-tournaments"},TL={class:"lineup__items-carousel"},zL=Ys(()=>t.createElementVNode("div",null,null,-1)),FL={class:"lineup__items-center"},RL={class:"lineup__selector-recientes"},PL={key:1,class:"containernofoundsearchrecientes"},DL=Ys(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),LL={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},jL={key:5,class:"lineup__card-body space-between"},vL={class:"lineup__card-body__probables"},ML={class:"selector-tournaments"},HL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),UL=["src"],GL={class:"lineup__card-body__probables"},WL=["src"],qL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),JL={class:"selector-tournaments"},XL={key:6,class:"lineup__card-body space-between"},ZL={class:"postmatch__matchday"};function YL(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),m=t.resolveComponent("LineupRecentItem"),p=t.resolveComponent("MatchDetails"),y=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",wL,[CL,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",kL,[(n.gameInfoheader.game_status==0||n.gameInfoheader.game_status==4)&&i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:a[0]||(a[0]=g=>o.selectedOption=g)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",SL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",EL,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",NL,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",$L,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(n.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:n.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.headerInfoHistoricItemGame.score[0]+" - "+n.headerInfoHistoricItemGame.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(n.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.home_team+".png"},visitTeam:{acronym:n.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.gameInfoheader.score[0]+" - "+n.gameInfoheader.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",BL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",xL,[n.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:n.updatehistoricos,onInput:i.changeCarouselItemH,items:n.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",VL,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",IL,[t.createElementVNode("div",AL,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:n.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:a[1]||(a[1]=(...g)=>i.handleInsideClick&&i.handleInsideClick(...g))},[t.createVNode(l,{items:i.matchdaysFinal,onInput:i.changeDropdown,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",OL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"])],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:a[2]||(a[2]=g=>n.showDetails=!n.showDetails)},t.toDisplayString(n.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",TL,[zL,t.createElementVNode("div",FL,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",RL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",PL,[DL,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),n.showDetails?(t.openBlock(),t.createBlock(p,{key:0,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",LL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),n.showDetails?(t.openBlock(),t.createBlock(p,{key:1,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",jL,[t.createElementVNode("div",vL,[t.createVNode(l,{items:i.matchHomeProbables,onInput:i.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",ML,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),HL,t.createElementVNode("img",{src:n.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,UL)]),t.createElementVNode("div",GL,[t.createElementVNode("img",{src:n.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,WL),qL,t.createVNode(l,{items:i.matchAwayProbables,onInput:i.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",JL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"])])])):o.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",XL,[t.createElementVNode("div",ZL,t.toDisplayString(n.gameInfoheader.season_name!==void 0?n.gameInfoheader.season_name+"  |  "+i.remplazarMxJor(n.gameInfoheader.matchday_abbreviation)+"  |  "+n.gameInfoheader.home_team_abbreviation+" - "+n.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(y,{class:"lineup__field",players:n.players},null,8,["players"])])],2)}const KL=bt(bL,[["render",YL],["__scopeId","data-v-4880f212"]]),QL={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{},mounted(){}},yr=e=>(t.pushScopeId("data-v-57833ebc"),e=e(),t.popScopeId(),e),ej={key:0,class:"gsc-item-player"},tj={class:"gsc-num-player"},aj={class:"gsc-cont-info-by-player"},oj={class:"gsc-cont-info-by-player-row1"},sj={class:"shield-player-cont"},nj=["src"],ij={class:"gsc-cont-info-by-player-row2"},rj={class:"gsc-cont-info-by-player-row2-line-name"},lj={class:"gsc-cont-info-by-player-row2-line-data"},cj={class:"cont-display-gsc"},dj=["src"],mj={class:"gsc-cont-cards"},pj={key:0,class:"gsc-yellow_card_div"},hj={key:1,class:"gsc-red_card_div"},gj={key:2,class:"gsc-yellowred_card_div"},yj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),uj={key:5,class:"gsc-goal_card_div_wrapper"},fj=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),_j={key:1,class:"gsc-item-player"},bj={class:"gsc-num-player2"},wj={class:"gsc-cont-info-by-player2"},Cj={class:"gsc-cont-info-by-player-row2"},kj={class:"gsc-cont-info-by-player-row2-line-name2"},Sj={class:"gsc-cont-info-by-player-row2-line-data"},Ej={class:"gsc-cont-cards2"},Nj={key:0,class:"gsc-yellow_card_div"},$j={key:1,class:"gsc-red_card_div"},Bj={key:2,class:"gsc-yellowred_card_div"},xj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Vj={key:5,class:"gsc-goal_card_div_wrapper"},Ij=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Aj={class:"cont-display-gsc"},Oj=["src"],Tj={class:"gsc-cont-info-by-player-row1"},zj={class:"shield-player-cont"},Fj=["src"];function Rj(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",ej,[t.createElementVNode("div",tj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",aj,[t.createElementVNode("div",oj,[t.createElementVNode("div",sj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,nj)])]),t.createElementVNode("div",ij,[t.createElementVNode("div",rj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",lj,[t.createElementVNode("div",cj,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,dj),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",mj,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",pj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",hj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",gj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[yj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",uj,[fj,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",_j,[t.createElementVNode("div",bj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",wj,[t.createElementVNode("div",Cj,[t.createElementVNode("div",kj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",Sj,[t.createElementVNode("div",Ej,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Nj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",$j)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Bj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[xj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Vj,[Ij,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Aj,[t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,Oj)])])]),t.createElementVNode("div",Tj,[t.createElementVNode("div",zj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,Fj)])])])])):t.createCommentVNode("",!0)],64)}const Pj=bt(QL,[["render",Rj],["__scopeId","data-v-57833ebc"]]),Dm="/icn-filter.svg",Ks="/icn-expand-arrow.svg",m_="/backarrow.svg",p_="/nextarrow.svg",Dj="_selectoritem_1dafy_137",Lj="_selectoritem2_1dafy_157",jj="_gscheaderlineup_1dafy_177",vj="_anNoEstn_1dafy_191",Mj="_groupsLeague_1dafy_197",Hj="_jugadores_1dafy_209",Uj="_switchOption_1dafy_219",Gj="_jugadores1_1dafy_239",Wj="_switchOption1_1dafy_249",qj="_switchStatesBig_1dafy_265",Jj="_groupsLeagueParent_1dafy_283",Xj="_imgHomeTeamIcon_1dafy_301",Zj="_imgHomeTeamWrapper_1dafy_313",Yj="_teamContainer_1dafy_337",Kj="_name_1dafy_361",Qj="_homeTeamContainer_1dafy_373",ev="_div_1dafy_393",tv="_scoreContainer_1dafy_401",av="_scoreContainerWrapper_1dafy_421",ov="_teamContainer1_1dafy_447",sv="_awayTeamContainer_1dafy_471",nv="_matchContainer_1dafy_491",iv="_sliderMatchesChild_1dafy_509",rv="_manchesterUnited_1dafy_521",lv="_sliderMatchesItem_1dafy_533",cv="_sliderMatches_1dafy_509",dv="_sortIcon_1dafy_569",mv="_filtros_1dafy_583",pv="_sortParent_1dafy_599",hv="_shapeIcon_1dafy_613",gv="_btnFilter_1dafy_623",yv="_btnFilter1_1dafy_651",uv="_btnFilterParent_1dafy_679",fv="_backArrowIcon_1dafy_695",_v="_teamContainer2_1dafy_707",bv="_homeTeam_1dafy_373",wv="_div4_1dafy_735",Cv="_finalScore_1dafy_745",kv="_manchesterUnited1_1dafy_771",Sv="_scoreContainer1_1dafy_785",Ev="_match_1dafy_491",Nv="_manchesterUnited2_1dafy_821",$v="_btnDetails_1dafy_831",Bv="_matchContainer1_1dafy_851",xv="_goalChild_1dafy_867",Vv="_goal_1dafy_867",Iv="_manchesterUnited3_1dafy_893",Av="_minuteEvent_1dafy_907",Ov="_yellowCard_1dafy_921",Tv="_awayTeamEvents_1dafy_935",zv="_rectangle_1dafy_949",Fv="_homeTeamEvents_1dafy_963",Rv="_totalEvents_1dafy_979",Pv="_headerSeccionAlineaciones1_1dafy_995",Dv="_switchOption3_1dafy_1017",Lv="_switchOption4_1dafy_1041",jv="_switchStatesBig1_1dafy_1061",vv="_manchesterUnited13_1dafy_1075",Mv="_homeTeamContainer1_1dafy_1085",Hv="_scoreContainer2_1dafy_1099",Uv="_matchContainer2_1dafy_1127",Gv="_manchesterUnited14_1dafy_1147",Wv="_sliderMatchesInner_1dafy_1161",qv="_rectangleIcon_1dafy_1181",Jv="_sliderMatches1_1dafy_1201",Xv="_containerData_1dafy_1217",Zv="_headerSeccionAlineaciones2_1dafy_1245",Yv="_headerSeccionAlineaciones_1dafy_995",Kv="_headerSeccionAlineaciones21200_1dafy_1293",Qv="_headerSeccionAlineaciones1540_1dafy_1299",eM="_headerSeccionAlineaciones2540_1dafy_1307",tM={selectoritem:Dj,selectoritem2:Lj,gscheaderlineup:jj,anNoEstn:vj,groupsLeague:Mj,jugadores:Hj,switchOption:Uj,jugadores1:Gj,switchOption1:Wj,switchStatesBig:qj,groupsLeagueParent:Jj,imgHomeTeamIcon:Xj,imgHomeTeamWrapper:Zj,teamContainer:Yj,name:Kj,homeTeamContainer:Qj,div:ev,scoreContainer:tv,scoreContainerWrapper:av,teamContainer1:ov,awayTeamContainer:sv,matchContainer:nv,sliderMatchesChild:iv,manchesterUnited:rv,sliderMatchesItem:lv,sliderMatches:cv,sortIcon:dv,filtros:mv,sortParent:pv,shapeIcon:hv,btnFilter:gv,btnFilter1:yv,btnFilterParent:uv,backArrowIcon:fv,teamContainer2:_v,homeTeam:bv,div4:wv,finalScore:Cv,manchesterUnited1:kv,scoreContainer1:Sv,match:Ev,manchesterUnited2:Nv,btnDetails:$v,matchContainer1:Bv,goalChild:xv,goal:Vv,manchesterUnited3:Iv,minuteEvent:Av,yellowCard:Ov,awayTeamEvents:Tv,rectangle:zv,homeTeamEvents:Fv,totalEvents:Rv,headerSeccionAlineaciones1:Pv,switchOption3:Dv,switchOption4:Lv,switchStatesBig1:jv,manchesterUnited13:vv,homeTeamContainer1:Mv,scoreContainer2:Hv,matchContainer2:Uv,manchesterUnited14:Gv,sliderMatchesInner:Wv,rectangleIcon:qv,sliderMatches1:Jv,containerData:Xv,headerSeccionAlineaciones2:Zv,headerSeccionAlineaciones:Yv,headerSeccionAlineaciones21200:Kv,headerSeccionAlineaciones1540:Qv,headerSeccionAlineaciones2540:eM},aM={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},oM=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),sM=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),nM=["src"],iM=["src"],rM=["src"],lM=["src"],cM=["src"],dM=["src"];function mM(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[oM,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),sM],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,nM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,iM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,rM)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,lM)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,cM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,dM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const pM={$style:tM},hM=bt(aM,[["render",mM],["__cssModules",pM]]),ur=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),gM=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),yM=["value"],uM=ur(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1)),fM={class:"filter-modal__padding"},_M={class:"filter-modal__content-header"},bM=ur(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),wM={class:"filter-modal__content-options"},CM=["onClick"],kM={class:"filter-modal__content-header"},SM=ur(()=>t.createElementVNode("h3",null,"Resultados:",-1)),EM={class:"filter-modal__content-options"},NM=["onClick"],$M=ur(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),BM={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:a}){const o=e;t.useCssVars(w=>({d00c78a6:e.marginModal}));const s=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],i=t.ref(null),r=t.ref(["local","visit"]),c=t.ref(["win","draw","lose"]),h=t.ref(!0),d=t.ref(!0),l=t.ref(!0),m=t.ref(!0),p=t.ref(["local","visit"]),y=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(p.value)),c.value=JSON.parse(JSON.stringify(y.value)),h.value=l.value,d.value=m.value};t.watch(()=>o.itemSelect,w=>{w&&(p.value=w.selectedFilterTeam,y.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=p.value:E=y.value;const x=E.findIndex(V=>V===w);x==-1?E.push(w):b=="team"&&p.value.length==2?E.splice(x,1):(b=="team"&&E.push(w),y.value.length>1&&E.splice(x,1)),l.value=p.value.length==2,m.value=y.value.length==3},f=()=>{p.value=["local","visit"],y.value=["win","draw","lose"],l.value=!0,m.value=!0,a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},_=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},k=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})};return(w,b)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[gM,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,yM),uM])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:i,onFocusout:b[4]||(b[4]=E=>{e.isOpen=!1,k()})},[t.createElementVNode("div",fM,[t.createElementVNode("div",_M,[bM,t.createVNode(pr,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(p.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",wM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"team"),class:t.normalizeClass({active:p.value.includes(E.id)})},t.toDisplayString(E.name),11,CM)),64))]),t.createElementVNode("div",kM,[SM,t.createVNode(pr,{modelValue:m.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>m.value=E),b[3]||(b[3]=E=>E&&(y.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",EM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"player"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,NM)),64))])]),$M,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:f},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:_},"Listo")])],34)],4))}},xM=bt(BM,[["__scopeId","data-v-2118a6cd"]]),VM="/icn-filter1.svg",IM="/icn-expand-arrow1.svg",AM="/icn-filter2.svg",OM="/icn-arrow-expand.svg",TM="_containernofoundsearchrecientes_1gxk5_159",zM="_btndeletefilters_1gxk5_215",FM="_leyenddeleteshow_1gxk5_247",RM="_selectoritem_1gxk5_261",PM="_anNoEstn_1gxk5_279",DM="_groupsLeague_1gxk5_287",LM="_historicas_1gxk5_297",jM="_switchOption_1gxk5_309",vM="_recientes_1gxk5_331",MM="_switchOption1_1gxk5_343",HM="_switchOption2_1gxk5_369",UM="_switchStatesBig_1gxk5_387",GM="_groupsLeagueParent_1gxk5_407",WM="_imgHomeTeamIcon_1gxk5_427",qM="_imgHomeTeamWrapper_1gxk5_441",JM="_teamContainer_1gxk5_467",XM="_name_1gxk5_493",ZM="_homeTeamContainer_1gxk5_507",YM="_div_1gxk5_529",KM="_scoreContainer_1gxk5_539",QM="_scoreContainerWrapper_1gxk5_561",eH="_teamContainer1_1gxk5_587",tH="_awayTeamContainer_1gxk5_613",aH="_matchContainer_1gxk5_635",oH="_sliderMatchesChild_1gxk5_655",sH="_manchesterUnited_1gxk5_669",nH="_sliderMatchesItem_1gxk5_683",iH="_sliderMatches_1gxk5_655",rH="_sortIcon_1gxk5_719",lH="_filtros_1gxk5_735",cH="_sortParent_1gxk5_753",dH="_shapeIcon_1gxk5_769",mH="_btnFilter_1gxk5_781",pH="_btnFilter1_1gxk5_813",hH="_btnFilterParent_1gxk5_843",gH="_backArrowIcon_1gxk5_861",yH="_teamContainer2_1gxk5_875",uH="_homeTeam_1gxk5_507",fH="_div4_1gxk5_907",_H="_finalScore_1gxk5_919",bH="_manchesterUnited1_1gxk5_947",wH="_scoreContainer1_1gxk5_963",CH="_match_1gxk5_635",kH="_manchesterUnited2_1gxk5_997",SH="_btnDetails_1gxk5_1023",EH="_matchContainer1_1gxk5_1047",NH="_goalChild_1gxk5_1065",$H="_goal_1gxk5_1065",BH="_manchesterUnited3_1gxk5_1095",xH="_minuteEvent_1gxk5_1111",VH="_yellowCard_1gxk5_1127",IH="_awayTeamEvents_1gxk5_1143",AH="_rectangle_1gxk5_1159",OH="_homeTeamEvents_1gxk5_1175",TH="_totalEvents_1gxk5_1193",zH="_headerSeccionAlineaciones1_1gxk5_1211",FH="_sliderMatchesInner_1gxk5_1233",RH="_btnFilter2_1gxk5_1247",PH="_btnDetails1_1gxk5_1281",DH="_matchContainer3_1gxk5_1299",LH="_backArrowIcon1_1gxk5_1321",jH="_match1_1gxk5_1335",vH="_headerSeccionAlineaciones2_1gxk5_1347",MH="_jugadores2_1gxk5_1369",HH="_switchOption6_1gxk5_1383",UH="_switchOption7_1gxk5_1405",GH="_switchStatesBig2_1gxk5_1431",WH="_manchesterUnited26_1gxk5_1447",qH="_homeTeamContainer2_1gxk5_1459",JH="_vectorIcon_1gxk5_1475",XH="_teamSwitch_1gxk5_1487",ZH="_matchContainer5_1gxk5_1513",YH="_manchesterUnited27_1gxk5_1535",KH="_sliderMatchesChild1_1gxk5_1551",QH="_sliderMatchesChild2_1gxk5_1573",eU="_sliderMatches2_1gxk5_1595",tU="_filtros2_1gxk5_1615",aU="_btnFilter4_1gxk5_1635",oU="_jornada2_1gxk5_1667",sU="_filterMatchday_1gxk5_1681",nU="_btnDetails2_1gxk5_1703",iU="_filtersContainer_1gxk5_1725",rU="_matchContainer6_1gxk5_1745",lU="_matchDetailContainer_1gxk5_1763",cU="_containerData_1gxk5_1783",dU="_headerSeccionAlineaciones3_1gxk5_1813",mU="_headerSeccionAlineaciones_1gxk5_1211",pU="_headerSeccionAlineaciones31200_1gxk5_1865",hU="_headerSeccionAlineaciones3420_1gxk5_1891",gU="_headerSeccionAlineaciones3880_1gxk5_1917",yU="_headerSeccionAlineaciones3540_1gxk5_1941",uU="_headerSeccionAlineaciones11200_1gxk5_1967",fU="_headerSeccionAlineaciones1420_1gxk5_1995",_U="_headerSeccionAlineaciones1880_1gxk5_2017",bU="_headerSeccionAlineaciones21200_1gxk5_2039",wU="_headerSeccionAlineaciones2420_1gxk5_2067",CU="_headerSeccionAlineaciones2880_1gxk5_2091",kU="_headerSeccionAlineaciones2540_1gxk5_2113",SU={containernofoundsearchrecientes:TM,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:zM,leyenddeleteshow:FM,selectoritem:RM,anNoEstn:PM,groupsLeague:DM,historicas:LM,switchOption:jM,recientes:vM,switchOption1:MM,switchOption2:HM,switchStatesBig:UM,groupsLeagueParent:GM,imgHomeTeamIcon:WM,imgHomeTeamWrapper:qM,teamContainer:JM,name:XM,homeTeamContainer:ZM,div:YM,scoreContainer:KM,scoreContainerWrapper:QM,teamContainer1:eH,awayTeamContainer:tH,matchContainer:aH,sliderMatchesChild:oH,manchesterUnited:sH,sliderMatchesItem:nH,sliderMatches:iH,sortIcon:rH,filtros:lH,sortParent:cH,shapeIcon:dH,btnFilter:mH,btnFilter1:pH,btnFilterParent:hH,backArrowIcon:gH,teamContainer2:yH,homeTeam:uH,div4:fH,finalScore:_H,manchesterUnited1:bH,scoreContainer1:wH,match:CH,manchesterUnited2:kH,btnDetails:SH,matchContainer1:EH,goalChild:NH,goal:$H,manchesterUnited3:BH,minuteEvent:xH,yellowCard:VH,awayTeamEvents:IH,rectangle:AH,homeTeamEvents:OH,totalEvents:TH,headerSeccionAlineaciones1:zH,sliderMatchesInner:FH,btnFilter2:RH,btnDetails1:PH,matchContainer3:DH,backArrowIcon1:LH,match1:jH,headerSeccionAlineaciones2:vH,jugadores2:MH,switchOption6:HH,switchOption7:UH,switchStatesBig2:GH,manchesterUnited26:WH,homeTeamContainer2:qH,vectorIcon:JH,teamSwitch:XH,matchContainer5:ZH,manchesterUnited27:YH,sliderMatchesChild1:KH,sliderMatchesChild2:QH,sliderMatches2:eU,filtros2:tU,btnFilter4:aU,jornada2:oU,filterMatchday:sU,btnDetails2:nU,filtersContainer:iU,matchContainer6:rU,matchDetailContainer:lU,containerData:cU,headerSeccionAlineaciones3:dU,headerSeccionAlineaciones:mU,headerSeccionAlineaciones31200:pU,headerSeccionAlineaciones3420:hU,headerSeccionAlineaciones3880:gU,headerSeccionAlineaciones3540:yU,headerSeccionAlineaciones11200:uU,headerSeccionAlineaciones1420:fU,headerSeccionAlineaciones1880:_U,headerSeccionAlineaciones21200:bU,headerSeccionAlineaciones2420:wU,headerSeccionAlineaciones2880:CU,headerSeccionAlineaciones2540:kU},EU={components:{GSCCarousel:gr,GscSwitchComponent:Zs,GSCDropdown:Pm,GSCFilter:xM,GSCSwitchRadio:Yf,GSCMatchDetails:e_},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(a){throw new Error(a)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",updateCarouselGames:0,selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},changeDropdown(e){const a=this.gameRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_match_result}),a.push(this.gameRecientes[this.teamSelect][o])):this.gameRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]));else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o])}else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},changeFiltersModal(e){this.filterObject=e,this.openfiltervalue=!1,this.matchFilter()},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},changeCarouselItem(e){this.getMinutesData(e.selectedItem.minutes),this.$emit("input",e),this.selectedIndexOption=e.selectedItemIndex},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},NU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),$U=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BU=["src"],xU=["src"],VU={class:"selector-tournaments"},IU=["src"],AU=["src"],OU={key:1},TU=t.createElementVNode("br",null,null,-1),zU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),FU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),RU=["src"],PU=["src"],DU={class:"selector-tournaments"},LU=["src"],jU=["src"],vU={key:1},MU=t.createElementVNode("br",null,null,-1),HU=["src"],UU=["src"],GU={class:"selector-tournaments"},WU=["src"],qU=["src"],JU={key:1},XU=t.createElementVNode("br",null,null,-1);function ZU(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),m=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[NU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),$U],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,BU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,xU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[0]||(a[0]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:0,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",VU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:n.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,IU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,AU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",OU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),TU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[2]||(a[2]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[zU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),FU],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,RU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,PU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[3]||(a[3]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:VM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:IM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:0,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",DU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[4]||(a[4]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,LU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,jU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",vU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),MU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,HU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,UU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[6]||(a[6]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:AM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:OM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:0,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",GU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[7]||(a[7]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,WU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,qU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",JU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),XU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const YU={$style:SU},KU=bt(EU,[["render",ZU],["__cssModules",YU]]),QU="_selectoritem_16hc8_179",eG="_selectoritem2_16hc8_199",tG="_gscheaderlineup_16hc8_219",aG="_anNoEstn_16hc8_233",oG="_groupsLeague_16hc8_239",sG="_jugadores_16hc8_249",nG="_switchOption_16hc8_259",iG="_jugadores1_16hc8_279",rG="_switchOption1_16hc8_289",lG="_switchStatesBig_16hc8_305",cG="_groupsLeagueParent_16hc8_323",dG="_imgHomeTeamIcon_16hc8_341",mG="_imgHomeTeamWrapper_16hc8_353",pG="_teamContainer_16hc8_377",hG="_name_16hc8_401",gG="_homeTeamContainer_16hc8_413",yG="_div_16hc8_433",uG="_titleSession_16hc8_441",fG="_scoreContainer_16hc8_461",_G="_scoreContainerWrapper_16hc8_481",bG="_teamContainer1_16hc8_505",wG="_awayTeamContainer_16hc8_529",CG="_matchContainer_16hc8_549",kG="_sliderMatchesChild_16hc8_567",SG="_manchesterUnited_16hc8_579",EG="_sliderMatchesItem_16hc8_591",NG="_sliderMatches_16hc8_567",$G="_sortIcon_16hc8_627",BG="_filtros_16hc8_641",xG="_sortParent_16hc8_657",VG="_shapeIcon_16hc8_671",IG="_btnFilter_16hc8_681",AG="_btnFilter1_16hc8_709",OG="_btnFilterParent_16hc8_737",TG="_backArrowIcon_16hc8_753",zG="_teamContainer2_16hc8_765",FG="_homeTeam_16hc8_413",RG="_div4_16hc8_793",PG="_finalScore_16hc8_803",DG="_manchesterUnited1_16hc8_829",LG="_scoreContainer1_16hc8_843",jG="_match_16hc8_549",vG="_manchesterUnited2_16hc8_879",MG="_btnDetails_16hc8_889",HG="_matchContainer1_16hc8_909",UG="_goalChild_16hc8_925",GG="_goal_16hc8_925",WG="_manchesterUnited3_16hc8_951",qG="_minuteEvent_16hc8_965",JG="_yellowCard_16hc8_979",XG="_awayTeamEvents_16hc8_993",ZG="_rectangle_16hc8_1007",YG="_homeTeamEvents_16hc8_1021",KG="_totalEvents_16hc8_1037",QG="_headerSeccionAlineaciones1_16hc8_1053",eW="_switchOption3_16hc8_1075",tW="_switchOption4_16hc8_1099",aW="_switchStatesBig1_16hc8_1119",oW="_manchesterUnited13_16hc8_1133",sW="_homeTeamContainer1_16hc8_1143",nW="_scoreContainer2_16hc8_1157",iW="_matchContainer2_16hc8_1185",rW="_manchesterUnited14_16hc8_1205",lW="_sliderMatchesInner_16hc8_1219",cW="_rectangleIcon_16hc8_1239",dW="_sliderMatches1_16hc8_1259",mW="_containerData_16hc8_1275",pW="_headerSeccionAlineaciones2_16hc8_1303",hW="_headerSeccionAlineaciones_16hc8_1053",gW="_headerSeccionAlineaciones21200_16hc8_1351",yW="_headerSeccionAlineaciones1540_16hc8_1357",uW="_headerSeccionAlineaciones2540_16hc8_1365",fW={selectoritem:QU,selectoritem2:eG,gscheaderlineup:tG,anNoEstn:aG,groupsLeague:oG,jugadores:sG,switchOption:nG,jugadores1:iG,switchOption1:rG,switchStatesBig:lG,groupsLeagueParent:cG,imgHomeTeamIcon:dG,imgHomeTeamWrapper:mG,teamContainer:pG,name:hG,homeTeamContainer:gG,div:yG,titleSession:uG,scoreContainer:fG,scoreContainerWrapper:_G,teamContainer1:bG,awayTeamContainer:wG,matchContainer:CG,sliderMatchesChild:kG,manchesterUnited:SG,sliderMatchesItem:EG,sliderMatches:NG,sortIcon:$G,filtros:BG,sortParent:xG,shapeIcon:VG,btnFilter:IG,btnFilter1:AG,btnFilterParent:OG,backArrowIcon:TG,teamContainer2:zG,homeTeam:FG,div4:RG,finalScore:PG,manchesterUnited1:DG,scoreContainer1:LG,match:jG,manchesterUnited2:vG,btnDetails:MG,matchContainer1:HG,goalChild:UG,goal:GG,manchesterUnited3:WG,minuteEvent:qG,yellowCard:JG,awayTeamEvents:XG,rectangle:ZG,homeTeamEvents:YG,totalEvents:KG,headerSeccionAlineaciones1:QG,switchOption3:eW,switchOption4:tW,switchStatesBig1:aW,manchesterUnited13:oW,homeTeamContainer1:sW,scoreContainer2:nW,matchContainer2:iW,manchesterUnited14:rW,sliderMatchesInner:lW,rectangleIcon:cW,sliderMatches1:dW,containerData:mW,headerSeccionAlineaciones2:pW,headerSeccionAlineaciones:hW,headerSeccionAlineaciones21200:gW,headerSeccionAlineaciones1540:yW,headerSeccionAlineaciones2540:uW},_W={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},bW=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),wW=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),CW=["src"],kW=["src"],SW=["src"],EW=["src"],NW=["src"],$W=["src"];function BW(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[bW,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),wW],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,CW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(o.gameInfo.season_name!==void 0?o.gameInfo.season_name+"  |  "+i.remplazarMxJor(o.gameInfo.matchday_abbreviation)+"  |  "+o.gameInfo.home_team_abbreviation+" - "+o.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,kW)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,SW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,EW),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,NW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,$W)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const xW={$style:fW},VW=bt(_W,[["render",BW],["__cssModules",xW]]),IW="_anNoEstn_j98j7_139",AW="_groupsLeague_j98j7_145",OW="_historicas_j98j7_153",TW="_switchOption_j98j7_163",zW="_switchOption1_j98j7_183",FW="_probables_j98j7_203",RW="_switchOption2_j98j7_213",PW="_switchStatesBig_j98j7_237",DW="_groupsLeagueParent_j98j7_255",LW="_imgHomeTeamIcon_j98j7_273",jW="_imgHomeTeamWrapper_j98j7_285",vW="_teamContainer_j98j7_309",MW="_name_j98j7_333",HW="_jor_j98j7_345",UW="_jorParent_j98j7_357",GW="_shapeIcon_j98j7_373",WW="_frameParent_j98j7_383",qW="_manchesterUnited_j98j7_413",JW="_necaxaIcon_j98j7_435",XW="_manchesterUnited1_j98j7_447",ZW="_team_j98j7_309",YW="_homeTeamContainer_j98j7_475",KW="_div1_j98j7_495",QW="_scoreContainer_j98j7_503",eq="_scoreContainerWrapper_j98j7_525",tq="_team1_j98j7_549",aq="_name1_j98j7_563",oq="_teamContainer1_j98j7_577",sq="_awayTeamContainer_j98j7_601",nq="_matchContainer_j98j7_623",iq="_goalChild_j98j7_641",rq="_goal_j98j7_641",lq="_manchesterUnited4_j98j7_667",cq="_minuteEvent_j98j7_681",dq="_yellowCard_j98j7_695",mq="_awayTeamEvents_j98j7_709",pq="_rectangle_j98j7_723",hq="_homeTeamEvents_j98j7_737",gq="_totalEvents_j98j7_753",yq="_headerSeccionAlineaciones1_j98j7_769",uq="_homeTeamContainer1_j98j7_789",fq="_awayTeamContainer1_j98j7_813",_q="_headerSeccionAlineaciones2_j98j7_837",bq="_jugadores_j98j7_857",wq="_switchOption6_j98j7_869",Cq="_switchOption8_j98j7_889",kq="_switchStatesBig2_j98j7_913",Sq="_manchesterUnited28_j98j7_927",Eq="_homeTeamContainer2_j98j7_935",Nq="_matchContainer2_j98j7_949",$q="_manchesterUnited29_j98j7_971",Bq="_sliderMatchesChild_j98j7_985",xq="_sliderMatchesItem_j98j7_1005",Vq="_sliderMatches_j98j7_985",Iq="_jorParent2_j98j7_1045",Aq="_filterMatchday_j98j7_1059",Oq="_necaxaIcon4_j98j7_1081",Tq="_team4_j98j7_1093",zq="_filterMatchdayParent_j98j7_1113",Fq="_filterMatchday1_j98j7_1127",Rq="_teamParent_j98j7_1157",Pq="_filtersContainer_j98j7_1177",Dq="_containerData_j98j7_1195",Lq="_headerSeccionAlineaciones3_j98j7_1223",jq="_headerSeccionAlineaciones_j98j7_769",vq={anNoEstn:IW,groupsLeague:AW,historicas:OW,switchOption:TW,switchOption1:zW,probables:FW,switchOption2:RW,switchStatesBig:PW,groupsLeagueParent:DW,imgHomeTeamIcon:LW,imgHomeTeamWrapper:jW,teamContainer:vW,name:MW,jor:HW,jorParent:UW,shapeIcon:GW,frameParent:WW,manchesterUnited:qW,necaxaIcon:JW,manchesterUnited1:XW,team:ZW,homeTeamContainer:YW,div1:KW,scoreContainer:QW,scoreContainerWrapper:eq,team1:tq,name1:aq,teamContainer1:oq,awayTeamContainer:sq,matchContainer:nq,goalChild:iq,goal:rq,manchesterUnited4:lq,minuteEvent:cq,yellowCard:dq,awayTeamEvents:mq,rectangle:pq,homeTeamEvents:hq,totalEvents:gq,headerSeccionAlineaciones1:yq,homeTeamContainer1:uq,awayTeamContainer1:fq,headerSeccionAlineaciones2:_q,jugadores:bq,switchOption6:wq,switchOption8:Cq,switchStatesBig2:kq,manchesterUnited28:Sq,homeTeamContainer2:Eq,matchContainer2:Nq,manchesterUnited29:$q,sliderMatchesChild:Bq,sliderMatchesItem:xq,sliderMatches:Vq,jorParent2:Iq,filterMatchday:Aq,necaxaIcon4:Oq,team4:Tq,filterMatchdayParent:zq,filterMatchday1:Fq,teamParent:Rq,filtersContainer:Pq,containerData:Dq,headerSeccionAlineaciones3:Lq,headerSeccionAlineaciones:jq},Mq={components:{GSCDropdown:Pm,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(a){throw new Error(a)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const a=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][a])},changeDropdownLocal(e){const a=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][a])}}},Hq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Uq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Gq=["src"],Wq={class:"selector-tournaments"},qq=["src"],Jq=["src"],Xq={class:"selector-tournaments"},Zq=["src"],Yq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Kq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Qq=["src"],eJ={class:"selector-tournaments"},tJ=["src"],aJ=["src"],oJ={class:"selector-tournaments"},sJ=["src"],nJ=["src"],iJ=["src"],rJ={class:"selector-tournaments"},lJ=["src"],cJ=["src"],dJ={class:"selector-tournaments"};function mJ(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Hq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Uq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Gq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Wq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,qq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Xq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Zq)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Yq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Kq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Qq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",eJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,tJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,aJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",oJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,sJ)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,nJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,iJ)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",rJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,lJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,cJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",dJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const pJ={$style:vq},hJ=bt(Mq,[["render",mJ],["__cssModules",pJ]]),h_="/line.png";let g_=null;const gJ={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:Pj,HeaderPlayerHistorico:hM,HeaderPlayerRecientes:KU,HeaderPlayerProbables:hJ,HeaderPlayerPostmatch:VW},data(){return{selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,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"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e){this.selectedOption!=="Postmatch"&&(e==="Historicos"&&await this.getLineUp(this.gamesHistoric[0].game),e==="Recientes"&&(await this.getLineUp(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][0].id),this.valueUpdateRecientes+=1))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){e&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Postmatch"?await this.getLineUp(e.game_id):this.selectOptMenuheader=="Historicos"&&await this.getLineUp(this.gamesHistoric[0].game))}}},sockets:{new_bench(e,a){if(a[this.home_team_id]){this.playersHome=this.playersHome.filter(function(f){return!f.isbench});for(let f=0;f<a[this.home_team_id].length;f++)if(!a[this.home_team_id][f].isTitular){this.subsTitle=!0;var o=a[this.home_team_id][f].playerName.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=this.dataPlayersHome.findIndex(_=>_.player_id==a[this.home_team_id][f].playerID);this.playersHome.push({played:!1,name:a[this.home_team_id][f].playerName,position:h!=-1?this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.home_team_id][f].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.home_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.home_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}if(a[this.away_team_id]){this.playersAway=this.playersAway.filter(function(f){return!f.isbench});for(let f=0;f<a[this.away_team_id].length;f++)if(!a[this.away_team_id][f].isTitular){this.subsTitle=!0;var d=a[this.away_team_id][f].playerName.split(","),l=d[0].split(" "),m=o[1].trim().split(" "),p="";l.length==2||l.length==1?l[0].length<4?p=l[0]+" "+l[1]:p=l[0]:l.length==3?p=l[0]+" "+l[1]:l.length==4&&(p=l[1]+" "+l[2]+" "+l[3]);var y=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";p=p.replace(",","");var g=y+". "+p,u=this.dataPlayersAway.findIndex(_=>_.player_id==a[this.away_team_id][f].playerID);this.playersAway.push({played:!1,name:a[this.away_team_id][f].playerName,position:u!=-1?this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.away_team_id][f].playerID+".png",nationality:u!=-1&&this.dataPlayersAway[u].nationality?this.dataPlayersAway[u].nationality.substring(0,3):"",imgNationality:u!=-1?this.dataPlayersAway[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.away_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.away_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}},new_lineup(e,a){if(a.team_id==a.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=a.home_team.players;for(let b=0;b<a.data.length;b++){this.home_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","home",0);var o=a.data[b].player_name.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=a.data[b].x,d=h*50/100,l=a.home_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersHome.push({played:!0,name:a.data[b].player_name,position:l!=-1?this.positions[a.home_team.players[l].position_id-1].name:"",position_id:a.home_team.players[l].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:l!=-1&&a.home_team.players[l].nationality?a.home_team.players[l].nationality.substring(0,3):"",imgNationality:l!=-1?a.home_team.players[l].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:d*.9,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-2,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=a.away_team.players;for(let b=0;b<a.data.length;b++){this.away_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","away",0);var m=a.data[b].player_name.split(","),p=m[0].split(" "),y=m[1].trim().split(" "),g="";p.length==2||p.length==1?p[0].length<4?g=p[0]+" "+p[1]:g=p[0]:p.length==3?g=p[0]+" "+p[1]:p.length==4&&(g=p[1]+" "+p[2]+" "+p[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var f=u+". "+g,_=a.data[b].x,k=100-(100-_)*50/100;k=k*.9;var w=a.away_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersAway.push({played:!0,name:a.data[b].player_name,position:w!=-1?this.positions[a.away_team.players[w].position_id-1].name:"",position_id:a.away_team.players[w].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:w!=-1&&a.away_team.players[w].nationality?a.away_team.players[w].nationality.substring(0,3):"",imgNationality:w!=-1?a.away_team.players[w].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:f,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:k+2,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-7,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersAway.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}},update_mxm(e,a){var o=-1,s=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(B=>B.idredcards==a.play_id),i=this.playersHome.findIndex(B=>B.idyellowcards==a.play_id),r=this.playersHome.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersHome.length;B++){var c=this.playersHome[B].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,s=B)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,s),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,s),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,s),o!=-1&&this.resetPlayUpdate("Goals","Home",o,s)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(B=>B.idredcards==a.play_id),d=this.playersAway.findIndex(B=>B.idyellowcards==a.play_id),l=this.playersAway.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersAway.length;B++){var m=this.playersAway[B].idsGoals.findIndex($=>$==a.play_id);m!=-1&&(o=m,s=B)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,s),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,s),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,s),o!=-1&&this.resetPlayUpdate("Goals","Away",o,s)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=a.player_id.split("@"),y=this.playersHome.findIndex(B=>B.playerId==p[0]),g=this.playersHome.findIndex(B=>B.playerId==p[1]);y!=-1&&(this.playersHome[y].idSubstitution=a.play_id,this.playersHome[y].substitutionOut=!0,this.playersHome[y].substitutionMin=a.minute,this.playersHome[y].substitutionDataID=a.team_id+"@"+a.player_id),g!=-1&&(this.playersHome[g].idSubstitution=a.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=a.minute,this.playersHome[g].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var u=a.player_id.split("@"),f=this.playersAway.findIndex(B=>B.playerId==u[0]),_=this.playersAway.findIndex(B=>B.playerId==u[1]);y!=-1&&(this.playersAway[f].idSubstitution=a.play_id,this.playersAway[f].substitutionOut=!0,this.playersAway[f].substitutionMin=a.minute,this.playersAway[f].substitutionDataID=a.team_id+"@"+a.player_id),_!=-1&&(this.playersAway[_].idSubstitution=a.play_id,this.playersAway[_].substitutionIn=!0,this.playersAway[_].substitutionMin=a.minute,this.playersAway[_].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var k=this.playersHome.findIndex(B=>B.playerId==a.player_id);k!=-1&&(this.playersHome[k].goals+=1,this.playersHome[k].goalsMin.push(a.minute),this.playersHome[k].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(B=>B.playerId==a.player_id);w!=-1&&(this.playersAway[w].goals+=1,this.playersAway[w].goalsMin.push(a.minute),this.playersAway[w].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var b=this.playersHome.findIndex(B=>B.playerId==a.player_id);b!=-1&&(this.playersHome[b].yellowcards+=1,this.playersHome[b].yellowcardsMin=a.minute,this.playersHome[b].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var E=this.playersAway.findIndex(B=>B.playerId==a.player_id);E!=-1&&(this.playersAway[E].yellowcards+=1,this.playersAway[E].yellowcardsMin=a.minute,this.playersAway[E].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var x=this.playersHome.findIndex(B=>B.playerId==a.player_id);x!=-1&&(this.playersHome[x].redcards+=1,this.playersHome[x].redcardsMin=a.minute,this.playersHome[x].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(B=>B.playerId==a.player_id);V!=-1&&(this.playersAway[V].redcards+=1,this.playersAway[V].redcardsMin=a.minute,this.playersAway[V].idredcards=a.play_id)}}}},delete_mxm(e,a){if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++)this.playersHome[o].idSubstitution==a.play_id&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionIn=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idSubstitution==a.play_id&&(this.playersAway[o].substitutionOut=!1,this.playersAway[o].substitutionIn=!1,this.playersAway[o].substitutionMin="",this.playersAway[o].substitutionDataID="",this.playersAway[o].idSubstitution=0);if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++){const s=this.playersHome[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(s,1),this.playersHome[o].idsGoals.splice(s,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const s=this.playersAway[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(s,1),this.playersAway[o].idsGoals.splice(s,1))}if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idyellowcards==a.play_id&&(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idyellowcards==a.play_id&&(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0);if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idredcards==a.play_id&&(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idredcards==a.play_id&&(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)},new_mxm(e,a){if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var o=a.player_id.split("@"),s=this.playersHome.findIndex(g=>g.playerId==o[0]),n=this.playersHome.findIndex(g=>g.playerId==o[1]);s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].substitutionDataID=a.team_id+"@"+a.player_id),n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var i=a.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==i[0]),c=this.playersAway.findIndex(g=>g.playerId==i[1]);s!=-1&&(this.playersAway[r].idSubstitution=a.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=a.minute,this.playersAway[r].substitutionDataID=a.team_id+"@"+a.player_id),c!=-1&&(this.playersAway[c].idSubstitution=a.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=a.minute,this.playersAway[c].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==a.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(a.minute),this.playersHome[h].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(g=>g.playerId==a.player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(a.minute),this.playersAway[d].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(g=>g.playerId==a.player_id);l!=-1&&(this.playersHome[l].yellowcards+=1,this.playersHome[l].yellowcardsMin=a.minute,this.playersHome[l].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var m=this.playersAway.findIndex(g=>g.playerId==a.player_id);m!=-1&&(this.playersAway[m].yellowcards+=1,this.playersAway[m].yellowcardsMin=a.minute,this.playersAway[m].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=a.minute,this.playersHome[p].idredcards=a.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=a.minute,this.playersAway[y].idredcards=a.play_id)}}}}},methods:{async getLineUpProbablesHome3D(e){try{const w=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!w||!w.data)throw new Error("There is not lineups for this game.");if(w.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.home_team.players,w.data.home_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+"_g.svg","home",0);var a=w.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=w.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,d=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.home_team.players[d].position_id-1].name,position_id:w.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.home_team.players[d].nationality?w.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:w.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:w.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.home_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.home_team.bench){for(let b=0;b<w.data.home_team.bench.length;b++){this.subsTitle=!0;var l=w.data.home_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.home_team.bench[b].playerName,position:f!=-1?this.positions[w.data.home_team.players[f].position_id-1].name:"",position_id:w.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.home_team.players[f].nationality?w.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.home_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.home_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}if(w.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.away_team.players,w.data.away_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+"_g.svg","home",0);var a=w.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,_=w.data.away_team.starting_lineup[0].lineup[b].x;_=Math.abs(_-100);var h=_*50/100,k=w.data.away_team.starting_lineup[0].lineup[b].y;k=Math.abs(k-100);var d=w.data.away_team.players.findIndex(F=>F.player_id==w.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.away_team.players[d].position_id-1].name,position_id:w.data.away_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.away_team.players[d].nationality?w.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:k-20,positionY:h*.9,positionXOrigin:w.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.away_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.away_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.away_team.bench){for(let b=0;b<w.data.away_team.bench.length;b++){this.subsTitle=!0;var l=w.data.away_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.away_team.players.findIndex(I=>I.player_id==w.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.away_team.bench[b].playerName,position:f!=-1?this.positions[w.data.away_team.players[f].position_id-1].name:"",position_id:w.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.away_team.players[f].nationality?w.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.away_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.away_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}await this.getMXM(e)}catch(w){return Promise.reject(w)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const _=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players;for(let k=0;k<_.data.home_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var a=_.data.home_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.home_team.starting_lineup[0].lineup[k].x;c=Math.abs(c-100);var h=100-(100-c)*50/100;h=h*.9;var d=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.home_team.players[d].position_id-1].name,position_id:_.data.home_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.home_team.players[d].nationality?_.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.home_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.home_team.bench){for(let k=0;k<_.data.home_team.bench.length;k++){this.subsTitle=!0;var l=_.data.home_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[k].playerName,position:f!=-1?this.positions[_.data.home_team.players[f].position_id-1].name:"",position_id:_.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.home_team.players[f].nationality?_.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.away_team.players;for(let k=0;k<_.data.away_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var a=_.data.away_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.away_team.starting_lineup[0].lineup[k].x,h=100-(100-c)*50/100;h=h*.9;var d=_.data.away_team.players.findIndex(I=>I.player_id==_.data.away_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.away_team.players[d].position_id-1].name,position_id:_.data.away_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.away_team.players[d].nationality?_.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.away_team.bench){for(let k=0;k<_.data.away_team.bench.length;k++){this.subsTitle=!0;var l=_.data.away_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.away_team.players.findIndex(z=>z.player_id==_.data.away_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[k].playerName,position:f!=-1?this.positions[_.data.away_team.players[f].position_id-1].name:"",position_id:_.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.away_team.players[f].nationality?_.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}await this.getMXM(e)}catch(_){return Promise.reject(_)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.homeTeam.acronym=this.homeTeamAbrev,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.visitingTeam.acronym=this.awayTeamAbrev,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),this.homeTeam.acronym=e.ht_abrev,this.visitingTeam.acronym=e.at_abrev,await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.homeTeam.acronym=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronym=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,home_team_abbreviation:a.data.games_historic[o].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[o].away_team_abbreviation,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[o].matchday_abbreviation),id:a.data.away_team_games_recent[o].matchday_id})}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.homeTeamAbrev=a.data.teams[0].acronym,this.awayTeamAbrev=a.data.teams[1].acronym,this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)g_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),g_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<this.playersHome.length;g++)this.playersHome[g].goalsMin=[],this.playersHome[g].idsGoals=[];for(let g=0;g<this.playersAway.length;g++)this.playersAway[g].goalsMin=[],this.playersAway[g].idsGoals=[];for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineUp(e){if(e!=null&&(Jf(),!this.playersHome.length&&!this.playersHome.length))try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.cleaneData(),this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}await this.getMXM(e)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},yJ={class:"size-browser-class"},uJ={class:"lineup-players is-centered"},fJ={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},_J={class:"modal-substitutions__substitution-container"},bJ={class:"modal-substitutions__substitution-container__header"},wJ={style:{"margin-left":"32px"}},CJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),kJ=[CJ],SJ={class:"modal-substitutions__substitution-container__players-container"},EJ={class:"substitution-player-data-container"},NJ={class:"substitution-player-data-container__img-player"},$J=["src"],BJ={class:"substitution-player-data-container__img-player__team"},xJ=["src"],VJ={class:"substitution-player-data-container__name-player"},IJ={class:"substitution-player-data-container__position-player"},AJ={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},OJ={key:0,class:"substitution-player-data-container__shirt-player__circle"},TJ={key:1},zJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),FJ=[zJ],RJ={class:"substitution-player-data-container__substitution-player"},PJ={class:"substitution-indicator nomargin"},DJ=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),LJ={class:"substitution-player-data-container__center"},jJ=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),vJ={class:"substitution-player-data-container__minute"},MJ={class:"substitution-player-data-container"},HJ={class:"substitution-player-data-container__img-player"},UJ=["src"],GJ={class:"substitution-player-data-container__img-player__team"},WJ=["src"],qJ={class:"substitution-player-data-container__name-player"},JJ={class:"substitution-player-data-container__position-player"},XJ={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},ZJ={key:0},YJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),KJ=[YJ],QJ={key:1,class:"substitution-player-data-container__shirt-player__circle"},eX={class:"substitution-player-data-container__substitution-player"},tX={class:"substitution-indicator nomargin"},aX=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),oX=["onClick"],sX=t.createElementVNode("img",{src:h_},null,-1),nX=[sX],iX=["onClick"],rX=t.createElementVNode("img",{src:h_},null,-1),lX=[rX],cX={key:0,class:"cont-lineup-gsc-componente"},dX={class:"shield-team-cont homecolor"},mX=["src"],pX={class:"shield-team-cont awaycolor"},hX=["src"],gX={key:0,class:"header-lineup-shield-team home"},yX={class:"shield-team-cont homecolor"},uX=["src"],fX={class:"header-lineup-shield-team-wrapper"},_X={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},bX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),wX={key:0,class:"header-lineup-shield-team away"},CX={class:"shield-team-cont awaycolor"},kX=["src"],SX={class:"header-lineup-shield-team-wrapper"},EX={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},NX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),$X=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),BX=[$X],xX=t.createElementVNode("br",null,null,-1);function VX(e,a,o,s,n,i){const r=t.resolveComponent("HeaderPlayerPostmatch"),c=t.resolveComponent("HeaderPlayerHistorico"),h=t.resolveComponent("HeaderPlayerRecientes"),d=t.resolveComponent("HeaderPlayerProbables"),l=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",yJ,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",uJ,[t.createElementVNode("div",fJ,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric,"game-recientes":Object.keys(n.gameInfoheader).length>0?n.gamesRecientes[n.gameInfoheader.home_team_abbreviation].length+n.gamesRecientes[n.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{key:1,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,"player-home":n.playersHome,"player-away":n.playersAway,"matchdays-default":n.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":n.matchdaysPerTeam,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",n.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",_J,[t.createElementVNode("div",bJ,[t.createElementVNode("span",wJ,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=m=>i.closeChange())},kJ)])]),t.createElementVNode("div",SJ,[t.createElementVNode("div",EJ,[t.createElementVNode("div",NJ,[n.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,$J)):t.createCommentVNode("",!0),t.createElementVNode("div",BJ,[n.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,xJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",VJ,t.toDisplayString(n.substitutionModal.in.name),1),t.createElementVNode("div",IJ,t.toDisplayString(n.substitutionModal.in.position),1),t.createElementVNode("div",AJ,[n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",OJ,t.toDisplayString(n.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",TJ,FJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",RJ,[t.createElementVNode("template",null,[t.createElementVNode("div",PJ,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),DJ])])])]),t.createElementVNode("div",LJ,[jJ,t.createElementVNode("div",vJ,t.toDisplayString(n.substitutionModal.min)+"'",1)]),t.createElementVNode("div",MJ,[t.createElementVNode("div",HJ,[n.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,UJ)):t.createCommentVNode("",!0),t.createElementVNode("div",GJ,[n.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,WJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",qJ,t.toDisplayString(n.substitutionModal.out.name),1),t.createElementVNode("div",JJ,t.toDisplayString(n.substitutionModal.out.position),1),t.createElementVNode("div",XJ,[n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",ZJ,KJ)):t.createCommentVNode("",!0),n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",QJ,t.toDisplayString(n.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",eX,[t.createElementVNode("template",null,[t.createElementVNode("div",tX,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),aX])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_home"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="home"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},nX,10,oX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_away"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="away"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},lX,10,iX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cX,[t.createElementVNode("div",{class:t.normalizeClass(i.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=m=>i.viewLineupTeam("home"))},[t.createElementVNode("div",dX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,mX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=m=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",pX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,hX)):t.createCommentVNode("",!0)])],4)],2),n.teamActive=="home"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",gX,[t.createElementVNode("div",yX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,uX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",fX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",_X,[bX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),n.teamActive=="away"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wX,[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",CX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kX)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",SX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EX,[NX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},BX,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),xX,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const IX=bt(gJ,[["render",VX]]),AX={components:{GSCLineups2D:KL,GSCLineups3D:IX},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{}};function OX(e,a,o,s,n,i){const r=t.resolveComponent("GSCLineups2D"),c=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[o.type=="2D"?(t.openBlock(),t.createBlock(r,{key:0,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0),o.type=="3D"?(t.openBlock(),t.createBlock(c,{key:1,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0)])}const y_=bt(AX,[["render",OX]]),AMe="",OMe="",TX={class:"alineaciones-container"},zX=Fe({__name:"GSCLineupsMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,o=t.ref(0);return t.watch(()=>a.game,s=>{o.value=s.gameId},{deep:!0,immediate:!0}),(s,n)=>(t.openBlock(),t.createElementBlock("div",TX,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-1db549f2"]]);function u_(e,a){return function(){return e.apply(a,arguments)}}const{toString:FX}=Object.prototype,{getPrototypeOf:Lm}=Object,fr=(e=>a=>{const o=FX.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),sa=e=>(e=e.toLowerCase(),a=>fr(a)===e),_r=e=>a=>typeof a===e,{isArray:jo}=Array,Qs=_r("undefined");function RX(e){return e!==null&&!Qs(e)&&e.constructor!==null&&!Qs(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f_=sa("ArrayBuffer");function PX(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&f_(e.buffer),a}const DX=_r("string"),Vt=_r("function"),__=_r("number"),br=e=>e!==null&&typeof e=="object",LX=e=>e===!0||e===!1,wr=e=>{if(fr(e)!=="object")return!1;const a=Lm(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jX=sa("Date"),vX=sa("File"),MX=sa("Blob"),HX=sa("FileList"),UX=e=>br(e)&&Vt(e.pipe),GX=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((a=fr(e))==="formdata"||a==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},WX=sa("URLSearchParams"),qX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function en(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),jo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function b_(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const w_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),C_=e=>!Qs(e)&&e!==w_;function jm(){const{caseless:e}=C_(this)&&this||{},a={},o=(s,n)=>{const i=e&&b_(a,n)||n;wr(a[i])&&wr(s)?a[i]=jm(a[i],s):wr(s)?a[i]=jm({},s):jo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&en(arguments[s],o);return a}const JX=(e,a,o,{allOwnKeys:s}={})=>(en(a,(n,i)=>{o&&Vt(n)?e[i]=u_(n,o):e[i]=n},{allOwnKeys:s}),e),XX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZX=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},YX=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Lm(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},KX=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},QX=e=>{if(!e)return null;if(jo(e))return e;let a=e.length;if(!__(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},eZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Lm(Uint8Array)),tZ=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},aZ=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},oZ=sa("HTMLFormElement"),sZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),k_=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),nZ=sa("RegExp"),S_=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};en(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},iZ=e=>{S_(e,(a,o)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Vt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},rZ=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return jo(e)?s(e):s(String(e).split(a)),o},lZ=()=>{},cZ=(e,a)=>(e=+e,Number.isFinite(e)?e:a),vm="abcdefghijklmnopqrstuvwxyz",E_="0123456789",N_={DIGIT:E_,ALPHA:vm,ALPHA_DIGIT:vm+vm.toUpperCase()+E_},dZ=(e=16,a=N_.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function mZ(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pZ=e=>{const a=new Array(10),o=(s,n)=>{if(br(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=jo(s)?[]:{};return en(s,(r,c)=>{const h=o(r,n+1);!Qs(h)&&(i[c]=h)}),a[n]=void 0,i}}return s};return o(e,0)},hZ=sa("AsyncFunction"),gZ=e=>e&&(br(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),v={isArray:jo,isArrayBuffer:f_,isBuffer:RX,isFormData:GX,isArrayBufferView:PX,isString:DX,isNumber:__,isBoolean:LX,isObject:br,isPlainObject:wr,isUndefined:Qs,isDate:jX,isFile:vX,isBlob:MX,isRegExp:nZ,isFunction:Vt,isStream:UX,isURLSearchParams:WX,isTypedArray:eZ,isFileList:HX,forEach:en,merge:jm,extend:JX,trim:qX,stripBOM:XX,inherits:ZX,toFlatObject:YX,kindOf:fr,kindOfTest:sa,endsWith:KX,toArray:QX,forEachEntry:tZ,matchAll:aZ,isHTMLForm:oZ,hasOwnProperty:k_,hasOwnProp:k_,reduceDescriptors:S_,freezeMethods:iZ,toObjectSet:rZ,toCamelCase:sZ,noop:lZ,toFiniteNumber:cZ,findKey:b_,global:w_,isContextDefined:C_,ALPHABET:N_,generateString:dZ,isSpecCompliantForm:mZ,toJSONObject:pZ,isAsyncFn:hZ,isThenable:gZ};function fe(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}v.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $_=fe.prototype,B_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B_[e]={value:e}}),Object.defineProperties(fe,B_),Object.defineProperty($_,"isAxiosError",{value:!0}),fe.from=(e,a,o,s,n,i)=>{const r=Object.create($_);return v.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),fe.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const yZ=null;function Mm(e){return v.isPlainObject(e)||v.isArray(e)}function x_(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function V_(e,a,o){return e?e.concat(a).map(function(s,n){return s=x_(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function uZ(e){return v.isArray(e)&&!e.some(Mm)}const fZ=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function Cr(e,a,o){if(!v.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=v.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!v.isUndefined(g[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(a);if(!v.isFunction(n))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!c&&v.isBlob(y))throw new fe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,u){let f=y;if(y&&!u&&typeof y=="object"){if(v.endsWith(g,"{}"))g=s?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&uZ(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(f=v.toArray(y)))return g=x_(g),f.forEach(function(_,k){!(v.isUndefined(_)||_===null)&&a.append(r===!0?V_([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Mm(y)?!0:(a.append(V_(u,g,i),h(y)),!1)}const l=[],m=Object.assign(fZ,{defaultVisitor:d,convertValue:h,isVisitable:Mm});function p(y,g){if(!v.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(y),v.forEach(y,function(u,f){(!(v.isUndefined(u)||u===null)&&n.call(a,u,v.isString(f)?f.trim():f,g,m))===!0&&p(u,g?g.concat(f):[f])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return p(e),a}function I_(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Hm(e,a){this._pairs=[],e&&Cr(e,this,a)}const A_=Hm.prototype;A_.append=function(e,a){this._pairs.push([e,a])},A_.toString=function(e){const a=e?function(o){return e.call(this,o,I_)}:I_;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function _Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O_(e,a,o){if(!a)return e;const s=o&&o.encode||_Z,n=o&&o.serialize;let i;if(n?i=n(a,o):i=v.isURLSearchParams(a)?a.toString():new Hm(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const T_=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){v.forEach(this.handlers,function(o){o!==null&&a(o)})}},z_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bZ=typeof URLSearchParams<"u"?URLSearchParams:Hm,wZ=typeof FormData<"u"?FormData:null,CZ=typeof Blob<"u"?Blob:null,kZ={isBrowser:!0,classes:{URLSearchParams:bZ,FormData:wZ,Blob:CZ},protocols:["http","https","file","blob","url","data"]},F_=typeof window<"u"&&typeof document<"u",SZ=(e=>F_&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F_,hasStandardBrowserEnv:SZ,hasStandardBrowserWebWorkerEnv:EZ},Symbol.toStringTag,{value:"Module"})),na={...NZ,...kZ};function $Z(e,a){return Cr(e,new na.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return na.isNode&&v.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function BZ(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xZ(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function R_(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&v.isArray(n)?n.length:r,h?(v.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!v.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&v.isArray(n[r])&&(n[r]=xZ(n[r])),!c)}if(v.isFormData(e)&&v.isFunction(e.entries)){const o={};return v.forEachEntry(e,(s,n)=>{a(BZ(s),n,o,0)}),o}return null}function VZ(e,a,o){if(v.isString(e))try{return(a||JSON.parse)(e),v.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Um={transitional:z_,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=v.isObject(e);if(n&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return s?JSON.stringify(R_(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return $Z(e,this.formSerializer).toString();if((i=v.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Cr(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),VZ(e)):e}],transformResponse:[function(e){const a=this.transitional||Um.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&v.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?fe.from(i,fe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Um.headers[e]={}});const Gm=Um,IZ=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AZ=e=>{const a={};let o,s,n;return e&&e.split(`
43
+ */const ct={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"}},n_={itemsToShow:{default:ct.itemsToShow,type:Number},itemsToScroll:{default:ct.itemsToScroll,type:Number},wrapAround:{default:ct.wrapAround,type:Boolean},throttle:{default:ct.throttle,type:Number},snapAlign:{default:ct.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ct.transition,type:Number},breakpoints:{default:ct.breakpoints,type:Object},autoplay:{default:ct.autoplay,type:Number},pauseAutoplayOnHover:{default:ct.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ct.mouseDrag,type:Boolean},touchDrag:{default:ct.touchDrag,type:Boolean},dir:{default:ct.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ct.i18n,type:Object},settings:{default(){return{}},type:Object}};function xD({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function VD({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function zm({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function ID({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:zm({val:r,max:o-i,min:0})}function i_(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...i_(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Fm({val:e,max:a,min:o=0}){return e>a?Fm({val:e-(a+1),max:a,min:o}):e<o?Fm({val:e+(a+1),max:a,min:o}):e}function AD(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function OD(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function TD(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var zD=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},ct))),a=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"},TD(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),FD=t.defineComponent({name:"Carousel",props:n_,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},ct));let l=Object.assign({},ct),m;const p=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),g=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",h),t.provide("currentSlide",p),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(O=>Number(O)).sort((O,oe)=>+oe-+O);let T=Object.assign({},l);S.some(O=>{const oe=window.matchMedia(`(min-width: ${O}px)`).matches;return oe&&(T=Object.assign(Object.assign({},T),m[O])),oe}),E(T)}function E(S){Object.entries(S).forEach(([T,O])=>d[T]=O)}const x=OD(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=xD({config:d,slidesCount:h.value}),f.value=VD({config:d,slidesCount:h.value}),d.wrapAround||(p.value=zm({val:p.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),Le(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const z={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),F=t.ref(!1),ee=t.ref(!1),re=()=>{F.value=!0},Q=()=>{F.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||P.value)&&(z.x=$?S.touches[0].clientX:S.clientX,z.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",R,!0)))}const N=AD(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const T=A.x-z.x,O=A.y-z.y;I.y=O,I.x=T},d.throttle);function R(){const S=d.dir==="rtl"?-1:1,T=Math.sign(I.x)*.4,O=Math.round(I.x/c.value+T)*S;if(O&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(p.value-O),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",R,!0)}function Le(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&F.value||te()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),Le()}const P=t.ref(!1);function K(S){const T=d.wrapAround?S:zm({val:S,max:u.value,min:f.value});p.value===T||P.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!0,y.value=p.value,p.value=T,k=setTimeout(()=>{if(d.wrapAround){const O=Fm({val:T,max:u.value,min:0});O!==p.value&&(p.value=O,o("loop",{currentSlideIndex:p.value,slidingToIndex:S}))}o("update:modelValue",p.value),o("slide-end",{currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!1,se()},d.transition))}function te(){K(p.value+d.itemsToScroll)}function ae(){K(p.value-d.itemsToScroll)}const ne={slideTo:K,next:te,prev:ae};t.provide("nav",ne),t.provide("isSliding",P);const ie=t.computed(()=>ID({config:d,currentSlide:p.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,T=ie.value*c.value*S;return{transform:`translateX(${I.x-T}px)`,transition:`${P.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),B(),V(),se()}Object.keys(n_).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==p.value&&K(Number(S))}),t.watch(h,B),o("before-init"),w();const xe={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:p,maxSlide:u,minSlide:f,middleSlide:g};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:ne,data:xe});const Re=a.default||a.slides,Pe=a.addons,ve=t.reactive(xe);return()=>{const S=i_(Re==null?void 0:Re(ve)),T=(Pe==null?void 0:Pe(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let O=S;if(d.wrapAround){const Oe=S.map((ze,le)=>t.cloneVNode(ze,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((ze,le)=>t.cloneVNode(ze,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));O=[...Oe,...S,...Te]}r.value=S,h.value=Math.max(S.length,1);const oe=t.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:d.mouseDrag?C:null,onTouchstartPassiveCapture:d.touchDrag?C:null},O),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":P.value,"is-dragging":ee.value,"is-hover":F.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,T,t.h(zD)])}}}),r_;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(r_||(r_={}));var RD=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},ct))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,h=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;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":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const PD=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},DD=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),LD={class:"gsc-carousel"},jD={key:0},vD=DD(()=>t.createElementVNode("div",null,"no hay",-1)),MD=[vD],HD={class:"gsc-carousel__2d__slides"},UD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GD=["fill"],WD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qD=["fill"],JD={class:"gsc-carousel__2d__navigation"},XD={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZD=["stroke"],YD={key:1,class:"gsc-carousel__2d__navigation__pagination"},KD=["onClick"],QD={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eL=["stroke"],tL={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const s=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,u=>{u&&c.value?(c.value=!1,h(s.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,u=>{r.value!==u&&p(u)}),t.watch(()=>s.items,u=>{n.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&n.value){if(s.defaultItemByProp){const f=s.items.findIndex(_=>_[s.defaultItemByProp.propName]===s.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=s.defaultItemByIndex,i.value=u[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(){n.value&&n.value.updateSlideWidth()}function p(u){n.value&&n.value.slideTo(u)}function y(u){n.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?s.items.length-1:u.slidingToIndex===s.items.length?0:u.slidingToIndex;r.value=f,i.value=s.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:m,slideTo:p}),(u,f)=>(t.openBlock(),t.createElementBlock("div",LD,[s.is3d?(t.openBlock(),t.createElementBlock("div",jD,MD)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",HD,[t.createVNode(t.unref(FD),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:g},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createBlock(t.unref(RD),{key:k},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:f[0]||(f[0]=_=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",UD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,GD)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:f[1]||(f[1]=_=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",WD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,qD)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",JD,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:f[2]||(f[2]=_=>l())},[(t.openBlock(),t.createElementBlock("svg",XD,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:s.arrowsColor},null,8,ZD)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",YD,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===k?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===k?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>y(k)},null,12,KD))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:f[3]||(f[3]=_=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",QD,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:s.arrowsColor},null,8,eL)]))])):t.createCommentVNode("",!0)])],2))]))}},gr=PD(tL,[["__scopeId","data-v-dd3cbf69"]]),aL=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Rm={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))}}},l_=()=>{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}))},c_=Rm.setup;Rm.setup=c_?(e,a)=>(l_(),c_(e,a)):l_;const oL=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),sL=["src"],nL={key:1,class:"text"},iL=["src"],rL={class:"stats"},lL=oL(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),cL={class:"numstats"},dL={class:"leyend"};function mL(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,n.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[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,sL)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nL,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,iL)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.createElementVNode("div",rL,[lL,t.createElementVNode("div",cL,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",dL,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const pL=aL(Rm,[["render",mL],["__scopeId","data-v-fb269a1e"]]),hL={class:"gsc-dropdown__main-container__item-selected"},gL=["height","width"],yL=["stroke"],uL={class:"gsc-dropdown__items-container"},fL=["onClick"],_L={key:0,class:"gsc-dropdown__items-footer"},Pm={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},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(a=>a 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},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,s=t.ref({}),n=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(y,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&y&&y.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,s.value=y[u]):(i.value=0,s.value=y[0])}else s.value=y[o.defaultItemByIndex];a("input",s.value)}},{immediate:!0}),t.watch(()=>o.modelValue,y=>{if(y){const g=o.items.findIndex(u=>typeof y=="object"?JSON.stringify(u)===JSON.stringify(y):u===y);g!==-1&&(i.value=g,s.value=o.items[g],a("update:modelValue",s.value))}},{immediate:!0});const c=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}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),h=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(r.value=!r.value)}function l(y){n.value&&!n.value.contains(y.target)&&(r.value=!1)}function m(y,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),s.value=y,a("input",s.value),a("update:modelValue",s.value)}function p(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(y,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",hL,[t.renderSlot(y.$slots,"default",{selectedItem:s.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:t.normalizeStyle(h.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,yL)],8,gL))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",uL,[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,(u,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:f===i.value}]),key:f,onClick:_=>m(u,f)},[t.renderSlot(y.$slots,"availableItem",{item:u})],10,fL))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",_L,[t.createVNode(t.unref(pL),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:p})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let d_=null;const bL={components:{LineupField:UR,LineupRecentItem:aP,LineupMainHeader:NP,LineupFilter:qP,MatchDetails:e_,GscSwitchComponent:Zs,GSCCarousel:gr,GSCDropdown:Pm},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,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"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:zR},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter()}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game)))}catch(a){throw new Error(a)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.updateCarouselGames+=1,this.matchFilter())},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])):this.gamesRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]));else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])}else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.filterObject=e,this.matchFilter()},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const a=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const a=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].id)}},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var a={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getLineUp(a.game_id)},changeDropdown(e){const a=this.gamesRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},async changeCarouselItem(e){this.keyUpdate+=1,this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id};var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id,this.selectedIndexOption=e.selectedItemIndex},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,a.data.games_historic&&a.data.games_historic.length>0)for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});if(this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[],a.data.home_team_games_recent&&a.data.home_team_games_recent.length>0)for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});if(a.data.away_team_games_recent&&a.data.away_team_games_recent.length>0)for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:a.data.away_team_games_recent[o].matchday_abbreviation.replace("M","Jornada "),id:a.data.away_team_games_recent[o].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)d_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),d_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineupDataProbablesAway(e){try{const h=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!h||!h.data)throw new Error("There is not lineups for this game.");if(h.data.home_team.team_id==this.gameInfoheader.away_team){for(let d=0;d<h.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+"_g.svg","away",0);var a=h.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.home_team.starting_lineup[0].lineup[d].x;r=Math.abs(r-100);var c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.home_team.team_id,number:h.data.home_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.home_team.starting_lineup[0].lineup[d].player_id+".png",posX:c+7,posY:h.data.home_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.home_team.team_id+".png"}this.playersAway.sort((d,l)=>d.position_id>l.position_id?1:l.position_id>d.position_id?-1:0)}if(h.data.away_team.team_id==this.gameInfoheader.away_team)for(let d=0;d<h.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+"_g.svg","away",0);var a=h.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.away_team.starting_lineup[0].lineup[d].x,c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.away_team.team_id,number:h.data.away_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.away_team.starting_lineup[0].lineup[d].player_id+".png",posX:100-(100-h.data.away_team.starting_lineup[0].lineup[d].x)*50/100,posY:h.data.away_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.away_team.team_id+".png"}}catch(h){return Promise.reject(h)}},async getLineupDataProbablesHome(e){try{const l=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!l||!l.data)throw new Error("There is not lineups for this game.");if(l.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.home_team.players,l.data.home_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+"_g.svg","home",0);var a=l.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[m].x,c=r*50/100;this.players.push({team_id:l.data.home_team.team_id,number:l.data.home_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[m].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[m].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[m].y}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.home_team.team_id+".png"}}if(l.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.away_team.players,l.data.away_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+"_g.svg","home",0);var a=l.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[m].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[m].y;d=Math.abs(d-100),this.players.push({team_id:l.data.away_team.team_id,number:l.data.away_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[m].player_id+".png",posX:c-2,posY:d-9}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.away_team.team_id+".png"}}}catch(l){return Promise.reject(l)}},async getLineUp(e){if(Jf(),!this.playersHome.length)try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",posX:C.data.home_team.starting_lineup[0].lineup[N].x*50/100,posY:C.data.home_team.starting_lineup[0].lineup[N].y}),this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!1,name:E+". "+b,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",posX:100-(100-C.data.away_team.starting_lineup[0].lineup[N].x)*50/100,posY:C.data.away_team.starting_lineup[0].lineup[N].y}),this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}this.game.prematch||this.getMXM(this.game.game_id)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Ys=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),wL={class:"lineup__header",ref:"gamesContainer"},CL=Ys(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),kL={key:0,style:{width:"325px"}},SL={class:"lineup__card"},EL={key:0},NL={key:1},$L={key:2},BL={key:3,class:"lineup__card-body"},xL={key:0,class:"lineup__selector",style:{margin:"auto"}},VL={class:"lineup__selector-item"},IL={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},AL={class:"lineup__filters"},OL={class:"selector-tournaments"},TL={class:"lineup__items-carousel"},zL=Ys(()=>t.createElementVNode("div",null,null,-1)),FL={class:"lineup__items-center"},RL={class:"lineup__selector-recientes"},PL={key:1,class:"containernofoundsearchrecientes"},DL=Ys(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),LL={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},jL={key:5,class:"lineup__card-body space-between"},vL={class:"lineup__card-body__probables"},ML={class:"selector-tournaments"},HL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),UL=["src"],GL={class:"lineup__card-body__probables"},WL=["src"],qL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),JL={class:"selector-tournaments"},XL={key:6,class:"lineup__card-body space-between"},ZL={class:"postmatch__matchday"};function YL(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),m=t.resolveComponent("LineupRecentItem"),p=t.resolveComponent("MatchDetails"),y=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",wL,[CL,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",kL,[(n.gameInfoheader.game_status==0||n.gameInfoheader.game_status==4)&&i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:a[0]||(a[0]=g=>o.selectedOption=g)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",SL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",EL,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",NL,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",$L,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(n.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:n.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.headerInfoHistoricItemGame.score[0]+" - "+n.headerInfoHistoricItemGame.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(n.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.home_team+".png"},visitTeam:{acronym:n.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.gameInfoheader.score[0]+" - "+n.gameInfoheader.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",BL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",xL,[n.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:n.updatehistoricos,onInput:i.changeCarouselItemH,items:n.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",VL,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",IL,[t.createElementVNode("div",AL,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:n.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:a[1]||(a[1]=(...g)=>i.handleInsideClick&&i.handleInsideClick(...g))},[(t.openBlock(),t.createBlock(l,{items:i.matchdaysFinal,onInput:i.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",OL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:a[2]||(a[2]=g=>n.showDetails=!n.showDetails)},t.toDisplayString(n.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",TL,[zL,t.createElementVNode("div",FL,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",RL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",PL,[DL,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),n.showDetails?(t.openBlock(),t.createBlock(p,{key:0,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",LL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),n.showDetails?(t.openBlock(),t.createBlock(p,{key:1,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",jL,[t.createElementVNode("div",vL,[t.createVNode(l,{items:i.matchHomeProbables,onInput:i.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",ML,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),HL,t.createElementVNode("img",{src:n.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,UL)]),t.createElementVNode("div",GL,[t.createElementVNode("img",{src:n.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,WL),qL,t.createVNode(l,{items:i.matchAwayProbables,onInput:i.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",JL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"])])])):o.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",XL,[t.createElementVNode("div",ZL,t.toDisplayString(n.gameInfoheader.season_name!==void 0?n.gameInfoheader.season_name+"  |  "+i.remplazarMxJor(n.gameInfoheader.matchday_abbreviation)+"  |  "+n.gameInfoheader.home_team_abbreviation+" - "+n.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(y,{class:"lineup__field",players:n.players},null,8,["players"])])],2)}const KL=bt(bL,[["render",YL],["__scopeId","data-v-3e8dc5c2"]]),QL={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{},mounted(){}},yr=e=>(t.pushScopeId("data-v-57833ebc"),e=e(),t.popScopeId(),e),ej={key:0,class:"gsc-item-player"},tj={class:"gsc-num-player"},aj={class:"gsc-cont-info-by-player"},oj={class:"gsc-cont-info-by-player-row1"},sj={class:"shield-player-cont"},nj=["src"],ij={class:"gsc-cont-info-by-player-row2"},rj={class:"gsc-cont-info-by-player-row2-line-name"},lj={class:"gsc-cont-info-by-player-row2-line-data"},cj={class:"cont-display-gsc"},dj=["src"],mj={class:"gsc-cont-cards"},pj={key:0,class:"gsc-yellow_card_div"},hj={key:1,class:"gsc-red_card_div"},gj={key:2,class:"gsc-yellowred_card_div"},yj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),uj={key:5,class:"gsc-goal_card_div_wrapper"},fj=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),_j={key:1,class:"gsc-item-player"},bj={class:"gsc-num-player2"},wj={class:"gsc-cont-info-by-player2"},Cj={class:"gsc-cont-info-by-player-row2"},kj={class:"gsc-cont-info-by-player-row2-line-name2"},Sj={class:"gsc-cont-info-by-player-row2-line-data"},Ej={class:"gsc-cont-cards2"},Nj={key:0,class:"gsc-yellow_card_div"},$j={key:1,class:"gsc-red_card_div"},Bj={key:2,class:"gsc-yellowred_card_div"},xj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Vj={key:5,class:"gsc-goal_card_div_wrapper"},Ij=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Aj={class:"cont-display-gsc"},Oj=["src"],Tj={class:"gsc-cont-info-by-player-row1"},zj={class:"shield-player-cont"},Fj=["src"];function Rj(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",ej,[t.createElementVNode("div",tj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",aj,[t.createElementVNode("div",oj,[t.createElementVNode("div",sj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,nj)])]),t.createElementVNode("div",ij,[t.createElementVNode("div",rj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",lj,[t.createElementVNode("div",cj,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,dj),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",mj,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",pj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",hj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",gj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[yj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",uj,[fj,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",_j,[t.createElementVNode("div",bj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",wj,[t.createElementVNode("div",Cj,[t.createElementVNode("div",kj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",Sj,[t.createElementVNode("div",Ej,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Nj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",$j)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Bj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[xj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Vj,[Ij,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Aj,[t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,Oj)])])]),t.createElementVNode("div",Tj,[t.createElementVNode("div",zj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,Fj)])])])])):t.createCommentVNode("",!0)],64)}const Pj=bt(QL,[["render",Rj],["__scopeId","data-v-57833ebc"]]),Dm="/icn-filter.svg",Ks="/icn-expand-arrow.svg",m_="/backarrow.svg",p_="/nextarrow.svg",Dj="_selectoritem_1dafy_137",Lj="_selectoritem2_1dafy_157",jj="_gscheaderlineup_1dafy_177",vj="_anNoEstn_1dafy_191",Mj="_groupsLeague_1dafy_197",Hj="_jugadores_1dafy_209",Uj="_switchOption_1dafy_219",Gj="_jugadores1_1dafy_239",Wj="_switchOption1_1dafy_249",qj="_switchStatesBig_1dafy_265",Jj="_groupsLeagueParent_1dafy_283",Xj="_imgHomeTeamIcon_1dafy_301",Zj="_imgHomeTeamWrapper_1dafy_313",Yj="_teamContainer_1dafy_337",Kj="_name_1dafy_361",Qj="_homeTeamContainer_1dafy_373",ev="_div_1dafy_393",tv="_scoreContainer_1dafy_401",av="_scoreContainerWrapper_1dafy_421",ov="_teamContainer1_1dafy_447",sv="_awayTeamContainer_1dafy_471",nv="_matchContainer_1dafy_491",iv="_sliderMatchesChild_1dafy_509",rv="_manchesterUnited_1dafy_521",lv="_sliderMatchesItem_1dafy_533",cv="_sliderMatches_1dafy_509",dv="_sortIcon_1dafy_569",mv="_filtros_1dafy_583",pv="_sortParent_1dafy_599",hv="_shapeIcon_1dafy_613",gv="_btnFilter_1dafy_623",yv="_btnFilter1_1dafy_651",uv="_btnFilterParent_1dafy_679",fv="_backArrowIcon_1dafy_695",_v="_teamContainer2_1dafy_707",bv="_homeTeam_1dafy_373",wv="_div4_1dafy_735",Cv="_finalScore_1dafy_745",kv="_manchesterUnited1_1dafy_771",Sv="_scoreContainer1_1dafy_785",Ev="_match_1dafy_491",Nv="_manchesterUnited2_1dafy_821",$v="_btnDetails_1dafy_831",Bv="_matchContainer1_1dafy_851",xv="_goalChild_1dafy_867",Vv="_goal_1dafy_867",Iv="_manchesterUnited3_1dafy_893",Av="_minuteEvent_1dafy_907",Ov="_yellowCard_1dafy_921",Tv="_awayTeamEvents_1dafy_935",zv="_rectangle_1dafy_949",Fv="_homeTeamEvents_1dafy_963",Rv="_totalEvents_1dafy_979",Pv="_headerSeccionAlineaciones1_1dafy_995",Dv="_switchOption3_1dafy_1017",Lv="_switchOption4_1dafy_1041",jv="_switchStatesBig1_1dafy_1061",vv="_manchesterUnited13_1dafy_1075",Mv="_homeTeamContainer1_1dafy_1085",Hv="_scoreContainer2_1dafy_1099",Uv="_matchContainer2_1dafy_1127",Gv="_manchesterUnited14_1dafy_1147",Wv="_sliderMatchesInner_1dafy_1161",qv="_rectangleIcon_1dafy_1181",Jv="_sliderMatches1_1dafy_1201",Xv="_containerData_1dafy_1217",Zv="_headerSeccionAlineaciones2_1dafy_1245",Yv="_headerSeccionAlineaciones_1dafy_995",Kv="_headerSeccionAlineaciones21200_1dafy_1293",Qv="_headerSeccionAlineaciones1540_1dafy_1299",eM="_headerSeccionAlineaciones2540_1dafy_1307",tM={selectoritem:Dj,selectoritem2:Lj,gscheaderlineup:jj,anNoEstn:vj,groupsLeague:Mj,jugadores:Hj,switchOption:Uj,jugadores1:Gj,switchOption1:Wj,switchStatesBig:qj,groupsLeagueParent:Jj,imgHomeTeamIcon:Xj,imgHomeTeamWrapper:Zj,teamContainer:Yj,name:Kj,homeTeamContainer:Qj,div:ev,scoreContainer:tv,scoreContainerWrapper:av,teamContainer1:ov,awayTeamContainer:sv,matchContainer:nv,sliderMatchesChild:iv,manchesterUnited:rv,sliderMatchesItem:lv,sliderMatches:cv,sortIcon:dv,filtros:mv,sortParent:pv,shapeIcon:hv,btnFilter:gv,btnFilter1:yv,btnFilterParent:uv,backArrowIcon:fv,teamContainer2:_v,homeTeam:bv,div4:wv,finalScore:Cv,manchesterUnited1:kv,scoreContainer1:Sv,match:Ev,manchesterUnited2:Nv,btnDetails:$v,matchContainer1:Bv,goalChild:xv,goal:Vv,manchesterUnited3:Iv,minuteEvent:Av,yellowCard:Ov,awayTeamEvents:Tv,rectangle:zv,homeTeamEvents:Fv,totalEvents:Rv,headerSeccionAlineaciones1:Pv,switchOption3:Dv,switchOption4:Lv,switchStatesBig1:jv,manchesterUnited13:vv,homeTeamContainer1:Mv,scoreContainer2:Hv,matchContainer2:Uv,manchesterUnited14:Gv,sliderMatchesInner:Wv,rectangleIcon:qv,sliderMatches1:Jv,containerData:Xv,headerSeccionAlineaciones2:Zv,headerSeccionAlineaciones:Yv,headerSeccionAlineaciones21200:Kv,headerSeccionAlineaciones1540:Qv,headerSeccionAlineaciones2540:eM},aM={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},oM=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),sM=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),nM=["src"],iM=["src"],rM=["src"],lM=["src"],cM=["src"],dM=["src"];function mM(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[oM,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),sM],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,nM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,iM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,rM)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,lM)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,cM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,dM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const pM={$style:tM},hM=bt(aM,[["render",mM],["__cssModules",pM]]),ur=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),gM=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),yM=["value"],uM=ur(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1)),fM={class:"filter-modal__padding"},_M={class:"filter-modal__content-header"},bM=ur(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),wM={class:"filter-modal__content-options"},CM=["onClick"],kM={class:"filter-modal__content-header"},SM=ur(()=>t.createElementVNode("h3",null,"Resultados:",-1)),EM={class:"filter-modal__content-options"},NM=["onClick"],$M=ur(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),BM={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:a}){const o=e;t.useCssVars(w=>({d00c78a6:e.marginModal}));const s=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],i=t.ref(null),r=t.ref(["local","visit"]),c=t.ref(["win","draw","lose"]),h=t.ref(!0),d=t.ref(!0),l=t.ref(!0),m=t.ref(!0),p=t.ref(["local","visit"]),y=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(p.value)),c.value=JSON.parse(JSON.stringify(y.value)),h.value=l.value,d.value=m.value};t.watch(()=>o.itemSelect,w=>{w&&(p.value=w.selectedFilterTeam,y.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=p.value:E=y.value;const x=E.findIndex(V=>V===w);x==-1?E.push(w):b=="team"&&p.value.length==2?E.splice(x,1):(b=="team"&&E.push(w),y.value.length>1&&E.splice(x,1)),l.value=p.value.length==2,m.value=y.value.length==3},f=()=>{p.value=["local","visit"],y.value=["win","draw","lose"],l.value=!0,m.value=!0,a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},_=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},k=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})};return(w,b)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[gM,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,yM),uM])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:i,onFocusout:b[4]||(b[4]=E=>{e.isOpen=!1,k()})},[t.createElementVNode("div",fM,[t.createElementVNode("div",_M,[bM,t.createVNode(pr,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(p.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",wM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"team"),class:t.normalizeClass({active:p.value.includes(E.id)})},t.toDisplayString(E.name),11,CM)),64))]),t.createElementVNode("div",kM,[SM,t.createVNode(pr,{modelValue:m.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>m.value=E),b[3]||(b[3]=E=>E&&(y.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",EM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"player"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,NM)),64))])]),$M,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:f},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:_},"Listo")])],34)],4))}},xM=bt(BM,[["__scopeId","data-v-2118a6cd"]]),VM="/icn-filter1.svg",IM="/icn-expand-arrow1.svg",AM="/icn-filter2.svg",OM="/icn-arrow-expand.svg",TM="_containernofoundsearchrecientes_1gxk5_159",zM="_btndeletefilters_1gxk5_215",FM="_leyenddeleteshow_1gxk5_247",RM="_selectoritem_1gxk5_261",PM="_anNoEstn_1gxk5_279",DM="_groupsLeague_1gxk5_287",LM="_historicas_1gxk5_297",jM="_switchOption_1gxk5_309",vM="_recientes_1gxk5_331",MM="_switchOption1_1gxk5_343",HM="_switchOption2_1gxk5_369",UM="_switchStatesBig_1gxk5_387",GM="_groupsLeagueParent_1gxk5_407",WM="_imgHomeTeamIcon_1gxk5_427",qM="_imgHomeTeamWrapper_1gxk5_441",JM="_teamContainer_1gxk5_467",XM="_name_1gxk5_493",ZM="_homeTeamContainer_1gxk5_507",YM="_div_1gxk5_529",KM="_scoreContainer_1gxk5_539",QM="_scoreContainerWrapper_1gxk5_561",eH="_teamContainer1_1gxk5_587",tH="_awayTeamContainer_1gxk5_613",aH="_matchContainer_1gxk5_635",oH="_sliderMatchesChild_1gxk5_655",sH="_manchesterUnited_1gxk5_669",nH="_sliderMatchesItem_1gxk5_683",iH="_sliderMatches_1gxk5_655",rH="_sortIcon_1gxk5_719",lH="_filtros_1gxk5_735",cH="_sortParent_1gxk5_753",dH="_shapeIcon_1gxk5_769",mH="_btnFilter_1gxk5_781",pH="_btnFilter1_1gxk5_813",hH="_btnFilterParent_1gxk5_843",gH="_backArrowIcon_1gxk5_861",yH="_teamContainer2_1gxk5_875",uH="_homeTeam_1gxk5_507",fH="_div4_1gxk5_907",_H="_finalScore_1gxk5_919",bH="_manchesterUnited1_1gxk5_947",wH="_scoreContainer1_1gxk5_963",CH="_match_1gxk5_635",kH="_manchesterUnited2_1gxk5_997",SH="_btnDetails_1gxk5_1023",EH="_matchContainer1_1gxk5_1047",NH="_goalChild_1gxk5_1065",$H="_goal_1gxk5_1065",BH="_manchesterUnited3_1gxk5_1095",xH="_minuteEvent_1gxk5_1111",VH="_yellowCard_1gxk5_1127",IH="_awayTeamEvents_1gxk5_1143",AH="_rectangle_1gxk5_1159",OH="_homeTeamEvents_1gxk5_1175",TH="_totalEvents_1gxk5_1193",zH="_headerSeccionAlineaciones1_1gxk5_1211",FH="_sliderMatchesInner_1gxk5_1233",RH="_btnFilter2_1gxk5_1247",PH="_btnDetails1_1gxk5_1281",DH="_matchContainer3_1gxk5_1299",LH="_backArrowIcon1_1gxk5_1321",jH="_match1_1gxk5_1335",vH="_headerSeccionAlineaciones2_1gxk5_1347",MH="_jugadores2_1gxk5_1369",HH="_switchOption6_1gxk5_1383",UH="_switchOption7_1gxk5_1405",GH="_switchStatesBig2_1gxk5_1431",WH="_manchesterUnited26_1gxk5_1447",qH="_homeTeamContainer2_1gxk5_1459",JH="_vectorIcon_1gxk5_1475",XH="_teamSwitch_1gxk5_1487",ZH="_matchContainer5_1gxk5_1513",YH="_manchesterUnited27_1gxk5_1535",KH="_sliderMatchesChild1_1gxk5_1551",QH="_sliderMatchesChild2_1gxk5_1573",eU="_sliderMatches2_1gxk5_1595",tU="_filtros2_1gxk5_1615",aU="_btnFilter4_1gxk5_1635",oU="_jornada2_1gxk5_1667",sU="_filterMatchday_1gxk5_1681",nU="_btnDetails2_1gxk5_1703",iU="_filtersContainer_1gxk5_1725",rU="_matchContainer6_1gxk5_1745",lU="_matchDetailContainer_1gxk5_1763",cU="_containerData_1gxk5_1783",dU="_headerSeccionAlineaciones3_1gxk5_1813",mU="_headerSeccionAlineaciones_1gxk5_1211",pU="_headerSeccionAlineaciones31200_1gxk5_1865",hU="_headerSeccionAlineaciones3420_1gxk5_1891",gU="_headerSeccionAlineaciones3880_1gxk5_1917",yU="_headerSeccionAlineaciones3540_1gxk5_1941",uU="_headerSeccionAlineaciones11200_1gxk5_1967",fU="_headerSeccionAlineaciones1420_1gxk5_1995",_U="_headerSeccionAlineaciones1880_1gxk5_2017",bU="_headerSeccionAlineaciones21200_1gxk5_2039",wU="_headerSeccionAlineaciones2420_1gxk5_2067",CU="_headerSeccionAlineaciones2880_1gxk5_2091",kU="_headerSeccionAlineaciones2540_1gxk5_2113",SU={containernofoundsearchrecientes:TM,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:zM,leyenddeleteshow:FM,selectoritem:RM,anNoEstn:PM,groupsLeague:DM,historicas:LM,switchOption:jM,recientes:vM,switchOption1:MM,switchOption2:HM,switchStatesBig:UM,groupsLeagueParent:GM,imgHomeTeamIcon:WM,imgHomeTeamWrapper:qM,teamContainer:JM,name:XM,homeTeamContainer:ZM,div:YM,scoreContainer:KM,scoreContainerWrapper:QM,teamContainer1:eH,awayTeamContainer:tH,matchContainer:aH,sliderMatchesChild:oH,manchesterUnited:sH,sliderMatchesItem:nH,sliderMatches:iH,sortIcon:rH,filtros:lH,sortParent:cH,shapeIcon:dH,btnFilter:mH,btnFilter1:pH,btnFilterParent:hH,backArrowIcon:gH,teamContainer2:yH,homeTeam:uH,div4:fH,finalScore:_H,manchesterUnited1:bH,scoreContainer1:wH,match:CH,manchesterUnited2:kH,btnDetails:SH,matchContainer1:EH,goalChild:NH,goal:$H,manchesterUnited3:BH,minuteEvent:xH,yellowCard:VH,awayTeamEvents:IH,rectangle:AH,homeTeamEvents:OH,totalEvents:TH,headerSeccionAlineaciones1:zH,sliderMatchesInner:FH,btnFilter2:RH,btnDetails1:PH,matchContainer3:DH,backArrowIcon1:LH,match1:jH,headerSeccionAlineaciones2:vH,jugadores2:MH,switchOption6:HH,switchOption7:UH,switchStatesBig2:GH,manchesterUnited26:WH,homeTeamContainer2:qH,vectorIcon:JH,teamSwitch:XH,matchContainer5:ZH,manchesterUnited27:YH,sliderMatchesChild1:KH,sliderMatchesChild2:QH,sliderMatches2:eU,filtros2:tU,btnFilter4:aU,jornada2:oU,filterMatchday:sU,btnDetails2:nU,filtersContainer:iU,matchContainer6:rU,matchDetailContainer:lU,containerData:cU,headerSeccionAlineaciones3:dU,headerSeccionAlineaciones:mU,headerSeccionAlineaciones31200:pU,headerSeccionAlineaciones3420:hU,headerSeccionAlineaciones3880:gU,headerSeccionAlineaciones3540:yU,headerSeccionAlineaciones11200:uU,headerSeccionAlineaciones1420:fU,headerSeccionAlineaciones1880:_U,headerSeccionAlineaciones21200:bU,headerSeccionAlineaciones2420:wU,headerSeccionAlineaciones2880:CU,headerSeccionAlineaciones2540:kU},EU={components:{GSCCarousel:gr,GscSwitchComponent:Zs,GSCDropdown:Pm,GSCFilter:xM,GSCSwitchRadio:Yf,GSCMatchDetails:e_},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(a){throw new Error(a)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},changeDropdown(e){const a=this.gameRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_match_result}),a.push(this.gameRecientes[this.teamSelect][o])):this.gameRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]));else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o])}else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},changeFiltersModal(e){this.filterObject=e,this.openfiltervalue=!1,this.matchFilter()},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},changeCarouselItem(e){e.selectedItem&&(this.getMinutesData(e.selectedItem.minutes),this.$emit("input",e),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.keyUpdate+=1)},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},NU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),$U=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BU=["src"],xU=["src"],VU={class:"selector-tournaments"},IU=["src"],AU=["src"],OU={key:1},TU=t.createElementVNode("br",null,null,-1),zU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),FU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),RU=["src"],PU=["src"],DU={class:"selector-tournaments"},LU=["src"],jU=["src"],vU={key:1},MU=t.createElementVNode("br",null,null,-1),HU=["src"],UU=["src"],GU={class:"selector-tournaments"},WU=["src"],qU=["src"],JU={key:1},XU=t.createElementVNode("br",null,null,-1);function ZU(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),m=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[NU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),$U],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,BU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,xU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[0]||(a[0]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",VU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{"default-item-by-index":2,key:n.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,IU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,AU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",OU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),TU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[2]||(a[2]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[zU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),FU],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,RU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,PU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[3]||(a[3]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:VM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:IM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",DU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[4]||(a[4]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,LU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,jU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",vU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),MU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,HU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,UU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[6]||(a[6]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:AM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:OM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",GU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[7]||(a[7]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,WU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,qU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",JU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),XU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const YU={$style:SU},KU=bt(EU,[["render",ZU],["__cssModules",YU]]),QU="_selectoritem_16hc8_179",eG="_selectoritem2_16hc8_199",tG="_gscheaderlineup_16hc8_219",aG="_anNoEstn_16hc8_233",oG="_groupsLeague_16hc8_239",sG="_jugadores_16hc8_249",nG="_switchOption_16hc8_259",iG="_jugadores1_16hc8_279",rG="_switchOption1_16hc8_289",lG="_switchStatesBig_16hc8_305",cG="_groupsLeagueParent_16hc8_323",dG="_imgHomeTeamIcon_16hc8_341",mG="_imgHomeTeamWrapper_16hc8_353",pG="_teamContainer_16hc8_377",hG="_name_16hc8_401",gG="_homeTeamContainer_16hc8_413",yG="_div_16hc8_433",uG="_titleSession_16hc8_441",fG="_scoreContainer_16hc8_461",_G="_scoreContainerWrapper_16hc8_481",bG="_teamContainer1_16hc8_505",wG="_awayTeamContainer_16hc8_529",CG="_matchContainer_16hc8_549",kG="_sliderMatchesChild_16hc8_567",SG="_manchesterUnited_16hc8_579",EG="_sliderMatchesItem_16hc8_591",NG="_sliderMatches_16hc8_567",$G="_sortIcon_16hc8_627",BG="_filtros_16hc8_641",xG="_sortParent_16hc8_657",VG="_shapeIcon_16hc8_671",IG="_btnFilter_16hc8_681",AG="_btnFilter1_16hc8_709",OG="_btnFilterParent_16hc8_737",TG="_backArrowIcon_16hc8_753",zG="_teamContainer2_16hc8_765",FG="_homeTeam_16hc8_413",RG="_div4_16hc8_793",PG="_finalScore_16hc8_803",DG="_manchesterUnited1_16hc8_829",LG="_scoreContainer1_16hc8_843",jG="_match_16hc8_549",vG="_manchesterUnited2_16hc8_879",MG="_btnDetails_16hc8_889",HG="_matchContainer1_16hc8_909",UG="_goalChild_16hc8_925",GG="_goal_16hc8_925",WG="_manchesterUnited3_16hc8_951",qG="_minuteEvent_16hc8_965",JG="_yellowCard_16hc8_979",XG="_awayTeamEvents_16hc8_993",ZG="_rectangle_16hc8_1007",YG="_homeTeamEvents_16hc8_1021",KG="_totalEvents_16hc8_1037",QG="_headerSeccionAlineaciones1_16hc8_1053",eW="_switchOption3_16hc8_1075",tW="_switchOption4_16hc8_1099",aW="_switchStatesBig1_16hc8_1119",oW="_manchesterUnited13_16hc8_1133",sW="_homeTeamContainer1_16hc8_1143",nW="_scoreContainer2_16hc8_1157",iW="_matchContainer2_16hc8_1185",rW="_manchesterUnited14_16hc8_1205",lW="_sliderMatchesInner_16hc8_1219",cW="_rectangleIcon_16hc8_1239",dW="_sliderMatches1_16hc8_1259",mW="_containerData_16hc8_1275",pW="_headerSeccionAlineaciones2_16hc8_1303",hW="_headerSeccionAlineaciones_16hc8_1053",gW="_headerSeccionAlineaciones21200_16hc8_1351",yW="_headerSeccionAlineaciones1540_16hc8_1357",uW="_headerSeccionAlineaciones2540_16hc8_1365",fW={selectoritem:QU,selectoritem2:eG,gscheaderlineup:tG,anNoEstn:aG,groupsLeague:oG,jugadores:sG,switchOption:nG,jugadores1:iG,switchOption1:rG,switchStatesBig:lG,groupsLeagueParent:cG,imgHomeTeamIcon:dG,imgHomeTeamWrapper:mG,teamContainer:pG,name:hG,homeTeamContainer:gG,div:yG,titleSession:uG,scoreContainer:fG,scoreContainerWrapper:_G,teamContainer1:bG,awayTeamContainer:wG,matchContainer:CG,sliderMatchesChild:kG,manchesterUnited:SG,sliderMatchesItem:EG,sliderMatches:NG,sortIcon:$G,filtros:BG,sortParent:xG,shapeIcon:VG,btnFilter:IG,btnFilter1:AG,btnFilterParent:OG,backArrowIcon:TG,teamContainer2:zG,homeTeam:FG,div4:RG,finalScore:PG,manchesterUnited1:DG,scoreContainer1:LG,match:jG,manchesterUnited2:vG,btnDetails:MG,matchContainer1:HG,goalChild:UG,goal:GG,manchesterUnited3:WG,minuteEvent:qG,yellowCard:JG,awayTeamEvents:XG,rectangle:ZG,homeTeamEvents:YG,totalEvents:KG,headerSeccionAlineaciones1:QG,switchOption3:eW,switchOption4:tW,switchStatesBig1:aW,manchesterUnited13:oW,homeTeamContainer1:sW,scoreContainer2:nW,matchContainer2:iW,manchesterUnited14:rW,sliderMatchesInner:lW,rectangleIcon:cW,sliderMatches1:dW,containerData:mW,headerSeccionAlineaciones2:pW,headerSeccionAlineaciones:hW,headerSeccionAlineaciones21200:gW,headerSeccionAlineaciones1540:yW,headerSeccionAlineaciones2540:uW},_W={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},bW=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),wW=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),CW=["src"],kW=["src"],SW=["src"],EW=["src"],NW=["src"],$W=["src"];function BW(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[bW,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),wW],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,CW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(o.gameInfo.season_name!==void 0?o.gameInfo.season_name+"  |  "+i.remplazarMxJor(o.gameInfo.matchday_abbreviation)+"  |  "+o.gameInfo.home_team_abbreviation+" - "+o.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,kW)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,SW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,EW),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,NW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,$W)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const xW={$style:fW},VW=bt(_W,[["render",BW],["__cssModules",xW]]),IW="_anNoEstn_j98j7_139",AW="_groupsLeague_j98j7_145",OW="_historicas_j98j7_153",TW="_switchOption_j98j7_163",zW="_switchOption1_j98j7_183",FW="_probables_j98j7_203",RW="_switchOption2_j98j7_213",PW="_switchStatesBig_j98j7_237",DW="_groupsLeagueParent_j98j7_255",LW="_imgHomeTeamIcon_j98j7_273",jW="_imgHomeTeamWrapper_j98j7_285",vW="_teamContainer_j98j7_309",MW="_name_j98j7_333",HW="_jor_j98j7_345",UW="_jorParent_j98j7_357",GW="_shapeIcon_j98j7_373",WW="_frameParent_j98j7_383",qW="_manchesterUnited_j98j7_413",JW="_necaxaIcon_j98j7_435",XW="_manchesterUnited1_j98j7_447",ZW="_team_j98j7_309",YW="_homeTeamContainer_j98j7_475",KW="_div1_j98j7_495",QW="_scoreContainer_j98j7_503",eq="_scoreContainerWrapper_j98j7_525",tq="_team1_j98j7_549",aq="_name1_j98j7_563",oq="_teamContainer1_j98j7_577",sq="_awayTeamContainer_j98j7_601",nq="_matchContainer_j98j7_623",iq="_goalChild_j98j7_641",rq="_goal_j98j7_641",lq="_manchesterUnited4_j98j7_667",cq="_minuteEvent_j98j7_681",dq="_yellowCard_j98j7_695",mq="_awayTeamEvents_j98j7_709",pq="_rectangle_j98j7_723",hq="_homeTeamEvents_j98j7_737",gq="_totalEvents_j98j7_753",yq="_headerSeccionAlineaciones1_j98j7_769",uq="_homeTeamContainer1_j98j7_789",fq="_awayTeamContainer1_j98j7_813",_q="_headerSeccionAlineaciones2_j98j7_837",bq="_jugadores_j98j7_857",wq="_switchOption6_j98j7_869",Cq="_switchOption8_j98j7_889",kq="_switchStatesBig2_j98j7_913",Sq="_manchesterUnited28_j98j7_927",Eq="_homeTeamContainer2_j98j7_935",Nq="_matchContainer2_j98j7_949",$q="_manchesterUnited29_j98j7_971",Bq="_sliderMatchesChild_j98j7_985",xq="_sliderMatchesItem_j98j7_1005",Vq="_sliderMatches_j98j7_985",Iq="_jorParent2_j98j7_1045",Aq="_filterMatchday_j98j7_1059",Oq="_necaxaIcon4_j98j7_1081",Tq="_team4_j98j7_1093",zq="_filterMatchdayParent_j98j7_1113",Fq="_filterMatchday1_j98j7_1127",Rq="_teamParent_j98j7_1157",Pq="_filtersContainer_j98j7_1177",Dq="_containerData_j98j7_1195",Lq="_headerSeccionAlineaciones3_j98j7_1223",jq="_headerSeccionAlineaciones_j98j7_769",vq={anNoEstn:IW,groupsLeague:AW,historicas:OW,switchOption:TW,switchOption1:zW,probables:FW,switchOption2:RW,switchStatesBig:PW,groupsLeagueParent:DW,imgHomeTeamIcon:LW,imgHomeTeamWrapper:jW,teamContainer:vW,name:MW,jor:HW,jorParent:UW,shapeIcon:GW,frameParent:WW,manchesterUnited:qW,necaxaIcon:JW,manchesterUnited1:XW,team:ZW,homeTeamContainer:YW,div1:KW,scoreContainer:QW,scoreContainerWrapper:eq,team1:tq,name1:aq,teamContainer1:oq,awayTeamContainer:sq,matchContainer:nq,goalChild:iq,goal:rq,manchesterUnited4:lq,minuteEvent:cq,yellowCard:dq,awayTeamEvents:mq,rectangle:pq,homeTeamEvents:hq,totalEvents:gq,headerSeccionAlineaciones1:yq,homeTeamContainer1:uq,awayTeamContainer1:fq,headerSeccionAlineaciones2:_q,jugadores:bq,switchOption6:wq,switchOption8:Cq,switchStatesBig2:kq,manchesterUnited28:Sq,homeTeamContainer2:Eq,matchContainer2:Nq,manchesterUnited29:$q,sliderMatchesChild:Bq,sliderMatchesItem:xq,sliderMatches:Vq,jorParent2:Iq,filterMatchday:Aq,necaxaIcon4:Oq,team4:Tq,filterMatchdayParent:zq,filterMatchday1:Fq,teamParent:Rq,filtersContainer:Pq,containerData:Dq,headerSeccionAlineaciones3:Lq,headerSeccionAlineaciones:jq},Mq={components:{GSCDropdown:Pm,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(a){throw new Error(a)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const a=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][a])},changeDropdownLocal(e){const a=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][a])}}},Hq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Uq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Gq=["src"],Wq={class:"selector-tournaments"},qq=["src"],Jq=["src"],Xq={class:"selector-tournaments"},Zq=["src"],Yq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Kq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Qq=["src"],eJ={class:"selector-tournaments"},tJ=["src"],aJ=["src"],oJ={class:"selector-tournaments"},sJ=["src"],nJ=["src"],iJ=["src"],rJ={class:"selector-tournaments"},lJ=["src"],cJ=["src"],dJ={class:"selector-tournaments"};function mJ(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Hq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Uq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Gq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Wq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,qq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Xq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Zq)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Yq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Kq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Qq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",eJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,tJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,aJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",oJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,sJ)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,nJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,iJ)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",rJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,lJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,cJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",dJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const pJ={$style:vq},hJ=bt(Mq,[["render",mJ],["__cssModules",pJ]]),h_="/line.png";let g_=null;const gJ={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:Pj,HeaderPlayerHistorico:hM,HeaderPlayerRecientes:KU,HeaderPlayerProbables:hJ,HeaderPlayerPostmatch:VW},data(){return{selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,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"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e){this.selectedOption!=="Postmatch"&&(e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game),e==="Recientes"&&(await this.getLineUp(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][0].id),this.valueUpdateRecientes+=1))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){e&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Postmatch"?await this.getLineUp(e.game_id):this.selectOptMenuheader=="Historicos"&&await this.getLineUp(this.gamesHistoric[0].game))}}},sockets:{new_bench(e,a){if(a[this.home_team_id]){this.playersHome=this.playersHome.filter(function(f){return!f.isbench});for(let f=0;f<a[this.home_team_id].length;f++)if(!a[this.home_team_id][f].isTitular){this.subsTitle=!0;var o=a[this.home_team_id][f].playerName.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=this.dataPlayersHome.findIndex(_=>_.player_id==a[this.home_team_id][f].playerID);this.playersHome.push({played:!1,name:a[this.home_team_id][f].playerName,position:h!=-1?this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.home_team_id][f].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.home_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.home_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}if(a[this.away_team_id]){this.playersAway=this.playersAway.filter(function(f){return!f.isbench});for(let f=0;f<a[this.away_team_id].length;f++)if(!a[this.away_team_id][f].isTitular){this.subsTitle=!0;var d=a[this.away_team_id][f].playerName.split(","),l=d[0].split(" "),m=o[1].trim().split(" "),p="";l.length==2||l.length==1?l[0].length<4?p=l[0]+" "+l[1]:p=l[0]:l.length==3?p=l[0]+" "+l[1]:l.length==4&&(p=l[1]+" "+l[2]+" "+l[3]);var y=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";p=p.replace(",","");var g=y+". "+p,u=this.dataPlayersAway.findIndex(_=>_.player_id==a[this.away_team_id][f].playerID);this.playersAway.push({played:!1,name:a[this.away_team_id][f].playerName,position:u!=-1?this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.away_team_id][f].playerID+".png",nationality:u!=-1&&this.dataPlayersAway[u].nationality?this.dataPlayersAway[u].nationality.substring(0,3):"",imgNationality:u!=-1?this.dataPlayersAway[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.away_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.away_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}},new_lineup(e,a){if(a.team_id==a.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=a.home_team.players;for(let b=0;b<a.data.length;b++){this.home_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","home",0);var o=a.data[b].player_name.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=a.data[b].x,d=h*50/100,l=a.home_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersHome.push({played:!0,name:a.data[b].player_name,position:l!=-1?this.positions[a.home_team.players[l].position_id-1].name:"",position_id:a.home_team.players[l].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:l!=-1&&a.home_team.players[l].nationality?a.home_team.players[l].nationality.substring(0,3):"",imgNationality:l!=-1?a.home_team.players[l].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:d*.9,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-2,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=a.away_team.players;for(let b=0;b<a.data.length;b++){this.away_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","away",0);var m=a.data[b].player_name.split(","),p=m[0].split(" "),y=m[1].trim().split(" "),g="";p.length==2||p.length==1?p[0].length<4?g=p[0]+" "+p[1]:g=p[0]:p.length==3?g=p[0]+" "+p[1]:p.length==4&&(g=p[1]+" "+p[2]+" "+p[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var f=u+". "+g,_=a.data[b].x,k=100-(100-_)*50/100;k=k*.9;var w=a.away_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersAway.push({played:!0,name:a.data[b].player_name,position:w!=-1?this.positions[a.away_team.players[w].position_id-1].name:"",position_id:a.away_team.players[w].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:w!=-1&&a.away_team.players[w].nationality?a.away_team.players[w].nationality.substring(0,3):"",imgNationality:w!=-1?a.away_team.players[w].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:f,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:k+2,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-7,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersAway.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}},update_mxm(e,a){var o=-1,s=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(B=>B.idredcards==a.play_id),i=this.playersHome.findIndex(B=>B.idyellowcards==a.play_id),r=this.playersHome.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersHome.length;B++){var c=this.playersHome[B].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,s=B)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,s),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,s),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,s),o!=-1&&this.resetPlayUpdate("Goals","Home",o,s)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(B=>B.idredcards==a.play_id),d=this.playersAway.findIndex(B=>B.idyellowcards==a.play_id),l=this.playersAway.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersAway.length;B++){var m=this.playersAway[B].idsGoals.findIndex($=>$==a.play_id);m!=-1&&(o=m,s=B)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,s),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,s),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,s),o!=-1&&this.resetPlayUpdate("Goals","Away",o,s)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=a.player_id.split("@"),y=this.playersHome.findIndex(B=>B.playerId==p[0]),g=this.playersHome.findIndex(B=>B.playerId==p[1]);y!=-1&&(this.playersHome[y].idSubstitution=a.play_id,this.playersHome[y].substitutionOut=!0,this.playersHome[y].substitutionMin=a.minute,this.playersHome[y].substitutionDataID=a.team_id+"@"+a.player_id),g!=-1&&(this.playersHome[g].idSubstitution=a.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=a.minute,this.playersHome[g].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var u=a.player_id.split("@"),f=this.playersAway.findIndex(B=>B.playerId==u[0]),_=this.playersAway.findIndex(B=>B.playerId==u[1]);y!=-1&&(this.playersAway[f].idSubstitution=a.play_id,this.playersAway[f].substitutionOut=!0,this.playersAway[f].substitutionMin=a.minute,this.playersAway[f].substitutionDataID=a.team_id+"@"+a.player_id),_!=-1&&(this.playersAway[_].idSubstitution=a.play_id,this.playersAway[_].substitutionIn=!0,this.playersAway[_].substitutionMin=a.minute,this.playersAway[_].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var k=this.playersHome.findIndex(B=>B.playerId==a.player_id);k!=-1&&(this.playersHome[k].goals+=1,this.playersHome[k].goalsMin.push(a.minute),this.playersHome[k].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(B=>B.playerId==a.player_id);w!=-1&&(this.playersAway[w].goals+=1,this.playersAway[w].goalsMin.push(a.minute),this.playersAway[w].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var b=this.playersHome.findIndex(B=>B.playerId==a.player_id);b!=-1&&(this.playersHome[b].yellowcards+=1,this.playersHome[b].yellowcardsMin=a.minute,this.playersHome[b].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var E=this.playersAway.findIndex(B=>B.playerId==a.player_id);E!=-1&&(this.playersAway[E].yellowcards+=1,this.playersAway[E].yellowcardsMin=a.minute,this.playersAway[E].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var x=this.playersHome.findIndex(B=>B.playerId==a.player_id);x!=-1&&(this.playersHome[x].redcards+=1,this.playersHome[x].redcardsMin=a.minute,this.playersHome[x].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(B=>B.playerId==a.player_id);V!=-1&&(this.playersAway[V].redcards+=1,this.playersAway[V].redcardsMin=a.minute,this.playersAway[V].idredcards=a.play_id)}}}},delete_mxm(e,a){if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++)this.playersHome[o].idSubstitution==a.play_id&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionIn=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idSubstitution==a.play_id&&(this.playersAway[o].substitutionOut=!1,this.playersAway[o].substitutionIn=!1,this.playersAway[o].substitutionMin="",this.playersAway[o].substitutionDataID="",this.playersAway[o].idSubstitution=0);if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++){const s=this.playersHome[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(s,1),this.playersHome[o].idsGoals.splice(s,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const s=this.playersAway[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(s,1),this.playersAway[o].idsGoals.splice(s,1))}if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idyellowcards==a.play_id&&(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idyellowcards==a.play_id&&(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0);if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idredcards==a.play_id&&(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idredcards==a.play_id&&(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)},new_mxm(e,a){if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var o=a.player_id.split("@"),s=this.playersHome.findIndex(g=>g.playerId==o[0]),n=this.playersHome.findIndex(g=>g.playerId==o[1]);s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].substitutionDataID=a.team_id+"@"+a.player_id),n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var i=a.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==i[0]),c=this.playersAway.findIndex(g=>g.playerId==i[1]);s!=-1&&(this.playersAway[r].idSubstitution=a.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=a.minute,this.playersAway[r].substitutionDataID=a.team_id+"@"+a.player_id),c!=-1&&(this.playersAway[c].idSubstitution=a.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=a.minute,this.playersAway[c].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==a.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(a.minute),this.playersHome[h].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(g=>g.playerId==a.player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(a.minute),this.playersAway[d].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(g=>g.playerId==a.player_id);l!=-1&&(this.playersHome[l].yellowcards+=1,this.playersHome[l].yellowcardsMin=a.minute,this.playersHome[l].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var m=this.playersAway.findIndex(g=>g.playerId==a.player_id);m!=-1&&(this.playersAway[m].yellowcards+=1,this.playersAway[m].yellowcardsMin=a.minute,this.playersAway[m].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=a.minute,this.playersHome[p].idredcards=a.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=a.minute,this.playersAway[y].idredcards=a.play_id)}}}}},methods:{async getLineUpProbablesHome3D(e){try{const w=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!w||!w.data)throw new Error("There is not lineups for this game.");if(w.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.home_team.players,w.data.home_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+"_g.svg","home",0);var a=w.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=w.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,d=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.home_team.players[d].position_id-1].name,position_id:w.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.home_team.players[d].nationality?w.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:w.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:w.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.home_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.home_team.bench){for(let b=0;b<w.data.home_team.bench.length;b++){this.subsTitle=!0;var l=w.data.home_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.home_team.bench[b].playerName,position:f!=-1?this.positions[w.data.home_team.players[f].position_id-1].name:"",position_id:w.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.home_team.players[f].nationality?w.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.home_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.home_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}if(w.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.away_team.players,w.data.away_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+"_g.svg","home",0);var a=w.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,_=w.data.away_team.starting_lineup[0].lineup[b].x;_=Math.abs(_-100);var h=_*50/100,k=w.data.away_team.starting_lineup[0].lineup[b].y;k=Math.abs(k-100);var d=w.data.away_team.players.findIndex(F=>F.player_id==w.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.away_team.players[d].position_id-1].name,position_id:w.data.away_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.away_team.players[d].nationality?w.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:k-20,positionY:h*.9,positionXOrigin:w.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.away_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.away_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.away_team.bench){for(let b=0;b<w.data.away_team.bench.length;b++){this.subsTitle=!0;var l=w.data.away_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.away_team.players.findIndex(I=>I.player_id==w.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.away_team.bench[b].playerName,position:f!=-1?this.positions[w.data.away_team.players[f].position_id-1].name:"",position_id:w.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.away_team.players[f].nationality?w.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.away_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.away_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}await this.getMXM(e)}catch(w){return Promise.reject(w)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const _=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players;for(let k=0;k<_.data.home_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var a=_.data.home_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.home_team.starting_lineup[0].lineup[k].x;c=Math.abs(c-100);var h=100-(100-c)*50/100;h=h*.9;var d=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.home_team.players[d].position_id-1].name,position_id:_.data.home_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.home_team.players[d].nationality?_.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.home_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.home_team.bench){for(let k=0;k<_.data.home_team.bench.length;k++){this.subsTitle=!0;var l=_.data.home_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[k].playerName,position:f!=-1?this.positions[_.data.home_team.players[f].position_id-1].name:"",position_id:_.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.home_team.players[f].nationality?_.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.away_team.players;for(let k=0;k<_.data.away_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var a=_.data.away_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.away_team.starting_lineup[0].lineup[k].x,h=100-(100-c)*50/100;h=h*.9;var d=_.data.away_team.players.findIndex(I=>I.player_id==_.data.away_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.away_team.players[d].position_id-1].name,position_id:_.data.away_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.away_team.players[d].nationality?_.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.away_team.bench){for(let k=0;k<_.data.away_team.bench.length;k++){this.subsTitle=!0;var l=_.data.away_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.away_team.players.findIndex(z=>z.player_id==_.data.away_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[k].playerName,position:f!=-1?this.positions[_.data.away_team.players[f].position_id-1].name:"",position_id:_.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.away_team.players[f].nationality?_.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}await this.getMXM(e)}catch(_){return Promise.reject(_)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.homeTeam.acronym=this.homeTeamAbrev,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.visitingTeam.acronym=this.awayTeamAbrev,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),this.homeTeam.acronym=e.ht_abrev,this.visitingTeam.acronym=e.at_abrev,await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.homeTeam.acronym=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronym=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,home_team_abbreviation:a.data.games_historic[o].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[o].away_team_abbreviation,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[o].matchday_abbreviation),id:a.data.away_team_games_recent[o].matchday_id})}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.homeTeamAbrev=a.data.teams[0].acronym,this.awayTeamAbrev=a.data.teams[1].acronym,this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)g_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),g_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<this.playersHome.length;g++)this.playersHome[g].goalsMin=[],this.playersHome[g].idsGoals=[];for(let g=0;g<this.playersAway.length;g++)this.playersAway[g].goalsMin=[],this.playersAway[g].idsGoals=[];for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineUp(e){if(e!=null&&(Jf(),!this.playersHome.length&&!this.playersHome.length))try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.cleaneData(),this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}await this.getMXM(e)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},yJ={class:"size-browser-class"},uJ={class:"lineup-players is-centered"},fJ={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},_J={class:"modal-substitutions__substitution-container"},bJ={class:"modal-substitutions__substitution-container__header"},wJ={style:{"margin-left":"32px"}},CJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),kJ=[CJ],SJ={class:"modal-substitutions__substitution-container__players-container"},EJ={class:"substitution-player-data-container"},NJ={class:"substitution-player-data-container__img-player"},$J=["src"],BJ={class:"substitution-player-data-container__img-player__team"},xJ=["src"],VJ={class:"substitution-player-data-container__name-player"},IJ={class:"substitution-player-data-container__position-player"},AJ={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},OJ={key:0,class:"substitution-player-data-container__shirt-player__circle"},TJ={key:1},zJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),FJ=[zJ],RJ={class:"substitution-player-data-container__substitution-player"},PJ={class:"substitution-indicator nomargin"},DJ=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),LJ={class:"substitution-player-data-container__center"},jJ=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),vJ={class:"substitution-player-data-container__minute"},MJ={class:"substitution-player-data-container"},HJ={class:"substitution-player-data-container__img-player"},UJ=["src"],GJ={class:"substitution-player-data-container__img-player__team"},WJ=["src"],qJ={class:"substitution-player-data-container__name-player"},JJ={class:"substitution-player-data-container__position-player"},XJ={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},ZJ={key:0},YJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),KJ=[YJ],QJ={key:1,class:"substitution-player-data-container__shirt-player__circle"},eX={class:"substitution-player-data-container__substitution-player"},tX={class:"substitution-indicator nomargin"},aX=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),oX=["onClick"],sX=t.createElementVNode("img",{src:h_},null,-1),nX=[sX],iX=["onClick"],rX=t.createElementVNode("img",{src:h_},null,-1),lX=[rX],cX={key:0,class:"cont-lineup-gsc-componente"},dX={class:"shield-team-cont homecolor"},mX=["src"],pX={class:"shield-team-cont awaycolor"},hX=["src"],gX={key:0,class:"header-lineup-shield-team home"},yX={class:"shield-team-cont homecolor"},uX=["src"],fX={class:"header-lineup-shield-team-wrapper"},_X={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},bX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),wX={key:0,class:"header-lineup-shield-team away"},CX={class:"shield-team-cont awaycolor"},kX=["src"],SX={class:"header-lineup-shield-team-wrapper"},EX={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},NX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),$X=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),BX=[$X],xX=t.createElementVNode("br",null,null,-1);function VX(e,a,o,s,n,i){const r=t.resolveComponent("HeaderPlayerPostmatch"),c=t.resolveComponent("HeaderPlayerHistorico"),h=t.resolveComponent("HeaderPlayerRecientes"),d=t.resolveComponent("HeaderPlayerProbables"),l=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",yJ,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",uJ,[t.createElementVNode("div",fJ,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric,"game-recientes":Object.keys(n.gameInfoheader).length>0?n.gamesRecientes[n.gameInfoheader.home_team_abbreviation].length+n.gamesRecientes[n.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{key:1,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,"player-home":n.playersHome,"player-away":n.playersAway,"matchdays-default":n.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":n.matchdaysPerTeam,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",n.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",_J,[t.createElementVNode("div",bJ,[t.createElementVNode("span",wJ,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=m=>i.closeChange())},kJ)])]),t.createElementVNode("div",SJ,[t.createElementVNode("div",EJ,[t.createElementVNode("div",NJ,[n.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,$J)):t.createCommentVNode("",!0),t.createElementVNode("div",BJ,[n.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,xJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",VJ,t.toDisplayString(n.substitutionModal.in.name),1),t.createElementVNode("div",IJ,t.toDisplayString(n.substitutionModal.in.position),1),t.createElementVNode("div",AJ,[n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",OJ,t.toDisplayString(n.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",TJ,FJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",RJ,[t.createElementVNode("template",null,[t.createElementVNode("div",PJ,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),DJ])])])]),t.createElementVNode("div",LJ,[jJ,t.createElementVNode("div",vJ,t.toDisplayString(n.substitutionModal.min)+"'",1)]),t.createElementVNode("div",MJ,[t.createElementVNode("div",HJ,[n.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,UJ)):t.createCommentVNode("",!0),t.createElementVNode("div",GJ,[n.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,WJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",qJ,t.toDisplayString(n.substitutionModal.out.name),1),t.createElementVNode("div",JJ,t.toDisplayString(n.substitutionModal.out.position),1),t.createElementVNode("div",XJ,[n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",ZJ,KJ)):t.createCommentVNode("",!0),n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",QJ,t.toDisplayString(n.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",eX,[t.createElementVNode("template",null,[t.createElementVNode("div",tX,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),aX])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_home"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="home"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},nX,10,oX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_away"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="away"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},lX,10,iX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cX,[t.createElementVNode("div",{class:t.normalizeClass(i.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=m=>i.viewLineupTeam("home"))},[t.createElementVNode("div",dX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,mX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=m=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",pX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,hX)):t.createCommentVNode("",!0)])],4)],2),n.teamActive=="home"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",gX,[t.createElementVNode("div",yX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,uX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",fX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",_X,[bX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),n.teamActive=="away"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wX,[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",CX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kX)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",SX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EX,[NX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},BX,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),xX,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const IX=bt(gJ,[["render",VX]]),AX={components:{GSCLineups2D:KL,GSCLineups3D:IX},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{}};function OX(e,a,o,s,n,i){const r=t.resolveComponent("GSCLineups2D"),c=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[o.type=="2D"?(t.openBlock(),t.createBlock(r,{key:0,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0),o.type=="3D"?(t.openBlock(),t.createBlock(c,{key:1,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0)])}const y_=bt(AX,[["render",OX]]),AMe="",OMe="",TX={class:"alineaciones-container"},zX=Fe({__name:"GSCLineupsMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,o=t.ref(0);return t.watch(()=>a.game,s=>{o.value=s.gameId},{deep:!0,immediate:!0}),(s,n)=>(t.openBlock(),t.createElementBlock("div",TX,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-1db549f2"]]);function u_(e,a){return function(){return e.apply(a,arguments)}}const{toString:FX}=Object.prototype,{getPrototypeOf:Lm}=Object,fr=(e=>a=>{const o=FX.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),sa=e=>(e=e.toLowerCase(),a=>fr(a)===e),_r=e=>a=>typeof a===e,{isArray:jo}=Array,Qs=_r("undefined");function RX(e){return e!==null&&!Qs(e)&&e.constructor!==null&&!Qs(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f_=sa("ArrayBuffer");function PX(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&f_(e.buffer),a}const DX=_r("string"),Vt=_r("function"),__=_r("number"),br=e=>e!==null&&typeof e=="object",LX=e=>e===!0||e===!1,wr=e=>{if(fr(e)!=="object")return!1;const a=Lm(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jX=sa("Date"),vX=sa("File"),MX=sa("Blob"),HX=sa("FileList"),UX=e=>br(e)&&Vt(e.pipe),GX=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((a=fr(e))==="formdata"||a==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},WX=sa("URLSearchParams"),qX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function en(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),jo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function b_(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const w_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),C_=e=>!Qs(e)&&e!==w_;function jm(){const{caseless:e}=C_(this)&&this||{},a={},o=(s,n)=>{const i=e&&b_(a,n)||n;wr(a[i])&&wr(s)?a[i]=jm(a[i],s):wr(s)?a[i]=jm({},s):jo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&en(arguments[s],o);return a}const JX=(e,a,o,{allOwnKeys:s}={})=>(en(a,(n,i)=>{o&&Vt(n)?e[i]=u_(n,o):e[i]=n},{allOwnKeys:s}),e),XX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZX=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},YX=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Lm(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},KX=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},QX=e=>{if(!e)return null;if(jo(e))return e;let a=e.length;if(!__(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},eZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Lm(Uint8Array)),tZ=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},aZ=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},oZ=sa("HTMLFormElement"),sZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),k_=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),nZ=sa("RegExp"),S_=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};en(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},iZ=e=>{S_(e,(a,o)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Vt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},rZ=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return jo(e)?s(e):s(String(e).split(a)),o},lZ=()=>{},cZ=(e,a)=>(e=+e,Number.isFinite(e)?e:a),vm="abcdefghijklmnopqrstuvwxyz",E_="0123456789",N_={DIGIT:E_,ALPHA:vm,ALPHA_DIGIT:vm+vm.toUpperCase()+E_},dZ=(e=16,a=N_.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function mZ(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pZ=e=>{const a=new Array(10),o=(s,n)=>{if(br(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=jo(s)?[]:{};return en(s,(r,c)=>{const h=o(r,n+1);!Qs(h)&&(i[c]=h)}),a[n]=void 0,i}}return s};return o(e,0)},hZ=sa("AsyncFunction"),gZ=e=>e&&(br(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),v={isArray:jo,isArrayBuffer:f_,isBuffer:RX,isFormData:GX,isArrayBufferView:PX,isString:DX,isNumber:__,isBoolean:LX,isObject:br,isPlainObject:wr,isUndefined:Qs,isDate:jX,isFile:vX,isBlob:MX,isRegExp:nZ,isFunction:Vt,isStream:UX,isURLSearchParams:WX,isTypedArray:eZ,isFileList:HX,forEach:en,merge:jm,extend:JX,trim:qX,stripBOM:XX,inherits:ZX,toFlatObject:YX,kindOf:fr,kindOfTest:sa,endsWith:KX,toArray:QX,forEachEntry:tZ,matchAll:aZ,isHTMLForm:oZ,hasOwnProperty:k_,hasOwnProp:k_,reduceDescriptors:S_,freezeMethods:iZ,toObjectSet:rZ,toCamelCase:sZ,noop:lZ,toFiniteNumber:cZ,findKey:b_,global:w_,isContextDefined:C_,ALPHABET:N_,generateString:dZ,isSpecCompliantForm:mZ,toJSONObject:pZ,isAsyncFn:hZ,isThenable:gZ};function fe(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}v.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $_=fe.prototype,B_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B_[e]={value:e}}),Object.defineProperties(fe,B_),Object.defineProperty($_,"isAxiosError",{value:!0}),fe.from=(e,a,o,s,n,i)=>{const r=Object.create($_);return v.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),fe.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const yZ=null;function Mm(e){return v.isPlainObject(e)||v.isArray(e)}function x_(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function V_(e,a,o){return e?e.concat(a).map(function(s,n){return s=x_(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function uZ(e){return v.isArray(e)&&!e.some(Mm)}const fZ=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function Cr(e,a,o){if(!v.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=v.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!v.isUndefined(g[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(a);if(!v.isFunction(n))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!c&&v.isBlob(y))throw new fe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,u){let f=y;if(y&&!u&&typeof y=="object"){if(v.endsWith(g,"{}"))g=s?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&uZ(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(f=v.toArray(y)))return g=x_(g),f.forEach(function(_,k){!(v.isUndefined(_)||_===null)&&a.append(r===!0?V_([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Mm(y)?!0:(a.append(V_(u,g,i),h(y)),!1)}const l=[],m=Object.assign(fZ,{defaultVisitor:d,convertValue:h,isVisitable:Mm});function p(y,g){if(!v.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(y),v.forEach(y,function(u,f){(!(v.isUndefined(u)||u===null)&&n.call(a,u,v.isString(f)?f.trim():f,g,m))===!0&&p(u,g?g.concat(f):[f])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return p(e),a}function I_(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Hm(e,a){this._pairs=[],e&&Cr(e,this,a)}const A_=Hm.prototype;A_.append=function(e,a){this._pairs.push([e,a])},A_.toString=function(e){const a=e?function(o){return e.call(this,o,I_)}:I_;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function _Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O_(e,a,o){if(!a)return e;const s=o&&o.encode||_Z,n=o&&o.serialize;let i;if(n?i=n(a,o):i=v.isURLSearchParams(a)?a.toString():new Hm(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const T_=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){v.forEach(this.handlers,function(o){o!==null&&a(o)})}},z_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bZ=typeof URLSearchParams<"u"?URLSearchParams:Hm,wZ=typeof FormData<"u"?FormData:null,CZ=typeof Blob<"u"?Blob:null,kZ={isBrowser:!0,classes:{URLSearchParams:bZ,FormData:wZ,Blob:CZ},protocols:["http","https","file","blob","url","data"]},F_=typeof window<"u"&&typeof document<"u",SZ=(e=>F_&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F_,hasStandardBrowserEnv:SZ,hasStandardBrowserWebWorkerEnv:EZ},Symbol.toStringTag,{value:"Module"})),na={...NZ,...kZ};function $Z(e,a){return Cr(e,new na.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return na.isNode&&v.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function BZ(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xZ(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function R_(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&v.isArray(n)?n.length:r,h?(v.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!v.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&v.isArray(n[r])&&(n[r]=xZ(n[r])),!c)}if(v.isFormData(e)&&v.isFunction(e.entries)){const o={};return v.forEachEntry(e,(s,n)=>{a(BZ(s),n,o,0)}),o}return null}function VZ(e,a,o){if(v.isString(e))try{return(a||JSON.parse)(e),v.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Um={transitional:z_,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=v.isObject(e);if(n&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return s?JSON.stringify(R_(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return $Z(e,this.formSerializer).toString();if((i=v.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Cr(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),VZ(e)):e}],transformResponse:[function(e){const a=this.transitional||Um.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&v.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?fe.from(i,fe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Um.headers[e]={}});const Gm=Um,IZ=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AZ=e=>{const a={};let o,s,n;return e&&e.split(`
44
44
  `).forEach(function(i){n=i.indexOf(":"),o=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!o||a[o]&&IZ[o])&&(o==="set-cookie"?a[o]?a[o].push(s):a[o]=[s]:a[o]=a[o]?a[o]+", "+s:s)}),a},P_=Symbol("internals");function tn(e){return e&&String(e).trim().toLowerCase()}function kr(e){return e===!1||e==null?e:v.isArray(e)?e.map(kr):String(e)}function OZ(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=o.exec(e);)a[s[1]]=s[2];return a}const TZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wm(e,a,o,s,n){if(v.isFunction(s))return s.call(this,a,o);if(n&&(a=o),!!v.isString(a)){if(v.isString(s))return a.indexOf(s)!==-1;if(v.isRegExp(s))return s.test(a)}}function zZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,s)=>o.toUpperCase()+s)}function FZ(e,a){const o=v.toCamelCase(" "+a);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+o,{value:function(n,i,r){return this[s].call(this,a,n,i,r)},configurable:!0})})}let Sr=class{constructor(a){a&&this.set(a)}set(a,o,s){const n=this;function i(c,h,d){const l=tn(h);if(!l)throw new Error("header name must be a non-empty string");const m=v.findKey(n,l);(!m||n[m]===void 0||d===!0||d===void 0&&n[m]!==!1)&&(n[m||h]=kr(c))}const r=(c,h)=>v.forEach(c,(d,l)=>i(d,l,h));return v.isPlainObject(a)||a instanceof this.constructor?r(a,o):v.isString(a)&&(a=a.trim())&&!TZ(a)?r(AZ(a),o):a!=null&&i(o,a,s),this}get(a,o){if(a=tn(a),a){const s=v.findKey(this,a);if(s){const n=this[s];if(!o)return n;if(o===!0)return OZ(n);if(v.isFunction(o))return o.call(this,n,s);if(v.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=tn(a),a){const s=v.findKey(this,a);return!!(s&&this[s]!==void 0&&(!o||Wm(this,this[s],s,o)))}return!1}delete(a,o){const s=this;let n=!1;function i(r){if(r=tn(r),r){const c=v.findKey(s,r);c&&(!o||Wm(s,s[c],c,o))&&(delete s[c],n=!0)}}return v.isArray(a)?a.forEach(i):i(a),n}clear(a){const o=Object.keys(this);let s=o.length,n=!1;for(;s--;){const i=o[s];(!a||Wm(this,this[i],i,a,!0))&&(delete this[i],n=!0)}return n}normalize(a){const o=this,s={};return v.forEach(this,(n,i)=>{const r=v.findKey(s,i);if(r){o[r]=kr(n),delete o[i];return}const c=a?zZ(i):String(i).trim();c!==i&&delete o[i],o[c]=kr(n),s[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return v.forEach(this,(s,n)=>{s!=null&&s!==!1&&(o[n]=a&&v.isArray(s)?s.join(", "):s)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
45
45
  `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const o=(this[P_]=this[P_]={accessors:{}}).accessors,s=this.prototype;function n(i){const r=tn(i);o[r]||(FZ(s,i),o[r]=!0)}return v.isArray(a)?a.forEach(n):n(a),this}};Sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),v.reduceDescriptors(Sr.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),v.freezeMethods(Sr);const Oa=Sr;function qm(e,a){const o=this||Gm,s=a||o,n=Oa.from(s.headers);let i=s.data;return v.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function D_(e){return!!(e&&e.__CANCEL__)}function an(e,a,o){fe.call(this,e??"canceled",fe.ERR_CANCELED,a,o),this.name="CanceledError"}v.inherits(an,fe,{__CANCEL__:!0});function RZ(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new fe("Request failed with status code "+o.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const PZ=na.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];v.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),v.isString(s)&&r.push("path="+s),v.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function DZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LZ(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function L_(e,a){return e&&!DZ(a)?LZ(e,a):a}const jZ=na.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=v.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function vZ(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function MZ(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const h=Date.now(),d=s[i];r||(r=h),o[n]=c,s[n]=h;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),h-r<a)return;const p=d&&h-d;return p?Math.round(m*1e3/p):void 0}}function j_(e,a){let o=0;const s=MZ(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,h=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:h||void 0,estimated:h&&r&&d?(r-i)/h:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const HZ=typeof XMLHttpRequest<"u",UZ=HZ&&function(e){return new Promise(function(a,o){let s=e.data;const n=Oa.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(v.isFormData(s)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[g,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([g||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(g+":"+u))}const m=L_(e.baseURL,e.url);l.open(e.method.toUpperCase(),O_(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const g=Oa.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:e,request:l};RZ(function(f){a(f),h()},function(f){o(f),h()},u),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){l&&(o(new fe("Request aborted",fe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new fe("Network Error",fe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||z_;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new fe(g,u.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,l)),l=null},na.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(e)),r||r!==!1&&jZ(m))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&PZ.read(e.xsrfCookieName);g&&n.set(e.xsrfHeaderName,g)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&v.forEach(n.toJSON(),function(g,u){l.setRequestHeader(u,g)}),v.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",j_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",j_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=g=>{l&&(o(!g||g.type?new an(null,e,l):g),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=vZ(m);if(y&&na.protocols.indexOf(y)===-1){o(new fe("Unsupported protocol "+y+":",fe.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Jm={http:yZ,xhr:UZ};v.forEach(Jm,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const v_=e=>`- ${e}`,GZ=e=>v.isFunction(e)||e===null||e===!1,M_={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!GZ(o)&&(s=Jm[(r=String(o)).toLowerCase()],s===void 0))throw new fe(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,h])=>`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
46
46
  `+i.map(v_).join(`
@@ -118,4 +118,4 @@
118
118
  * vuex v4.0.2
119
119
  * (c) 2021 Evan You
120
120
  * @license MIT
121
- */var zDe="store";function _o(e,a){Object.keys(e).forEach(function(o){return a(e[o],o)})}function Y6(e){return e!==null&&typeof e=="object"}function FDe(e){return e&&typeof e.then=="function"}function Xt(e,a){if(!e)throw new Error("[vuex] "+a)}function RDe(e,a){return function(){return e(a)}}function K6(e,a,o){return a.indexOf(e)<0&&(o&&o.prepend?a.unshift(e):a.push(e)),function(){var s=a.indexOf(e);s>-1&&a.splice(s,1)}}function Q6(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;Gc(e,o,[],e._modules.root,!0),i0(e,o,a)}function i0(e,a,o){var s=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,i={};_o(n,function(r,c){i[c]=RDe(r,e),Object.defineProperty(e.getters,c,{get:function(){return i[c]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&vDe(e),s&&o&&e._withCommit(function(){s.data=null})}function Gc(e,a,o,s,n){var i=!o.length,r=e._modules.getNamespace(o);if(s.namespaced&&(e._modulesNamespaceMap[r]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+r+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[r]=s),!i&&!n){var c=r0(a,o.slice(0,-1)),h=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&h in c&&console.warn('[vuex] state field "'+h+'" was overridden by a module with the same name at "'+o.join(".")+'"'),c[h]=s.state})}var d=s.context=PDe(e,r,o);s.forEachMutation(function(l,m){var p=r+m;DDe(e,p,l,d)}),s.forEachAction(function(l,m){var p=l.root?m:r+m,y=l.handler||l;LDe(e,p,y,d)}),s.forEachGetter(function(l,m){var p=r+m;jDe(e,p,l,d)}),s.forEachChild(function(l,m){Gc(e,a,o.concat(m),l,n)})}function PDe(e,a,o){var s=a==="",n={dispatch:s?e.dispatch:function(i,r,c){var h=Wc(i,r,c),d=h.payload,l=h.options,m=h.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+h.type+", global type: "+m);return}return e.dispatch(m,d)},commit:s?e.commit:function(i,r,c){var h=Wc(i,r,c),d=h.payload,l=h.options,m=h.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+h.type+", global type: "+m);return}e.commit(m,d,l)}};return Object.defineProperties(n,{getters:{get:s?function(){return e.getters}:function(){return ek(e,a)}},state:{get:function(){return r0(e.state,o)}}}),n}function ek(e,a){if(!e._makeLocalGettersCache[a]){var o={},s=a.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,s)===a){var i=n.slice(s);Object.defineProperty(o,i,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[a]=o}return e._makeLocalGettersCache[a]}function DDe(e,a,o,s){var n=e._mutations[a]||(e._mutations[a]=[]);n.push(function(i){o.call(e,s.state,i)})}function LDe(e,a,o,s){var n=e._actions[a]||(e._actions[a]=[]);n.push(function(i){var r=o.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return FDe(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):r})}function jDe(e,a,o,s){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(n){return o(s.state,s.getters,n.state,n.getters)}}function vDe(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Xt(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function r0(e,a){return a.reduce(function(o,s){return o[s]},e)}function Wc(e,a,o){return Y6(e)&&e.type&&(o=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&Xt(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:o}}var MDe="vuex bindings",tk="vuex:mutations",l0="vuex:actions",ks="vuex",HDe=0;function UDe(e,a){TDe({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[MDe]},function(o){o.addTimelineLayer({id:tk,label:"Vuex Mutations",color:ak}),o.addTimelineLayer({id:l0,label:"Vuex Actions",color:ak}),o.addInspector({id:ks,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===ks)if(s.filter){var n=[];ik(n,a._modules.root,s.filter,""),s.rootNodes=n}else s.rootNodes=[nk(a._modules.root,"")]}),o.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId;ek(a,n),s.state=qDe(XDe(a._modules,n),n==="root"?a.getters:a._makeLocalGettersCache,n)}}),o.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId,i=s.path;n!=="root"&&(i=n.split("/").filter(Boolean).concat(i)),a._withCommit(function(){s.set(a._state.data,i,s.state.value)})}}),a.subscribe(function(s,n){var i={};s.payload&&(i.payload=s.payload),i.state=n,o.notifyComponentUpdate(),o.sendInspectorTree(ks),o.sendInspectorState(ks),o.addTimelineEvent({layerId:tk,event:{time:Date.now(),title:s.type,data:i}})}),a.subscribeAction({before:function(s,n){var i={};s.payload&&(i.payload=s.payload),s._id=HDe++,s._time=Date.now(),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,n){var i={},r=Date.now()-s._time;i.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},s.payload&&(i.payload=s.payload),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var ak=8702998,GDe=6710886,WDe=16777215,ok={label:"namespaced",textColor:WDe,backgroundColor:GDe};function sk(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function nk(e,a){return{id:a||"root",label:sk(a),tags:e.namespaced?[ok]:[],children:Object.keys(e._children).map(function(o){return nk(e._children[o],a+o+"/")})}}function ik(e,a,o,s){s.includes(o)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:a.namespaced?[ok]:[]}),Object.keys(a._children).forEach(function(n){ik(e,a._children[n],o,s+n+"/")})}function qDe(e,a,o){a=o==="root"?a:a[o];var s=Object.keys(a),n={state:Object.keys(e.state).map(function(r){return{key:r,editable:!0,value:e.state[r]}})};if(s.length){var i=JDe(a);n.getters=Object.keys(i).map(function(r){return{key:r.endsWith("/")?sk(r):r,editable:!1,value:c0(function(){return i[r]})}})}return n}function JDe(e){var a={};return Object.keys(e).forEach(function(o){var s=o.split("/");if(s.length>1){var n=a,i=s.pop();s.forEach(function(r){n[r]||(n[r]={_custom:{value:{},display:r,tooltip:"Module",abstract:!0}}),n=n[r]._custom.value}),n[i]=c0(function(){return e[o]})}else a[o]=c0(function(){return e[o]})}),a}function XDe(e,a){var o=a.split("/").filter(function(s){return s});return o.reduce(function(s,n,i){var r=s[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+a+'".');return i===o.length-1?r:r._children},a==="root"?e:e.root._children)}function c0(e){try{return e()}catch(a){return a}}var Zt=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=(typeof o=="function"?o():o)||{}},rk={namespaced:{configurable:!0}};rk.namespaced.get=function(){return!!this._rawModule.namespaced},Zt.prototype.addChild=function(e,a){this._children[e]=a},Zt.prototype.removeChild=function(e){delete this._children[e]},Zt.prototype.getChild=function(e){return this._children[e]},Zt.prototype.hasChild=function(e){return e in this._children},Zt.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Zt.prototype.forEachChild=function(e){_o(this._children,e)},Zt.prototype.forEachGetter=function(e){this._rawModule.getters&&_o(this._rawModule.getters,e)},Zt.prototype.forEachAction=function(e){this._rawModule.actions&&_o(this._rawModule.actions,e)},Zt.prototype.forEachMutation=function(e){this._rawModule.mutations&&_o(this._rawModule.mutations,e)},Object.defineProperties(Zt.prototype,rk);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(a,o){return a.getChild(o)},this.root)},bo.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(o,s){return a=a.getChild(s),o+(a.namespaced?s+"/":"")},"")},bo.prototype.update=function(e){lk([],this.root,e)},bo.prototype.register=function(e,a,o){var s=this;o===void 0&&(o=!0),process.env.NODE_ENV!=="production"&&mk(e,a);var n=new Zt(a,o);if(e.length===0)this.root=n;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],n)}a.modules&&_o(a.modules,function(r,c){s.register(e.concat(c),r,o)})},bo.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1],s=a.getChild(o);if(!s){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+o+"', which is not registered");return}s.runtime&&a.removeChild(o)},bo.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1];return a?a.hasChild(o):!1};function lk(e,a,o){if(process.env.NODE_ENV!=="production"&&mk(e,o),a.update(o),o.modules)for(var s in o.modules){if(!a.getChild(s)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+s+"' on hot reloading, manual reload is needed");return}lk(e.concat(s),a.getChild(s),o.modules[s])}}var ck={assert:function(e){return typeof e=="function"},expected:"function"},ZDe={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},dk={getters:ck,mutations:ck,actions:ZDe};function mk(e,a){Object.keys(dk).forEach(function(o){if(a[o]){var s=dk[o];_o(a[o],function(n,i){Xt(s.assert(n),YDe(e,o,i,n,s.expected))})}})}function YDe(e,a,o,s,n){var i=a+" should be "+n+' but "'+a+"."+o+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(s)+".",i}var St=function e(a){var o=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(Xt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Xt(this instanceof e,"store must be called with the new operator."));var s=a.plugins;s===void 0&&(s=[]);var n=a.strict;n===void 0&&(n=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var r=this,c=this,h=c.dispatch,d=c.commit;this.dispatch=function(m,p){return h.call(r,m,p)},this.commit=function(m,p,y){return d.call(r,m,p,y)},this.strict=n;var l=this._modules.root.state;Gc(this,l,[],this._modules.root),i0(this,l),s.forEach(function(m){return m(o)})},d0={state:{configurable:!0}};St.prototype.install=function(e,a){e.provide(a||zDe,this),e.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;o&&UDe(e,this)},d0.state.get=function(){return this._state.data},d0.state.set=function(e){process.env.NODE_ENV!=="production"&&Xt(!1,"use store.replaceState() to explicit replace store state.")},St.prototype.commit=function(e,a,o){var s=this,n=Wc(e,a,o),i=n.type,r=n.payload,c=n.options,h={type:i,payload:r},d=this._mutations[i];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){d.forEach(function(l){l(r)})}),this._subscribers.slice().forEach(function(l){return l(h,s.state)}),process.env.NODE_ENV!=="production"&&c&&c.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},St.prototype.dispatch=function(e,a){var o=this,s=Wc(e,a),n=s.type,i=s.payload,r={type:n,payload:i},c=this._actions[n];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+n);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(r,o.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var h=c.length>1?Promise.all(c.map(function(d){return d(i)})):c[0](i);return new Promise(function(d,l){h.then(function(m){try{o._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(r,o.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(p))}d(m)},function(m){try{o._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(r,o.state,m)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(p))}l(m)})})},St.prototype.subscribe=function(e,a){return K6(e,this._subscribers,a)},St.prototype.subscribeAction=function(e,a){var o=typeof e=="function"?{before:e}:e;return K6(o,this._actionSubscribers,a)},St.prototype.watch=function(e,a,o){var s=this;return process.env.NODE_ENV!=="production"&&Xt(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(s.state,s.getters)},a,Object.assign({},o))},St.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},St.prototype.registerModule=function(e,a,o){o===void 0&&(o={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Xt(Array.isArray(e),"module path must be a string or an Array."),Xt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),Gc(this,this.state,e,this._modules.get(e),o.preserveState),i0(this,this.state)},St.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var o=r0(a.state,e.slice(0,-1));delete o[e[e.length-1]]}),Q6(this)},St.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},St.prototype.hotUpdate=function(e){this._modules.update(e),Q6(this,!0)},St.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(St.prototype,d0);var KDe=eLe(function(e,a){var o={};return process.env.NODE_ENV!=="production"&&!pk(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),QDe(a).forEach(function(s){var n=s.key,i=s.val;o[n]=function(){for(var r=[],c=arguments.length;c--;)r[c]=arguments[c];var h=this.$store.commit;if(e){var d=tLe(this.$store,"mapMutations",e);if(!d)return;h=d.context.commit}return typeof i=="function"?i.apply(this,[h].concat(r)):h.apply(this.$store,[i].concat(r))}}),o});function QDe(e){return pk(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function pk(e){return Array.isArray(e)||Y6(e)}function eLe(e){return function(a,o){return typeof a!="string"?(o=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,o)}}function tLe(e,a,o){var s=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!s&&console.error("[vuex] module namespace not found in "+a+"(): "+o),s}const aLe="/icn-play.svg",oLe="/icn-tiros-de-esquina.svg",sLe="/icn-tiro-a-porteria.svg",nLe="/icn-cambio.svg",iLe="/icn-falta.svg",rLe="/atajada.svg",lLe="/fuera-de-lugar.svg",m0="/gol.svg",cLe="/var.png",dLe="/tiempo-agregado.svg",mLe="/jugada-peligrosa.svg",pLe="/penal-marcado.svg",hLe="/penal-fallado.svg",gLe="/inicia-el-partido.svg",yLe="/fin-del-partido.svg",uLe="/icn-tarjeta-amarilla.svg",fLe="/icn-tarjeta-roja.svg",_Le=[1,2,3,4,6],bLe={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return s0.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):s0.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):s0.RED_CARD_IDS.includes(a)&&(e.push("is-main-event"),e.push("red-card")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>NDe(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||_Le.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...KDe("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e,a){(a==="Gol"||a==="Tarjeta")&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},wLe=e=>(t.pushScopeId("data-v-f8cd0c73"),e=e(),t.popScopeId(),e),CLe={class:"time-line-event__details"},kLe={width:"127",preload:"metadata",style:{"border-radius":"8px"}},SLe=["src"],ELe=wLe(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),NLe={class:"time-line-event__details__info"},$Le={key:0,class:"time-line-event__details__info__header__players"},BLe={class:"time-line-event__details__info__header__players__div-img"},xLe=["src"],VLe={class:"time-line-event__details__info__body"},ILe={class:"time-line-event__details__info__body__comment"},ALe={class:"time-line-event__minute__container"},OLe={class:"time-line-event__minute__container__text"},TLe={class:"time-line-event__minute__container__icon-container"},zLe={class:"time-line-event__minute__container__icon-container__icon"},FLe={key:0,src:oLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},RLe={key:1,src:sLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},PLe={key:2,src:nLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},DLe={key:3,src:iLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},LLe={key:4,src:rLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jLe={key:5,src:lLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vLe={key:6,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},MLe={key:7,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},HLe={key:8,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ULe={key:9,src:cLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},GLe={key:10,src:dLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},WLe={key:11,src:mLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qLe={key:12,src:pLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},JLe={key:13,src:hLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},XLe={key:14,src:gLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ZLe={key:15,src:yLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},YLe={key:16,src:uLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},KLe={key:17,src:fLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},QLe={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function eje(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",i.teamTypeClasses]),style:t.normalizeStyle({width:`${o.width}px`}),key:n.gameEventKey},[t.createElementVNode("div",CLe,[o.gameEvent.video_link!=="-"&&o.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("video",kLe,[t.createElementVNode("source",{src:o.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,SLe)]),ELe])):t.createCommentVNode("",!0),t.createElementVNode("div",NLe,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",i.teamTypeClasses2])},[o.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",$Le,[i.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.srcImgPlayers,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":c===1}]),key:c},[t.createElementVNode("div",BLe,[t.createElementVNode("img",{src:r,alt:""},null,8,xLe)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",i.nameClasses]),onClick:a[1]||(a[1]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("img",{src:aLe,class:t.normalizeClass("time-line-event__details__info__header__event-play time-line-event__details__info__header__event-play__"+o.gameEvent.event_type_name)},null,2),t.createTextVNode(" "+t.toDisplayString(o.gameEvent.category_id?o.gameEvent.event_type_id===5?o.gameEvent.category_name:o.gameEvent.event_type_name==="Gol"?o.gameEvent.event_type_name+" de "+o.gameEvent.team_name:o.gameEvent.event_type_name:o.gameEvent.comments),1)],2)],2),t.createElementVNode("div",VLe,[t.createElementVNode("div",ILe,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",i.minuteClasses])},[t.createElementVNode("div",ALe,[t.createElementVNode("div",OLe,t.toDisplayString(o.gameEvent.minute)+"'",1),t.createElementVNode("div",TLe,[t.createElementVNode("div",zLe,[o.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",FLe)):o.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",RLe)):o.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",PLe)):o.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",DLe)):o.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",LLe)):o.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",jLe)):o.gameEvent.category_id==6&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==5&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==1&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==2&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==3&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==7&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==12&&o.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",vLe)):o.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",MLe)):o.gameEvent.category_id==13||o.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",HLe)):o.gameEvent.category_id==30||o.gameEvent.category_id==31||o.gameEvent.category_id==32||o.gameEvent.category_id==33||o.gameEvent.category_id==34||o.gameEvent.category_id==35||o.gameEvent.category_id==36||o.gameEvent.category_id==37||o.gameEvent.category_id==38||o.gameEvent.category_id==39||o.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",ULe)):o.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",GLe)):o.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",WLe)):o.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",qLe)):o.gameEvent.category_id==15||o.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",JLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==16||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==18||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==20||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",XLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==13||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==17||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==19||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==21||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",ZLe)):o.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",YLe)):o.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",KLe)):(t.openBlock(),t.createElementBlock("img",QLe))])])])],2)],6)}const tje=ii(bLe,[["render",eje],["__scopeId","data-v-f8cd0c73"]]),aje={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},oje={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let qc=null;const sje={name:"TimeLine",components:{Tooltip:CDe,TimeLineEvent:tje},mixins:[SDe],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1||(this.timeLineStatus="finished"),this.fillGameEvents(e.id))}},"$socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":aje[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await q6.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.$socket.client.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)qc=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),qc.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const o=this.$refs[`gameEventDiv${a}`][0],s=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,n=e+12;o&&(o.style.height=`${n}px`),s&&(s.style.height=`${n}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(o=>o.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const o=oje[a.game_status];o&&this.timeLineStatuses.push({...o,gameEvent:a})}),this.timeLineStatuses.sort((a,o)=>o.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return EDe(a)},thumbnailClick(e){this.dataVideo.link=e,this.dataVideo.visible=!0}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){qc&&qc.unobserve(this.$refs.timeLine)},sockets:{new_mxm(e,a){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm(e,a){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm(e,a){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},hk=e=>(t.pushScopeId("data-v-a31f9d54"),e=e(),t.popScopeId(),e),nje={ref:"timeLine",class:"time-line"},ije={class:"time-line__header"},rje={class:"time-line__header__dot"},lje={class:"time-line__header__dot__home-team team-logo"},cje=["src"],dje={class:"time-line__header__dot__away-team team-logo"},mje=["src"],pje={class:"time-line__game-events"},hje={key:1,class:"start-line"},gje=hk(()=>t.createElementVNode("div",null,null,-1)),yje=hk(()=>t.createElementVNode("div",null,null,-1)),uje=[gje,yje],fje={key:1,class:"noEventText"},_je={class:"tooltip-data"},bje=["src"];function wje(e,a,o,s,n,i){const r=t.resolveComponent("TimeLineEvent"),c=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",nje,[t.createElementVNode("div",ije,[t.createElementVNode("div",rje,[t.createElementVNode("div",lje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("homeTeam"),alt:""},null,8,cje)]),t.createElementVNode("div",dje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("awayTeam"),alt:""},null,8,mje)])])]),t.createElementVNode("div",pje,[o.gameData.status!==4?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:n.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gameEventsToShow,(h,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:h.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(i.getGameEventClassAndSetIcon(h,d))},[t.createElementVNode("div",{class:t.normalizeClass(i.getEventContainerClass(h))},[t.createVNode(r,{"game-event":h,"is-mobile":i.isMobile,"time-line-width":n.timeLineWidth,width:i.gameEventWidth,onEventHeight:l=>i.updateContainerHeight(l,d),onPlayerChanged:a[0]||(a[0]=l=>e.$emit("player-changed",l)),onThumbnailClick:i.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","onEventHeight","onThumbnailClick"])],2),d>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${d}`,class:"line"},null,512)):t.createCommentVNode("",!0),o.gameData.status===1&&d===i.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",hje,uje)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",fje," Aún no comienza el partido "))])],512),t.createVNode(c,{data:n.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",_je,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:n.dataVideo.link,format:"video/mp4"},null,8,bje)])])]),_:1},8,["data"])],64)}const Cje=ii(sje,[["render",wje],["__scopeId","data-v-a31f9d54"]]),kje={class:"game-time-line__options"},Sje={class:"game-time-line__timeline"},Eje={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){q6.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),o=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let s=null;const n=t.ref(["Todo","1er tiempo","2do tiempo"]),i=t.ref("Todo"),r=t.ref({}),c=t.ref(null),h=t.ref(0),d=t.computed(()=>{let g="all";return i.value==="1er tiempo"||i.value==="1er"?g="firstHalf":(i.value==="2do tiempo"||i.value==="2do")&&(g="secondHalf"),g}),l=t.computed(()=>h.value<500);function m(g){i.value=g}function p(g){r.value=g}function y(){if(window.ResizeObserver)s=new ResizeObserver(()=>{h.value=c.value.clientWidth}),s.observe(c.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{y()}),t.onBeforeUnmount(()=>{s&&s.unobserve(c.value)}),(g,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:c,class:"game-time-line"},[t.createElementVNode("div",kje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,f=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"game-time-line__options__option"},[t.createVNode(tPe,t.mergeProps(h.value<390?o.value:a.value,{text:f=="Todo"?f:h.value<390?f.substring(0,3):f,"is-active":i.value===f,onClick:_=>m(f)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Sje,[t.createVNode(Cje,{"game-data":e.game,"time-line-period":d.value,"is-mobile":l.value,onGameEventsByPeriodFilled:p},null,8,["game-data","time-line-period","is-mobile"])])],512))}},Nje=ii(Eje,[["__scopeId","data-v-52261d5c"]]);function $je(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Bje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},p0={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},gk=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},yk=p0.setup;p0.setup=yk?(e,a)=>(gk(),yk(e,a)):gk;const xje={ref:"gscScrollableContainer",class:"scrollable-container"},Vje={class:"scrollable-arrows"},Ije=["width","height","viewBox"],Aje=["stroke"],Oje={class:"scrollable-wrapper"},Tje={class:"scrollable-arrows"},zje=["width","height","viewBox"],Fje=["stroke"];function Rje(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",xje,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",Vje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Aje)],8,Ije))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",Oje,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",Tje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Fje)],8,zje))])],2)):t.createCommentVNode("",!0)],512)}const Pje=Bje(p0,[["render",Rje],["__scopeId","data-v-b548a08d"]]),Dje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},h0={components:{GSCSlider:Pje},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=$je(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},uk=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},fk=h0.setup;h0.setup=fk?(e,a)=>(uk(),fk(e,a)):uk;const Lje={ref:"myDivRef"},jje={key:0,class:"gs-switch-container"},vje=["onClick"],Mje={key:1,class:"gs-switch-container-type"},Hje=["onClick"],Uje={key:2,class:"gs-switch-container-carousel"},Gje=["onClick"];function Wje(e,a,o,s,n,i){const r=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Lje,[o.type==0?(t.openBlock(),t.createElementBlock("div",jje,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:h,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,vje))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Mje,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:h,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Hje))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",Uje,[t.createVNode(r,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:h,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Gje))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const _k=Dje(h0,[["render",Wje],["__scopeId","data-v-8a86dfaf"]]),nHe="",qje={class:"game-data__header"},Jje={class:"game-data__header__tournament-season-dropdown"},Xje={class:"game-data__header__teams-carousel"},Zje={class:"game-data__body"},Yje={class:"game-data__body__menu"},Kje={class:"game-data__body__menu__contmenuswitch"};Li.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Qje=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:kT,GSCGameTimeLine:Nje,GscSwitchComponent:_k,GSCLineupsMain:zX,GSCDatosGSMain:Ine,GSCVideoGame:H0e,GSCSummaryMain:QRe}}),eve=Fe(Object.assign(Qje,{props:{currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}}},emits:["openmedia","change-season-id"],setup(e,{emit:a}){const o=e,s=t.ref({season:[]}),n=t.ref({}),i=t.ref({}),r=t.ref(!0),c=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),h=t.ref([{componentName:"GSCSummaryMain",name:"Resumen",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"GSCDatosGSMain",name:"Datos Golstats",id:3},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]);let d=null;const l=t.ref(null),m=t.ref(0),p=t.ref(h.value[0]);let y=t.ref("");const g=t.computed(()=>{const $=[];return n.value&&n.value.id&&($.push({id:n.value.id,name:n.value.name,type:n.value.type}),n.value.related_seasons&&n.value.related_seasons.forEach(z=>{$.push({id:z.id,type:z.type})})),$});function u(){d=new ResizeObserver($=>{for(const z of $)m.value=z.contentRect.width}),d.observe(l.value)}const f=t.computed(()=>{let $={};return i.value&&i.value.game_id&&($={gameId:i.value.game_id,id:i.value.game_id,seasonId:i.value.season_id,status:i.value.game_status,game_status:i.value.game_status==0?4:i.value.game_status,dateTimeUTC:i.value.date_time_utc,homeTeam:i.value.home_team,awayTeam:i.value.visiting_team}),$});function _($){s.value=$,$.is_captured===0?r.value=!1:r.value=!0,s.value.id!==$.id&&(s.value=$)}function k($){a("openmedia",$)}function w($){V($),$=="Estadísticas"&&(y.value="Comparativa")}function b(){y.value=""}function E($){n.value.id!==$.id&&(n.value=$,a("change-season-id",$.id))}const x=t.computed(()=>h.value.map($=>{if(r.value)return $.name;if($.id!==5&&$.id!==6)return $.name}).filter($=>$!=null));function V($){p.value=h.value.find(z=>z.name===$)||h.value[0]}t.onMounted(()=>{u()});function B($){i.value=$}return($,z)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:l},[t.createElementVNode("div",qje,[t.createElementVNode("div",Jje,[t.createVNode(t.unref(c7),{"current-season-id":e.currentSeasonId,onInput:_},null,8,["current-season-id"]),t.createVNode(t.unref(O7),{"current-season-id":e.currentSeasonId,seasons:s.value.seasons,onInput:E},null,8,["current-season-id","seasons"])]),t.createElementVNode("div",Xje,[t.createVNode(t.unref(vN),{token:c.value,"await-for-seasons":"",seasons:g.value,"is-pagination-visible":!1,"are-games-carousel-type":"",onChangeGameCarousel:B,"default-game-id":o.defaultGameId},null,8,["token","seasons","default-game-id"])])]),t.createElementVNode("div",Zje,[t.createElementVNode("div",Yje,[t.createElementVNode("div",Kje,[t.createVNode(t.unref(_k),{type:2,buttons:x.value,"font-family":"Poppins-Regular","font-size":"16px",width:m.value<400||m.value<700?"max-content":m.value<840||m.value<1050?"155px":"165px","selected-option":p.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:V},null,8,["buttons","width","selected-option"])])]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p.value.componentName),{game:f.value,subsection:t.unref(y),seasonSelected:n.value,showLineups:r.value,onResetSubsection:b,onOpenmedia:k,onChangeToTab:w},null,40,["game","subsection","seasonSelected","showLineups"]))])],512))}}),[["__scopeId","data-v-7bbaaf14"]]);async function ft({url:e,options:a={},retries:o=3}){return await Li.get(e,a).then(s=>s).catch(s=>o>0?ft({url:e,options:a,retries:o-1}):s)}async function bk({seasonId:e},a=!0){try{const o={url:`https://b5lrr2nc0h.execute-api.us-west-2.amazonaws.com/prod/statisticsLeagueBySeason/${e}`};a&&(o.url=`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`,o.retries=1);const{data:{data:s}}=await ft(o);return s}catch(o){if(a)return bk({seasonId:e},!1);throw new Error(o)}}async function tve({seasonId:e}){try{return(await ft({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function ave({seasonId:e}){try{return(await ft({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function ove(e,a,o,s,n,i,r=!1){const c=o.map(h=>h===1?2:h===2?1:3);return e.filter(h=>{const d=i&&h[n.teamId]?h[n.teamId]!==i:!1,l=a===1?2:1;return(r||s.includes(h[n.gameId]))&&(!a||(d?l:a)===h[n.playingAs])&&(o.includes(h[n.matchResult])&&h[n.teamId]===i||c.includes(h[n.matchResult])&&h[n.teamId]!==i)})}function wk(e,a,o,s,n){return a.length===2&&o.length===3&&s.length===6?e:e.filter(i=>a.includes(i[n.playingAs])&&o.includes(i[n.matchResult])&&s.includes(i[n.section]))}async function Ck({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await ft({url:a})).data}catch(a){return Promise.reject(a)}}async function sve({seasonId:e,gameId:a}){try{const o=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:s}=await ft({url:o});return s}catch(o){return Promise.reject(o)}}async function nve({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await ft({url:a})).data.data}catch(a){return Promise.reject(a)}}async function ive({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await ft({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const rve=["categoryId","matchLapse","section","matchResult","playingAs","total"];let g0=null;function kk(){return g0||(g0=Vi(rve)),g0}async function lve(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await ft({url:a})).data}catch(a){return Promise.reject(a)}}async function Sk({seasonId:e,teamId:a}){try{return await ft({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(o){return Promise.reject(o)}}async function cve(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await ft({url:a})}catch(a){return Promise.reject(a)}}async function dve(e){try{return await ft({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const mve={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,o,s){return ove(e.seasonPlays,s["filterGeneral/getPlayingAs"],s["filterGeneral/getResults"],s["filterGeneral/getSelectedGamesIds"],kk(),s["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((o,s)=>{const n={...s};return n.home_team=e.currentSeasonTeams.find(i=>i.team_id===s.home_team),n.visiting_team=e.currentSeasonTeams.find(i=>i.team_id===s.visiting_team),o[s.matchday_abbreviation]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date].push(n):o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]=[n]:o[s.matchday_abbreviation]={[s.game_status===3?"canceled":s.date]:[n]},o},{});for(let[o,s]of Object.entries(a))a[o]=Object.entries(s).map(([n,i])=>({date:n,games:i})),a[o].sort((n,i)=>n.date<i.date?-1:n.date>i.date?1:0);return a},matchdaysDates(e,a){let o=[];if(a.nextGamesSchedule){let s=Object.keys(a.nextGamesSchedule);for(let n of s){let i=Number(n.replace("M","")),r=a.nextGamesSchedule[n].map(c=>({matchday:i,date:new Date(c.date)}));o=o.concat(r)}}return o},closestMatchDay(e,a){let o=new Date,s=0,n=-new Date(0,0,0).valueOf(),i=a.matchdaysDates,r=i.length;for(let c=0;c<i.length;c++)s=Math.abs(i[c].date-o),s<n&&(r=c,n=s);return i[r]?i[r].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},o=!1){try{const s=await bk({seasonId:a["filterGeneral/getSeasonId"]});if(o)return s;e("updateSeasonPlays",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const o=await Ck({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const o=await lve({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",o.teams)}catch(o){return Promise.reject(o)}},async isDataFilled({state:e,dispatch:a,commit:o}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return o("setIsSectionLoading",!1,{root:!0}),!0;const s=[void 0,void 0];return e.currentSeasonGames.length===0&&(s[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(s[1]=a("getCurrentSeasonTeams")),await Promise.all(s),!1}catch(s){throw new Error(s)}}}}};async function pve({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:o}=await ft({url:a});return o}catch(a){return Promise.reject(a)}}const hve=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let y0=null;function gve(){return y0||(y0=Vi(hve)),y0}class Jc{constructor(){De(this,"maximumLiveSection",1);De(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});De(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=o,this.accomplished.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o)),this.accomplished.totalPostGame+=o,this.accomplished.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,o)}increaseReceivedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.received.totalLive+=o,this.received.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o)),this.received.totalPostGame+=o,this.received.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,o)}increaseTrendLiveAccumulatedByOne(a,o,s){for(let n=o-1;n<a.accumulated.length;n++)a.accumulated[n]+=s}decreaseAccomplishedLiveByOne(a,o){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=o),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o))}decreaseReceivedLiveByOne(a,o){this.received.totalLive>0&&(this.received.totalLive-=o),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,o,s){for(let n=a.accumulated.length-1;n>=o-1;n--)a.accumulated[n]-=s}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,o){return a.map(s=>s/o)}calculateRanking(a,o,s,n,i,r,c,h){let d=[];n===3&&a&&a.length&&(s.playingAs.length!==2||s.matchResult.length!==3)?d=Array.from(a.reduce((m,p)=>{const y=p[o.playingAs]===1,g=y?"1":"2",u=m.get(p[o.gameId]);if(u)u[g]?u[g].arrayPlays.push(p):u[g]={numberTeamId:p[o.teamId],arrayPlays:[p]};else{const f={numberMatchResult:p[o.matchResult]};y&&(f[1]={numberTeamId:p[o.teamId],arrayPlays:[p]}),m.set(p[o.gameId],f)}return m},new Map).values()).reduce((m,p)=>{const y=s.playingAs.length===2?"both":s.playingAs[0].toString();return(y==="both"&&(p[1].numberTeamId===s.teamId||p[2].numberTeamId===s.teamId)||y!=="both"&&p[y].numberTeamId===s.teamId)&&s.matchResult.includes(p.numberMatchResult)&&m.push(...p[1].arrayPlays,...p[2].arrayPlays),m},[]).filter(m=>s.sections.includes(m[o.section])):(d=a?[...a]:[],c&&a&&(d=a.filter(l=>s.playingAs.includes(l[o.playingAs])&&s.matchResult.includes(l[o.matchResult])&&s.sections.includes(l[o.section])))),this.setTeamRanking(d,n,o,s.teamId,r,"accomplished",h)}setTeamRanking(a,o,s,n,i,r,c){let h=null,d=null;o===3&&(h=new Map,d={},a.forEach(p=>{const y=h.get(p[s.gameId]);y?y[p[s.teamId.toString()]]?y[p[s.teamId.toString()]]+=p[s.total]:y[p[s.teamId.toString()]]=p[s.total]:h.set(p[s.gameId],{[p[s.teamId.toString()]]:p[s.total]})}),Array.from(h.values()).forEach(p=>{const[y,g]=Object.keys(p).map(f=>f),u=p[y]+p[g];this.addPassesAvgByTeam(d,y,u?p[y]/u:0),this.addPassesAvgByTeam(d,g,u?p[g]/u:0)}));const l=i.sort((p,y)=>p.team_id-y.team_id).map(p=>{if(o===3){const y=d[p.team_id.toString()];return{teamId:p.team_id,points:y?y.numberTotalPassesAvg/y.numberGamesCount:0,total:y?y.numberTotalPassesAvg:0}}else{const y=a.reduce((g,u)=>u[s.teamId]===p.team_id&&o===u[s.categoryId]?g+u[s.total]:g,0);return{teamId:p.team_id,points:p[`${c}FilterGames`]?y/p[`${c}FilterGames`]:0,total:y}}}).sort((p,y)=>y.points-p.points);this.accomplished.arrayRankings=l;const m=l.findIndex(p=>p.teamId===n);o===3&&(this.accomplished.avgPreGame=l[m].points),this[r].ranking=m+1,this[r].leader=l[0]}addPassesAvgByTeam(a,o,s){a[o]?(a[o].numberGamesCount+=1,a[o].numberTotalPassesAvg+=s):a[o]={numberGamesCount:1,numberTotalPassesAvg:s}}}class de{constructor(a,o,s,n,i,r,c,h,d,l){De(this,"id","");De(this,"generalId",0);De(this,"name","");De(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});De(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});De(this,"accomplishedCategoryIds",[]);De(this,"receivedCategoryIds",[]);De(this,"generalCategoriesIds",{accomplished:0,received:0});De(this,"specialMention","");De(this,"homeTeam",new Jc);De(this,"visitingTeam",new Jc);De(this,"isLeagueDataCalculated",!1);De(this,"leagueAccomplishedMax",0);De(this,"leagueReceivedMax",0);De(this,"leagueAccomplishedAvg",0);De(this,"leagueReceivedAvg",0);De(this,"leagueAccomplishedAccumulator",0);De(this,"leagueReceivedAccumulator",0);De(this,"homeTeamType","homeTeam");De(this,"visitingTeamType","visitingTeam");De(this,"betOnly",!1);De(this,"isPercent",!1);this.id=`${s.accomplished}-${s.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=o||[],this.generalCategoriesIds=s||{accomplished:0,received:0},this.name=n,this.names["0-0"]=n||"",this.names["1-1"]=i||"",this.names["0-1"]=r||"",this.names["1-0"]=c||"",this.generalId=h||0,this.betOnly=d||!1,this.isPercent=l||!1}addLeaguePlays(a,o,s){a.length===0||!s||this.isLeagueDataCalculated||(a.forEach(n=>{this.isAccomplishedLeaguePlay(n[o.categoryId])&&(this.leagueAccomplishedAccumulator+=n[o.total]),this.isReceivedLeaguePlay(n[o.categoryId])&&(this.leagueReceivedAccumulator+=n[o.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*s)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*s)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,o,s){let n="-";for(const[i,r]of Object.entries(this.generalCategoriesIds))a===r&&(n=`${i==="accomplished"?"0":"1"}${n}`),o===r&&(n=`${n}${i==="accomplished"?"0":"1"}`);n.length===3&&(this.mentions[n]=s)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,o,s,n,i){!s||!i||a!==this.homeTeamType&&a!==this.visitingTeamType||(s.forEach(r=>{this.isAccomplishedPlay(r[n.categoryId])?this[a].increaseAccomplishedByOne(r[n.section],r[n.total]):this.isReceivedPlay(r[n.categoryId])&&this[a].increaseReceivedByOne(r[n.section],r[n.total])}),this[a].calculateAvg(i))}addLivePlay(a,o,s,n,i=!1,r=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&s[n.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(s[n.section],s[n.total],!0)}subtractLivePlay(a,o,s,n,i){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(s[n.categoryId])&&!i?this[a].decreaseAccomplishedLiveByOne(s[n.section],s[n.total]):this.isReceivedPlay(s[n.categoryId])&&i&&this[a].decreaseReceivedLiveByOne(s[n.section],s[n.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(s=>a===s||`${a}_r`===s)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(o=>a===o)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,o,s,n,i,r=!1){this[this.homeTeamType].calculateRanking(a,o,s,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,o,n,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.visitingTeamType)}resetData(){this.homeTeam=new Jc,this.visitingTeam=new Jc,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const yve={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new de([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new de([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new de([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new de([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new de([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new de([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new de([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new de([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new de([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new de([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new de([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new de([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new de([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new de([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new de([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new de([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new de([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new de([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new de([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new de([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new de([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new de([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new de([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new de([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new de([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new de([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new de([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new de([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new de([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new de([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new de([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new de([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new de([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new de([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new de([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new de([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new de([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new de([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},uve=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],fve=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let u0=null;function _ve(){return u0||(u0=Vi(fve)),u0}const bve=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let f0=null;function wve(){return f0||(f0=Vi(bve)),f0}function Xc(e,a,o){return[o.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function Ek(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function _0(e,a,o){let s=[...a];return e[o.categoryId]===2&&(s[0]=14),e[o.categoryId]===20&&(s[0]=15),[14,15].includes(s[0])?s:null}const Cve=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],kve={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:kk(),indexesTSP:gve(),indexesLS:_ve(),indexesTLP:wve(),nextGamesDataStructure:yve,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return uve.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return wk(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return wk(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&s.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&s.visitingTeam.resetTotals(),s.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),s.addTeamPlays(s.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),s.addTeamPlays(s.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((o,s)=>o.priority-s.priority)},statisticData(e,a){for(const o of Object.values(a.filledDataStructure))if(o.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&o.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return o.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,!a&&e.gameForAnalysis.is_live&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(o=>{o.playedGames=e.currentSeasonGames.reduce((s,n)=>{if(n.game_status===1&&(n.home_team===o.team_id||n.visiting_team===o.team_id)){const i=n.score[0]-n.score[1],r=n.home_team===o.team_id;s.push({playingAs:r?1:2,matchResult:i===0?3:r?i>0?1:2:i<0?1:2})}return s},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:o=!1}){if(o){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=Tu(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=Tu(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const o=Object.values(e.nextGamesDataStructure);o.forEach(s=>{for(const n of Object.values(s.subcategories))n.resetMentions()}),o.forEach(s=>{for(const n of a)for(const i of Object.values(s.subcategories))i.addSpecialMention(n[0],n[1],n[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const s=Xc(a,e.indexesTLP,e.categoriesMap);for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.addLivePlay(e.gameForAnalysis.home_team===s[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",s[e.indexesTSP.teamId],s,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);if(cB(s,a))return;let n="";const i=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";s&&(n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const r=Xc(s,e.indexesTLP,e.categoriesMap),c=_0(s,r,e.indexesTLP),h=Xc(a,e.indexesTLP,e.categoriesMap),d=_0(a,h,e.indexesTLP);for(const l of Object.values(e.nextGamesDataStructure))for(const m of Object.values(l.subcategories))s&&(m.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o),c&&m.subtractLivePlay(n,c[e.indexesTSP.teamId],c,e.indexesTSP,o)),m.addLivePlay(i,h[e.indexesTSP.teamId],h,e.indexesTSP,e.isLive,o),d&&m.addLivePlay(i,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,o);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);let n="";if(s){n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(s[e.indexesTLP.playId]);const i=Xc(s,e.indexesTLP,e.categoriesMap),r=_0(a,i,e.indexesTLP);for(const c of Object.values(e.nextGamesDataStructure))for(const h of Object.values(c.subcategories))h.subtractLivePlay(n,i[e.indexesTSP.teamId],i,e.indexesTSP,o),r&&h.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.homeTeam.resetTotalsLive(),o.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:o}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(i=>{i.homeTeamFilterGames=i.playedGames.filter(r=>e.homeTeamFilter.playingAs.includes(r.playingAs)&&e.homeTeamFilter.matchResult.includes(r.matchResult)).length,i.visitingTeamFilterGames=i.playedGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r.playingAs)&&e.visitingTeamFilter.matchResult.includes(r.matchResult)).length});const s=[],n=new Map;for(const i of Object.values(e.nextGamesDataStructure))for(const r of Object.values(i.subcategories))s.push(r);a.rankingData.forEach(i=>{for(const r of s)if(r.isInGeneralCategory(i[e.indexesLS.categoryId])){n.has(r.id)?n.get(r.id).push(i):n.set(r.id,[i]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=Ek(a)},setVisitingGames(e,a){e.visitingGames=Ek(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.accomplishedCategoryIds.forEach(s=>{const n=e.categoriesMap.get(s);n?n.push(o.generalCategoriesIds.accomplished):e.categoriesMap.set(s,[o.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:o}){o==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const r=await dve({gameId:a.gameId});if(r){var o=[],s=[],n={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},i={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(r.data).length!==0&&(o=r.data.data.filter(c=>c[1]==a.homeTeam),s=r.data.data.filter(c=>c[1]==a.awayTeam),n=r.data.games,i=r.data.games),e("updateHomeTeamPlays",o),e("updateVisitingTeamPlays",s),e("setHomeGames",n),e("setVisitingGames",i)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(r){return Promise.reject(r)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},o){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let s=[];e("updateGameForAnalysis",o.gameInfo),s.push(a("setAndGetStatsPostMatch",{gameId:o.game,homeTeam:o.homeTeam,awayTeam:o.awayTeam})),await Promise.all(s)}catch(s){throw new Error(s)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:o},{gameId:s,isTeamsAnalysis:n,currentSeasonId:i,isLoginChanged:r=!1,defaultFilter:c=null,gameInfo:h=null,isCupGame:d=!1}){try{let l={},m=e.seasonId!==Number(i);const p=[];o("setIsSectionLoading",!0,{root:!0}),o("setUsePastSeasonId",!1),m&&o("setSeasonId",i),o("updateGameId",Number(s)),e.oldSeasonId!==e.seasonId&&o("resetNextGamesDataStructure");const y=await a("getCurrentSeasonGames",Number(s));if(o("leagueGeneral/updateCurrentSeasonGames",y,{root:!0}),l=y.find(g=>g.game_id===Number(s)),!l&&h&&(l=h),l&&o("updateGameForAnalysis",l),l.game_status!==1&&(d||await a("checkTeamsData",{gameId:s,isFromBet:!!c}),(r||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&p.push(a("getSeasonStatistics")),(r||e.categoriesMap.size===0)&&o("generateCategoriesMap")),e.usePastSeasonId){const g=await a("getCurrentSeasonGamesLast");o("leagueGeneral/updateCurrentSeasonGames",g,{root:!0})}(r||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(g=>l.home_team===g.team_id))&&p.push(a("getCurrentSeasonTeams")),o("setHomeResultGame",l.score[0]),o("setAwayResultGame",l.score[1]),n?l.game_status!==1?(await a("fillStatisticData",{gameId:s,gameinfo:l,promises:p,defaultFilter:c}),o("updateShowPostMatchData",!1)):(o("updateStats",[]),o("updateShowPostMatchData",!0),p.push(a("fillStatisticDataPostMatch",{game:s,homeTeam:l.home_team,awayTeam:l.visiting_team,gameInfo:l})),await Promise.all(p)):o("setIsSectionLoading",!1,{root:!0})}catch(l){return Promise.reject(l)}},async fillStatisticData({commit:e,dispatch:a,getters:o,rootGetters:s,state:n},{gameId:i,gameinfo:r,promises:c=[],defaultFilter:h=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",r),r.is_live&&c.push(a("getCurrentLiveGamePlays",i)),c.push(a("getSpecialMentionsByGame",i)),c.push(a("getHomeTeamPlays")),c.push(a("getVisitingTeamPlays")),c.push(a("getCurrentSeasonPlays")),h&&c.push(pve(h)),d=await Promise.all(c)}catch(l){throw new Error(l)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]}),h){const[l]=d.pop();l&&(e("setBetSubcategories",l.categories),e("setBetDescription",l.sectionDescription),e("setDefaultFilter",l.params),e("updateFilterAux"),e("updateFilters",{filters:n.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:o,commit:s},{gameId:n,isFromBet:i}){try{const r=Number(n);if(o.general.tournaments&&o.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const c=o.general.tournaments.find(h=>{for(const d of h.seasons)if(d.id===e.seasonId)return!0;return!1});s("general/setTournamentSelected",c||{},{root:!0})}if(e.pastSeasonId){s("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const c=o.leagueGeneral.currentSeasonGames.find(h=>h.game_id===r);c&&s("updateGameForAnalysis",c),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),s("setUsePastSeasonId",i||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else s("setUsePastSeasonId",!1)}catch(r){throw new Error(r)}},async getSpecialMentionsByGame({commit:e},a){try{const o=await ive({gameId:a});e("addSpecialMentions",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonGames({commit:e,state:a},o){try{const{teams:s,games:n,past_season_id:i,tournament_id:r}=await sve({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:o}),c=Cve.find(h=>h.id===r);return c&&e("setCurrentTournamentName",c.name),e("setHome",s[0]),e("setAway",s[1]),a.usePastSeasonId||e("setPastSeasonId",i),await e("updateCurrentSeasonGames",n),n&&Array.isArray(n)&&e("updateFinishedGames",n.reduce((h,d)=>(d.game_status===1&&(h+=1),h),0)),n}catch(s){return Promise.reject(s)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:o,past_season_id:s}=await Ck({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",s),await e("updateCurrentSeasonGames",o),o&&Array.isArray(o)&&e("updateFinishedGames",o.reduce((n,i)=>(i.game_status===1&&(n+=1),n),0)),o}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const o=await cve({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",o.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const o=a.usePastSeasonId?a.pastSeasonId:a.seasonId,s=await ave({seasonId:o});e("updateSeasonStatistics",s),e("updateOldSeasonId",o)}catch(o){return Promise.reject(o)}},updateRankingInSubcategories({state:e,commit:a,getters:o,rootGetters:s}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const o=await Sk({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});o.data&&(e("updateHomeTeamPlays",o.data.data),e("setHomeGames",o.data.games))}catch(o){return Promise.reject(o)}},async getVisitingTeamPlays({commit:e,state:a}){try{const o=await Sk({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});o.data&&(e("updateVisitingTeamPlays",o.data.data),e("setVisitingGames",o.data.games))}catch(o){return Promise.reject(o)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const o=await tve({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",o)}catch(o){return Promise.reject(new Error(o))}},async getCurrentLiveGamePlays({state:e,commit:a},o){try{const s=await nve({gameId:o});e.livePlays=new Map,s.forEach(n=>{e.gameForAnalysis.game_id===n[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===n[e.indexesTLP.teamId])&&a("addLiveGamePlay",n)})}catch(s){throw new Error(s)}},socket_new({state:e,commit:a},o){const s=o[1];(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("addLiveGamePlay",s)},socket_update({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===s[e.indexesTLP.teamId])&&a("updateLiveGamePlay",s)},socket_delete({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",s)},exitChannel({state:e,getters:a,rootState:o,rootGetters:s,commit:n}){const i=s["loginGeneral/getPremiumAccount"];a.isLive&&i&&(n("updateShowLiveData",!1),n("clearLiveTotals"),e.livePlays.clear(),this._vm.$socket.client.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function Sve(){try{const{data:e}=await ft({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const Eve={namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(o=>({...o.tournament,seasons:o.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const o=await Sve();a("setTournaments",o)}}catch(o){throw new Error(o)}}}};async function Nve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${o}`;return(await ft({url:s})).data}catch(s){return Promise.reject(s)}}async function $ve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${o}`;return(await ft({url:s})).data}catch(s){return Promise.reject(s)}}const Nk=(e,a)=>{let o={};return e.forEach((s,n)=>{n==3&&(a[0]==35||a[0]==54)&&(a[n]==2?a[n]=1:a[n]=2),n==2&&(a[0]==35||a[0]==54)&&(a[n]==1?a[n]=2:a[n]==2&&(a[n]=1)),o[s]=a[n]}),o},$k=(e,a)=>e.filter(s=>{const n=a.playingAs.includes(s.playing_as),i=a.matchResult.includes(s.match_result),r=a.sections.includes(s.section);return n&&i&&r}),Bk=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,o,s){return typeof s>"u"||+s==0?Math[a](o):(o=+o,s=+s,isNaN(o)||!(typeof s=="number"&&s%1===0)?NaN:(o=o.toString().split("e"),o=Math[a](+(o[0]+"e"+(o[1]?+o[1]-s:-s))),o=o.toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+s:s))))}Math.ceil10||(Math.ceil10=function(a,o){return e("ceil",a,o)})})();function xk(e,a){let o=a*-1;return Math.ceil10(e,o)}const Bve={general:Eve,...mve,...kve,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,o)=>{const s=e.xGLocalPlays,n="homeTeamFilter",i=o.nextGeneral[n];return $k(s,i)},playsAway:(e,a,o)=>{const s=e.xGVisitingPlays,n="visitingTeamFilter",i=o.nextGeneral[n];return $k(s,i)},goalsQtyLocal:(e,a)=>{const o=Bk.find(s=>s.name==="Goles");return a.playsLocal.filter(s=>o.categories.includes(s.category_id)).length},goalsQtyAway:(e,a)=>{const o=Bk.find(s=>s.name==="Goles");return a.playsAway.filter(s=>o.categories.includes(s.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(o=>o.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(o=>o.category_id===510).length,xGLocal:(e,a)=>{const o=new Set;let s=a.playsLocal.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return xk(s,2)},xGAway:(e,a)=>{const o=new Set;let s=a.playsAway.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return xk(s,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(o=>Nk(a.data_headers,o)),e.xGVisitingPlays=a.visiting_team.map(o=>Nk(a.data_headers,o))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:o,visitingTeamId:s,postMatch:n=!1}){try{var i={};n?i=await $ve({seasonId:a,localTeamId:o,visitingTeamId:s}):i=await Nve({seasonId:a,localTeamId:o,visitingTeamId:s}),e("setPlays",i)}catch(r){return Promise.reject(r)}}}}}};function xve(e){for(const[a,o]of Object.entries(Bve))e.hasModule(a)||e.registerModule(a,o)}_t.GSCGameData=eve,_t.registerStoreModules=xve,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})});
121
+ */var zDe="store";function _o(e,a){Object.keys(e).forEach(function(o){return a(e[o],o)})}function Y6(e){return e!==null&&typeof e=="object"}function FDe(e){return e&&typeof e.then=="function"}function Xt(e,a){if(!e)throw new Error("[vuex] "+a)}function RDe(e,a){return function(){return e(a)}}function K6(e,a,o){return a.indexOf(e)<0&&(o&&o.prepend?a.unshift(e):a.push(e)),function(){var s=a.indexOf(e);s>-1&&a.splice(s,1)}}function Q6(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var o=e.state;Gc(e,o,[],e._modules.root,!0),i0(e,o,a)}function i0(e,a,o){var s=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var n=e._wrappedGetters,i={};_o(n,function(r,c){i[c]=RDe(r,e),Object.defineProperty(e.getters,c,{get:function(){return i[c]()},enumerable:!0})}),e._state=t.reactive({data:a}),e.strict&&vDe(e),s&&o&&e._withCommit(function(){s.data=null})}function Gc(e,a,o,s,n){var i=!o.length,r=e._modules.getNamespace(o);if(s.namespaced&&(e._modulesNamespaceMap[r]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+r+" for the namespaced module "+o.join("/")),e._modulesNamespaceMap[r]=s),!i&&!n){var c=r0(a,o.slice(0,-1)),h=o[o.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&h in c&&console.warn('[vuex] state field "'+h+'" was overridden by a module with the same name at "'+o.join(".")+'"'),c[h]=s.state})}var d=s.context=PDe(e,r,o);s.forEachMutation(function(l,m){var p=r+m;DDe(e,p,l,d)}),s.forEachAction(function(l,m){var p=l.root?m:r+m,y=l.handler||l;LDe(e,p,y,d)}),s.forEachGetter(function(l,m){var p=r+m;jDe(e,p,l,d)}),s.forEachChild(function(l,m){Gc(e,a,o.concat(m),l,n)})}function PDe(e,a,o){var s=a==="",n={dispatch:s?e.dispatch:function(i,r,c){var h=Wc(i,r,c),d=h.payload,l=h.options,m=h.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._actions[m])){console.error("[vuex] unknown local action type: "+h.type+", global type: "+m);return}return e.dispatch(m,d)},commit:s?e.commit:function(i,r,c){var h=Wc(i,r,c),d=h.payload,l=h.options,m=h.type;if((!l||!l.root)&&(m=a+m,process.env.NODE_ENV!=="production"&&!e._mutations[m])){console.error("[vuex] unknown local mutation type: "+h.type+", global type: "+m);return}e.commit(m,d,l)}};return Object.defineProperties(n,{getters:{get:s?function(){return e.getters}:function(){return ek(e,a)}},state:{get:function(){return r0(e.state,o)}}}),n}function ek(e,a){if(!e._makeLocalGettersCache[a]){var o={},s=a.length;Object.keys(e.getters).forEach(function(n){if(n.slice(0,s)===a){var i=n.slice(s);Object.defineProperty(o,i,{get:function(){return e.getters[n]},enumerable:!0})}}),e._makeLocalGettersCache[a]=o}return e._makeLocalGettersCache[a]}function DDe(e,a,o,s){var n=e._mutations[a]||(e._mutations[a]=[]);n.push(function(i){o.call(e,s.state,i)})}function LDe(e,a,o,s){var n=e._actions[a]||(e._actions[a]=[]);n.push(function(i){var r=o.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return FDe(r)||(r=Promise.resolve(r)),e._devtoolHook?r.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):r})}function jDe(e,a,o,s){if(e._wrappedGetters[a]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+a);return}e._wrappedGetters[a]=function(n){return o(s.state,s.getters,n.state,n.getters)}}function vDe(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&Xt(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function r0(e,a){return a.reduce(function(o,s){return o[s]},e)}function Wc(e,a,o){return Y6(e)&&e.type&&(o=a,a=e,e=e.type),process.env.NODE_ENV!=="production"&&Xt(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:a,options:o}}var MDe="vuex bindings",tk="vuex:mutations",l0="vuex:actions",ks="vuex",HDe=0;function UDe(e,a){TDe({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[MDe]},function(o){o.addTimelineLayer({id:tk,label:"Vuex Mutations",color:ak}),o.addTimelineLayer({id:l0,label:"Vuex Actions",color:ak}),o.addInspector({id:ks,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),o.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===ks)if(s.filter){var n=[];ik(n,a._modules.root,s.filter,""),s.rootNodes=n}else s.rootNodes=[nk(a._modules.root,"")]}),o.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId;ek(a,n),s.state=qDe(XDe(a._modules,n),n==="root"?a.getters:a._makeLocalGettersCache,n)}}),o.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===ks){var n=s.nodeId,i=s.path;n!=="root"&&(i=n.split("/").filter(Boolean).concat(i)),a._withCommit(function(){s.set(a._state.data,i,s.state.value)})}}),a.subscribe(function(s,n){var i={};s.payload&&(i.payload=s.payload),i.state=n,o.notifyComponentUpdate(),o.sendInspectorTree(ks),o.sendInspectorState(ks),o.addTimelineEvent({layerId:tk,event:{time:Date.now(),title:s.type,data:i}})}),a.subscribeAction({before:function(s,n){var i={};s.payload&&(i.payload=s.payload),s._id=HDe++,s._time=Date.now(),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:i}})},after:function(s,n){var i={},r=Date.now()-s._time;i.duration={_custom:{type:"duration",display:r+"ms",tooltip:"Action duration",value:r}},s.payload&&(i.payload=s.payload),i.state=n,o.addTimelineEvent({layerId:l0,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:i}})}})})}var ak=8702998,GDe=6710886,WDe=16777215,ok={label:"namespaced",textColor:WDe,backgroundColor:GDe};function sk(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function nk(e,a){return{id:a||"root",label:sk(a),tags:e.namespaced?[ok]:[],children:Object.keys(e._children).map(function(o){return nk(e._children[o],a+o+"/")})}}function ik(e,a,o,s){s.includes(o)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:a.namespaced?[ok]:[]}),Object.keys(a._children).forEach(function(n){ik(e,a._children[n],o,s+n+"/")})}function qDe(e,a,o){a=o==="root"?a:a[o];var s=Object.keys(a),n={state:Object.keys(e.state).map(function(r){return{key:r,editable:!0,value:e.state[r]}})};if(s.length){var i=JDe(a);n.getters=Object.keys(i).map(function(r){return{key:r.endsWith("/")?sk(r):r,editable:!1,value:c0(function(){return i[r]})}})}return n}function JDe(e){var a={};return Object.keys(e).forEach(function(o){var s=o.split("/");if(s.length>1){var n=a,i=s.pop();s.forEach(function(r){n[r]||(n[r]={_custom:{value:{},display:r,tooltip:"Module",abstract:!0}}),n=n[r]._custom.value}),n[i]=c0(function(){return e[o]})}else a[o]=c0(function(){return e[o]})}),a}function XDe(e,a){var o=a.split("/").filter(function(s){return s});return o.reduce(function(s,n,i){var r=s[n];if(!r)throw new Error('Missing module "'+n+'" for path "'+a+'".');return i===o.length-1?r:r._children},a==="root"?e:e.root._children)}function c0(e){try{return e()}catch(a){return a}}var Zt=function(e,a){this.runtime=a,this._children=Object.create(null),this._rawModule=e;var o=e.state;this.state=(typeof o=="function"?o():o)||{}},rk={namespaced:{configurable:!0}};rk.namespaced.get=function(){return!!this._rawModule.namespaced},Zt.prototype.addChild=function(e,a){this._children[e]=a},Zt.prototype.removeChild=function(e){delete this._children[e]},Zt.prototype.getChild=function(e){return this._children[e]},Zt.prototype.hasChild=function(e){return e in this._children},Zt.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},Zt.prototype.forEachChild=function(e){_o(this._children,e)},Zt.prototype.forEachGetter=function(e){this._rawModule.getters&&_o(this._rawModule.getters,e)},Zt.prototype.forEachAction=function(e){this._rawModule.actions&&_o(this._rawModule.actions,e)},Zt.prototype.forEachMutation=function(e){this._rawModule.mutations&&_o(this._rawModule.mutations,e)},Object.defineProperties(Zt.prototype,rk);var bo=function(e){this.register([],e,!1)};bo.prototype.get=function(e){return e.reduce(function(a,o){return a.getChild(o)},this.root)},bo.prototype.getNamespace=function(e){var a=this.root;return e.reduce(function(o,s){return a=a.getChild(s),o+(a.namespaced?s+"/":"")},"")},bo.prototype.update=function(e){lk([],this.root,e)},bo.prototype.register=function(e,a,o){var s=this;o===void 0&&(o=!0),process.env.NODE_ENV!=="production"&&mk(e,a);var n=new Zt(a,o);if(e.length===0)this.root=n;else{var i=this.get(e.slice(0,-1));i.addChild(e[e.length-1],n)}a.modules&&_o(a.modules,function(r,c){s.register(e.concat(c),r,o)})},bo.prototype.unregister=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1],s=a.getChild(o);if(!s){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+o+"', which is not registered");return}s.runtime&&a.removeChild(o)},bo.prototype.isRegistered=function(e){var a=this.get(e.slice(0,-1)),o=e[e.length-1];return a?a.hasChild(o):!1};function lk(e,a,o){if(process.env.NODE_ENV!=="production"&&mk(e,o),a.update(o),o.modules)for(var s in o.modules){if(!a.getChild(s)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+s+"' on hot reloading, manual reload is needed");return}lk(e.concat(s),a.getChild(s),o.modules[s])}}var ck={assert:function(e){return typeof e=="function"},expected:"function"},ZDe={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},dk={getters:ck,mutations:ck,actions:ZDe};function mk(e,a){Object.keys(dk).forEach(function(o){if(a[o]){var s=dk[o];_o(a[o],function(n,i){Xt(s.assert(n),YDe(e,o,i,n,s.expected))})}})}function YDe(e,a,o,s,n){var i=a+" should be "+n+' but "'+a+"."+o+'"';return e.length>0&&(i+=' in module "'+e.join(".")+'"'),i+=" is "+JSON.stringify(s)+".",i}var St=function e(a){var o=this;a===void 0&&(a={}),process.env.NODE_ENV!=="production"&&(Xt(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),Xt(this instanceof e,"store must be called with the new operator."));var s=a.plugins;s===void 0&&(s=[]);var n=a.strict;n===void 0&&(n=!1);var i=a.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new bo(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=i;var r=this,c=this,h=c.dispatch,d=c.commit;this.dispatch=function(m,p){return h.call(r,m,p)},this.commit=function(m,p,y){return d.call(r,m,p,y)},this.strict=n;var l=this._modules.root.state;Gc(this,l,[],this._modules.root),i0(this,l),s.forEach(function(m){return m(o)})},d0={state:{configurable:!0}};St.prototype.install=function(e,a){e.provide(a||zDe,this),e.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;o&&UDe(e,this)},d0.state.get=function(){return this._state.data},d0.state.set=function(e){process.env.NODE_ENV!=="production"&&Xt(!1,"use store.replaceState() to explicit replace store state.")},St.prototype.commit=function(e,a,o){var s=this,n=Wc(e,a,o),i=n.type,r=n.payload,c=n.options,h={type:i,payload:r},d=this._mutations[i];if(!d){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+i);return}this._withCommit(function(){d.forEach(function(l){l(r)})}),this._subscribers.slice().forEach(function(l){return l(h,s.state)}),process.env.NODE_ENV!=="production"&&c&&c.silent&&console.warn("[vuex] mutation type: "+i+". Silent option has been removed. Use the filter functionality in the vue-devtools")},St.prototype.dispatch=function(e,a){var o=this,s=Wc(e,a),n=s.type,i=s.payload,r={type:n,payload:i},c=this._actions[n];if(!c){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+n);return}try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(r,o.state)})}catch(d){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(d))}var h=c.length>1?Promise.all(c.map(function(d){return d(i)})):c[0](i);return new Promise(function(d,l){h.then(function(m){try{o._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(r,o.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(p))}d(m)},function(m){try{o._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(r,o.state,m)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(p))}l(m)})})},St.prototype.subscribe=function(e,a){return K6(e,this._subscribers,a)},St.prototype.subscribeAction=function(e,a){var o=typeof e=="function"?{before:e}:e;return K6(o,this._actionSubscribers,a)},St.prototype.watch=function(e,a,o){var s=this;return process.env.NODE_ENV!=="production"&&Xt(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(s.state,s.getters)},a,Object.assign({},o))},St.prototype.replaceState=function(e){var a=this;this._withCommit(function(){a._state.data=e})},St.prototype.registerModule=function(e,a,o){o===void 0&&(o={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(Xt(Array.isArray(e),"module path must be a string or an Array."),Xt(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,a),Gc(this,this.state,e,this._modules.get(e),o.preserveState),i0(this,this.state)},St.prototype.unregisterModule=function(e){var a=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var o=r0(a.state,e.slice(0,-1));delete o[e[e.length-1]]}),Q6(this)},St.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&Xt(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},St.prototype.hotUpdate=function(e){this._modules.update(e),Q6(this,!0)},St.prototype._withCommit=function(e){var a=this._committing;this._committing=!0,e(),this._committing=a},Object.defineProperties(St.prototype,d0);var KDe=eLe(function(e,a){var o={};return process.env.NODE_ENV!=="production"&&!pk(a)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),QDe(a).forEach(function(s){var n=s.key,i=s.val;o[n]=function(){for(var r=[],c=arguments.length;c--;)r[c]=arguments[c];var h=this.$store.commit;if(e){var d=tLe(this.$store,"mapMutations",e);if(!d)return;h=d.context.commit}return typeof i=="function"?i.apply(this,[h].concat(r)):h.apply(this.$store,[i].concat(r))}}),o});function QDe(e){return pk(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function pk(e){return Array.isArray(e)||Y6(e)}function eLe(e){return function(a,o){return typeof a!="string"?(o=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,o)}}function tLe(e,a,o){var s=e._modulesNamespaceMap[o];return process.env.NODE_ENV!=="production"&&!s&&console.error("[vuex] module namespace not found in "+a+"(): "+o),s}const aLe="/icn-play.svg",oLe="/icn-tiros-de-esquina.svg",sLe="/icn-tiro-a-porteria.svg",nLe="/icn-cambio.svg",iLe="/icn-falta.svg",rLe="/atajada.svg",lLe="/fuera-de-lugar.svg",m0="/gol.svg",cLe="/var.png",dLe="/tiempo-agregado.svg",mLe="/jugada-peligrosa.svg",pLe="/penal-marcado.svg",hLe="/penal-fallado.svg",gLe="/inicia-el-partido.svg",yLe="/fin-del-partido.svg",uLe="/icn-tarjeta-amarilla.svg",fLe="/icn-tarjeta-roja.svg",_Le=[1,2,3,4,6],bLe={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],a=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return s0.GOAL_IDS.includes(a)?(e.push("is-main-event"),e.push("goal")):s0.YELLOW_CARD_IDS.includes(a)?(e.push("is-main-event"),e.push("yellow-card")):s0.RED_CARD_IDS.includes(a)&&(e.push("is-main-event"),e.push("red-card")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(a=>NDe(a))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||_Le.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...KDe("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e,a){(a==="Gol"||a==="Tarjeta")&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,a]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(a),teamId:this.gameEvent.team_id})}}},wLe=e=>(t.pushScopeId("data-v-f8cd0c73"),e=e(),t.popScopeId(),e),CLe={class:"time-line-event__details"},kLe={width:"127",preload:"metadata",style:{"border-radius":"8px"}},SLe=["src"],ELe=wLe(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),NLe={class:"time-line-event__details__info"},$Le={key:0,class:"time-line-event__details__info__header__players"},BLe={class:"time-line-event__details__info__header__players__div-img"},xLe=["src"],VLe={class:"time-line-event__details__info__body"},ILe={class:"time-line-event__details__info__body__comment"},ALe={class:"time-line-event__minute__container"},OLe={class:"time-line-event__minute__container__text"},TLe={class:"time-line-event__minute__container__icon-container"},zLe={class:"time-line-event__minute__container__icon-container__icon"},FLe={key:0,src:oLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},RLe={key:1,src:sLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},PLe={key:2,src:nLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},DLe={key:3,src:iLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},LLe={key:4,src:rLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},jLe={key:5,src:lLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},vLe={key:6,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},MLe={key:7,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},HLe={key:8,src:m0,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ULe={key:9,src:cLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},GLe={key:10,src:dLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},WLe={key:11,src:mLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qLe={key:12,src:pLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},JLe={key:13,src:hLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},XLe={key:14,src:gLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},ZLe={key:15,src:yLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},YLe={key:16,src:uLe,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},KLe={key:17,src:fLe,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},QLe={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function eje(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",i.teamTypeClasses]),style:t.normalizeStyle({width:`${o.width}px`}),key:n.gameEventKey},[t.createElementVNode("div",CLe,[o.gameEvent.video_link!=="-"&&o.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:a[0]||(a[0]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("video",kLe,[t.createElementVNode("source",{src:o.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,SLe)]),ELe])):t.createCommentVNode("",!0),t.createElementVNode("div",NLe,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",i.teamTypeClasses2])},[o.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",$Le,[i.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(i.srcImgPlayers,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":c===1}]),key:c},[t.createElementVNode("div",BLe,[t.createElementVNode("img",{src:r,alt:""},null,8,xLe)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",i.nameClasses]),onClick:a[1]||(a[1]=r=>i.thumbnailClick(o.gameEvent.video_link,o.gameEvent.event_type_name))},[t.createElementVNode("img",{src:aLe,class:t.normalizeClass("time-line-event__details__info__header__event-play time-line-event__details__info__header__event-play__"+o.gameEvent.event_type_name)},null,2),t.createTextVNode(" "+t.toDisplayString(o.gameEvent.category_id?o.gameEvent.event_type_id===5?o.gameEvent.category_name:o.gameEvent.event_type_name==="Gol"?o.gameEvent.event_type_name+" de "+o.gameEvent.team_name:o.gameEvent.event_type_name:o.gameEvent.comments),1)],2)],2),t.createElementVNode("div",VLe,[t.createElementVNode("div",ILe,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",i.minuteClasses])},[t.createElementVNode("div",ALe,[t.createElementVNode("div",OLe,t.toDisplayString(o.gameEvent.minute)+"'",1),t.createElementVNode("div",TLe,[t.createElementVNode("div",zLe,[o.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",FLe)):o.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",RLe)):o.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",PLe)):o.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",DLe)):o.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",LLe)):o.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",jLe)):o.gameEvent.category_id==6&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==5&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==1&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==2&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==3&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==7&&o.gameEvent.event_type_id==1||o.gameEvent.category_id==12&&o.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",vLe)):o.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",MLe)):o.gameEvent.category_id==13||o.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",HLe)):o.gameEvent.category_id==30||o.gameEvent.category_id==31||o.gameEvent.category_id==32||o.gameEvent.category_id==33||o.gameEvent.category_id==34||o.gameEvent.category_id==35||o.gameEvent.category_id==36||o.gameEvent.category_id==37||o.gameEvent.category_id==38||o.gameEvent.category_id==39||o.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",ULe)):o.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",GLe)):o.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",WLe)):o.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",qLe)):o.gameEvent.category_id==15||o.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",JLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==16||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==18||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==20||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",XLe)):o.gameEvent.category_id==0&&o.gameEvent.game_status_id==13||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==17||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==19||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==21||o.gameEvent.category_id==0&&o.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",ZLe)):o.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",YLe)):o.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",KLe)):(t.openBlock(),t.createElementBlock("img",QLe))])])])],2)],6)}const tje=ii(bLe,[["render",eje],["__scopeId","data-v-f8cd0c73"]]),aje={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},oje={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let qc=null;const sje={name:"TimeLine",components:{Tooltip:CDe,TimeLineEvent:tje},mixins:[SDe],props:{gameData:{type:Object,required:!0},timeLinePeriod:{type:String,default:"all"}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1||(this.timeLineStatus="finished"),this.fillGameEvents(e.id))}},"$socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const a=await this.fetchGameEvents(e);a?(this.gameEvents=[...a],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(a){throw new Error(a)}},getGameEventClassAndSetIcon(e,a){return e.icon=a===0?"inicio_del_partido":aje[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const{data:{plays:a}}=await q6.get(`${this.gameEventsUrl}${e}`);return a}catch(a){throw new Error(a)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.$socket.client.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)qc=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),qc.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,a){const o=this.$refs[`gameEventDiv${a}`][0],s=this.$refs[`gameEventLine${a}`]?this.$refs[`gameEventLine${a}`][0]:null,n=e+12;o&&(o.style.height=`${n}px`),s&&(s.style.height=`${n}px`)},sortGameEvents(){this.gameEvents.sort((e,a)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(a.match_lapse)+Number(a.minute))),this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let a=0;switch(e){case 1:a=0;break;case 2:a=45;break;case 3:a=90;break;case 4:a=105;break;case 5:a=120;break}return a},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const a=this.gameEvents.findIndex(o=>o.play_id===e.play_id);a&&this.gameEvents.splice(a,1)},checkTimeLineStatus(){this.gameEvents.forEach(a=>{const o=oje[a.game_status];o&&this.timeLineStatuses.push({...o,gameEvent:a})}),this.timeLineStatuses.sort((a,o)=>o.weight-a.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const a=this.gameData[e].team_id;return EDe(a)},thumbnailClick(e){this.dataVideo.link=e,this.dataVideo.visible=!0}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){qc&&qc.unobserve(this.$refs.timeLine)},sockets:{new_mxm(e,a){this.channelName===e&&this.addGameEventFromChannel(a)},update_mxm(e,a){this.channelName===e&&(this.deleteGameEventFromChannel(a),this.addGameEventFromChannel(a))},delete_mxm(e,a){this.channelName===e&&this.deleteGameEventFromChannel(a)}}},hk=e=>(t.pushScopeId("data-v-a31f9d54"),e=e(),t.popScopeId(),e),nje={ref:"timeLine",class:"time-line"},ije={class:"time-line__header"},rje={class:"time-line__header__dot"},lje={class:"time-line__header__dot__home-team team-logo"},cje=["src"],dje={class:"time-line__header__dot__away-team team-logo"},mje=["src"],pje={class:"time-line__game-events"},hje={key:1,class:"start-line"},gje=hk(()=>t.createElementVNode("div",null,null,-1)),yje=hk(()=>t.createElementVNode("div",null,null,-1)),uje=[gje,yje],fje={key:1,class:"noEventText"},_je={class:"tooltip-data"},bje=["src"];function wje(e,a,o,s,n,i){const r=t.resolveComponent("TimeLineEvent"),c=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",nje,[t.createElementVNode("div",ije,[t.createElementVNode("div",rje,[t.createElementVNode("div",lje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("homeTeam"),alt:""},null,8,cje)]),t.createElementVNode("div",dje,[t.createElementVNode("img",{src:i.getTeamLogoSrc("awayTeam"),alt:""},null,8,mje)])])]),t.createElementVNode("div",pje,[o.gameData.status!==4?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:n.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.gameEventsToShow,(h,d)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:h.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${d}`,class:t.normalizeClass(i.getGameEventClassAndSetIcon(h,d))},[t.createElementVNode("div",{class:t.normalizeClass(i.getEventContainerClass(h))},[t.createVNode(r,{"game-event":h,"is-mobile":i.isMobile,"time-line-width":n.timeLineWidth,width:i.gameEventWidth,onEventHeight:l=>i.updateContainerHeight(l,d),onPlayerChanged:a[0]||(a[0]=l=>e.$emit("player-changed",l)),onThumbnailClick:i.thumbnailClick},null,8,["game-event","is-mobile","time-line-width","width","onEventHeight","onThumbnailClick"])],2),d>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${d}`,class:"line"},null,512)):t.createCommentVNode("",!0),o.gameData.status===1&&d===i.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",hje,uje)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",fje," Aún no comienza el partido "))])],512),t.createVNode(c,{data:n.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",_je,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:n.dataVideo.link,format:"video/mp4"},null,8,bje)])])]),_:1},8,["data"])],64)}const Cje=ii(sje,[["render",wje],["__scopeId","data-v-a31f9d54"]]),kje={class:"game-time-line__options"},Sje={class:"game-time-line__timeline"},Eje={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:18,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){q6.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const a=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),o=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let s=null;const n=t.ref(["Todo","1er tiempo","2do tiempo"]),i=t.ref("Todo"),r=t.ref({}),c=t.ref(null),h=t.ref(0),d=t.computed(()=>{let g="all";return i.value==="1er tiempo"||i.value==="1er"?g="firstHalf":(i.value==="2do tiempo"||i.value==="2do")&&(g="secondHalf"),g}),l=t.computed(()=>h.value<500);function m(g){i.value=g}function p(g){r.value=g}function y(){if(window.ResizeObserver)s=new ResizeObserver(()=>{h.value=c.value.clientWidth}),s.observe(c.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{y()}),t.onBeforeUnmount(()=>{s&&s.unobserve(c.value)}),(g,u)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:c,class:"game-time-line"},[t.createElementVNode("div",kje,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.value,f=>(t.openBlock(),t.createElementBlock("div",{key:f,class:"game-time-line__options__option"},[t.createVNode(tPe,t.mergeProps(h.value<390?o.value:a.value,{text:f=="Todo"?f:h.value<390?f.substring(0,3):f,"is-active":i.value===f,onClick:_=>m(f)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",Sje,[t.createVNode(Cje,{"game-data":e.game,"time-line-period":d.value,"is-mobile":l.value,onGameEventsByPeriodFilled:p},null,8,["game-data","time-line-period","is-mobile"])])],512))}},Nje=ii(Eje,[["__scopeId","data-v-52261d5c"]]);function $je(e){const a=t.ref({width:0,height:0});function o(){const s=e.value.getBoundingClientRect();a.value.width=s.width,a.value.height=s.height}return t.onMounted(()=>{o(),window.addEventListener("resize",o)}),t.onUnmounted(()=>{window.removeEventListener("resize",o)}),{elementSize:a}}const Bje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},p0={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},gk=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},yk=p0.setup;p0.setup=yk?(e,a)=>(gk(),yk(e,a)):gk;const xje={ref:"gscScrollableContainer",class:"scrollable-container"},Vje={class:"scrollable-arrows"},Ije=["width","height","viewBox"],Aje=["stroke"],Oje={class:"scrollable-wrapper"},Tje={class:"scrollable-arrows"},zje=["width","height","viewBox"],Fje=["stroke"];function Rje(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",xje,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",Vje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,Aje)],8,Ije))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",Oje,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",Tje,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,Fje)],8,zje))])],2)):t.createCommentVNode("",!0)],512)}const Pje=Bje(p0,[["render",Rje],["__scopeId","data-v-b548a08d"]]),Dje=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},h0={components:{GSCSlider:Pje},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:a}=$je(e);return{myDivRef:e,elementSize:a}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var a={};return e.width>768?a={fontSize:"16px"}:e.width>480?a={fontSize:"14px"}:a={fontSize:"12px"},a}}},uk=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},fk=h0.setup;h0.setup=fk?(e,a)=>(uk(),fk(e,a)):uk;const Lje={ref:"myDivRef"},jje={key:0,class:"gs-switch-container"},vje=["onClick"],Mje={key:1,class:"gs-switch-container-type"},Hje=["onClick"],Uje={key:2,class:"gs-switch-container-carousel"},Gje=["onClick"];function Wje(e,a,o,s,n,i){const r=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",Lje,[o.type==0?(t.openBlock(),t.createElementBlock("div",jje,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:h,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,vje))),128))],4),t.renderSlot(e.$slots,o.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",Mje,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([i.customGrid(s.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:o.backgroundOptionDisable}]),key:h,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Hje))),128))],4)])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",Uje,[t.createVNode(r,{arrows:o.arrow,"background-color":o.background,"px-scroll":o.pxScroll,"scroll-color":o.scrollColor,"arrows-position":o.arrowsPosition,arrowsScrollHide:o.arrowsScrollHide,"arrows-background":o.arrowsBackground,"arrows-container-bg-l":o.arrowsContainerBgL,"arrows-container-bg-r":o.arrowsContainerBgR,"arrows-margin":o.arrowsMargin,"arrows-radius":o.arrowsRadius,"arrows-border":o.arrowsBorder},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.buttons,(c,h)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:o.height},o.selectedOption==c?{borderColor:o.colorOptionActive,color:o.colorFont+"!important",background:o.backgroundOptionActive}:{borderColor:o.colorOptionDisable,color:"grey !important"}]),key:h,onClick:d=>(o.selectedOption=c,i.clickEmitEvent(c))},t.toDisplayString(c),13,Gje))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const _k=Dje(h0,[["render",Wje],["__scopeId","data-v-8a86dfaf"]]),nHe="",qje={class:"game-data__header"},Jje={class:"game-data__header__tournament-season-dropdown"},Xje={class:"game-data__header__teams-carousel"},Zje={class:"game-data__body"},Yje={class:"game-data__body__menu"},Kje={class:"game-data__body__menu__contmenuswitch"};Li.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const Qje=t.defineComponent({name:"TemplateVideos",components:{StatisticsMain:kT,GSCGameTimeLine:Nje,GscSwitchComponent:_k,GSCLineupsMain:zX,GSCDatosGSMain:Ine,GSCVideoGame:H0e,GSCSummaryMain:QRe}}),eve=Fe(Object.assign(Qje,{props:{currentSeasonId:{type:Number,default:0},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0}},emits:["openmedia","change-season-id"],setup(e,{emit:a}){const o=e,s=t.ref({season:[]}),n=t.ref({}),i=t.ref({}),r=t.ref(!0),c=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),h=t.ref([{componentName:"GSCSummaryMain",name:"Resumen",id:1},{componentName:"GSCVideoGame",name:"Video",id:2},{componentName:"GSCDatosGSMain",name:"Datos Golstats",id:3},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]);let d=null;const l=t.ref(null),m=t.ref(0),p=t.ref(h.value[0]);let y=t.ref("");const g=t.computed(()=>{const $=[];return n.value&&n.value.id&&($.push({id:n.value.id,name:n.value.name,type:n.value.type}),n.value.related_seasons&&n.value.related_seasons.forEach(z=>{$.push({id:z.id,type:z.type})})),$});function u(){d=new ResizeObserver($=>{for(const z of $)m.value=z.contentRect.width}),d.observe(l.value)}const f=t.computed(()=>{let $={};return i.value&&i.value.game_id&&($={gameId:i.value.game_id,id:i.value.game_id,seasonId:i.value.season_id,status:i.value.game_status,game_status:i.value.game_status==0?4:i.value.game_status,dateTimeUTC:i.value.date_time_utc,homeTeam:i.value.home_team,awayTeam:i.value.visiting_team}),$});function _($){s.value=$,$.is_captured===0?r.value=!1:r.value=!0,s.value.id!==$.id&&(s.value=$)}function k($){a("openmedia",$)}function w($){V($),$=="Estadísticas"&&(y.value="Comparativa")}function b(){y.value=""}function E($){n.value.id!==$.id&&(n.value=$,a("change-season-id",$.id))}const x=t.computed(()=>h.value.map($=>{if(r.value)return $.name;if($.id!==5&&$.id!==6)return $.name}).filter($=>$!=null));function V($){p.value=h.value.find(z=>z.name===$)||h.value[0]}t.onMounted(()=>{u()});function B($){i.value=$}return($,z)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:l},[t.createElementVNode("div",qje,[t.createElementVNode("div",Jje,[t.createVNode(t.unref(c7),{"current-season-id":e.currentSeasonId,onInput:_},null,8,["current-season-id"]),t.createVNode(t.unref(O7),{"current-season-id":e.currentSeasonId,seasons:s.value.seasons,onInput:E},null,8,["current-season-id","seasons"])]),t.createElementVNode("div",Xje,[t.createVNode(t.unref(vN),{token:c.value,"await-for-seasons":"",seasons:g.value,"is-pagination-visible":!1,"are-games-carousel-type":"",onChangeGameCarousel:B,"default-game-id":o.defaultGameId,"sort-calendar":o.sortCalendar},null,8,["token","seasons","default-game-id","sort-calendar"])])]),t.createElementVNode("div",Zje,[t.createElementVNode("div",Yje,[t.createElementVNode("div",Kje,[t.createVNode(t.unref(_k),{type:2,buttons:x.value,"font-family":"Poppins-Regular","font-size":"16px",width:m.value<400||m.value<700?"max-content":m.value<840||m.value<1050?"155px":"165px","selected-option":p.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:V},null,8,["buttons","width","selected-option"])])]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(p.value.componentName),{game:f.value,subsection:t.unref(y),seasonSelected:n.value,showLineups:r.value,onResetSubsection:b,onOpenmedia:k,onChangeToTab:w},null,40,["game","subsection","seasonSelected","showLineups"]))])],512))}}),[["__scopeId","data-v-a0b39b4f"]]);async function ft({url:e,options:a={},retries:o=3}){return await Li.get(e,a).then(s=>s).catch(s=>o>0?ft({url:e,options:a,retries:o-1}):s)}async function bk({seasonId:e},a=!0){try{const o={url:`https://b5lrr2nc0h.execute-api.us-west-2.amazonaws.com/prod/statisticsLeagueBySeason/${e}`};a&&(o.url=`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`,o.retries=1);const{data:{data:s}}=await ft(o);return s}catch(o){if(a)return bk({seasonId:e},!1);throw new Error(o)}}async function tve({seasonId:e}){try{return(await ft({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}async function ave({seasonId:e}){try{return(await ft({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`})).data.data}catch(a){return Promise.reject(a)}}function ove(e,a,o,s,n,i,r=!1){const c=o.map(h=>h===1?2:h===2?1:3);return e.filter(h=>{const d=i&&h[n.teamId]?h[n.teamId]!==i:!1,l=a===1?2:1;return(r||s.includes(h[n.gameId]))&&(!a||(d?l:a)===h[n.playingAs])&&(o.includes(h[n.matchResult])&&h[n.teamId]===i||c.includes(h[n.matchResult])&&h[n.teamId]!==i)})}function wk(e,a,o,s,n){return a.length===2&&o.length===3&&s.length===6?e:e.filter(i=>a.includes(i[n.playingAs])&&o.includes(i[n.matchResult])&&s.includes(i[n.section]))}async function Ck({seasonId:e}){try{const a=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await ft({url:a})).data}catch(a){return Promise.reject(a)}}async function sve({seasonId:e,gameId:a}){try{const o=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${a}`,{data:s}=await ft({url:o});return s}catch(o){return Promise.reject(o)}}async function nve({gameId:e}){try{const a=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await ft({url:a})).data.data}catch(a){return Promise.reject(a)}}async function ive({gameId:e}){try{const a=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await ft({url:a})).data.data||[]}catch(a){return Promise.reject(a)}}const rve=["categoryId","matchLapse","section","matchResult","playingAs","total"];let g0=null;function kk(){return g0||(g0=Vi(rve)),g0}async function lve(e){try{const a=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await ft({url:a})).data}catch(a){return Promise.reject(a)}}async function Sk({seasonId:e,teamId:a}){try{return await ft({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${a}`})}catch(o){return Promise.reject(o)}}async function cve(e){try{const a=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await ft({url:a})}catch(a){return Promise.reject(a)}}async function dve(e){try{return await ft({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`})}catch(a){return Promise.reject(a)}}const mve={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,a,o,s){return ove(e.seasonPlays,s["filterGeneral/getPlayingAs"],s["filterGeneral/getResults"],s["filterGeneral/getSelectedGamesIds"],kk(),s["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const a=e.currentSeasonGames.reduce((o,s)=>{const n={...s};return n.home_team=e.currentSeasonTeams.find(i=>i.team_id===s.home_team),n.visiting_team=e.currentSeasonTeams.find(i=>i.team_id===s.visiting_team),o[s.matchday_abbreviation]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]?o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date].push(n):o[s.matchday_abbreviation][s.game_status===3?"canceled":s.date]=[n]:o[s.matchday_abbreviation]={[s.game_status===3?"canceled":s.date]:[n]},o},{});for(let[o,s]of Object.entries(a))a[o]=Object.entries(s).map(([n,i])=>({date:n,games:i})),a[o].sort((n,i)=>n.date<i.date?-1:n.date>i.date?1:0);return a},matchdaysDates(e,a){let o=[];if(a.nextGamesSchedule){let s=Object.keys(a.nextGamesSchedule);for(let n of s){let i=Number(n.replace("M","")),r=a.nextGamesSchedule[n].map(c=>({matchday:i,date:new Date(c.date)}));o=o.concat(r)}}return o},closestMatchDay(e,a){let o=new Date,s=0,n=-new Date(0,0,0).valueOf(),i=a.matchdaysDates,r=i.length;for(let c=0;c<i.length;c++)s=Math.abs(i[c].date-o),s<n&&(r=c,n=s);return i[r]?i[r].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,a){e.booleanIsLiveGamesModalOpen=a},setBooleanAreLiveGames(e,a){e.booleanAreLiveGames=a},updateSeasonPlays(e,a){e.seasonPlays=a},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateSelectedRound(e,a){e.selectedRound=a}},actions:{async getSeasonPlays({commit:e,rootGetters:a},o=!1){try{const s=await bk({seasonId:a["filterGeneral/getSeasonId"]});if(o)return s;e("updateSeasonPlays",s)}catch(s){return Promise.reject(s)}},async getCurrentSeasonGames({commit:e,rootGetters:a}){try{const o=await Ck({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonGames",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,rootGetters:a}){try{const o=await lve({seasonId:a["loginGeneral/seasonId"]});e("updateCurrentSeasonTeams",o.teams)}catch(o){return Promise.reject(o)}},async isDataFilled({state:e,dispatch:a,commit:o}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return o("setIsSectionLoading",!1,{root:!0}),!0;const s=[void 0,void 0];return e.currentSeasonGames.length===0&&(s[0]=a("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(s[1]=a("getCurrentSeasonTeams")),await Promise.all(s),!1}catch(s){throw new Error(s)}}}}};async function pve({filter:e}){try{const a=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:o}=await ft({url:a});return o}catch(a){return Promise.reject(a)}}const hve=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let y0=null;function gve(){return y0||(y0=Vi(hve)),y0}class Jc{constructor(){De(this,"maximumLiveSection",1);De(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});De(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(a){a>this.maximumLiveSection&&(this.maximumLiveSection=a)}getZeroTotalsTrendSections(){return[0,0,0,0,0,0]}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.accomplished.totalLive+=o,this.accomplished.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o)),this.accomplished.totalPostGame+=o,this.accomplished.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,a,o)}increaseReceivedByOne(a,o,s){s&&(this.setMaximumLiveSection(a),this.received.totalLive+=o,this.received.totalsLiveTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o)),this.received.totalPostGame+=o,this.received.avgPostGameTrendLive.sections[a-1]+=o,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,a,o)}increaseTrendLiveAccumulatedByOne(a,o,s){for(let n=o-1;n<a.accumulated.length;n++)a.accumulated[n]+=s}decreaseAccomplishedLiveByOne(a,o){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=o),this.accomplished.totalsLiveTrendLive.sections[a-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,a,o))}decreaseReceivedLiveByOne(a,o){this.received.totalLive>0&&(this.received.totalLive-=o),this.received.totalsLiveTrendLive.sections[a-1]>0&&(this.received.totalsLiveTrendLive.sections[a-1]-=o,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,a,o))}decreaseTotalsLiveTrendLiveAccumulatedByOne(a,o,s){for(let n=a.accumulated.length-1;n>=o-1;n--)a.accumulated[n]-=s}calculateAvg(a){a&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/a,this.received.avgPostGame=this.received.totalPostGame/a,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,a),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,a),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,a),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,a))}getAvgPostGameTrendLiveAvg(a,o){return a.map(s=>s/o)}calculateRanking(a,o,s,n,i,r,c,h){let d=[];n===3&&a&&a.length&&(s.playingAs.length!==2||s.matchResult.length!==3)?d=Array.from(a.reduce((m,p)=>{const y=p[o.playingAs]===1,g=y?"1":"2",u=m.get(p[o.gameId]);if(u)u[g]?u[g].arrayPlays.push(p):u[g]={numberTeamId:p[o.teamId],arrayPlays:[p]};else{const f={numberMatchResult:p[o.matchResult]};y&&(f[1]={numberTeamId:p[o.teamId],arrayPlays:[p]}),m.set(p[o.gameId],f)}return m},new Map).values()).reduce((m,p)=>{const y=s.playingAs.length===2?"both":s.playingAs[0].toString();return(y==="both"&&(p[1].numberTeamId===s.teamId||p[2].numberTeamId===s.teamId)||y!=="both"&&p[y].numberTeamId===s.teamId)&&s.matchResult.includes(p.numberMatchResult)&&m.push(...p[1].arrayPlays,...p[2].arrayPlays),m},[]).filter(m=>s.sections.includes(m[o.section])):(d=a?[...a]:[],c&&a&&(d=a.filter(l=>s.playingAs.includes(l[o.playingAs])&&s.matchResult.includes(l[o.matchResult])&&s.sections.includes(l[o.section])))),this.setTeamRanking(d,n,o,s.teamId,r,"accomplished",h)}setTeamRanking(a,o,s,n,i,r,c){let h=null,d=null;o===3&&(h=new Map,d={},a.forEach(p=>{const y=h.get(p[s.gameId]);y?y[p[s.teamId.toString()]]?y[p[s.teamId.toString()]]+=p[s.total]:y[p[s.teamId.toString()]]=p[s.total]:h.set(p[s.gameId],{[p[s.teamId.toString()]]:p[s.total]})}),Array.from(h.values()).forEach(p=>{const[y,g]=Object.keys(p).map(f=>f),u=p[y]+p[g];this.addPassesAvgByTeam(d,y,u?p[y]/u:0),this.addPassesAvgByTeam(d,g,u?p[g]/u:0)}));const l=i.sort((p,y)=>p.team_id-y.team_id).map(p=>{if(o===3){const y=d[p.team_id.toString()];return{teamId:p.team_id,points:y?y.numberTotalPassesAvg/y.numberGamesCount:0,total:y?y.numberTotalPassesAvg:0}}else{const y=a.reduce((g,u)=>u[s.teamId]===p.team_id&&o===u[s.categoryId]?g+u[s.total]:g,0);return{teamId:p.team_id,points:p[`${c}FilterGames`]?y/p[`${c}FilterGames`]:0,total:y}}}).sort((p,y)=>y.points-p.points);this.accomplished.arrayRankings=l;const m=l.findIndex(p=>p.teamId===n);o===3&&(this.accomplished.avgPreGame=l[m].points),this[r].ranking=m+1,this[r].leader=l[0]}addPassesAvgByTeam(a,o,s){a[o]?(a[o].numberGamesCount+=1,a[o].numberTotalPassesAvg+=s):a[o]={numberGamesCount:1,numberTotalPassesAvg:s}}}class de{constructor(a,o,s,n,i,r,c,h,d,l){De(this,"id","");De(this,"generalId",0);De(this,"name","");De(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});De(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});De(this,"accomplishedCategoryIds",[]);De(this,"receivedCategoryIds",[]);De(this,"generalCategoriesIds",{accomplished:0,received:0});De(this,"specialMention","");De(this,"homeTeam",new Jc);De(this,"visitingTeam",new Jc);De(this,"isLeagueDataCalculated",!1);De(this,"leagueAccomplishedMax",0);De(this,"leagueReceivedMax",0);De(this,"leagueAccomplishedAvg",0);De(this,"leagueReceivedAvg",0);De(this,"leagueAccomplishedAccumulator",0);De(this,"leagueReceivedAccumulator",0);De(this,"homeTeamType","homeTeam");De(this,"visitingTeamType","visitingTeam");De(this,"betOnly",!1);De(this,"isPercent",!1);this.id=`${s.accomplished}-${s.received}`,this.accomplishedCategoryIds=a||[],this.receivedCategoryIds=o||[],this.generalCategoriesIds=s||{accomplished:0,received:0},this.name=n,this.names["0-0"]=n||"",this.names["1-1"]=i||"",this.names["0-1"]=r||"",this.names["1-0"]=c||"",this.generalId=h||0,this.betOnly=d||!1,this.isPercent=l||!1}addLeaguePlays(a,o,s){a.length===0||!s||this.isLeagueDataCalculated||(a.forEach(n=>{this.isAccomplishedLeaguePlay(n[o.categoryId])&&(this.leagueAccomplishedAccumulator+=n[o.total]),this.isReceivedLeaguePlay(n[o.categoryId])&&(this.leagueReceivedAccumulator+=n[o.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*s)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*s)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(a,o,s){let n="-";for(const[i,r]of Object.entries(this.generalCategoriesIds))a===r&&(n=`${i==="accomplished"?"0":"1"}${n}`),o===r&&(n=`${n}${i==="accomplished"?"0":"1"}`);n.length===3&&(this.mentions[n]=s)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(a,o,s,n,i){!s||!i||a!==this.homeTeamType&&a!==this.visitingTeamType||(s.forEach(r=>{this.isAccomplishedPlay(r[n.categoryId])?this[a].increaseAccomplishedByOne(r[n.section],r[n.total]):this.isReceivedPlay(r[n.categoryId])&&this[a].increaseReceivedByOne(r[n.section],r[n.total])}),this[a].calculateAvg(i))}addLivePlay(a,o,s,n,i=!1,r=!1){(a===this.homeTeamType||a===this.visitingTeamType)&&s[n.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[a].increaseAccomplishedByOne(s[n.section],s[n.total],!0)}subtractLivePlay(a,o,s,n,i){(a===this.homeTeamType||a===this.visitingTeamType)&&(this.isAccomplishedPlay(s[n.categoryId])&&!i?this[a].decreaseAccomplishedLiveByOne(s[n.section],s[n.total]):this.isReceivedPlay(s[n.categoryId])&&i&&this[a].decreaseReceivedLiveByOne(s[n.section],s[n.total]))}isAccomplishedLeaguePlay(a){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(s=>a===s||`${a}_r`===s)}isReceivedLeaguePlay(a){return!!this.receivedCategoryIds.find(o=>a===o)}isAccomplishedPlay(a){return this.generalCategoriesIds.accomplished===a}isReceivedPlay(a){return this.generalCategoriesIds.received===a}calcRankingLeague(a,o,s,n,i,r=!1){this[this.homeTeamType].calculateRanking(a,o,s,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.homeTeamType),this[this.visitingTeamType].calculateRanking(a,o,n,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,i,r,this.visitingTeamType)}resetData(){this.homeTeam=new Jc,this.visitingTeam=new Jc,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(a){return this.generalCategoriesIds.accomplished===a||this.generalCategoriesIds.received===a}}const yve={general:{name:"General",priority:1,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{goals:new de([12,55,"35_r","54_r"],null,{accomplished:1,received:0},"Goles","Goles recibidos","Goles realizados / recibidos","Goles recibidos / realizados",1),shotToGoal:new de([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),possession:new de([2,3,20,21],null,{accomplished:3,received:0},"Posesión","","","",1,!1,!0),yellowCards:new de([14,52],null,{accomplished:4,received:0},"Tarjetas amarillas","","","",1),redCards:new de([15,53],null,{accomplished:5,received:0},"Tarjetas rojas","","","",1),centerCrosses:new de([13,25],null,{accomplished:6,received:0},"Centros totales","","","",1)}},offensive:{name:"Ofensivo",priority:2,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{shotsOnGoal:new de([19],null,{accomplished:7,received:0},"Tiros a gol","","","",1),shotsOnGoalDestination:new de([91,95],null,{accomplished:8,received:0},"Tiros a gol destino","","","",1),shotToGoal:new de([91,95,158,167,176,343,330,333,423],null,{accomplished:2,received:0},"Remates a destino","","","",1),ballsWonOpponentPenaltyBox:new de([11],null,{accomplished:10,received:0},"Balones ganados área rival","","","",1),centersFromRight:new de([25],null,{accomplished:11,received:0},"Centros por derecha","","","",1),centersFromLeft:new de([13],null,{accomplished:12,received:0},"Centros por izquierda","","","",1),success1VS1:new de([4],null,{accomplished:13,received:0},"Enfrentamientos ofensivos exitosos","","","",1),unsuccess1VS1:new de([209],null,{accomplished:14,received:0},"Enfrentamientos ofensivos no exitosos","","","",1)}},defensive:{name:"Defensivo",priority:3,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{saves:new de([39],null,{accomplished:15,received:0},"Atajadas","","","",1),ballsWonOwnPenaltyBox:new de([23],null,{accomplished:16,received:0},"Balones ganados área propia","","","",1),success1VS1:new de([5],null,{accomplished:17,received:0},"Enfrentamientos defensivos exitosos","","","",1),unsuccess1VS1:new de([209],null,{accomplished:18,received:0},"Enfrentamientos defensivos no exitosos","","","",1),aerialGame:new de([24],null,{accomplished:19,received:0},"Juego aéreo resto del campo","","","",1),clearances:new de([34],null,{accomplished:20,received:0},"Rechaces","","","",1)}},possession:{name:"Posesión",priority:4,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalPasses:new de([2,3,20,21],null,{accomplished:21,received:0},"Pases totales","","","",1),successPasses:new de([2,20],null,{accomplished:22,received:0},"Pases acertados","","","",1),successPassesRivalHalf:new de([20],null,{accomplished:23,received:0},"Pases acertados en cancha rival","","","",1),ballsRecoveredInChallenge:new de([483],null,{accomplished:24,received:0},"Balones recuperados en disputa","","","",1),ballsRecoveredWithoutChallenge:new de([484],null,{accomplished:25,received:0},"Balones recuperados sin disputa","","","",1),ballsLostInChallenge:new de([494],null,{accomplished:26,received:0},"Balones perdidos en disputa","","","",1),ballsLostWithoutChallenge:new de([495],null,{accomplished:27,received:0},"Balones perdidos sin disputa","","","",1)}},stoppedBall:{name:"Balón parado",priority:5,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{freeKick44:new de([155,164,173,362,371,380],null,{accomplished:28,received:0},"Tiros libres 4/4","","","",1),freeKick34:new de([150,357],null,{accomplished:29,received:0},"Tiros libres 3/4","","","",1),freeKickOwnHalf:new de([149,356],null,{accomplished:30,received:0},"Tiros libres cancha propia","","","",1),cornerFromRight:new de([32],null,{accomplished:31,received:0},"Tiros de esquina por derecha","","","",1),cornerFromLeft:new de([31],null,{accomplished:32,received:0},"Tiros de esquina por izquierda","","","",1),goalKick:new de([264,28],null,{accomplished:33,received:0},"Saques de meta","","","",1)}},penalties:{name:"Infracciones",priority:6,parentInfo:{parentAnalysis:[1],analysisTypeBlocks:[1]},subcategories:{totalFouls:new de([17,50],null,{accomplished:34,received:0},"Faltas totales","","","",1),foulOwnGoal:new de([348,478],null,{accomplished:35,received:0},"Faltas cerca de su propia portería","","","",1),fieldFouls:new de([349,350,479,480],null,{accomplished:36,received:0},"Faltas resto del campo","","","",1),penaltyKick:new de([461,481],null,{accomplished:37,received:0},"Penales cometidos","","","",1),offside:new de([33],null,{accomplished:38,received:0},"Fueras de lugar","","","",1)}}},uve=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],fve=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let u0=null;function _ve(){return u0||(u0=Vi(fve)),u0}const bve=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let f0=null;function wve(){return f0||(f0=Vi(bve)),f0}function Xc(e,a,o){return[o.get(e[a.categoryId])||[],e[a.teamId],e[a.matchResult],e[a.playingAs],e[a.matchLapse],e[a.section],e[a.total]]}function Ek(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function _0(e,a,o){let s=[...a];return e[o.categoryId]===2&&(s[0]=14),e[o.categoryId]===20&&(s[0]=15),[14,15].includes(s[0])?s:null}const Cve=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],kve={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:kk(),indexesTSP:gve(),indexesLS:_ve(),indexesTLP:wve(),nextGamesDataStructure:yve,currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!1,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(a=>a.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>(e.isLive=!!e.gameForAnalysis.is_live,e.isLive),showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return uve.filter(a=>a.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return wk(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return wk(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(a=>a.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(a=>e.homeTeamFilter.playingAs.includes(a[0])).filter(a=>e.homeTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(a=>e.visitingTeamFilter.playingAs.includes(a[0])).filter(a=>e.visitingTeamFilter.matchResult.includes(a[1])).reduce((a,o)=>a+o[2],0)},filledDataStructure(e,a){if(e.currentSeasonPlays)for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&s.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&s.visitingTeam.resetTotals(),s.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),s.addTeamPlays(s.homeTeamType,e.gameForAnalysis.home_team,a.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredHomeGames),s.addTeamPlays(s.visitingTeamType,e.gameForAnalysis.visiting_team,a.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:a.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,a){return Object.values(a.filledDataStructure).sort((o,s)=>o.priority-s.priority)},statisticData(e,a){for(const o of Object.values(a.filledDataStructure))if(o.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&o.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return o.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{setCurrentTournamentName(e,a){e.currentTournamentName=a},setBetSubcategoriesObjects(e,a){e.betSubcategoriesObjects=a},setRegularSeasonName(e,a){e.regularSeasonName=a},setBetSubcategories(e,a){e.betSubcategories=a},setBetDescription(e,a){e.betDescription=a},setSeasonId(e,a){e.seasonId=Number(a)},setHome(e,a){e.homeTeamInfo=a},setAway(e,a){e.awayTeamInfo=a},setMenuOptionActive(e,a){e.menuOptionActive=a},setPastSeasonId(e,a){e.pastSeasonId=a},setUsePastSeasonId(e,a){e.usePastSeasonId=a,a&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,a){e.showPostMatch=a},setHomeResultGame(e,a){e.homeResultGame=a},setAwayResultGame(e,a){e.awayResultGame=a},updateIsSocketConnected(e,a){e.isSocketConnected=a,!a&&e.gameForAnalysis.is_live&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateCurrentSeasonTeams(e,a){e.currentSeasonTeams=a,e.currentSeasonTeams.forEach(o=>{o.playedGames=e.currentSeasonGames.reduce((s,n)=>{if(n.game_status===1&&(n.home_team===o.team_id||n.visiting_team===o.team_id)){const i=n.score[0]-n.score[1],r=n.home_team===o.team_id;s.push({playingAs:r?1:2,matchResult:i===0?3:r?i>0?1:2:i<0?1:2})}return s},[])})},updateCurrentSeasonGames(e,a){e.currentSeasonGames=a},updateGameId(e,a){e.gameId=a},updateGameForAnalysis(e,a){e.gameForAnalysis=a,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.gameForAnalysis.is_live===1&&e.isSocketConnected&&this._vm.$socket.client.emit("subscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`})},updateSelectedAnalysis(e,a){e.selectedAnalysis=a},updateShowLiveData(e,a){e.showLiveData=a},toggleShowLiveData(e){e.showLiveData=!e.showLiveData},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,a){e.idAssetSelected=a},updateStats(e,a){e.currentSeasonPlays=a},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:a,needsFormat:o=!1}){if(o){if(!a||!a.local||!a.local.statistics||!a.visit||!a.visit.statistics)return;e.homeTeamFilter=Tu(e.homeTeamFilter,a.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=Tu(e.visitingTeamFilter,a.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==a.local.statistics.block&&(e.selectedStatisticTypeBlock=a.local.statistics.block)}else e.homeTeamFilter={...a.homeTeamFilter,statistics:0},e.visitingTeamFilter={...a.visitingTeamFilter,statistics:0}},updateFinishedGames(e,a){e.totalSeasonFinishedGames=a},updateHomeTeamPlays(e,a){e.homeTeamPlays=a},updateVisitingTeamPlays(e,a){e.visitingTeamPlays=a},addSpecialMentions(e,a){const o=Object.values(e.nextGamesDataStructure);o.forEach(s=>{for(const n of Object.values(s.subcategories))n.resetMentions()}),o.forEach(s=>{for(const n of a)for(const i of Object.values(s.subcategories))i.addSpecialMention(n[0],n[1],n[2])})},setDefaultFilter(e,a){e.defaultFilter={homeTeamFilter:{...a.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...a.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,a){if(!e.livePlays.has(a[e.indexesTLP.playId])){e.livePlays.set(a[e.indexesTLP.playId],a);const s=Xc(a,e.indexesTLP,e.categoriesMap);for(const n of Object.values(e.nextGamesDataStructure))for(const i of Object.values(n.subcategories))i.addLivePlay(e.gameForAnalysis.home_team===s[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",s[e.indexesTSP.teamId],s,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);if(cB(s,a))return;let n="";const i=e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";s&&(n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const r=Xc(s,e.indexesTLP,e.categoriesMap),c=_0(s,r,e.indexesTLP),h=Xc(a,e.indexesTLP,e.categoriesMap),d=_0(a,h,e.indexesTLP);for(const l of Object.values(e.nextGamesDataStructure))for(const m of Object.values(l.subcategories))s&&(m.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o),c&&m.subtractLivePlay(n,c[e.indexesTSP.teamId],c,e.indexesTSP,o)),m.addLivePlay(i,h[e.indexesTSP.teamId],h,e.indexesTSP,e.isLive,o),d&&m.addLivePlay(i,d[e.indexesTSP.teamId],d,e.indexesTSP,e.isLive,o);e.livePlays.set(a[e.indexesTLP.playId],a)},deleteLiveGamePlay(e,a){const o=!!a[e.indexesTLP.length],s=e.livePlays.get(a[e.indexesTLP.playId]);let n="";if(s){n=e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(s[e.indexesTLP.playId]);const i=Xc(s,e.indexesTLP,e.categoriesMap),r=_0(a,i,e.indexesTLP);for(const c of Object.values(e.nextGamesDataStructure))for(const h of Object.values(c.subcategories))h.subtractLivePlay(n,i[e.indexesTSP.teamId],i,e.indexesTSP,o),r&&h.subtractLivePlay(n,r[e.indexesTSP.teamId],r,e.indexesTSP,o)}},clearLiveTotals(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.homeTeam.resetTotalsLive(),o.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,a){e.statistics=a},updateOldSeasonId(e,a){e.oldSeasonId=a},addRankingInSubcategories(e,{getters:a,isPremiumAccount:o}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(i=>{i.homeTeamFilterGames=i.playedGames.filter(r=>e.homeTeamFilter.playingAs.includes(r.playingAs)&&e.homeTeamFilter.matchResult.includes(r.matchResult)).length,i.visitingTeamFilterGames=i.playedGames.filter(r=>e.visitingTeamFilter.playingAs.includes(r.playingAs)&&e.visitingTeamFilter.matchResult.includes(r.matchResult)).length});const s=[],n=new Map;for(const i of Object.values(e.nextGamesDataStructure))for(const r of Object.values(i.subcategories))s.push(r);a.rankingData.forEach(i=>{for(const r of s)if(r.isInGeneralCategory(i[e.indexesLS.categoryId])){n.has(r.id)?n.get(r.id).push(i):n.set(r.id,[i]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,a){e.homeGames=Ek(a)},setVisitingGames(e,a){e.visitingGames=Ek(a)},generateCategoriesMap(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.accomplishedCategoryIds.forEach(s=>{const n=e.categoriesMap.get(s);n?n.push(o.generalCategoriesIds.accomplished):e.categoriesMap.set(s,[o.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const a of Object.values(e.nextGamesDataStructure))for(const o of Object.values(a.subcategories))o.resetData()}},actions:{turnOnOffDefaultFilters({state:e,commit:a},{command:o}){o==="on"?a("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):a("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e},a){try{const r=await dve({gameId:a.gameId});if(r){var o=[],s=[],n={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},i={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};Object.keys(r.data).length!==0&&(o=r.data.data.filter(c=>c[1]==a.homeTeam),s=r.data.data.filter(c=>c[1]==a.awayTeam),n=r.data.games,i=r.data.games),e("updateHomeTeamPlays",o),e("updateVisitingTeamPlays",s),e("setHomeGames",n),e("setVisitingGames",i)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(r){return Promise.reject(r)}},async fillStatisticDataPostMatch({commit:e,dispatch:a},o){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let s=[];e("updateGameForAnalysis",o.gameInfo),s.push(a("setAndGetStatsPostMatch",{gameId:o.game,homeTeam:o.homeTeam,awayTeam:o.awayTeam})),await Promise.all(s)}catch(s){throw new Error(s)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:a,commit:o},{gameId:s,isTeamsAnalysis:n,currentSeasonId:i,isLoginChanged:r=!1,defaultFilter:c=null,gameInfo:h=null,isCupGame:d=!1}){try{let l={},m=e.seasonId!==Number(i);const p=[];o("setIsSectionLoading",!0,{root:!0}),o("setUsePastSeasonId",!1),m&&o("setSeasonId",i),o("updateGameId",Number(s)),e.oldSeasonId!==e.seasonId&&o("resetNextGamesDataStructure");const y=await a("getCurrentSeasonGames",Number(s));if(o("leagueGeneral/updateCurrentSeasonGames",y,{root:!0}),l=y.find(g=>g.game_id===Number(s)),!l&&h&&(l=h),l&&o("updateGameForAnalysis",l),l.game_status!==1&&(d||await a("checkTeamsData",{gameId:s,isFromBet:!!c}),(r||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&p.push(a("getSeasonStatistics")),(r||e.categoriesMap.size===0)&&o("generateCategoriesMap")),e.usePastSeasonId){const g=await a("getCurrentSeasonGamesLast");o("leagueGeneral/updateCurrentSeasonGames",g,{root:!0})}(r||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(g=>l.home_team===g.team_id))&&p.push(a("getCurrentSeasonTeams")),o("setHomeResultGame",l.score[0]),o("setAwayResultGame",l.score[1]),n?l.game_status!==1?(await a("fillStatisticData",{gameId:s,gameinfo:l,promises:p,defaultFilter:c}),o("updateShowPostMatchData",!1)):(o("updateStats",[]),o("updateShowPostMatchData",!0),p.push(a("fillStatisticDataPostMatch",{game:s,homeTeam:l.home_team,awayTeam:l.visiting_team,gameInfo:l})),await Promise.all(p)):o("setIsSectionLoading",!1,{root:!0})}catch(l){return Promise.reject(l)}},async fillStatisticData({commit:e,dispatch:a,getters:o,rootGetters:s,state:n},{gameId:i,gameinfo:r,promises:c=[],defaultFilter:h=null}){let d=null;try{e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",r),r.is_live&&c.push(a("getCurrentLiveGamePlays",i)),c.push(a("getSpecialMentionsByGame",i)),c.push(a("getHomeTeamPlays")),c.push(a("getVisitingTeamPlays")),c.push(a("getCurrentSeasonPlays")),h&&c.push(pve(h)),d=await Promise.all(c)}catch(l){throw new Error(l)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]}),h){const[l]=d.pop();l&&(e("setBetSubcategories",l.categories),e("setBetDescription",l.sectionDescription),e("setDefaultFilter",l.params),e("updateFilterAux"),e("updateFilters",{filters:n.defaultFilter,needsFormat:!1}),a("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:a,rootState:o,commit:s},{gameId:n,isFromBet:i}){try{const r=Number(n);if(o.general.tournaments&&o.general.tournaments.length){await a("general/fetchTournaments",null,{root:!0});const c=o.general.tournaments.find(h=>{for(const d of h.seasons)if(d.id===e.seasonId)return!0;return!1});s("general/setTournamentSelected",c||{},{root:!0})}if(e.pastSeasonId){s("nextGeneral/setPastSeasonId",e.pastSeasonId,{root:!0});const c=o.leagueGeneral.currentSeasonGames.find(h=>h.game_id===r);c&&s("updateGameForAnalysis",c),await Promise.all([a("getHomeTeamPlays"),a("getVisitingTeamPlays")]),s("setUsePastSeasonId",i||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else s("setUsePastSeasonId",!1)}catch(r){throw new Error(r)}},async getSpecialMentionsByGame({commit:e},a){try{const o=await ive({gameId:a});e("addSpecialMentions",o)}catch(o){return Promise.reject(o)}},async getCurrentSeasonGames({commit:e,state:a},o){try{const{teams:s,games:n,past_season_id:i,tournament_id:r}=await sve({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,gameId:o}),c=Cve.find(h=>h.id===r);return c&&e("setCurrentTournamentName",c.name),e("setHome",s[0]),e("setAway",s[1]),a.usePastSeasonId||e("setPastSeasonId",i),await e("updateCurrentSeasonGames",n),n&&Array.isArray(n)&&e("updateFinishedGames",n.reduce((h,d)=>(d.game_status===1&&(h+=1),h),0)),n}catch(s){return Promise.reject(s)}},async getCurrentSeasonGamesLast({commit:e,state:a}){try{const{games:o,past_season_id:s}=await Ck({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});return a.usePastSeasonId||e("setPastSeasonId",s),await e("updateCurrentSeasonGames",o),o&&Array.isArray(o)&&e("updateFinishedGames",o.reduce((n,i)=>(i.game_status===1&&(n+=1),n),0)),o}catch(o){return Promise.reject(o)}},async getCurrentSeasonTeams({commit:e,state:a}){try{const o=await cve({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateCurrentSeasonTeams",o.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:a}){try{const o=a.usePastSeasonId?a.pastSeasonId:a.seasonId,s=await ave({seasonId:o});e("updateSeasonStatistics",s),e("updateOldSeasonId",o)}catch(o){return Promise.reject(o)}},updateRankingInSubcategories({state:e,commit:a,getters:o,rootGetters:s}){e.currentSeasonGames.length>0&&a("addRankingInSubcategories",{getters:o,isPremiumAccount:s["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:a}){try{const o=await Sk({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.home_team});o.data&&(e("updateHomeTeamPlays",o.data.data),e("setHomeGames",o.data.games))}catch(o){return Promise.reject(o)}},async getVisitingTeamPlays({commit:e,state:a}){try{const o=await Sk({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId,teamId:a.gameForAnalysis.visiting_team});o.data&&(e("updateVisitingTeamPlays",o.data.data),e("setVisitingGames",o.data.games))}catch(o){return Promise.reject(o)}},async getCurrentSeasonPlays({commit:e,state:a}){try{const o=await tve({seasonId:a.usePastSeasonId?a.pastSeasonId:a.seasonId});e("updateStats",o)}catch(o){return Promise.reject(new Error(o))}},async getCurrentLiveGamePlays({state:e,commit:a},o){try{const s=await nve({gameId:o});e.livePlays=new Map,s.forEach(n=>{e.gameForAnalysis.game_id===n[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===n[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===n[e.indexesTLP.teamId])&&a("addLiveGamePlay",n)})}catch(s){throw new Error(s)}},socket_new({state:e,commit:a},o){const s=o[1];(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("addLiveGamePlay",s)},socket_update({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===s[e.indexesTLP.teamId])&&a("updateLiveGamePlay",s)},socket_delete({state:e,commit:a},o){const s=o[1];e.gameForAnalysis.game_id===s[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===s[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===s[e.indexesTLP.teamId])&&a("deleteLiveGamePlay",s)},exitChannel({state:e,getters:a,rootState:o,rootGetters:s,commit:n}){const i=s["loginGeneral/getPremiumAccount"];a.isLive&&i&&(n("updateShowLiveData",!1),n("clearLiveTotals"),e.livePlays.clear(),this._vm.$socket.client.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotals(),s.visitingTeam.resetTotals(),s.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(o=>{for(const s of Object.values(o.subcategories))s.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function Sve(){try{const{data:e}=await ft({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"});return e}catch(e){throw new Error(e)}}const Eve={namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,a){e.booleanIsStatisticModalOpen=a},setSectionRef(e,a){e.sectionRef=a},setSectionAnalytics(e,a){e.sectionAnalytics=a},setSeccionBetsGolTipster(e,a){e.seccionBetsGolTipster=a},setPreviewSectionAnalytics(e,a){e.previewSectionAnalytics=a},setVideoSrc(e,a){e.videoSrc=a},setVideoModalVisibility(e,a){e.isVideoModalVisible=a},setSelectedTournament(e,a){e.selectedTournament=a},setTournaments(e,a){e.tournaments=a.map(o=>({...o.tournament,seasons:o.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,a){e.tournamentSelected=a}},actions:{async fetchTournaments({state:e,commit:a}){try{if(e.tournaments.length===0){const o=await Sve();a("setTournaments",o)}}catch(o){throw new Error(o)}}}};async function Nve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${a}/${o}`;return(await ft({url:s})).data}catch(s){return Promise.reject(s)}}async function $ve({seasonId:e,localTeamId:a,visitingTeamId:o}){try{const s=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${a}/${o}`;return(await ft({url:s})).data}catch(s){return Promise.reject(s)}}const Nk=(e,a)=>{let o={};return e.forEach((s,n)=>{n==3&&(a[0]==35||a[0]==54)&&(a[n]==2?a[n]=1:a[n]=2),n==2&&(a[0]==35||a[0]==54)&&(a[n]==1?a[n]=2:a[n]==2&&(a[n]=1)),o[s]=a[n]}),o},$k=(e,a)=>e.filter(s=>{const n=a.playingAs.includes(s.playing_as),i=a.matchResult.includes(s.match_result),r=a.sections.includes(s.section);return n&&i&&r}),Bk=[{name:"Goles",color:"#4A90E2",points:[1,2,3],categories:[12,55,35,54],invert:[35,54],negative:!1},{name:"Tiros a gol",color:"#FF8000",points:[1,2,3],categories:[12,55,35,54,510]}];(function(){function e(a,o,s){return typeof s>"u"||+s==0?Math[a](o):(o=+o,s=+s,isNaN(o)||!(typeof s=="number"&&s%1===0)?NaN:(o=o.toString().split("e"),o=Math[a](+(o[0]+"e"+(o[1]?+o[1]-s:-s))),o=o.toString().split("e"),+(o[0]+"e"+(o[1]?+o[1]+s:s))))}Math.ceil10||(Math.ceil10=function(a,o){return e("ceil",a,o)})})();function xk(e,a){let o=a*-1;return Math.ceil10(e,o)}const Bve={general:Eve,...mve,...kve,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[]},getters:{playsLocal:(e,a,o)=>{const s=e.xGLocalPlays,n="homeTeamFilter",i=o.nextGeneral[n];return $k(s,i)},playsAway:(e,a,o)=>{const s=e.xGVisitingPlays,n="visitingTeamFilter",i=o.nextGeneral[n];return $k(s,i)},goalsQtyLocal:(e,a)=>{const o=Bk.find(s=>s.name==="Goles");return a.playsLocal.filter(s=>o.categories.includes(s.category_id)).length},goalsQtyAway:(e,a)=>{const o=Bk.find(s=>s.name==="Goles");return a.playsAway.filter(s=>o.categories.includes(s.category_id)).length},shotsOnGoalQtyLocal:(e,a)=>a.playsLocal.filter(o=>o.category_id===510).length,shotsOnGoalQtyAway:(e,a)=>a.playsAway.filter(o=>o.category_id===510).length,xGLocal:(e,a)=>{const o=new Set;let s=a.playsLocal.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return xk(s,2)},xGAway:(e,a)=>{const o=new Set;let s=a.playsAway.reduce((n,i)=>(o.has(i.moment_of_play)||(o.add(i.moment_of_play),n+=i.xG2),n),0);return xk(s,2)}},mutations:{setTeamSelected(e,a){e.teamSelected=a},setPlays(e,a){e.xGLocalPlays=a.local_team.map(o=>Nk(a.data_headers,o)),e.xGVisitingPlays=a.visiting_team.map(o=>Nk(a.data_headers,o))},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async getXgPlays({commit:e},{seasonId:a,localTeamId:o,visitingTeamId:s,postMatch:n=!1}){try{var i={};n?i=await $ve({seasonId:a,localTeamId:o,visitingTeamId:s}):i=await Nve({seasonId:a,localTeamId:o,visitingTeamId:s}),e("setPlays",i)}catch(r){return Promise.reject(r)}}}}}};function xve(e){for(const[a,o]of Object.entries(Bve))e.hasModule(a)||e.registerModule(a,o)}_t.GSCGameData=eve,_t.registerStoreModules=xve,Object.defineProperty(_t,Symbol.toStringTag,{value:"Module"})});