@golstats/gsc-lineups-reports 1.0.1 → 1.0.3

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.
@@ -7,4 +7,4 @@
7
7
  * Vue 3 Carousel 0.3.1
8
8
  * (c) 2023
9
9
  * @license MIT
10
- */const j={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"}},zi={itemsToShow:{default:j.itemsToShow,type:Number},itemsToScroll:{default:j.itemsToScroll,type:Number},wrapAround:{default:j.wrapAround,type:Boolean},throttle:{default:j.throttle,type:Number},snapAlign:{default:j.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:j.transition,type:Number},breakpoints:{default:j.breakpoints,type:Object},autoplay:{default:j.autoplay,type:Number},pauseAutoplayOnHover:{default:j.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:j.mouseDrag,type:Boolean},touchDrag:{default:j.touchDrag,type:Boolean},dir:{default:j.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:j.i18n,type:Object},settings:{default(){return{}},type:Object}};function so({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function ao({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function ut({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function no({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:ut({val:r,max:s-o,min:0})}function Ri(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Ri(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function _t({val:t,max:i,min:s=0}){return t>i?_t({val:t-(i+1),max:i,min:s}):t<s?_t({val:t+(i+1),max:i,min:s}):t}function oo(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function ro(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function lo(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var co=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},j))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lo(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),mo=e.defineComponent({name:"Carousel",props:zi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),c=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},j));let p=Object.assign({},j),y;const l=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),u=e.ref(0),g=e.ref(0),m=e.ref(0);let k,N;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",l),e.provide("maxSlide",g),e.provide("minSlide",m),e.provide("slideWidth",c);function _(){y=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),b(p)}function d(){if(!y||!Object.keys(y).length)return;const T=Object.keys(y).map(A=>Number(A)).sort((A,v)=>+v-+A);let x=Object.assign({},p);T.some(A=>{const v=window.matchMedia(`(min-width: ${A}px)`).matches;return v&&(x=Object.assign(Object.assign({},x),y[A])),v}),b(x)}function b(T){Object.entries(T).forEach(([x,A])=>f[x]=A)}const E=ro(()=>{d(),B()},16);function B(){if(!o.value)return;const T=o.value.getBoundingClientRect();c.value=T.width/f.itemsToShow}function V(){h.value<=0||(u.value=Math.ceil((h.value-1)/2),g.value=so({config:f,slidesCount:h.value}),m.value=ao({config:f,slidesCount:h.value}),f.wrapAround||(l.value=ut({val:l.value,max:g.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>B()),setTimeout(()=>B(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{N&&clearTimeout(N),k&&clearInterval(k),window.removeEventListener("resize",E,{passive:!0})});let R=!1;const Y={x:0,y:0},ne={x:0,y:0},D=e.reactive({x:0,y:0}),U=e.ref(!1),P=e.ref(!1),It=()=>{U.value=!0},Vt=()=>{U.value=!1};function X(T){["INPUT","TEXTAREA","SELECT"].includes(T.target.tagName)||(R=T.type==="touchstart",R||T.preventDefault(),!(!R&&T.button!==0||oe.value)&&(Y.x=R?T.touches[0].clientX:T.clientX,Y.y=R?T.touches[0].clientY:T.clientY,document.addEventListener(R?"touchmove":"mousemove",he,!0),document.addEventListener(R?"touchend":"mouseup",S,!0)))}const he=oo(T=>{P.value=!0,ne.x=R?T.touches[0].clientX:T.clientX,ne.y=R?T.touches[0].clientY:T.clientY;const x=ne.x-Y.x,A=ne.y-Y.y;D.y=A,D.x=x},f.throttle);function S(){const T=f.dir==="rtl"?-1:1,x=Math.sign(D.x)*.4,A=Math.round(D.x/c.value+x)*T;if(A&&!R){const v=Tt=>{Tt.stopPropagation(),window.removeEventListener("click",v,!0)};window.addEventListener("click",v,!0)}re(l.value-A),D.x=0,D.y=0,P.value=!1,document.removeEventListener(R?"touchmove":"mousemove",he,!0),document.removeEventListener(R?"touchend":"mouseup",S,!0)}function I(){!f.autoplay||f.autoplay<=0||(k=setInterval(()=>{f.pauseAutoplayOnHover&&U.value||Pe()},f.autoplay))}function z(){k&&(clearInterval(k),k=null),I()}const oe=e.ref(!1);function re(T){const x=f.wrapAround?T:ut({val:T,max:g.value,min:m.value});l.value===x||oe.value||(s("slide-start",{slidingToIndex:T,currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!0,C.value=l.value,l.value=x,N=setTimeout(()=>{if(f.wrapAround){const A=_t({val:x,max:g.value,min:0});A!==l.value&&(l.value=A,s("loop",{currentSlideIndex:l.value,slidingToIndex:T}))}s("update:modelValue",l.value),s("slide-end",{currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!1,z()},f.transition))}function Pe(){re(l.value+f.itemsToScroll)}function Nt(){re(l.value-f.itemsToScroll)}const Zi={slideTo:re,next:Pe,prev:Nt};e.provide("nav",Zi),e.provide("isSliding",oe);const Qi=e.computed(()=>no({config:f,currentSlide:l.value,slidesCount:h.value}));e.provide("slidesToScroll",Qi);const bc=e.computed(()=>{const T=f.dir==="rtl"?-1:1,x=Qi.value*c.value*T;return{transform:`translateX(${D.x-x}px)`,transition:`${oe.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function vi(){_(),d(),V(),B(),z()}Object.keys(zi).forEach(T=>{["modelValue"].includes(T)||e.watch(()=>t[T],vi)}),e.watch(()=>t.modelValue,T=>{T!==l.value&&re(Number(T))}),e.watch(h,V),s("before-init"),_();const es={config:f,slidesCount:h,slideWidth:c,next:Pe,prev:Nt,slideTo:re,currentSlide:l,maxSlide:g,minSlide:m,middleSlide:u};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:B,initDefaultConfigs:_,restartCarousel:vi,slideTo:re,next:Pe,prev:Nt,nav:Zi,data:es});const ts=i.default||i.slides,is=i.addons,ss=e.reactive(es);return()=>{const T=Ri(ts==null?void 0:ts(ss)),x=(is==null?void 0:is(ss))||[];T.forEach((Ot,$t)=>Ot.props.index=$t);let A=T;if(f.wrapAround){const Ot=T.map((Ft,we)=>e.cloneVNode(Ft,{index:-T.length+we,isClone:!0,key:`clone-before-${we}`})),$t=T.map((Ft,we)=>e.cloneVNode(Ft,{index:T.length+we,isClone:!0,key:`clone-after-${we}`}));A=[...Ot,...T,...$t]}r.value=T,h.value=Math.max(T.length,1);const v=e.h("ol",{class:"carousel__track",style:bc.value,onMousedownCapture:f.mouseDrag?X:null,onTouchstartPassiveCapture:f.touchDrag?X:null},A),Tt=e.h("div",{class:"carousel__viewport"},v);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":oe.value,"is-dragging":P.value,"is-hover":U.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:It,onMouseleave:Vt},[Tt,x,e.h(co)])}}}),Di;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Di||(Di={}));var ho=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},j))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,c=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),y=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=y};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const po=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},fo=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),go={class:"gsc-carousel"},yo={key:0},uo=fo(()=>e.createElementVNode("div",null,"no hay",-1)),_o=[uo],bo={class:"gsc-carousel__2d__slides"},wo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Co=["fill"],ko={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},So=["fill"],Eo={class:"gsc-carousel__2d__navigation"},Io={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vo=["stroke"],No={key:1,class:"gsc-carousel__2d__navigation__pagination"},To=["onClick"],Oo={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o=["stroke"],Fo={__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:t=>["propName","value"].every(i=>i in t)},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"},arrowsMaxWidth:{type:String,default:"20px"},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(t,{expose:i,emit:s}){const a=t;e.useCssVars(g=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),c=e.ref(!1);e.watch(n,g=>{g&&c.value?(c.value=!1,h(a.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.defaultItemByIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.items,g=>{n.value?h(g):c.value=!0},{immediate:!0});function h(g){g&&g.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(k=>k[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=g[m]):(r.value=0,o.value=g[0])}else r.value=a.defaultItemByIndex,o.value=g[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function y(){n.value&&n.value.updateSlideWidth()}function l(g){n.value&&n.value.slideTo(g)}function C(g){n.value.slideTo(g)}function u(g){const m=g.slidingToIndex<0?a.items.length-1:g.slidingToIndex===a.items.length?0:g.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:y,slideTo:l}),(g,m)=>(e.openBlock(),e.createElementBlock("div",go,[a.is3d?(e.openBlock(),e.createElementBlock("div",yo,_o)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",bo,[e.createVNode(e.unref(mo),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,N)=>(e.openBlock(),e.createBlock(e.unref(ho),{key:N},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default",{item:k},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=k=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",wo,[e.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:t.arrowsColor},null,8,Co)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=k=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",ko,[e.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:t.arrowsColor},null,8,So)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",Eo,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=k=>p())},[(e.openBlock(),e.createElementBlock("svg",Io,[e.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:a.arrowsColor},null,8,Vo)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,N)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${N}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===N?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===N?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:_=>C(N)},null,12,To))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=k=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Oo,[e.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:a.arrowsColor},null,8,$o)]))])):e.createCommentVNode("",!0)])],2))]))}},bt=po(Fo,[["__scopeId","data-v-54620d25"]]);function Bo(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const zo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},wt={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 t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Mi=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Ai=wt.setup;wt.setup=Ai?(t,i)=>(Mi(),Ai(t,i)):Mi;const Ro={ref:"gscScrollableContainer",class:"scrollable-container"},Do={class:"scrollable-arrows"},Mo=["width","height","viewBox"],Ao=["stroke"],jo={class:"scrollable-wrapper"},xo={class:"scrollable-arrows"},Lo=["width","height","viewBox"],Uo=["stroke"];function Po(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Ro,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",Do,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,Ao)],8,Mo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",jo,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",xo,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,Uo)],8,Lo))])],2)):e.createCommentVNode("",!0)],512)}const Ho=zo(wt,[["render",Po],["__scopeId","data-v-b548a08d"]]),Wo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Ct={components:{GSCSlider:Ho},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 t=e.ref("myDivRef"),{elementSize:i}=Bo(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},ji=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},xi=Ct.setup;Ct.setup=xi?(t,i)=>(ji(),xi(t,i)):ji;const qo={ref:"myDivRef"},Xo={key:0,class:"gs-switch-container"},Jo=["onClick"],Go={key:1,class:"gs-switch-container-type"},Yo=["onClick"],Ko={key:2,class:"gs-switch-container-carousel"},Zo=["onClick"];function Qo(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",qo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Jo))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Yo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",Ko,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Zo))),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"])])):e.createCommentVNode("",!0)],512)}const Ue=Wo(Ct,[["render",Qo],["__scopeId","data-v-8a86dfaf"]]),kt="/icn-filter.svg",be="/icn-expand-arrow.svg",Li="/backarrow.svg",Ui="/nextarrow.svg",vo={selectoritem:"_selectoritem_1dafy_137",selectoritem2:"_selectoritem2_1dafy_157",gscheaderlineup:"_gscheaderlineup_1dafy_177",anNoEstn:"_anNoEstn_1dafy_191",groupsLeague:"_groupsLeague_1dafy_197",jugadores:"_jugadores_1dafy_209",switchOption:"_switchOption_1dafy_219",jugadores1:"_jugadores1_1dafy_239",switchOption1:"_switchOption1_1dafy_249",switchStatesBig:"_switchStatesBig_1dafy_265",groupsLeagueParent:"_groupsLeagueParent_1dafy_283",imgHomeTeamIcon:"_imgHomeTeamIcon_1dafy_301",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1dafy_313",teamContainer:"_teamContainer_1dafy_337",name:"_name_1dafy_361",homeTeamContainer:"_homeTeamContainer_1dafy_373",div:"_div_1dafy_393",scoreContainer:"_scoreContainer_1dafy_401",scoreContainerWrapper:"_scoreContainerWrapper_1dafy_421",teamContainer1:"_teamContainer1_1dafy_447",awayTeamContainer:"_awayTeamContainer_1dafy_471",matchContainer:"_matchContainer_1dafy_491",sliderMatchesChild:"_sliderMatchesChild_1dafy_509",manchesterUnited:"_manchesterUnited_1dafy_521",sliderMatchesItem:"_sliderMatchesItem_1dafy_533",sliderMatches:"_sliderMatches_1dafy_509",sortIcon:"_sortIcon_1dafy_569",filtros:"_filtros_1dafy_583",sortParent:"_sortParent_1dafy_599",shapeIcon:"_shapeIcon_1dafy_613",btnFilter:"_btnFilter_1dafy_623",btnFilter1:"_btnFilter1_1dafy_651",btnFilterParent:"_btnFilterParent_1dafy_679",backArrowIcon:"_backArrowIcon_1dafy_695",teamContainer2:"_teamContainer2_1dafy_707",homeTeam:"_homeTeam_1dafy_373",div4:"_div4_1dafy_735",finalScore:"_finalScore_1dafy_745",manchesterUnited1:"_manchesterUnited1_1dafy_771",scoreContainer1:"_scoreContainer1_1dafy_785",match:"_match_1dafy_491",manchesterUnited2:"_manchesterUnited2_1dafy_821",btnDetails:"_btnDetails_1dafy_831",matchContainer1:"_matchContainer1_1dafy_851",goalChild:"_goalChild_1dafy_867",goal:"_goal_1dafy_867",manchesterUnited3:"_manchesterUnited3_1dafy_893",minuteEvent:"_minuteEvent_1dafy_907",yellowCard:"_yellowCard_1dafy_921",awayTeamEvents:"_awayTeamEvents_1dafy_935",rectangle:"_rectangle_1dafy_949",homeTeamEvents:"_homeTeamEvents_1dafy_963",totalEvents:"_totalEvents_1dafy_979",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1dafy_995",switchOption3:"_switchOption3_1dafy_1017",switchOption4:"_switchOption4_1dafy_1041",switchStatesBig1:"_switchStatesBig1_1dafy_1061",manchesterUnited13:"_manchesterUnited13_1dafy_1075",homeTeamContainer1:"_homeTeamContainer1_1dafy_1085",scoreContainer2:"_scoreContainer2_1dafy_1099",matchContainer2:"_matchContainer2_1dafy_1127",manchesterUnited14:"_manchesterUnited14_1dafy_1147",sliderMatchesInner:"_sliderMatchesInner_1dafy_1161",rectangleIcon:"_rectangleIcon_1dafy_1181",sliderMatches1:"_sliderMatches1_1dafy_1201",containerData:"_containerData_1dafy_1217",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1dafy_1245",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1dafy_995",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1dafy_1293",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1dafy_1299",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1dafy_1307"},er={components:{GSCCarousel:bt,GscSwitchComponent:Ue},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(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},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 t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},tr=["src"],ir=["src"],sr=["src"],ar=["src"],nr=["src"],or=["src"];function rr(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,tr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,ir)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:kt},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Li},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,sr)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,ar)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Ui},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en: ",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,nr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,or)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const lr=Q(er,[["render",rr],["__cssModules",{$style:vo}]]),cr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},St={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Pi=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hi=St.setup;St.setup=Hi?(t,i)=>(Pi(),Hi(t,i)):Pi;const dr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),mr=["src"],hr={key:1,class:"text"},pr=["src"],fr={class:"stats"},gr=dr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),yr={class:"numstats"},ur={class:"leyend"};function _r(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,mr)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",hr,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,pr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",fr,[gr,e.createElementVNode("div",yr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",ur,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const br=cr(St,[["render",_r],["__scopeId","data-v-f3ee6b2b"]]),wr={class:"gsc-dropdown__main-container__item-selected"},Cr=["height","width"],kr=["stroke"],Sr={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Er=["fill"],Ir={class:"gsc-dropdown__items-container"},Vr=["onClick"],Nr={key:0,class:"gsc-dropdown__items-footer"},Wi={__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(t){return["solid","dotted","dashed"].includes(t)}},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:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},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},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},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},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&C&&C.length){if(s.defaultItemByProp){const g=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);g!==-1?(o.value=g,a.value=C[g]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const u=s.items.findIndex(g=>typeof C=="object"?JSON.stringify(g)===JSON.stringify(C):g===C);u!==-1&&(o.value=u,a.value=s.items[u],i("update:modelValue",a.value))}},{immediate:!0});const c=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function y(C,u){s.isMultipleOption?o.value=-1:(o.value=u,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function l(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(c.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",wr,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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:t.arrowColor},null,8,kr)],8,Cr)):(e.openBlock(),e.createElementBlock("svg",Sr,[e.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:t.arrowColor},null,8,Er)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Ir,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(g,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:k=>y(g,m)},[e.renderSlot(C.$slots,"availableItem",{item:g})],10,Vr)),[[e.vShow,!g.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Nr,[e.createVNode(e.unref(br),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:l})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},Tr=["for"],Or=["name"],$r={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,Tr)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)]),8,Or)):(e.openBlock(),e.createElementBlock("svg",$r,n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]))}},Fr=["value"],Br={class:"filter-modal__padding"},zr={class:"filter-modal__content-header"},Rr={class:"filter-modal__content-options"},Dr=["onClick"],Mr={class:"filter-modal__content-header"},Ar={class:"filter-modal__content-options"},jr=["onClick"],xr=Q({__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(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({d00c78a6:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,c=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),y=e.ref(!0),l=e.ref(!0),C=e.ref(["local","visit"]),u=e.ref(["win","draw","lose"]),g=()=>{o.value.focus(),c.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(u.value)),f.value=y.value,p.value=l.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,u.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&k()});const m=(d,b)=>{let E;b==="team"?E=C.value:E=u.value;const B=E.findIndex(V=>V===d);B==-1?E.push(d):b=="team"&&C.value.length==2?E.splice(B,1):(b=="team"&&E.push(d),u.value.length>1&&E.splice(B,1)),y.value=C.value.length==2,l.value=u.value.length==3},k=()=>{C.value=["local","visit"],u.value=["win","draw","lose"],y.value=!0,l.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})},N=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})},_=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})};return(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[b[5]||(b[5]=e.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)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Fr),b[6]||(b[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:b[4]||(b[4]=E=>{t.isOpen=!1,_()})},[e.createElementVNode("div",Br,[e.createElementVNode("div",zr,[b[7]||(b[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(qi,{modelValue:y.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>y.value=E),b[1]||(b[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Rr,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,Dr)),64))]),e.createElementVNode("div",Mr,[b[8]||(b[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(qi,{modelValue:l.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>l.value=E),b[3]||(b[3]=E=>E&&(u.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Ar,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"player"),class:e.normalizeClass({active:u.value.includes(E.id)})},e.toDisplayString(E.name),11,jr)),64))])]),b[9]||(b[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:k},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:N},"Listo")])],34)],4))}},[["__scopeId","data-v-2118a6cd"]]),Lr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},Ur={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pr={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Lr,s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)]))):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",Ur,s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)]))):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Pr,s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)]))):e.createCommentVNode("",!0)}},Hr={class:"match-details"},Wr={class:"match-details__list"},qr={class:"match-details__list right"},Xr=Q({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",Hr,[e.createElementVNode("ul",Wr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(Xi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",qr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(Xi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-ad3b88e3"]]),Jr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Et={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Ji=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Gi=Et.setup;Et.setup=Gi?(t,i)=>(Ji(),Gi(t,i)):Ji;const Gr={key:0,class:"text-left"},Yr=["width","src"],Kr=["checked"],Zr=["width","src"],Qr={key:3,class:"text-right"};function vr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Gr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,Yr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,Kr),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,Zr)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Qr,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const el=Jr(Et,[["render",vr],["__scopeId","data-v-e2a20444"]]),tl="/icn-filter1.svg",il="/icn-expand-arrow1.svg",sl="/icn-filter2.svg",al="/icn-arrow-expand.svg",nl={containernofoundsearchrecientes:"_containernofoundsearchrecientes_1gxk5_159","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:"_btndeletefilters_1gxk5_215",leyenddeleteshow:"_leyenddeleteshow_1gxk5_247",selectoritem:"_selectoritem_1gxk5_261",anNoEstn:"_anNoEstn_1gxk5_279",groupsLeague:"_groupsLeague_1gxk5_287",historicas:"_historicas_1gxk5_297",switchOption:"_switchOption_1gxk5_309",recientes:"_recientes_1gxk5_331",switchOption1:"_switchOption1_1gxk5_343",switchOption2:"_switchOption2_1gxk5_369",switchStatesBig:"_switchStatesBig_1gxk5_387",groupsLeagueParent:"_groupsLeagueParent_1gxk5_407",imgHomeTeamIcon:"_imgHomeTeamIcon_1gxk5_427",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1gxk5_441",teamContainer:"_teamContainer_1gxk5_467",name:"_name_1gxk5_493",homeTeamContainer:"_homeTeamContainer_1gxk5_507",div:"_div_1gxk5_529",scoreContainer:"_scoreContainer_1gxk5_539",scoreContainerWrapper:"_scoreContainerWrapper_1gxk5_561",teamContainer1:"_teamContainer1_1gxk5_587",awayTeamContainer:"_awayTeamContainer_1gxk5_613",matchContainer:"_matchContainer_1gxk5_635",sliderMatchesChild:"_sliderMatchesChild_1gxk5_655",manchesterUnited:"_manchesterUnited_1gxk5_669",sliderMatchesItem:"_sliderMatchesItem_1gxk5_683",sliderMatches:"_sliderMatches_1gxk5_655",sortIcon:"_sortIcon_1gxk5_719",filtros:"_filtros_1gxk5_735",sortParent:"_sortParent_1gxk5_753",shapeIcon:"_shapeIcon_1gxk5_769",btnFilter:"_btnFilter_1gxk5_781",btnFilter1:"_btnFilter1_1gxk5_813",btnFilterParent:"_btnFilterParent_1gxk5_843",backArrowIcon:"_backArrowIcon_1gxk5_861",teamContainer2:"_teamContainer2_1gxk5_875",homeTeam:"_homeTeam_1gxk5_507",div4:"_div4_1gxk5_907",finalScore:"_finalScore_1gxk5_919",manchesterUnited1:"_manchesterUnited1_1gxk5_947",scoreContainer1:"_scoreContainer1_1gxk5_963",match:"_match_1gxk5_635",manchesterUnited2:"_manchesterUnited2_1gxk5_997",btnDetails:"_btnDetails_1gxk5_1023",matchContainer1:"_matchContainer1_1gxk5_1047",goalChild:"_goalChild_1gxk5_1065",goal:"_goal_1gxk5_1065",manchesterUnited3:"_manchesterUnited3_1gxk5_1095",minuteEvent:"_minuteEvent_1gxk5_1111",yellowCard:"_yellowCard_1gxk5_1127",awayTeamEvents:"_awayTeamEvents_1gxk5_1143",rectangle:"_rectangle_1gxk5_1159",homeTeamEvents:"_homeTeamEvents_1gxk5_1175",totalEvents:"_totalEvents_1gxk5_1193",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1gxk5_1211",sliderMatchesInner:"_sliderMatchesInner_1gxk5_1233",btnFilter2:"_btnFilter2_1gxk5_1247",btnDetails1:"_btnDetails1_1gxk5_1281",matchContainer3:"_matchContainer3_1gxk5_1299",backArrowIcon1:"_backArrowIcon1_1gxk5_1321",match1:"_match1_1gxk5_1335",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1gxk5_1347",jugadores2:"_jugadores2_1gxk5_1369",switchOption6:"_switchOption6_1gxk5_1383",switchOption7:"_switchOption7_1gxk5_1405",switchStatesBig2:"_switchStatesBig2_1gxk5_1431",manchesterUnited26:"_manchesterUnited26_1gxk5_1447",homeTeamContainer2:"_homeTeamContainer2_1gxk5_1459",vectorIcon:"_vectorIcon_1gxk5_1475",teamSwitch:"_teamSwitch_1gxk5_1487",matchContainer5:"_matchContainer5_1gxk5_1513",manchesterUnited27:"_manchesterUnited27_1gxk5_1535",sliderMatchesChild1:"_sliderMatchesChild1_1gxk5_1551",sliderMatchesChild2:"_sliderMatchesChild2_1gxk5_1573",sliderMatches2:"_sliderMatches2_1gxk5_1595",filtros2:"_filtros2_1gxk5_1615",btnFilter4:"_btnFilter4_1gxk5_1635",jornada2:"_jornada2_1gxk5_1667",filterMatchday:"_filterMatchday_1gxk5_1681",btnDetails2:"_btnDetails2_1gxk5_1703",filtersContainer:"_filtersContainer_1gxk5_1725",matchContainer6:"_matchContainer6_1gxk5_1745",matchDetailContainer:"_matchDetailContainer_1gxk5_1763",containerData:"_containerData_1gxk5_1783",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_1gxk5_1813",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1gxk5_1211",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_1gxk5_1865",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_1gxk5_1891",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_1gxk5_1917",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_1gxk5_1941",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_1gxk5_1967",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_1gxk5_1995",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_1gxk5_2017",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1gxk5_2039",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_1gxk5_2067",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_1gxk5_2091",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1gxk5_2113"},ol={components:{GSCCarousel:bt,GscSwitchComponent:Ue,GSCDropdown:Wi,GSCFilter:xr,GSCSwitchRadio:el,GSCMatchDetails:Xr},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:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];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 i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];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 i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},rl=["src"],ll=["src"],cl={class:"selector-tournaments"},dl=["src"],ml=["src"],hl={key:1},pl=["src"],fl=["src"],gl={class:"selector-tournaments"},yl=["src"],ul=["src"],_l={key:1},bl=["src"],wl=["src"],Cl={class:"selector-tournaments"},kl=["src"],Sl=["src"],El={key:1};function Il(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.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),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,ll)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:kt},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.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:e.withCtx(l=>[e.createElementVNode("div",cl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,ml),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[11]||(i[11]=[e.createTextVNode("No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados.")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.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),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,fl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:tl},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:il},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.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:e.withCtx(l=>[e.createElementVNode("div",gl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,yl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,ul),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[14]||(i[14]=[e.createTextVNode("No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados.")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,bl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.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),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,wl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:sl},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:al},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.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:e.withCtx(l=>[e.createElementVNode("div",Cl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,kl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,Sl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[15]||(i[15]=[e.createTextVNode("No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados.")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const Vl=Q(ol,[["render",Il],["__cssModules",{$style:nl}]]),Nl={selectoritem:"_selectoritem_16hc8_179",selectoritem2:"_selectoritem2_16hc8_199",gscheaderlineup:"_gscheaderlineup_16hc8_219",anNoEstn:"_anNoEstn_16hc8_233",groupsLeague:"_groupsLeague_16hc8_239",jugadores:"_jugadores_16hc8_249",switchOption:"_switchOption_16hc8_259",jugadores1:"_jugadores1_16hc8_279",switchOption1:"_switchOption1_16hc8_289",switchStatesBig:"_switchStatesBig_16hc8_305",groupsLeagueParent:"_groupsLeagueParent_16hc8_323",imgHomeTeamIcon:"_imgHomeTeamIcon_16hc8_341",imgHomeTeamWrapper:"_imgHomeTeamWrapper_16hc8_353",teamContainer:"_teamContainer_16hc8_377",name:"_name_16hc8_401",homeTeamContainer:"_homeTeamContainer_16hc8_413",div:"_div_16hc8_433",titleSession:"_titleSession_16hc8_441",scoreContainer:"_scoreContainer_16hc8_461",scoreContainerWrapper:"_scoreContainerWrapper_16hc8_481",teamContainer1:"_teamContainer1_16hc8_505",awayTeamContainer:"_awayTeamContainer_16hc8_529",matchContainer:"_matchContainer_16hc8_549",sliderMatchesChild:"_sliderMatchesChild_16hc8_567",manchesterUnited:"_manchesterUnited_16hc8_579",sliderMatchesItem:"_sliderMatchesItem_16hc8_591",sliderMatches:"_sliderMatches_16hc8_567",sortIcon:"_sortIcon_16hc8_627",filtros:"_filtros_16hc8_641",sortParent:"_sortParent_16hc8_657",shapeIcon:"_shapeIcon_16hc8_671",btnFilter:"_btnFilter_16hc8_681",btnFilter1:"_btnFilter1_16hc8_709",btnFilterParent:"_btnFilterParent_16hc8_737",backArrowIcon:"_backArrowIcon_16hc8_753",teamContainer2:"_teamContainer2_16hc8_765",homeTeam:"_homeTeam_16hc8_413",div4:"_div4_16hc8_793",finalScore:"_finalScore_16hc8_803",manchesterUnited1:"_manchesterUnited1_16hc8_829",scoreContainer1:"_scoreContainer1_16hc8_843",match:"_match_16hc8_549",manchesterUnited2:"_manchesterUnited2_16hc8_879",btnDetails:"_btnDetails_16hc8_889",matchContainer1:"_matchContainer1_16hc8_909",goalChild:"_goalChild_16hc8_925",goal:"_goal_16hc8_925",manchesterUnited3:"_manchesterUnited3_16hc8_951",minuteEvent:"_minuteEvent_16hc8_965",yellowCard:"_yellowCard_16hc8_979",awayTeamEvents:"_awayTeamEvents_16hc8_993",rectangle:"_rectangle_16hc8_1007",homeTeamEvents:"_homeTeamEvents_16hc8_1021",totalEvents:"_totalEvents_16hc8_1037",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_16hc8_1053",switchOption3:"_switchOption3_16hc8_1075",switchOption4:"_switchOption4_16hc8_1099",switchStatesBig1:"_switchStatesBig1_16hc8_1119",manchesterUnited13:"_manchesterUnited13_16hc8_1133",homeTeamContainer1:"_homeTeamContainer1_16hc8_1143",scoreContainer2:"_scoreContainer2_16hc8_1157",matchContainer2:"_matchContainer2_16hc8_1185",manchesterUnited14:"_manchesterUnited14_16hc8_1205",sliderMatchesInner:"_sliderMatchesInner_16hc8_1219",rectangleIcon:"_rectangleIcon_16hc8_1239",sliderMatches1:"_sliderMatches1_16hc8_1259",containerData:"_containerData_16hc8_1275",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_16hc8_1303",headerSeccionAlineaciones:"_headerSeccionAlineaciones_16hc8_1053",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_16hc8_1351",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_16hc8_1357",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_16hc8_1365"},Tl={components:{GSCCarousel:bt,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},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 t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ol=["src"],$l=["src"],Fl=["src"],Bl=["src"],zl=["src"],Rl=["src"];function Dl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Ol)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+"  |  "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+"  |  "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,$l)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:kt},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Li},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Fl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Ui},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Rl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Ml=Q(Tl,[["render",Dl],["__cssModules",{$style:Nl}]]),Al={anNoEstn:"_anNoEstn_j98j7_139",groupsLeague:"_groupsLeague_j98j7_145",historicas:"_historicas_j98j7_153",switchOption:"_switchOption_j98j7_163",switchOption1:"_switchOption1_j98j7_183",probables:"_probables_j98j7_203",switchOption2:"_switchOption2_j98j7_213",switchStatesBig:"_switchStatesBig_j98j7_237",groupsLeagueParent:"_groupsLeagueParent_j98j7_255",imgHomeTeamIcon:"_imgHomeTeamIcon_j98j7_273",imgHomeTeamWrapper:"_imgHomeTeamWrapper_j98j7_285",teamContainer:"_teamContainer_j98j7_309",name:"_name_j98j7_333",jor:"_jor_j98j7_345",jorParent:"_jorParent_j98j7_357",shapeIcon:"_shapeIcon_j98j7_373",frameParent:"_frameParent_j98j7_383",manchesterUnited:"_manchesterUnited_j98j7_413",necaxaIcon:"_necaxaIcon_j98j7_435",manchesterUnited1:"_manchesterUnited1_j98j7_447",team:"_team_j98j7_309",homeTeamContainer:"_homeTeamContainer_j98j7_475",div1:"_div1_j98j7_495",scoreContainer:"_scoreContainer_j98j7_503",scoreContainerWrapper:"_scoreContainerWrapper_j98j7_525",team1:"_team1_j98j7_549",name1:"_name1_j98j7_563",teamContainer1:"_teamContainer1_j98j7_577",awayTeamContainer:"_awayTeamContainer_j98j7_601",matchContainer:"_matchContainer_j98j7_623",goalChild:"_goalChild_j98j7_641",goal:"_goal_j98j7_641",manchesterUnited4:"_manchesterUnited4_j98j7_667",minuteEvent:"_minuteEvent_j98j7_681",yellowCard:"_yellowCard_j98j7_695",awayTeamEvents:"_awayTeamEvents_j98j7_709",rectangle:"_rectangle_j98j7_723",homeTeamEvents:"_homeTeamEvents_j98j7_737",totalEvents:"_totalEvents_j98j7_753",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_j98j7_769",homeTeamContainer1:"_homeTeamContainer1_j98j7_789",awayTeamContainer1:"_awayTeamContainer1_j98j7_813",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_j98j7_837",jugadores:"_jugadores_j98j7_857",switchOption6:"_switchOption6_j98j7_869",switchOption8:"_switchOption8_j98j7_889",switchStatesBig2:"_switchStatesBig2_j98j7_913",manchesterUnited28:"_manchesterUnited28_j98j7_927",homeTeamContainer2:"_homeTeamContainer2_j98j7_935",matchContainer2:"_matchContainer2_j98j7_949",manchesterUnited29:"_manchesterUnited29_j98j7_971",sliderMatchesChild:"_sliderMatchesChild_j98j7_985",sliderMatchesItem:"_sliderMatchesItem_j98j7_1005",sliderMatches:"_sliderMatches_j98j7_985",jorParent2:"_jorParent2_j98j7_1045",filterMatchday:"_filterMatchday_j98j7_1059",necaxaIcon4:"_necaxaIcon4_j98j7_1081",team4:"_team4_j98j7_1093",filterMatchdayParent:"_filterMatchdayParent_j98j7_1113",filterMatchday1:"_filterMatchday1_j98j7_1127",teamParent:"_teamParent_j98j7_1157",filtersContainer:"_filtersContainer_j98j7_1177",containerData:"_containerData_j98j7_1195",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_j98j7_1223",headerSeccionAlineaciones:"_headerSeccionAlineaciones_j98j7_769"},jl={components:{GSCDropdown:Wi,GscSwitchComponent:Ue},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(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},xl=["src"],Ll={class:"selector-tournaments"},Ul=["src"],Pl=["src"],Hl={class:"selector-tournaments"},Wl=["src"],ql=["src"],Xl={class:"selector-tournaments"},Jl=["src"],Gl=["src"],Yl={class:"selector-tournaments"},Kl=["src"],Zl=["src"],Ql=["src"],vl={class:"selector-tournaments"},ec=["src"],tc=["src"],ic={class:"selector-tournaments"};function sc(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,xl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Ll,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Ul),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Pl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Hl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Wl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Xl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Gl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Yl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Kl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Ql)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",vl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ec)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,tc),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",ic,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const ac=Q(jl,[["render",sc],["__cssModules",{$style:Al}]]),Yi="/line.png";let Ki=null;const nc={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:io,HeaderPlayerHistorico:lr,HeaderPlayerRecientes:Vl,HeaderPlayerProbables:ac,HeaderPlayerPostmatch:Ml},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",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,keyUpdateRecientes: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,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=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 t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=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(t){throw new Error(t)}},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&(this.lastSection=t),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[F.get(this.urlGames+t.season_id+"/games/"+t.game_id,s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==this.lastGetLineUpGameId&&(o=F.get(this.url+r,s),n.push(o));const[c,h]=await Promise.all(n);await this.gameDataInfo(t,c),await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=this.dataPlayersHome.findIndex(k=>k.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].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://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),y=s[1].trim().split(" "),l="";p.length==2||p.length==1?p[0].length<4?l=p[0]+" "+p[1]:l=p[0]:p.length==3?l=p[0]+" "+p[1]:p.length==4&&(l=p[1]+" "+p[2]+" "+p[3]);var C=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";l=l.replace(",","");var u=C+". "+l,g=this.dataPlayersAway.findIndex(k=>k.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:g!=-1?this.isFemale?this.positions[this.dataPlayersAway[g].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[g].position_id-1].name:"",position_id:this.dataPlayersAway[g].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].playerID+".png",nationality:g!=-1&&this.dataPlayersAway[g].nationality?this.dataPlayersAway[g].nationality.substring(0,3):"",imgNationality:g!=-1?this.dataPlayersAway[g].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersHome.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var y=i.data[d].player_name.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=i.data[d].x,N=100-(100-k)*50/100;N=N*.9;var _=i.away_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:_!=-1?this.isFemale?this.positions[i.away_team.players[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[_].position_id-1].name:"",position_id:i.away_team.players[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:_!=-1&&i.away_team.players[_].nationality?i.away_team.players[_].nationality.substring(0,3):"",imgNationality:_!=-1?i.away_team.players[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:N+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var c=this.playersHome[V].idsGoals.findIndex(R=>R==i.play_id);c!=-1&&(s=c,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var y=this.playersAway[V].idsGoals.findIndex(R=>R==i.play_id);y!=-1&&(s=y,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==l[0]),u=this.playersHome.findIndex(V=>V.playerId==l[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),u!=-1&&(this.playersHome[u].idSubstitution=i.play_id,this.playersHome[u].substitutionIn=!0,this.playersHome[u].substitutionMin=i.minute,this.playersHome[u].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var g=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==g[0]),k=this.playersAway.findIndex(V=>V.playerId==g[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),k!=-1&&(this.playersAway[k].idSubstitution=i.play_id,this.playersAway[k].substitutionIn=!0,this.playersAway[k].substitutionMin=i.minute,this.playersAway[k].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var N=this.playersHome.findIndex(V=>V.playerId==i.player_id);N!=-1&&(this.playersHome[N].goals+=1,this.playersHome[N].goalsMin.push(i.minute),this.playersHome[N].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(V=>V.playerId==i.player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(i.minute),this.playersAway[_].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var b=this.playersAway.findIndex(V=>V.playerId==i.player_id);b!=-1&&(this.playersAway[b].yellowcards+=1,this.playersAway[b].yellowcardsMin=i.minute,this.playersAway[b].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var B=this.playersAway.findIndex(V=>V.playerId==i.player_id);B!=-1&&(this.playersAway[B].redcards+=1,this.playersAway[B].redcardsMin=i.minute,this.playersAway[B].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(u=>u.playerId==s[0]),n=this.playersHome.findIndex(u=>u.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(u=>u.playerId==o[0]),c=this.playersAway.findIndex(u=>u.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),c!=-1&&(this.playersAway[c].idSubstitution=i.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=i.minute,this.playersAway[c].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(u=>u.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(u=>u.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==i.player_id);y!=-1&&(this.playersAway[y].yellowcards+=1,this.playersAway[y].yellowcardsMin=i.minute,this.playersAway[y].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(u=>u.playerId==i.player_id);l!=-1&&(this.playersHome[l].redcards+=1,this.playersHome[l].redcardsMin=i.minute,this.playersHome[l].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(u=>u.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){try{const d=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.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<d.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=d.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:d.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:d.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.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),d.data.home_team.bench){for(let b=0;b<d.data.home_team.bench.length;b++){this.subsTitle=!0;var p=d.data.home_team.bench[b].playerName.split(","),y=p[0].split(" "),l=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var u=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=u+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.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:d.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(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.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<d.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,k=d.data.away_team.starting_lineup[0].lineup[b].x;k=Math.abs(k-100);var h=k*50/100,N=d.data.away_team.starting_lineup[0].lineup[b].y;N=Math.abs(N-100);var f=d.data.away_team.players.findIndex(P=>P.player_id==d.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:N-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:d.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:d.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.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),d.data.away_team.bench){for(let b=0;b<d.data.away_team.bench.length;b++){this.subsTitle=!0;var p=d.data.away_team.bench[b].playerName.split(","),y=p[0].split(" "),l=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var u=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=u+". "+C,m=d.data.away_team.players.findIndex(U=>U.player_id==d.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.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:d.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(t)}catch(_){return Promise.reject(_)}},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.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(t){try{const _=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<_.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var i=_.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.home_team.starting_lineup[0].lineup[d].x;c=Math.abs(c-100);var h=_.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-c)*50/100;f=f*.9;var p=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[p].position_id-1].name,position_id:_.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.home_team.players[p].nationality?_.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[d].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://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.home_team.bench){for(let d=0;d<_.data.home_team.bench.length;d++){this.subsTitle=!0;var y=_.data.home_team.bench[d].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[_.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[k].position_id-1].name:"",position_id:_.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.bench[d].playerID+".png",nationality:k!=-1&&_.data.home_team.players[k].nationality?_.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?_.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[d].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((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=_.data.away_team.players;for(let d=0;d<_.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var i=_.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-c)*50/100;f=f*.9;var p=_.data.away_team.players.findIndex(P=>P.player_id==_.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[p].position_id-1].name,position_id:_.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.away_team.players[p].nationality?_.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[d].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://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.away_team.bench){for(let d=0;d<_.data.away_team.bench.length;d++){this.subsTitle=!0;var y=_.data.away_team.bench[d].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=_.data.away_team.players.findIndex(D=>D.player_id==_.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[_.data.away_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[k].position_id-1].name:"",position_id:_.data.away_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.bench[d].playerID+".png",nationality:k!=-1&&_.data.away_team.players[k].nationality?_.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?_.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[d].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((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}await this.getMXM(t)}catch(N){return Promise.reject(N)}},async getLineupProbablesHome(t){this.auxProbablesIDGameHome!=t.id&&(this.auxProbablesIDGameHome=t.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(t.id))},async getLineupProbablesAway(t){this.auxProbablesIDGameAway!=t.id&&(this.auxProbablesIDGameAway=t.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(t.id))},async getLineupProbables(t){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id},async changeCarouselItem(t){typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=t.game_id&&(this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id))},async changeCarouselItemRecent(t){if(t.selectedItem){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}},async getHeaderInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].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 n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(this.urlGames+t.season_id+"/games/"+t.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],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(){yt("lineups.game."+this.game.game_id,this.socket),yt("mxm.game."+this.game.game_id,this.socket),yt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].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[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==c[1]),f=this.playersAway.findIndex(p=>p.playerId==c[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)Ki=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ki.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=this.urlMXM+t;if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const g=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<g.data.plays.length;m++){if(g.data.plays[m].event_type_id==3){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=g.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(k=>k.playerId==i[0]),a=this.playersHome.findIndex(k=>k.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=g.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=g.data.plays[m].minute,this.playersHome[s].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=g.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=g.data.plays[m].minute,this.playersHome[a].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=g.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(k=>k.playerId==n[0]),r=this.playersAway.findIndex(k=>k.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=g.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=g.data.plays[m].minute,this.playersAway[o].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=g.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=g.data.plays[m].minute,this.playersAway[r].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}if(g.data.plays[m].event_type_id==1){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(k=>k.playerId==g.data.plays[m].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(g.data.plays[m].minute),this.playersHome[c].idsGoals.push(g.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(k=>k.playerId==g.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(g.data.plays[m].minute),this.playersAway[h].idsGoals.push(g.data.plays[m].play_id))}}if(g.data.plays[m].event_type_id==2){if(g.data.plays[m].category_id==8){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(k=>k.playerId==g.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=g.data.plays[m].minute,this.playersHome[f].idyellowcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(k=>k.playerId==g.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=g.data.plays[m].minute,this.playersAway[p].idyellowcards=g.data.plays[m].play_id)}}if(g.data.plays[m].category_id==9){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(k=>k.playerId==g.data.plays[m].player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=g.data.plays[m].minute,this.playersHome[y].idredcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(k=>k.playerId==g.data.plays[m].player_id);l!=-1&&(this.playersAway[l].redcards+=1,this.playersAway[l].redcardsMin=g.data.plays[m].minute,this.playersAway[l].idredcards=g.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t!=null)try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const he=F.create({headers:{Authorization:`${this.tokenPremium}`}}),S=i||await he.get(this.url+t);if(!S||!S.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=S.data.home_team.players,this.dataPlayersAway=S.data.away_team.players,S.data.home_team.starting_lineup[0].lineup.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0);for(let I=0;I<S.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=S.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+"_g.svg","home",0);var s=S.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=S.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=S.data.home_team.players.findIndex(z=>z.player_id==S.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:S.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[p].position_id-1].name,position_id:S.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.home_team.players[p].nationality?S.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:S.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:S.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:S.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(S.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),S.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),S.data.home_team.bench){for(let I=0;I<S.data.home_team.bench.length;I++){this.subsTitle=!0;var y=S.data.home_team.bench[I].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=S.data.home_team.players.findIndex(z=>z.player_id==S.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:S.data.home_team.bench[I].playerName,position:k!=-1?this.isFemale?this.positions[S.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[k].position_id-1].name:"",position_id:S.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.bench[I].playerID+".png",nationality:k!=-1&&S.data.home_team.players[k].nationality?S.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?S.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.home_team.team_id})}this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}for(let I=0;I<S.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=S.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+"_g.svg","away",0);var N=S.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),_=N[0].split(" "),d=N[1].trim().split(" "),b="";_.length==2||_.length==1?_[0].length<4?b=_[0]+" "+_[1]:b=_[0]:_.length==3?b=_[0]+" "+_[1]:_.length==4&&(b=_[1]+" "+_[2]+" "+_[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=S.data.away_team.starting_lineup[0].lineup[I].x,R=100-(100-V)*50/100;R=R*.9;var Y=S.data.away_team.players.findIndex(z=>z.player_id==S.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:S.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[Y].position_id-1].name,position_id:S.data.away_team.players[Y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.away_team.players[Y].nationality?S.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:S.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:B,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:R,positionXOrigin:S.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:S.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(S.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),S.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),S.data.away_team.bench){for(let I=0;I<S.data.away_team.bench.length;I++){this.subsTitle=!0;var ne=S.data.away_team.bench[I].playerName.split(","),D=ne[0].split(" "),U=ne[1].trim().split(" "),P="";D.length==2||D.length==1?D[0].length<4?P=D[0]+" "+D[1]:P=D[0]:D.length==3?P=D[0]+" "+D[1]:D.length==4&&(P=D[1]+" "+D[2]+" "+D[3]);var It=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";P=P.replace(",","");var Vt=It+". "+P,X=S.data.away_team.players.findIndex(z=>z.player_id==S.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:S.data.away_team.bench[I].playerName,position:X!=-1?this.isFemale?this.positions[S.data.away_team.players[X].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[X].position_id-1].name:"",position_id:S.data.away_team.players[X].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.bench[I].playerID+".png",nationality:X!=-1&&S.data.away_team.players[X].nationality?S.data.away_team.players[X].nationality.substring(0,3):"",imgNationality:X!=-1?S.data.away_team.players[X].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:Vt,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.away_team.team_id})}this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500)}catch(he){return Promise.reject(he)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].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==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[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=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].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(t){this.teamActive=t}}},oc={style:{background:"#1d2a35"}},rc={class:"size-browser-class"},lc={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},cc={class:"team-shield-left",style:{"margin-left":"16%"}},dc=["src"],mc={class:"team-shield-right",style:{"margin-right":"16%"}},hc=["src"],pc={class:"lineup-players is-centered"},fc=["onClick"],gc=["onClick"];function yc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",oc,[e.createElementVNode("div",rc,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",lc,[e.createElementVNode("div",cc,[e.createElementVNode("img",{src:n.homeTeamLogo||"/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,dc)]),e.createElementVNode("div",mc,[e.createElementVNode("img",{src:n.awayTeamLogo||"/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,hc)])]),e.createElementVNode("div",pc,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[0]||(i[0]=[e.createElementVNode("img",{src:Yi},null,-1)]),10,fc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[1]||(i[1]=[e.createElementVNode("img",{src:Yi},null,-1)]),10,gc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)]),2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ")]),2)],2)):e.createCommentVNode("",!0)],2)])])}const uc=Q(nc,[["render",yc]]),_c=Q({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(uc,{game:t.game,"selected-option":"Postmatch"},null,8,["game"])]))}},[["__scopeId","data-v-7e450a1b"]]);te.GSCLineupsReports=_c,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});
10
+ */const j={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"}},zi={itemsToShow:{default:j.itemsToShow,type:Number},itemsToScroll:{default:j.itemsToScroll,type:Number},wrapAround:{default:j.wrapAround,type:Boolean},throttle:{default:j.throttle,type:Number},snapAlign:{default:j.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:j.transition,type:Number},breakpoints:{default:j.breakpoints,type:Object},autoplay:{default:j.autoplay,type:Number},pauseAutoplayOnHover:{default:j.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:j.mouseDrag,type:Boolean},touchDrag:{default:j.touchDrag,type:Boolean},dir:{default:j.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:j.i18n,type:Object},settings:{default(){return{}},type:Object}};function so({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function ao({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function ut({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function no({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:ut({val:r,max:s-o,min:0})}function Ri(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Ri(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function _t({val:t,max:i,min:s=0}){return t>i?_t({val:t-(i+1),max:i,min:s}):t<s?_t({val:t+(i+1),max:i,min:s}):t}function oo(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function ro(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function lo(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var co=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},j))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},lo(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),mo=e.defineComponent({name:"Carousel",props:zi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),c=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},j));let p=Object.assign({},j),y;const l=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),u=e.ref(0),g=e.ref(0),m=e.ref(0);let k,N;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",l),e.provide("maxSlide",g),e.provide("minSlide",m),e.provide("slideWidth",c);function _(){y=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),b(p)}function d(){if(!y||!Object.keys(y).length)return;const T=Object.keys(y).map(A=>Number(A)).sort((A,v)=>+v-+A);let x=Object.assign({},p);T.some(A=>{const v=window.matchMedia(`(min-width: ${A}px)`).matches;return v&&(x=Object.assign(Object.assign({},x),y[A])),v}),b(x)}function b(T){Object.entries(T).forEach(([x,A])=>f[x]=A)}const E=ro(()=>{d(),B()},16);function B(){if(!o.value)return;const T=o.value.getBoundingClientRect();c.value=T.width/f.itemsToShow}function V(){h.value<=0||(u.value=Math.ceil((h.value-1)/2),g.value=so({config:f,slidesCount:h.value}),m.value=ao({config:f,slidesCount:h.value}),f.wrapAround||(l.value=ut({val:l.value,max:g.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>B()),setTimeout(()=>B(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{N&&clearTimeout(N),k&&clearInterval(k),window.removeEventListener("resize",E,{passive:!0})});let R=!1;const Y={x:0,y:0},ne={x:0,y:0},D=e.reactive({x:0,y:0}),U=e.ref(!1),P=e.ref(!1),It=()=>{U.value=!0},Vt=()=>{U.value=!1};function X(T){["INPUT","TEXTAREA","SELECT"].includes(T.target.tagName)||(R=T.type==="touchstart",R||T.preventDefault(),!(!R&&T.button!==0||oe.value)&&(Y.x=R?T.touches[0].clientX:T.clientX,Y.y=R?T.touches[0].clientY:T.clientY,document.addEventListener(R?"touchmove":"mousemove",he,!0),document.addEventListener(R?"touchend":"mouseup",S,!0)))}const he=oo(T=>{P.value=!0,ne.x=R?T.touches[0].clientX:T.clientX,ne.y=R?T.touches[0].clientY:T.clientY;const x=ne.x-Y.x,A=ne.y-Y.y;D.y=A,D.x=x},f.throttle);function S(){const T=f.dir==="rtl"?-1:1,x=Math.sign(D.x)*.4,A=Math.round(D.x/c.value+x)*T;if(A&&!R){const v=Tt=>{Tt.stopPropagation(),window.removeEventListener("click",v,!0)};window.addEventListener("click",v,!0)}re(l.value-A),D.x=0,D.y=0,P.value=!1,document.removeEventListener(R?"touchmove":"mousemove",he,!0),document.removeEventListener(R?"touchend":"mouseup",S,!0)}function I(){!f.autoplay||f.autoplay<=0||(k=setInterval(()=>{f.pauseAutoplayOnHover&&U.value||Pe()},f.autoplay))}function z(){k&&(clearInterval(k),k=null),I()}const oe=e.ref(!1);function re(T){const x=f.wrapAround?T:ut({val:T,max:g.value,min:m.value});l.value===x||oe.value||(s("slide-start",{slidingToIndex:T,currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!0,C.value=l.value,l.value=x,N=setTimeout(()=>{if(f.wrapAround){const A=_t({val:x,max:g.value,min:0});A!==l.value&&(l.value=A,s("loop",{currentSlideIndex:l.value,slidingToIndex:T}))}s("update:modelValue",l.value),s("slide-end",{currentSlideIndex:l.value,prevSlideIndex:C.value,slidesCount:h.value}),oe.value=!1,z()},f.transition))}function Pe(){re(l.value+f.itemsToScroll)}function Nt(){re(l.value-f.itemsToScroll)}const Zi={slideTo:re,next:Pe,prev:Nt};e.provide("nav",Zi),e.provide("isSliding",oe);const Qi=e.computed(()=>no({config:f,currentSlide:l.value,slidesCount:h.value}));e.provide("slidesToScroll",Qi);const bc=e.computed(()=>{const T=f.dir==="rtl"?-1:1,x=Qi.value*c.value*T;return{transform:`translateX(${D.x-x}px)`,transition:`${oe.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function vi(){_(),d(),V(),B(),z()}Object.keys(zi).forEach(T=>{["modelValue"].includes(T)||e.watch(()=>t[T],vi)}),e.watch(()=>t.modelValue,T=>{T!==l.value&&re(Number(T))}),e.watch(h,V),s("before-init"),_();const es={config:f,slidesCount:h,slideWidth:c,next:Pe,prev:Nt,slideTo:re,currentSlide:l,maxSlide:g,minSlide:m,middleSlide:u};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:B,initDefaultConfigs:_,restartCarousel:vi,slideTo:re,next:Pe,prev:Nt,nav:Zi,data:es});const ts=i.default||i.slides,is=i.addons,ss=e.reactive(es);return()=>{const T=Ri(ts==null?void 0:ts(ss)),x=(is==null?void 0:is(ss))||[];T.forEach((Ot,$t)=>Ot.props.index=$t);let A=T;if(f.wrapAround){const Ot=T.map((Ft,we)=>e.cloneVNode(Ft,{index:-T.length+we,isClone:!0,key:`clone-before-${we}`})),$t=T.map((Ft,we)=>e.cloneVNode(Ft,{index:T.length+we,isClone:!0,key:`clone-after-${we}`}));A=[...Ot,...T,...$t]}r.value=T,h.value=Math.max(T.length,1);const v=e.h("ol",{class:"carousel__track",style:bc.value,onMousedownCapture:f.mouseDrag?X:null,onTouchstartPassiveCapture:f.touchDrag?X:null},A),Tt=e.h("div",{class:"carousel__viewport"},v);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":oe.value,"is-dragging":P.value,"is-hover":U.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:It,onMouseleave:Vt},[Tt,x,e.h(co)])}}}),Di;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Di||(Di={}));var ho=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},j))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,c=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),y=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=y};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const po=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},fo=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),go={class:"gsc-carousel"},yo={key:0},uo=fo(()=>e.createElementVNode("div",null,"no hay",-1)),_o=[uo],bo={class:"gsc-carousel__2d__slides"},wo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Co=["fill"],ko={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},So=["fill"],Eo={class:"gsc-carousel__2d__navigation"},Io={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Vo=["stroke"],No={key:1,class:"gsc-carousel__2d__navigation__pagination"},To=["onClick"],Oo={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o=["stroke"],Fo={__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:t=>["propName","value"].every(i=>i in t)},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"},arrowsMaxWidth:{type:String,default:"20px"},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(t,{expose:i,emit:s}){const a=t;e.useCssVars(g=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),c=e.ref(!1);e.watch(n,g=>{g&&c.value?(c.value=!1,h(a.items)):g&&g.slideTo&&g.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.defaultItemByIndex,g=>{r.value!==g&&l(g)}),e.watch(()=>a.items,g=>{n.value?h(g):c.value=!0},{immediate:!0});function h(g){g&&g.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(k=>k[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=g[m]):(r.value=0,o.value=g[0])}else r.value=a.defaultItemByIndex,o.value=g[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function y(){n.value&&n.value.updateSlideWidth()}function l(g){n.value&&n.value.slideTo(g)}function C(g){n.value.slideTo(g)}function u(g){const m=g.slidingToIndex<0?a.items.length-1:g.slidingToIndex===a.items.length?0:g.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:y,slideTo:l}),(g,m)=>(e.openBlock(),e.createElementBlock("div",go,[a.is3d?(e.openBlock(),e.createElementBlock("div",yo,_o)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",bo,[e.createVNode(e.unref(mo),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:u},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,N)=>(e.openBlock(),e.createBlock(e.unref(ho),{key:N},{default:e.withCtx(()=>[e.renderSlot(g.$slots,"default",{item:k},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=k=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",wo,[e.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:t.arrowsColor},null,8,Co)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=k=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",ko,[e.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:t.arrowsColor},null,8,So)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",Eo,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=k=>p())},[(e.openBlock(),e.createElementBlock("svg",Io,[e.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:a.arrowsColor},null,8,Vo)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",No,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,N)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${N}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===N?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===N?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:_=>C(N)},null,12,To))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=k=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Oo,[e.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:a.arrowsColor},null,8,$o)]))])):e.createCommentVNode("",!0)])],2))]))}},bt=po(Fo,[["__scopeId","data-v-54620d25"]]);function Bo(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const zo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},wt={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 t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Mi=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Ai=wt.setup;wt.setup=Ai?(t,i)=>(Mi(),Ai(t,i)):Mi;const Ro={ref:"gscScrollableContainer",class:"scrollable-container"},Do={class:"scrollable-arrows"},Mo=["width","height","viewBox"],Ao=["stroke"],jo={class:"scrollable-wrapper"},xo={class:"scrollable-arrows"},Lo=["width","height","viewBox"],Uo=["stroke"];function Po(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Ro,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",Do,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,Ao)],8,Mo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",jo,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",xo,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,Uo)],8,Lo))])],2)):e.createCommentVNode("",!0)],512)}const Ho=zo(wt,[["render",Po],["__scopeId","data-v-b548a08d"]]),Wo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Ct={components:{GSCSlider:Ho},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 t=e.ref("myDivRef"),{elementSize:i}=Bo(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},ji=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},xi=Ct.setup;Ct.setup=xi?(t,i)=>(ji(),xi(t,i)):ji;const qo={ref:"myDivRef"},Xo={key:0,class:"gs-switch-container"},Jo=["onClick"],Go={key:1,class:"gs-switch-container-type"},Yo=["onClick"],Ko={key:2,class:"gs-switch-container-carousel"},Zo=["onClick"];function Qo(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",qo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Xo,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Jo))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",Go,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Yo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",Ko,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(c,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==c?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=c,o.clickEmitEvent(c))},e.toDisplayString(c),13,Zo))),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"])])):e.createCommentVNode("",!0)],512)}const Ue=Wo(Ct,[["render",Qo],["__scopeId","data-v-8a86dfaf"]]),kt="/icn-filter.svg",be="/icn-expand-arrow.svg",Li="/backarrow.svg",Ui="/nextarrow.svg",vo={selectoritem:"_selectoritem_1dafy_137",selectoritem2:"_selectoritem2_1dafy_157",gscheaderlineup:"_gscheaderlineup_1dafy_177",anNoEstn:"_anNoEstn_1dafy_191",groupsLeague:"_groupsLeague_1dafy_197",jugadores:"_jugadores_1dafy_209",switchOption:"_switchOption_1dafy_219",jugadores1:"_jugadores1_1dafy_239",switchOption1:"_switchOption1_1dafy_249",switchStatesBig:"_switchStatesBig_1dafy_265",groupsLeagueParent:"_groupsLeagueParent_1dafy_283",imgHomeTeamIcon:"_imgHomeTeamIcon_1dafy_301",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1dafy_313",teamContainer:"_teamContainer_1dafy_337",name:"_name_1dafy_361",homeTeamContainer:"_homeTeamContainer_1dafy_373",div:"_div_1dafy_393",scoreContainer:"_scoreContainer_1dafy_401",scoreContainerWrapper:"_scoreContainerWrapper_1dafy_421",teamContainer1:"_teamContainer1_1dafy_447",awayTeamContainer:"_awayTeamContainer_1dafy_471",matchContainer:"_matchContainer_1dafy_491",sliderMatchesChild:"_sliderMatchesChild_1dafy_509",manchesterUnited:"_manchesterUnited_1dafy_521",sliderMatchesItem:"_sliderMatchesItem_1dafy_533",sliderMatches:"_sliderMatches_1dafy_509",sortIcon:"_sortIcon_1dafy_569",filtros:"_filtros_1dafy_583",sortParent:"_sortParent_1dafy_599",shapeIcon:"_shapeIcon_1dafy_613",btnFilter:"_btnFilter_1dafy_623",btnFilter1:"_btnFilter1_1dafy_651",btnFilterParent:"_btnFilterParent_1dafy_679",backArrowIcon:"_backArrowIcon_1dafy_695",teamContainer2:"_teamContainer2_1dafy_707",homeTeam:"_homeTeam_1dafy_373",div4:"_div4_1dafy_735",finalScore:"_finalScore_1dafy_745",manchesterUnited1:"_manchesterUnited1_1dafy_771",scoreContainer1:"_scoreContainer1_1dafy_785",match:"_match_1dafy_491",manchesterUnited2:"_manchesterUnited2_1dafy_821",btnDetails:"_btnDetails_1dafy_831",matchContainer1:"_matchContainer1_1dafy_851",goalChild:"_goalChild_1dafy_867",goal:"_goal_1dafy_867",manchesterUnited3:"_manchesterUnited3_1dafy_893",minuteEvent:"_minuteEvent_1dafy_907",yellowCard:"_yellowCard_1dafy_921",awayTeamEvents:"_awayTeamEvents_1dafy_935",rectangle:"_rectangle_1dafy_949",homeTeamEvents:"_homeTeamEvents_1dafy_963",totalEvents:"_totalEvents_1dafy_979",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1dafy_995",switchOption3:"_switchOption3_1dafy_1017",switchOption4:"_switchOption4_1dafy_1041",switchStatesBig1:"_switchStatesBig1_1dafy_1061",manchesterUnited13:"_manchesterUnited13_1dafy_1075",homeTeamContainer1:"_homeTeamContainer1_1dafy_1085",scoreContainer2:"_scoreContainer2_1dafy_1099",matchContainer2:"_matchContainer2_1dafy_1127",manchesterUnited14:"_manchesterUnited14_1dafy_1147",sliderMatchesInner:"_sliderMatchesInner_1dafy_1161",rectangleIcon:"_rectangleIcon_1dafy_1181",sliderMatches1:"_sliderMatches1_1dafy_1201",containerData:"_containerData_1dafy_1217",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1dafy_1245",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1dafy_995",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1dafy_1293",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1dafy_1299",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1dafy_1307"},er={components:{GSCCarousel:bt,GscSwitchComponent:Ue},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(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},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 t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},tr=["src"],ir=["src"],sr=["src"],ar=["src"],nr=["src"],or=["src"];function rr(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,tr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,ir)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:kt},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Li},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,sr)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,ar)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Ui},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en: ",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,nr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,or)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const lr=Q(er,[["render",rr],["__cssModules",{$style:vo}]]),cr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},St={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(t){this.status=t}}},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(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Pi=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hi=St.setup;St.setup=Hi?(t,i)=>(Pi(),Hi(t,i)):Pi;const dr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),mr=["src"],hr={key:1,class:"text"},pr=["src"],fr={class:"stats"},gr=dr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),yr={class:"numstats"},ur={class:"leyend"};function _r(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,mr)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",hr,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,pr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",fr,[gr,e.createElementVNode("div",yr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",ur,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const br=cr(St,[["render",_r],["__scopeId","data-v-f3ee6b2b"]]),wr={class:"gsc-dropdown__main-container__item-selected"},Cr=["height","width"],kr=["stroke"],Sr={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Er=["fill"],Ir={class:"gsc-dropdown__items-container"},Vr=["onClick"],Nr={key:0,class:"gsc-dropdown__items-footer"},Wi={__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(t){return["solid","dotted","dashed"].includes(t)}},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:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},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},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},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},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,u)=>{if(!s.modelValue&&(!s.onlyFirstTime||!u||!u.length)&&C&&C.length){if(s.defaultItemByProp){const g=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);g!==-1?(o.value=g,a.value=C[g]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const u=s.items.findIndex(g=>typeof C=="object"?JSON.stringify(g)===JSON.stringify(C):g===C);u!==-1&&(o.value=u,a.value=s.items[u],i("update:modelValue",a.value))}},{immediate:!0});const c=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function y(C,u){s.isMultipleOption?o.value=-1:(o.value=u,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function l(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,u)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(c.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",wr,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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:t.arrowColor},null,8,kr)],8,Cr)):(e.openBlock(),e.createElementBlock("svg",Sr,[e.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:t.arrowColor},null,8,Er)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Ir,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(g,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:k=>y(g,m)},[e.renderSlot(C.$slots,"availableItem",{item:g})],10,Vr)),[[e.vShow,!g.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Nr,[e.createVNode(e.unref(br),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:l})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},Tr=["for"],Or=["name"],$r={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,Tr)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)]),8,Or)):(e.openBlock(),e.createElementBlock("svg",$r,n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])))]))}},Fr=["value"],Br={class:"filter-modal__padding"},zr={class:"filter-modal__content-header"},Rr={class:"filter-modal__content-options"},Dr=["onClick"],Mr={class:"filter-modal__content-header"},Ar={class:"filter-modal__content-options"},jr=["onClick"],xr=Q({__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(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({d00c78a6:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,c=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),y=e.ref(!0),l=e.ref(!0),C=e.ref(["local","visit"]),u=e.ref(["win","draw","lose"]),g=()=>{o.value.focus(),c.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(u.value)),f.value=y.value,p.value=l.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,u.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&k()});const m=(d,b)=>{let E;b==="team"?E=C.value:E=u.value;const B=E.findIndex(V=>V===d);B==-1?E.push(d):b=="team"&&C.value.length==2?E.splice(B,1):(b=="team"&&E.push(d),u.value.length>1&&E.splice(B,1)),y.value=C.value.length==2,l.value=u.value.length==3},k=()=>{C.value=["local","visit"],u.value=["win","draw","lose"],y.value=!0,l.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})},N=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})},_=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:u.value})};return(d,b)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[b[5]||(b[5]=e.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)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Fr),b[6]||(b[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.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))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:b[4]||(b[4]=E=>{t.isOpen=!1,_()})},[e.createElementVNode("div",Br,[e.createElementVNode("div",zr,[b[7]||(b[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(qi,{modelValue:y.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>y.value=E),b[1]||(b[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Rr,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,Dr)),64))]),e.createElementVNode("div",Mr,[b[8]||(b[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(qi,{modelValue:l.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>l.value=E),b[3]||(b[3]=E=>E&&(u.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Ar,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:B=>m(E.id,"player"),class:e.normalizeClass({active:u.value.includes(E.id)})},e.toDisplayString(E.name),11,jr)),64))])]),b[9]||(b[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:k},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:N},"Listo")])],34)],4))}},[["__scopeId","data-v-2118a6cd"]]),Lr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},Ur={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pr={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Xi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Lr,s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)]))):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",Ur,s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)]))):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Pr,s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)]))):e.createCommentVNode("",!0)}},Hr={class:"match-details"},Wr={class:"match-details__list"},qr={class:"match-details__list right"},Xr=Q({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",Hr,[e.createElementVNode("ul",Wr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(Xi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",qr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(Xi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-ad3b88e3"]]),Jr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Et={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Ji=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Gi=Et.setup;Et.setup=Gi?(t,i)=>(Ji(),Gi(t,i)):Ji;const Gr={key:0,class:"text-left"},Yr=["width","src"],Kr=["checked"],Zr=["width","src"],Qr={key:3,class:"text-right"};function vr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Gr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,Yr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,Kr),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,Zr)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Qr,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const el=Jr(Et,[["render",vr],["__scopeId","data-v-e2a20444"]]),tl="/icn-filter1.svg",il="/icn-expand-arrow1.svg",sl="/icn-filter2.svg",al="/icn-arrow-expand.svg",nl={containernofoundsearchrecientes:"_containernofoundsearchrecientes_1gxk5_159","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:"_btndeletefilters_1gxk5_215",leyenddeleteshow:"_leyenddeleteshow_1gxk5_247",selectoritem:"_selectoritem_1gxk5_261",anNoEstn:"_anNoEstn_1gxk5_279",groupsLeague:"_groupsLeague_1gxk5_287",historicas:"_historicas_1gxk5_297",switchOption:"_switchOption_1gxk5_309",recientes:"_recientes_1gxk5_331",switchOption1:"_switchOption1_1gxk5_343",switchOption2:"_switchOption2_1gxk5_369",switchStatesBig:"_switchStatesBig_1gxk5_387",groupsLeagueParent:"_groupsLeagueParent_1gxk5_407",imgHomeTeamIcon:"_imgHomeTeamIcon_1gxk5_427",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1gxk5_441",teamContainer:"_teamContainer_1gxk5_467",name:"_name_1gxk5_493",homeTeamContainer:"_homeTeamContainer_1gxk5_507",div:"_div_1gxk5_529",scoreContainer:"_scoreContainer_1gxk5_539",scoreContainerWrapper:"_scoreContainerWrapper_1gxk5_561",teamContainer1:"_teamContainer1_1gxk5_587",awayTeamContainer:"_awayTeamContainer_1gxk5_613",matchContainer:"_matchContainer_1gxk5_635",sliderMatchesChild:"_sliderMatchesChild_1gxk5_655",manchesterUnited:"_manchesterUnited_1gxk5_669",sliderMatchesItem:"_sliderMatchesItem_1gxk5_683",sliderMatches:"_sliderMatches_1gxk5_655",sortIcon:"_sortIcon_1gxk5_719",filtros:"_filtros_1gxk5_735",sortParent:"_sortParent_1gxk5_753",shapeIcon:"_shapeIcon_1gxk5_769",btnFilter:"_btnFilter_1gxk5_781",btnFilter1:"_btnFilter1_1gxk5_813",btnFilterParent:"_btnFilterParent_1gxk5_843",backArrowIcon:"_backArrowIcon_1gxk5_861",teamContainer2:"_teamContainer2_1gxk5_875",homeTeam:"_homeTeam_1gxk5_507",div4:"_div4_1gxk5_907",finalScore:"_finalScore_1gxk5_919",manchesterUnited1:"_manchesterUnited1_1gxk5_947",scoreContainer1:"_scoreContainer1_1gxk5_963",match:"_match_1gxk5_635",manchesterUnited2:"_manchesterUnited2_1gxk5_997",btnDetails:"_btnDetails_1gxk5_1023",matchContainer1:"_matchContainer1_1gxk5_1047",goalChild:"_goalChild_1gxk5_1065",goal:"_goal_1gxk5_1065",manchesterUnited3:"_manchesterUnited3_1gxk5_1095",minuteEvent:"_minuteEvent_1gxk5_1111",yellowCard:"_yellowCard_1gxk5_1127",awayTeamEvents:"_awayTeamEvents_1gxk5_1143",rectangle:"_rectangle_1gxk5_1159",homeTeamEvents:"_homeTeamEvents_1gxk5_1175",totalEvents:"_totalEvents_1gxk5_1193",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1gxk5_1211",sliderMatchesInner:"_sliderMatchesInner_1gxk5_1233",btnFilter2:"_btnFilter2_1gxk5_1247",btnDetails1:"_btnDetails1_1gxk5_1281",matchContainer3:"_matchContainer3_1gxk5_1299",backArrowIcon1:"_backArrowIcon1_1gxk5_1321",match1:"_match1_1gxk5_1335",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1gxk5_1347",jugadores2:"_jugadores2_1gxk5_1369",switchOption6:"_switchOption6_1gxk5_1383",switchOption7:"_switchOption7_1gxk5_1405",switchStatesBig2:"_switchStatesBig2_1gxk5_1431",manchesterUnited26:"_manchesterUnited26_1gxk5_1447",homeTeamContainer2:"_homeTeamContainer2_1gxk5_1459",vectorIcon:"_vectorIcon_1gxk5_1475",teamSwitch:"_teamSwitch_1gxk5_1487",matchContainer5:"_matchContainer5_1gxk5_1513",manchesterUnited27:"_manchesterUnited27_1gxk5_1535",sliderMatchesChild1:"_sliderMatchesChild1_1gxk5_1551",sliderMatchesChild2:"_sliderMatchesChild2_1gxk5_1573",sliderMatches2:"_sliderMatches2_1gxk5_1595",filtros2:"_filtros2_1gxk5_1615",btnFilter4:"_btnFilter4_1gxk5_1635",jornada2:"_jornada2_1gxk5_1667",filterMatchday:"_filterMatchday_1gxk5_1681",btnDetails2:"_btnDetails2_1gxk5_1703",filtersContainer:"_filtersContainer_1gxk5_1725",matchContainer6:"_matchContainer6_1gxk5_1745",matchDetailContainer:"_matchDetailContainer_1gxk5_1763",containerData:"_containerData_1gxk5_1783",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_1gxk5_1813",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1gxk5_1211",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_1gxk5_1865",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_1gxk5_1891",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_1gxk5_1917",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_1gxk5_1941",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_1gxk5_1967",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_1gxk5_1995",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_1gxk5_2017",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1gxk5_2039",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_1gxk5_2067",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_1gxk5_2091",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1gxk5_2113"},ol={components:{GSCCarousel:bt,GscSwitchComponent:Ue,GSCDropdown:Wi,GSCFilter:xr,GSCSwitchRadio:el,GSCMatchDetails:Xr},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:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];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 i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];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 i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},rl=["src"],ll=["src"],cl={class:"selector-tournaments"},dl=["src"],ml=["src"],hl={key:1},pl=["src"],fl=["src"],gl={class:"selector-tournaments"},yl=["src"],ul=["src"],_l={key:1},bl=["src"],wl=["src"],Cl={class:"selector-tournaments"},kl=["src"],Sl=["src"],El={key:1};function Il(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.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),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,ll)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:kt},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.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:e.withCtx(l=>[e.createElementVNode("div",cl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,ml),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[11]||(i[11]=[e.createTextVNode("No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados.")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.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),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,fl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:tl},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:il},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.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:e.withCtx(l=>[e.createElementVNode("div",gl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,yl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,ul),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[14]||(i[14]=[e.createTextVNode("No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados.")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,bl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.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),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,wl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...l)=>o.openFilter&&o.openFilter(...l))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:sl},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:al},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.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:e.withCtx(l=>[e.createElementVNode("div",Cl,e.toDisplayString(l.selectedItem.name),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(l.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...l)=>o.clickShowDetails&&o.clickShowDetails(...l))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:l})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.home_team+".png"},null,10,kl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(l.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(l).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(l.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(l.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(l.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[l.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),l.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),l.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),l.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+l.away_team+".png"},null,10,Sl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(l.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},i[15]||(i[15]=[e.createTextVNode("No hay resultados con los criterios"),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados.")]),2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...l)=>o.deleteFilters&&o.deleteFilters(...l))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(y,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const Vl=Q(ol,[["render",Il],["__cssModules",{$style:nl}]]),Nl={selectoritem:"_selectoritem_16hc8_179",selectoritem2:"_selectoritem2_16hc8_199",gscheaderlineup:"_gscheaderlineup_16hc8_219",anNoEstn:"_anNoEstn_16hc8_233",groupsLeague:"_groupsLeague_16hc8_239",jugadores:"_jugadores_16hc8_249",switchOption:"_switchOption_16hc8_259",jugadores1:"_jugadores1_16hc8_279",switchOption1:"_switchOption1_16hc8_289",switchStatesBig:"_switchStatesBig_16hc8_305",groupsLeagueParent:"_groupsLeagueParent_16hc8_323",imgHomeTeamIcon:"_imgHomeTeamIcon_16hc8_341",imgHomeTeamWrapper:"_imgHomeTeamWrapper_16hc8_353",teamContainer:"_teamContainer_16hc8_377",name:"_name_16hc8_401",homeTeamContainer:"_homeTeamContainer_16hc8_413",div:"_div_16hc8_433",titleSession:"_titleSession_16hc8_441",scoreContainer:"_scoreContainer_16hc8_461",scoreContainerWrapper:"_scoreContainerWrapper_16hc8_481",teamContainer1:"_teamContainer1_16hc8_505",awayTeamContainer:"_awayTeamContainer_16hc8_529",matchContainer:"_matchContainer_16hc8_549",sliderMatchesChild:"_sliderMatchesChild_16hc8_567",manchesterUnited:"_manchesterUnited_16hc8_579",sliderMatchesItem:"_sliderMatchesItem_16hc8_591",sliderMatches:"_sliderMatches_16hc8_567",sortIcon:"_sortIcon_16hc8_627",filtros:"_filtros_16hc8_641",sortParent:"_sortParent_16hc8_657",shapeIcon:"_shapeIcon_16hc8_671",btnFilter:"_btnFilter_16hc8_681",btnFilter1:"_btnFilter1_16hc8_709",btnFilterParent:"_btnFilterParent_16hc8_737",backArrowIcon:"_backArrowIcon_16hc8_753",teamContainer2:"_teamContainer2_16hc8_765",homeTeam:"_homeTeam_16hc8_413",div4:"_div4_16hc8_793",finalScore:"_finalScore_16hc8_803",manchesterUnited1:"_manchesterUnited1_16hc8_829",scoreContainer1:"_scoreContainer1_16hc8_843",match:"_match_16hc8_549",manchesterUnited2:"_manchesterUnited2_16hc8_879",btnDetails:"_btnDetails_16hc8_889",matchContainer1:"_matchContainer1_16hc8_909",goalChild:"_goalChild_16hc8_925",goal:"_goal_16hc8_925",manchesterUnited3:"_manchesterUnited3_16hc8_951",minuteEvent:"_minuteEvent_16hc8_965",yellowCard:"_yellowCard_16hc8_979",awayTeamEvents:"_awayTeamEvents_16hc8_993",rectangle:"_rectangle_16hc8_1007",homeTeamEvents:"_homeTeamEvents_16hc8_1021",totalEvents:"_totalEvents_16hc8_1037",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_16hc8_1053",switchOption3:"_switchOption3_16hc8_1075",switchOption4:"_switchOption4_16hc8_1099",switchStatesBig1:"_switchStatesBig1_16hc8_1119",manchesterUnited13:"_manchesterUnited13_16hc8_1133",homeTeamContainer1:"_homeTeamContainer1_16hc8_1143",scoreContainer2:"_scoreContainer2_16hc8_1157",matchContainer2:"_matchContainer2_16hc8_1185",manchesterUnited14:"_manchesterUnited14_16hc8_1205",sliderMatchesInner:"_sliderMatchesInner_16hc8_1219",rectangleIcon:"_rectangleIcon_16hc8_1239",sliderMatches1:"_sliderMatches1_16hc8_1259",containerData:"_containerData_16hc8_1275",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_16hc8_1303",headerSeccionAlineaciones:"_headerSeccionAlineaciones_16hc8_1053",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_16hc8_1351",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_16hc8_1357",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_16hc8_1365"},Tl={components:{GSCCarousel:bt,GscSwitchComponent:Ue},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},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 t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ol=["src"],$l=["src"],Fl=["src"],Bl=["src"],zl=["src"],Rl=["src"];function Dl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Ol)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+"  |  "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+"  |  "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,$l)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:kt},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:be},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Li},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Fl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:Ui},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Rl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Ml=Q(Tl,[["render",Dl],["__cssModules",{$style:Nl}]]),Al={anNoEstn:"_anNoEstn_j98j7_139",groupsLeague:"_groupsLeague_j98j7_145",historicas:"_historicas_j98j7_153",switchOption:"_switchOption_j98j7_163",switchOption1:"_switchOption1_j98j7_183",probables:"_probables_j98j7_203",switchOption2:"_switchOption2_j98j7_213",switchStatesBig:"_switchStatesBig_j98j7_237",groupsLeagueParent:"_groupsLeagueParent_j98j7_255",imgHomeTeamIcon:"_imgHomeTeamIcon_j98j7_273",imgHomeTeamWrapper:"_imgHomeTeamWrapper_j98j7_285",teamContainer:"_teamContainer_j98j7_309",name:"_name_j98j7_333",jor:"_jor_j98j7_345",jorParent:"_jorParent_j98j7_357",shapeIcon:"_shapeIcon_j98j7_373",frameParent:"_frameParent_j98j7_383",manchesterUnited:"_manchesterUnited_j98j7_413",necaxaIcon:"_necaxaIcon_j98j7_435",manchesterUnited1:"_manchesterUnited1_j98j7_447",team:"_team_j98j7_309",homeTeamContainer:"_homeTeamContainer_j98j7_475",div1:"_div1_j98j7_495",scoreContainer:"_scoreContainer_j98j7_503",scoreContainerWrapper:"_scoreContainerWrapper_j98j7_525",team1:"_team1_j98j7_549",name1:"_name1_j98j7_563",teamContainer1:"_teamContainer1_j98j7_577",awayTeamContainer:"_awayTeamContainer_j98j7_601",matchContainer:"_matchContainer_j98j7_623",goalChild:"_goalChild_j98j7_641",goal:"_goal_j98j7_641",manchesterUnited4:"_manchesterUnited4_j98j7_667",minuteEvent:"_minuteEvent_j98j7_681",yellowCard:"_yellowCard_j98j7_695",awayTeamEvents:"_awayTeamEvents_j98j7_709",rectangle:"_rectangle_j98j7_723",homeTeamEvents:"_homeTeamEvents_j98j7_737",totalEvents:"_totalEvents_j98j7_753",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_j98j7_769",homeTeamContainer1:"_homeTeamContainer1_j98j7_789",awayTeamContainer1:"_awayTeamContainer1_j98j7_813",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_j98j7_837",jugadores:"_jugadores_j98j7_857",switchOption6:"_switchOption6_j98j7_869",switchOption8:"_switchOption8_j98j7_889",switchStatesBig2:"_switchStatesBig2_j98j7_913",manchesterUnited28:"_manchesterUnited28_j98j7_927",homeTeamContainer2:"_homeTeamContainer2_j98j7_935",matchContainer2:"_matchContainer2_j98j7_949",manchesterUnited29:"_manchesterUnited29_j98j7_971",sliderMatchesChild:"_sliderMatchesChild_j98j7_985",sliderMatchesItem:"_sliderMatchesItem_j98j7_1005",sliderMatches:"_sliderMatches_j98j7_985",jorParent2:"_jorParent2_j98j7_1045",filterMatchday:"_filterMatchday_j98j7_1059",necaxaIcon4:"_necaxaIcon4_j98j7_1081",team4:"_team4_j98j7_1093",filterMatchdayParent:"_filterMatchdayParent_j98j7_1113",filterMatchday1:"_filterMatchday1_j98j7_1127",teamParent:"_teamParent_j98j7_1157",filtersContainer:"_filtersContainer_j98j7_1177",containerData:"_containerData_j98j7_1195",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_j98j7_1223",headerSeccionAlineaciones:"_headerSeccionAlineaciones_j98j7_769"},jl={components:{GSCDropdown:Wi,GscSwitchComponent:Ue},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(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png":"https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},xl=["src"],Ll={class:"selector-tournaments"},Ul=["src"],Pl=["src"],Hl={class:"selector-tournaments"},Wl=["src"],ql=["src"],Xl={class:"selector-tournaments"},Jl=["src"],Gl=["src"],Yl={class:"selector-tournaments"},Kl=["src"],Zl=["src"],Ql=["src"],vl={class:"selector-tournaments"},ec=["src"],tc=["src"],ic={class:"selector-tournaments"};function sc(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,xl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Ll,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Ul),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Pl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(c,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Hl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Wl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Xl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Gl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",Yl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Kl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.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:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png"},null,10,Zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png"},null,10,Ql)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",vl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ec)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,tc),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(c,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.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:e.withCtx(h=>[e.createElementVNode("div",ic,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const ac=Q(jl,[["render",sc],["__cssModules",{$style:Al}]]),Yi="/line.png";let Ki=null;const nc={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}}},components:{CardPlayer:io,HeaderPlayerHistorico:lr,HeaderPlayerRecientes:Vl,HeaderPlayerProbables:ac,HeaderPlayerPostmatch:Ml},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",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,keyUpdateRecientes: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,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=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 t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=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(t){throw new Error(t)}},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&setTimeout(()=>{this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,this.cleaneDataAway(),this.cleaneDataHome(),this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),this.lastSection=t},1e3),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[F.get(this.urlGames+t.season_id+"/games/"+t.game_id,s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==this.lastGetLineUpGameId&&(o=F.get(this.url+r,s),n.push(o));const[c,h]=await Promise.all(n);await this.gameDataInfo(t,c),await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=this.dataPlayersHome.findIndex(k=>k.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].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://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),y=s[1].trim().split(" "),l="";p.length==2||p.length==1?p[0].length<4?l=p[0]+" "+p[1]:l=p[0]:p.length==3?l=p[0]+" "+p[1]:p.length==4&&(l=p[1]+" "+p[2]+" "+p[3]);var C=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";l=l.replace(",","");var u=C+". "+l,g=this.dataPlayersAway.findIndex(k=>k.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:g!=-1?this.isFemale?this.positions[this.dataPlayersAway[g].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[g].position_id-1].name:"",position_id:this.dataPlayersAway[g].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].playerID+".png",nationality:g!=-1&&this.dataPlayersAway[g].nationality?this.dataPlayersAway[g].nationality.substring(0,3):"",imgNationality:g!=-1?this.dataPlayersAway[g].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersHome.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var y=i.data[d].player_name.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=i.data[d].x,N=100-(100-k)*50/100;N=N*.9;var _=i.away_team.players.findIndex(b=>b.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:_!=-1?this.isFemale?this.positions[i.away_team.players[_].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[_].position_id-1].name:"",position_id:i.away_team.players[_].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:_!=-1&&i.away_team.players[_].nationality?i.away_team.players[_].nationality.substring(0,3):"",imgNationality:_!=-1?i.away_team.players[_].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:N+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png"}this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var c=this.playersHome[V].idsGoals.findIndex(R=>R==i.play_id);c!=-1&&(s=c,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var y=this.playersAway[V].idsGoals.findIndex(R=>R==i.play_id);y!=-1&&(s=y,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==l[0]),u=this.playersHome.findIndex(V=>V.playerId==l[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),u!=-1&&(this.playersHome[u].idSubstitution=i.play_id,this.playersHome[u].substitutionIn=!0,this.playersHome[u].substitutionMin=i.minute,this.playersHome[u].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var g=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==g[0]),k=this.playersAway.findIndex(V=>V.playerId==g[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),k!=-1&&(this.playersAway[k].idSubstitution=i.play_id,this.playersAway[k].substitutionIn=!0,this.playersAway[k].substitutionMin=i.minute,this.playersAway[k].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var N=this.playersHome.findIndex(V=>V.playerId==i.player_id);N!=-1&&(this.playersHome[N].goals+=1,this.playersHome[N].goalsMin.push(i.minute),this.playersHome[N].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(V=>V.playerId==i.player_id);_!=-1&&(this.playersAway[_].goals+=1,this.playersAway[_].goalsMin.push(i.minute),this.playersAway[_].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var b=this.playersAway.findIndex(V=>V.playerId==i.player_id);b!=-1&&(this.playersAway[b].yellowcards+=1,this.playersAway[b].yellowcardsMin=i.minute,this.playersAway[b].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var B=this.playersAway.findIndex(V=>V.playerId==i.player_id);B!=-1&&(this.playersAway[B].redcards+=1,this.playersAway[B].redcardsMin=i.minute,this.playersAway[B].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(u=>u.playerId==s[0]),n=this.playersHome.findIndex(u=>u.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(u=>u.playerId==o[0]),c=this.playersAway.findIndex(u=>u.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),c!=-1&&(this.playersAway[c].idSubstitution=i.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=i.minute,this.playersAway[c].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(u=>u.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(u=>u.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==i.player_id);y!=-1&&(this.playersAway[y].yellowcards+=1,this.playersAway[y].yellowcardsMin=i.minute,this.playersAway[y].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(u=>u.playerId==i.player_id);l!=-1&&(this.playersHome[l].redcards+=1,this.playersHome[l].redcardsMin=i.minute,this.playersHome[l].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(u=>u.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){try{const d=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.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<d.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=d.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:d.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:d.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.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),d.data.home_team.bench){for(let b=0;b<d.data.home_team.bench.length;b++){this.subsTitle=!0;var p=d.data.home_team.bench[b].playerName.split(","),y=p[0].split(" "),l=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var u=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=u+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.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:d.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(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.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<d.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,k=d.data.away_team.starting_lineup[0].lineup[b].x;k=Math.abs(k-100);var h=k*50/100,N=d.data.away_team.starting_lineup[0].lineup[b].y;N=Math.abs(N-100);var f=d.data.away_team.players.findIndex(P=>P.player_id==d.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:N-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:d.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:d.data.away_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+d.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),d.data.away_team.bench){for(let b=0;b<d.data.away_team.bench.length;b++){this.subsTitle=!0;var p=d.data.away_team.bench[b].playerName.split(","),y=p[0].split(" "),l=p[1].trim().split(" "),C="";y.length==2||y.length==1?y[0].length<4?C=y[0]+" "+y[1]:C=y[0]:y.length==3?C=y[0]+" "+y[1]:y.length==4&&(C=y[1]+" "+y[2]+" "+y[3]);var u=l[l.length-1]!=""?l[l.length-1].charAt(0):l[l.length-2]?l[l.length-2].charAt(0):"";C=C.replace(",","");var g=u+". "+C,m=d.data.away_team.players.findIndex(U=>U.player_id==d.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[b].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[b].playerID+".png",nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.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:d.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(t)}catch(_){return Promise.reject(_)}},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.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(t){try{const _=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+t);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<_.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var i=_.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.home_team.starting_lineup[0].lineup[d].x;c=Math.abs(c-100);var h=_.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-c)*50/100;f=f*.9;var p=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[p].position_id-1].name,position_id:_.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.home_team.players[p].nationality?_.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[d].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://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.home_team.bench){for(let d=0;d<_.data.home_team.bench.length;d++){this.subsTitle=!0;var y=_.data.home_team.bench[d].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=_.data.home_team.players.findIndex(b=>b.player_id==_.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[_.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.home_team.players[k].position_id-1].name:"",position_id:_.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.home_team.bench[d].playerID+".png",nationality:k!=-1&&_.data.home_team.players[k].nationality?_.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?_.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[d].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((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=_.data.away_team.players;for(let d=0;d<_.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var i=_.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,c=_.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-c)*50/100;f=f*.9;var p=_.data.away_team.players.findIndex(P=>P.player_id==_.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[_.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[p].position_id-1].name,position_id:_.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:_.data.away_team.players[p].nationality?_.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[d].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://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0),_.data.away_team.bench){for(let d=0;d<_.data.away_team.bench.length;d++){this.subsTitle=!0;var y=_.data.away_team.bench[d].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=_.data.away_team.players.findIndex(D=>D.player_id==_.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[_.data.away_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[_.data.away_team.players[k].position_id-1].name:"",position_id:_.data.away_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+_.data.away_team.bench[d].playerID+".png",nationality:k!=-1&&_.data.away_team.players[k].nationality?_.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?_.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[d].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((d,b)=>d.position_id>b.position_id?1:b.position_id>d.position_id?-1:0)}}await this.getMXM(t)}catch(N){return Promise.reject(N)}},async getLineupProbablesHome(t){this.auxProbablesIDGameHome!=t.id&&(this.auxProbablesIDGameHome=t.id,this.cleaneDataHome(),this.getLineUpProbablesHome3D(t.id))},async getLineupProbablesAway(t){this.auxProbablesIDGameAway!=t.id&&(this.auxProbablesIDGameAway=t.id,this.cleaneDataAway(),this.getLineUpProbablesAway3D(t.id))},async getLineupProbables(t){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id},async changeCarouselItem(t){typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=t.game_id&&(this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id))},async changeCarouselItemRecent(t){if(t.selectedItem){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}},async getHeaderInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].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 n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=F.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(this.urlGames+t.season_id+"/games/"+t.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],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(){yt("lineups.game."+this.game.game_id,this.socket),yt("mxm.game."+this.game.game_id,this.socket),yt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].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[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==c[1]),f=this.playersAway.findIndex(p=>p.playerId==c[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)Ki=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ki.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=this.urlMXM+t;if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const g=await F.create({headers:{Authorization:`${this.tokenPremium}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<g.data.plays.length;m++){if(g.data.plays[m].event_type_id==3){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=g.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(k=>k.playerId==i[0]),a=this.playersHome.findIndex(k=>k.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=g.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=g.data.plays[m].minute,this.playersHome[s].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=g.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=g.data.plays[m].minute,this.playersHome[a].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=g.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(k=>k.playerId==n[0]),r=this.playersAway.findIndex(k=>k.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=g.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=g.data.plays[m].minute,this.playersAway[o].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=g.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=g.data.plays[m].minute,this.playersAway[r].substitutionDataID=g.data.plays[m].team_id+"@"+g.data.plays[m].player_id)}}if(g.data.plays[m].event_type_id==1){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(k=>k.playerId==g.data.plays[m].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(g.data.plays[m].minute),this.playersHome[c].idsGoals.push(g.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(k=>k.playerId==g.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(g.data.plays[m].minute),this.playersAway[h].idsGoals.push(g.data.plays[m].play_id))}}if(g.data.plays[m].event_type_id==2){if(g.data.plays[m].category_id==8){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(k=>k.playerId==g.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=g.data.plays[m].minute,this.playersHome[f].idyellowcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(k=>k.playerId==g.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=g.data.plays[m].minute,this.playersAway[p].idyellowcards=g.data.plays[m].play_id)}}if(g.data.plays[m].category_id==9){if(g.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(k=>k.playerId==g.data.plays[m].player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=g.data.plays[m].minute,this.playersHome[y].idredcards=g.data.plays[m].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(k=>k.playerId==g.data.plays[m].player_id);l!=-1&&(this.playersAway[l].redcards+=1,this.playersAway[l].redcardsMin=g.data.plays[m].minute,this.playersAway[l].idredcards=g.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t!=null)try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const he=F.create({headers:{Authorization:`${this.tokenPremium}`}}),S=i||await he.get(this.url+t);if(!S||!S.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=S.data.home_team.players,this.dataPlayersAway=S.data.away_team.players,S.data.home_team.starting_lineup[0].lineup.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0);for(let I=0;I<S.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=S.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+"_g.svg","home",0);var s=S.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var c=r+". "+o,h=S.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=S.data.home_team.players.findIndex(z=>z.player_id==S.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:S.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[p].position_id-1].name,position_id:S.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.home_team.players[p].nationality?S.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:S.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:S.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:S.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.home_team.team_id}),this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.homeTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(S.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),S.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),S.data.home_team.bench){for(let I=0;I<S.data.home_team.bench.length;I++){this.subsTitle=!0;var y=S.data.home_team.bench[I].playerName.split(","),l=y[0].split(" "),C=y[1].trim().split(" "),u="";l.length==2||l.length==1?l[0].length<4?u=l[0]+" "+l[1]:u=l[0]:l.length==3?u=l[0]+" "+l[1]:l.length==4&&(u=l[1]+" "+l[2]+" "+l[3]);var g=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";u=u.replace(",","");var m=g+". "+u,k=S.data.home_team.players.findIndex(z=>z.player_id==S.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:S.data.home_team.bench[I].playerName,position:k!=-1?this.isFemale?this.positions[S.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[k].position_id-1].name:"",position_id:S.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.bench[I].playerID+".png",nationality:k!=-1&&S.data.home_team.players[k].nationality?S.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?S.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.home_team.team_id})}this.playersHome.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}for(let I=0;I<S.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=S.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+"_g.svg","away",0);var N=S.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),_=N[0].split(" "),d=N[1].trim().split(" "),b="";_.length==2||_.length==1?_[0].length<4?b=_[0]+" "+_[1]:b=_[0]:_.length==3?b=_[0]+" "+_[1]:_.length==4&&(b=_[1]+" "+_[2]+" "+_[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=S.data.away_team.starting_lineup[0].lineup[I].x,R=100-(100-V)*50/100;R=R*.9;var Y=S.data.away_team.players.findIndex(z=>z.player_id==S.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:S.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[Y].position_id-1].name,position_id:S.data.away_team.players[Y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.away_team.players[Y].nationality?S.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:S.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:B,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:R,positionXOrigin:S.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:S.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.away_team.team_id}),this.awayTeamLogo="https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.selectOptMenuheader=="Historicos"?(S.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),S.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0),S.data.away_team.bench){for(let I=0;I<S.data.away_team.bench.length;I++){this.subsTitle=!0;var ne=S.data.away_team.bench[I].playerName.split(","),D=ne[0].split(" "),U=ne[1].trim().split(" "),P="";D.length==2||D.length==1?D[0].length<4?P=D[0]+" "+D[1]:P=D[0]:D.length==3?P=D[0]+" "+D[1]:D.length==4&&(P=D[1]+" "+D[2]+" "+D[3]);var It=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";P=P.replace(",","");var Vt=It+". "+P,X=S.data.away_team.players.findIndex(z=>z.player_id==S.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:S.data.away_team.bench[I].playerName,position:X!=-1?this.isFemale?this.positions[S.data.away_team.players[X].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[X].position_id-1].name:"",position_id:S.data.away_team.players[X].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.bench[I].playerID+".png",nationality:X!=-1&&S.data.away_team.players[X].nationality?S.data.away_team.players[X].nationality.substring(0,3):"",imgNationality:X!=-1?S.data.away_team.players[X].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:Vt,imgTeam:"https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.away_team.team_id})}this.playersAway.sort((I,z)=>I.position_id>z.position_id?1:z.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500)}catch(he){return Promise.reject(he)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].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==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[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=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].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(t){this.teamActive=t}}},oc={style:{background:"#1d2a35"}},rc={class:"size-browser-class"},lc={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},cc={class:"team-shield-left",style:{"margin-left":"16%"}},dc=["src"],mc={class:"team-shield-right",style:{"margin-right":"16%"}},hc=["src"],pc={class:"lineup-players is-centered"},fc=["onClick"],gc=["onClick"];function yc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",oc,[e.createElementVNode("div",rc,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",lc,[e.createElementVNode("div",cc,[e.createElementVNode("img",{src:n.homeTeamLogo||"/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,dc)]),e.createElementVNode("div",mc,[e.createElementVNode("img",{src:n.awayTeamLogo||"/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,hc)])]),e.createElementVNode("div",pc,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[0]||(i[0]=[e.createElementVNode("img",{src:Yi},null,-1)]),10,fc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:c+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},i[1]||(i[1]=[e.createElementVNode("img",{src:Yi},null,-1)]),10,gc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)]),2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ")]),2)],2)):e.createCommentVNode("",!0)],2)])])}const uc=Q(nc,[["render",yc]]),_c=Q({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(uc,{game:t.game,gamehome:t.gamehome,gameaway:t.gameaway,"selected-option":"Prematch"},null,8,["game","gamehome","gameaway"])]))}},[["__scopeId","data-v-c4b2885b"]]);te.GSCLineupsReports=_c,Object.defineProperty(te,Symbol.toStringTag,{value:"Module"})});