@golstats/gsc-game-data 1.0.51 → 1.0.52
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.
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
* Vue 3 Carousel 0.3.1
|
|
41
41
|
* (c) 2023
|
|
42
42
|
* @license MIT
|
|
43
|
-
*/const ct={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},n_={itemsToShow:{default:ct.itemsToShow,type:Number},itemsToScroll:{default:ct.itemsToScroll,type:Number},wrapAround:{default:ct.wrapAround,type:Boolean},throttle:{default:ct.throttle,type:Number},snapAlign:{default:ct.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ct.transition,type:Number},breakpoints:{default:ct.breakpoints,type:Object},autoplay:{default:ct.autoplay,type:Number},pauseAutoplayOnHover:{default:ct.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ct.mouseDrag,type:Boolean},touchDrag:{default:ct.touchDrag,type:Boolean},dir:{default:ct.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ct.i18n,type:Object},settings:{default(){return{}},type:Object}};function xD({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function VD({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function zm({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function ID({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:zm({val:r,max:o-i,min:0})}function i_(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...i_(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Fm({val:e,max:a,min:o=0}){return e>a?Fm({val:e-(a+1),max:a,min:o}):e<o?Fm({val:e+(a+1),max:a,min:o}):e}function AD(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function OD(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function TD(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var zD=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},ct))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},TD(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),FD=t.defineComponent({name:"Carousel",props:n_,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},ct));let l=Object.assign({},ct),m;const p=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),g=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",h),t.provide("currentSlide",p),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(O=>Number(O)).sort((O,oe)=>+oe-+O);let T=Object.assign({},l);S.some(O=>{const oe=window.matchMedia(`(min-width: ${O}px)`).matches;return oe&&(T=Object.assign(Object.assign({},T),m[O])),oe}),E(T)}function E(S){Object.entries(S).forEach(([T,O])=>d[T]=O)}const x=OD(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=xD({config:d,slidesCount:h.value}),f.value=VD({config:d,slidesCount:h.value}),d.wrapAround||(p.value=zm({val:p.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),Le(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const z={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),F=t.ref(!1),ee=t.ref(!1),re=()=>{F.value=!0},Q=()=>{F.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||P.value)&&(z.x=$?S.touches[0].clientX:S.clientX,z.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",R,!0)))}const N=AD(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const T=A.x-z.x,O=A.y-z.y;I.y=O,I.x=T},d.throttle);function R(){const S=d.dir==="rtl"?-1:1,T=Math.sign(I.x)*.4,O=Math.round(I.x/c.value+T)*S;if(O&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(p.value-O),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",R,!0)}function Le(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&F.value||te()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),Le()}const P=t.ref(!1);function K(S){const T=d.wrapAround?S:zm({val:S,max:u.value,min:f.value});p.value===T||P.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!0,y.value=p.value,p.value=T,k=setTimeout(()=>{if(d.wrapAround){const O=Fm({val:T,max:u.value,min:0});O!==p.value&&(p.value=O,o("loop",{currentSlideIndex:p.value,slidingToIndex:S}))}o("update:modelValue",p.value),o("slide-end",{currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!1,se()},d.transition))}function te(){K(p.value+d.itemsToScroll)}function ae(){K(p.value-d.itemsToScroll)}const ne={slideTo:K,next:te,prev:ae};t.provide("nav",ne),t.provide("isSliding",P);const ie=t.computed(()=>ID({config:d,currentSlide:p.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,T=ie.value*c.value*S;return{transform:`translateX(${I.x-T}px)`,transition:`${P.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),B(),V(),se()}Object.keys(n_).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==p.value&&K(Number(S))}),t.watch(h,B),o("before-init"),w();const xe={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:p,maxSlide:u,minSlide:f,middleSlide:g};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:ne,data:xe});const Re=a.default||a.slides,Pe=a.addons,ve=t.reactive(xe);return()=>{const S=i_(Re==null?void 0:Re(ve)),T=(Pe==null?void 0:Pe(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let O=S;if(d.wrapAround){const Oe=S.map((ze,le)=>t.cloneVNode(ze,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((ze,le)=>t.cloneVNode(ze,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));O=[...Oe,...S,...Te]}r.value=S,h.value=Math.max(S.length,1);const oe=t.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:d.mouseDrag?C:null,onTouchstartPassiveCapture:d.touchDrag?C:null},O),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":P.value,"is-dragging":ee.value,"is-hover":F.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,T,t.h(zD)])}}}),r_;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(r_||(r_={}));var RD=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},ct))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,h=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const PD=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},DD=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),LD={class:"gsc-carousel"},jD={key:0},vD=DD(()=>t.createElementVNode("div",null,"no hay",-1)),MD=[vD],HD={class:"gsc-carousel__2d__slides"},UD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GD=["fill"],WD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qD=["fill"],JD={class:"gsc-carousel__2d__navigation"},XD={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZD=["stroke"],YD={key:1,class:"gsc-carousel__2d__navigation__pagination"},KD=["onClick"],QD={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eL=["stroke"],tL={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const s=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,u=>{u&&c.value?(c.value=!1,h(s.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,u=>{r.value!==u&&p(u)}),t.watch(()=>s.items,u=>{n.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&n.value){if(s.defaultItemByProp){const f=s.items.findIndex(_=>_[s.defaultItemByProp.propName]===s.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=s.defaultItemByIndex,i.value=u[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(){n.value&&n.value.updateSlideWidth()}function p(u){n.value&&n.value.slideTo(u)}function y(u){n.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?s.items.length-1:u.slidingToIndex===s.items.length?0:u.slidingToIndex;r.value=f,i.value=s.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:m,slideTo:p}),(u,f)=>(t.openBlock(),t.createElementBlock("div",LD,[s.is3d?(t.openBlock(),t.createElementBlock("div",jD,MD)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",HD,[t.createVNode(t.unref(FD),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:g},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createBlock(t.unref(RD),{key:k},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:f[0]||(f[0]=_=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",UD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,GD)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:f[1]||(f[1]=_=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",WD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,qD)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",JD,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:f[2]||(f[2]=_=>l())},[(t.openBlock(),t.createElementBlock("svg",XD,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:s.arrowsColor},null,8,ZD)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",YD,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===k?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===k?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>y(k)},null,12,KD))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:f[3]||(f[3]=_=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",QD,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:s.arrowsColor},null,8,eL)]))])):t.createCommentVNode("",!0)])],2))]))}},gr=PD(tL,[["__scopeId","data-v-dd3cbf69"]]),aL=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Rm={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},l_=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},c_=Rm.setup;Rm.setup=c_?(e,a)=>(l_(),c_(e,a)):l_;const oL=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),sL=["src"],nL={key:1,class:"text"},iL=["src"],rL={class:"stats"},lL=oL(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),cL={class:"numstats"},dL={class:"leyend"};function mL(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,n.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,sL)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nL,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,iL)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.createElementVNode("div",rL,[lL,t.createElementVNode("div",cL,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",dL,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const pL=aL(Rm,[["render",mL],["__scopeId","data-v-fb269a1e"]]),hL={class:"gsc-dropdown__main-container__item-selected"},gL=["height","width"],yL=["stroke"],uL={class:"gsc-dropdown__items-container"},fL=["onClick"],_L={key:0,class:"gsc-dropdown__items-footer"},Pm={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,s=t.ref({}),n=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(y,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&y&&y.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,s.value=y[u]):(i.value=0,s.value=y[0])}else s.value=y[o.defaultItemByIndex];a("input",s.value)}},{immediate:!0}),t.watch(()=>o.modelValue,y=>{if(y){const g=o.items.findIndex(u=>typeof y=="object"?JSON.stringify(u)===JSON.stringify(y):u===y);g!==-1&&(i.value=g,s.value=o.items[g],a("update:modelValue",s.value))}},{immediate:!0});const c=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),h=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(r.value=!r.value)}function l(y){n.value&&!n.value.contains(y.target)&&(r.value=!1)}function m(y,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),s.value=y,a("input",s.value),a("update:modelValue",s.value)}function p(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(y,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",hL,[t.renderSlot(y.$slots,"default",{selectedItem:s.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:t.normalizeStyle(h.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,yL)],8,gL))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",uL,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:f===i.value}]),key:f,onClick:_=>m(u,f)},[t.renderSlot(y.$slots,"availableItem",{item:u})],10,fL))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",_L,[t.createVNode(t.unref(pL),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:p})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let d_=null;const bL={components:{LineupField:UR,LineupRecentItem:aP,LineupMainHeader:NP,LineupFilter:qP,MatchDetails:e_,GscSwitchComponent:Zs,GSCCarousel:gr,GSCDropdown:Pm},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:zR},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter()}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game)))}catch(a){throw new Error(a)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.updateCarouselGames+=1,this.matchFilter())},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])):this.gamesRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]));else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])}else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.filterObject=e,this.matchFilter()},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const a=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const a=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].id)}},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var a={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getLineUp(a.game_id)},changeDropdown(e){const a=this.gamesRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},async changeCarouselItem(e){this.keyUpdate+=1,this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id};var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id,this.selectedIndexOption=e.selectedItemIndex},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,a.data.games_historic&&a.data.games_historic.length>0)for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});if(this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[],a.data.home_team_games_recent&&a.data.home_team_games_recent.length>0)for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});if(a.data.away_team_games_recent&&a.data.away_team_games_recent.length>0)for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:a.data.away_team_games_recent[o].matchday_abbreviation.replace("M","Jornada "),id:a.data.away_team_games_recent[o].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)d_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),d_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineupDataProbablesAway(e){try{const h=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!h||!h.data)throw new Error("There is not lineups for this game.");if(h.data.home_team.team_id==this.gameInfoheader.away_team){for(let d=0;d<h.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+"_g.svg","away",0);var a=h.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.home_team.starting_lineup[0].lineup[d].x;r=Math.abs(r-100);var c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.home_team.team_id,number:h.data.home_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.home_team.starting_lineup[0].lineup[d].player_id+".png",posX:c+7,posY:h.data.home_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.home_team.team_id+".png"}this.playersAway.sort((d,l)=>d.position_id>l.position_id?1:l.position_id>d.position_id?-1:0)}if(h.data.away_team.team_id==this.gameInfoheader.away_team)for(let d=0;d<h.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+"_g.svg","away",0);var a=h.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.away_team.starting_lineup[0].lineup[d].x,c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.away_team.team_id,number:h.data.away_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.away_team.starting_lineup[0].lineup[d].player_id+".png",posX:100-(100-h.data.away_team.starting_lineup[0].lineup[d].x)*50/100,posY:h.data.away_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.away_team.team_id+".png"}}catch(h){return Promise.reject(h)}},async getLineupDataProbablesHome(e){try{const l=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!l||!l.data)throw new Error("There is not lineups for this game.");if(l.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.home_team.players,l.data.home_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+"_g.svg","home",0);var a=l.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[m].x,c=r*50/100;this.players.push({team_id:l.data.home_team.team_id,number:l.data.home_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[m].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[m].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[m].y}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.home_team.team_id+".png"}}if(l.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.away_team.players,l.data.away_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+"_g.svg","home",0);var a=l.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[m].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[m].y;d=Math.abs(d-100),this.players.push({team_id:l.data.away_team.team_id,number:l.data.away_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[m].player_id+".png",posX:c-2,posY:d-9}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.away_team.team_id+".png"}}}catch(l){return Promise.reject(l)}},async getLineUp(e){if(Jf(),!this.playersHome.length)try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",posX:C.data.home_team.starting_lineup[0].lineup[N].x*50/100,posY:C.data.home_team.starting_lineup[0].lineup[N].y}),this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!1,name:E+". "+b,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",posX:100-(100-C.data.away_team.starting_lineup[0].lineup[N].x)*50/100,posY:C.data.away_team.starting_lineup[0].lineup[N].y}),this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}this.game.prematch||this.getMXM(this.game.game_id)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Ys=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),wL={class:"lineup__header",ref:"gamesContainer"},CL=Ys(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),kL={key:0,style:{width:"325px"}},SL={class:"lineup__card"},EL={key:0},NL={key:1},$L={key:2},BL={key:3,class:"lineup__card-body"},xL={key:0,class:"lineup__selector",style:{margin:"auto"}},VL={class:"lineup__selector-item"},IL={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},AL={class:"lineup__filters"},OL={class:"selector-tournaments"},TL={class:"lineup__items-carousel"},zL=Ys(()=>t.createElementVNode("div",null,null,-1)),FL={class:"lineup__items-center"},RL={class:"lineup__selector-recientes"},PL={key:1,class:"containernofoundsearchrecientes"},DL=Ys(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),LL={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},jL={key:5,class:"lineup__card-body space-between"},vL={class:"lineup__card-body__probables"},ML={class:"selector-tournaments"},HL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),UL=["src"],GL={class:"lineup__card-body__probables"},WL=["src"],qL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),JL={class:"selector-tournaments"},XL={key:6,class:"lineup__card-body space-between"},ZL={class:"postmatch__matchday"};function YL(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),m=t.resolveComponent("LineupRecentItem"),p=t.resolveComponent("MatchDetails"),y=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",wL,[CL,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",kL,[(n.gameInfoheader.game_status==0||n.gameInfoheader.game_status==4)&&i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:a[0]||(a[0]=g=>o.selectedOption=g)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",SL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",EL,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",NL,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",$L,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(n.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:n.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.headerInfoHistoricItemGame.score[0]+" - "+n.headerInfoHistoricItemGame.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(n.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.home_team+".png"},visitTeam:{acronym:n.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.gameInfoheader.score[0]+" - "+n.gameInfoheader.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",BL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",xL,[n.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:n.updatehistoricos,onInput:i.changeCarouselItemH,items:n.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",VL,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",IL,[t.createElementVNode("div",AL,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:n.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:a[1]||(a[1]=(...g)=>i.handleInsideClick&&i.handleInsideClick(...g))},[(t.openBlock(),t.createBlock(l,{items:i.matchdaysFinal,onInput:i.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",OL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:a[2]||(a[2]=g=>n.showDetails=!n.showDetails)},t.toDisplayString(n.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",TL,[zL,t.createElementVNode("div",FL,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",RL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",PL,[DL,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),n.showDetails?(t.openBlock(),t.createBlock(p,{key:0,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",LL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),n.showDetails?(t.openBlock(),t.createBlock(p,{key:1,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",jL,[t.createElementVNode("div",vL,[t.createVNode(l,{items:i.matchHomeProbables,onInput:i.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",ML,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),HL,t.createElementVNode("img",{src:n.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,UL)]),t.createElementVNode("div",GL,[t.createElementVNode("img",{src:n.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,WL),qL,t.createVNode(l,{items:i.matchAwayProbables,onInput:i.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",JL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"])])])):o.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",XL,[t.createElementVNode("div",ZL,t.toDisplayString(n.gameInfoheader.season_name!==void 0?n.gameInfoheader.season_name+" | "+i.remplazarMxJor(n.gameInfoheader.matchday_abbreviation)+" | "+n.gameInfoheader.home_team_abbreviation+" - "+n.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(y,{class:"lineup__field",players:n.players},null,8,["players"])])],2)}const KL=bt(bL,[["render",YL],["__scopeId","data-v-3e8dc5c2"]]),QL={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{},mounted(){}},yr=e=>(t.pushScopeId("data-v-57833ebc"),e=e(),t.popScopeId(),e),ej={key:0,class:"gsc-item-player"},tj={class:"gsc-num-player"},aj={class:"gsc-cont-info-by-player"},oj={class:"gsc-cont-info-by-player-row1"},sj={class:"shield-player-cont"},nj=["src"],ij={class:"gsc-cont-info-by-player-row2"},rj={class:"gsc-cont-info-by-player-row2-line-name"},lj={class:"gsc-cont-info-by-player-row2-line-data"},cj={class:"cont-display-gsc"},dj=["src"],mj={class:"gsc-cont-cards"},pj={key:0,class:"gsc-yellow_card_div"},hj={key:1,class:"gsc-red_card_div"},gj={key:2,class:"gsc-yellowred_card_div"},yj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),uj={key:5,class:"gsc-goal_card_div_wrapper"},fj=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),_j={key:1,class:"gsc-item-player"},bj={class:"gsc-num-player2"},wj={class:"gsc-cont-info-by-player2"},Cj={class:"gsc-cont-info-by-player-row2"},kj={class:"gsc-cont-info-by-player-row2-line-name2"},Sj={class:"gsc-cont-info-by-player-row2-line-data"},Ej={class:"gsc-cont-cards2"},Nj={key:0,class:"gsc-yellow_card_div"},$j={key:1,class:"gsc-red_card_div"},Bj={key:2,class:"gsc-yellowred_card_div"},xj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Vj={key:5,class:"gsc-goal_card_div_wrapper"},Ij=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Aj={class:"cont-display-gsc"},Oj=["src"],Tj={class:"gsc-cont-info-by-player-row1"},zj={class:"shield-player-cont"},Fj=["src"];function Rj(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",ej,[t.createElementVNode("div",tj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",aj,[t.createElementVNode("div",oj,[t.createElementVNode("div",sj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,nj)])]),t.createElementVNode("div",ij,[t.createElementVNode("div",rj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",lj,[t.createElementVNode("div",cj,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,dj),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",mj,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",pj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",hj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",gj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[yj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",uj,[fj,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",_j,[t.createElementVNode("div",bj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",wj,[t.createElementVNode("div",Cj,[t.createElementVNode("div",kj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",Sj,[t.createElementVNode("div",Ej,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Nj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",$j)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Bj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[xj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Vj,[Ij,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Aj,[t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,Oj)])])]),t.createElementVNode("div",Tj,[t.createElementVNode("div",zj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,Fj)])])])])):t.createCommentVNode("",!0)],64)}const Pj=bt(QL,[["render",Rj],["__scopeId","data-v-57833ebc"]]),Dm="/icn-filter.svg",Ks="/icn-expand-arrow.svg",m_="/backarrow.svg",p_="/nextarrow.svg",Dj="_selectoritem_1dafy_137",Lj="_selectoritem2_1dafy_157",jj="_gscheaderlineup_1dafy_177",vj="_anNoEstn_1dafy_191",Mj="_groupsLeague_1dafy_197",Hj="_jugadores_1dafy_209",Uj="_switchOption_1dafy_219",Gj="_jugadores1_1dafy_239",Wj="_switchOption1_1dafy_249",qj="_switchStatesBig_1dafy_265",Jj="_groupsLeagueParent_1dafy_283",Xj="_imgHomeTeamIcon_1dafy_301",Zj="_imgHomeTeamWrapper_1dafy_313",Yj="_teamContainer_1dafy_337",Kj="_name_1dafy_361",Qj="_homeTeamContainer_1dafy_373",ev="_div_1dafy_393",tv="_scoreContainer_1dafy_401",av="_scoreContainerWrapper_1dafy_421",ov="_teamContainer1_1dafy_447",sv="_awayTeamContainer_1dafy_471",nv="_matchContainer_1dafy_491",iv="_sliderMatchesChild_1dafy_509",rv="_manchesterUnited_1dafy_521",lv="_sliderMatchesItem_1dafy_533",cv="_sliderMatches_1dafy_509",dv="_sortIcon_1dafy_569",mv="_filtros_1dafy_583",pv="_sortParent_1dafy_599",hv="_shapeIcon_1dafy_613",gv="_btnFilter_1dafy_623",yv="_btnFilter1_1dafy_651",uv="_btnFilterParent_1dafy_679",fv="_backArrowIcon_1dafy_695",_v="_teamContainer2_1dafy_707",bv="_homeTeam_1dafy_373",wv="_div4_1dafy_735",Cv="_finalScore_1dafy_745",kv="_manchesterUnited1_1dafy_771",Sv="_scoreContainer1_1dafy_785",Ev="_match_1dafy_491",Nv="_manchesterUnited2_1dafy_821",$v="_btnDetails_1dafy_831",Bv="_matchContainer1_1dafy_851",xv="_goalChild_1dafy_867",Vv="_goal_1dafy_867",Iv="_manchesterUnited3_1dafy_893",Av="_minuteEvent_1dafy_907",Ov="_yellowCard_1dafy_921",Tv="_awayTeamEvents_1dafy_935",zv="_rectangle_1dafy_949",Fv="_homeTeamEvents_1dafy_963",Rv="_totalEvents_1dafy_979",Pv="_headerSeccionAlineaciones1_1dafy_995",Dv="_switchOption3_1dafy_1017",Lv="_switchOption4_1dafy_1041",jv="_switchStatesBig1_1dafy_1061",vv="_manchesterUnited13_1dafy_1075",Mv="_homeTeamContainer1_1dafy_1085",Hv="_scoreContainer2_1dafy_1099",Uv="_matchContainer2_1dafy_1127",Gv="_manchesterUnited14_1dafy_1147",Wv="_sliderMatchesInner_1dafy_1161",qv="_rectangleIcon_1dafy_1181",Jv="_sliderMatches1_1dafy_1201",Xv="_containerData_1dafy_1217",Zv="_headerSeccionAlineaciones2_1dafy_1245",Yv="_headerSeccionAlineaciones_1dafy_995",Kv="_headerSeccionAlineaciones21200_1dafy_1293",Qv="_headerSeccionAlineaciones1540_1dafy_1299",eM="_headerSeccionAlineaciones2540_1dafy_1307",tM={selectoritem:Dj,selectoritem2:Lj,gscheaderlineup:jj,anNoEstn:vj,groupsLeague:Mj,jugadores:Hj,switchOption:Uj,jugadores1:Gj,switchOption1:Wj,switchStatesBig:qj,groupsLeagueParent:Jj,imgHomeTeamIcon:Xj,imgHomeTeamWrapper:Zj,teamContainer:Yj,name:Kj,homeTeamContainer:Qj,div:ev,scoreContainer:tv,scoreContainerWrapper:av,teamContainer1:ov,awayTeamContainer:sv,matchContainer:nv,sliderMatchesChild:iv,manchesterUnited:rv,sliderMatchesItem:lv,sliderMatches:cv,sortIcon:dv,filtros:mv,sortParent:pv,shapeIcon:hv,btnFilter:gv,btnFilter1:yv,btnFilterParent:uv,backArrowIcon:fv,teamContainer2:_v,homeTeam:bv,div4:wv,finalScore:Cv,manchesterUnited1:kv,scoreContainer1:Sv,match:Ev,manchesterUnited2:Nv,btnDetails:$v,matchContainer1:Bv,goalChild:xv,goal:Vv,manchesterUnited3:Iv,minuteEvent:Av,yellowCard:Ov,awayTeamEvents:Tv,rectangle:zv,homeTeamEvents:Fv,totalEvents:Rv,headerSeccionAlineaciones1:Pv,switchOption3:Dv,switchOption4:Lv,switchStatesBig1:jv,manchesterUnited13:vv,homeTeamContainer1:Mv,scoreContainer2:Hv,matchContainer2:Uv,manchesterUnited14:Gv,sliderMatchesInner:Wv,rectangleIcon:qv,sliderMatches1:Jv,containerData:Xv,headerSeccionAlineaciones2:Zv,headerSeccionAlineaciones:Yv,headerSeccionAlineaciones21200:Kv,headerSeccionAlineaciones1540:Qv,headerSeccionAlineaciones2540:eM},aM={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},oM=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),sM=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),nM=["src"],iM=["src"],rM=["src"],lM=["src"],cM=["src"],dM=["src"];function mM(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[oM,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),sM],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,nM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,iM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,rM)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,lM)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,cM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,dM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const pM={$style:tM},hM=bt(aM,[["render",mM],["__cssModules",pM]]),ur=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),gM=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),yM=["value"],uM=ur(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1)),fM={class:"filter-modal__padding"},_M={class:"filter-modal__content-header"},bM=ur(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),wM={class:"filter-modal__content-options"},CM=["onClick"],kM={class:"filter-modal__content-header"},SM=ur(()=>t.createElementVNode("h3",null,"Resultados:",-1)),EM={class:"filter-modal__content-options"},NM=["onClick"],$M=ur(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),BM={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:a}){const o=e;t.useCssVars(w=>({d00c78a6:e.marginModal}));const s=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],i=t.ref(null),r=t.ref(["local","visit"]),c=t.ref(["win","draw","lose"]),h=t.ref(!0),d=t.ref(!0),l=t.ref(!0),m=t.ref(!0),p=t.ref(["local","visit"]),y=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(p.value)),c.value=JSON.parse(JSON.stringify(y.value)),h.value=l.value,d.value=m.value};t.watch(()=>o.itemSelect,w=>{w&&(p.value=w.selectedFilterTeam,y.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=p.value:E=y.value;const x=E.findIndex(V=>V===w);x==-1?E.push(w):b=="team"&&p.value.length==2?E.splice(x,1):(b=="team"&&E.push(w),y.value.length>1&&E.splice(x,1)),l.value=p.value.length==2,m.value=y.value.length==3},f=()=>{p.value=["local","visit"],y.value=["win","draw","lose"],l.value=!0,m.value=!0,a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},_=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},k=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})};return(w,b)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[gM,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,yM),uM])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:i,onFocusout:b[4]||(b[4]=E=>{e.isOpen=!1,k()})},[t.createElementVNode("div",fM,[t.createElementVNode("div",_M,[bM,t.createVNode(pr,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(p.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",wM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"team"),class:t.normalizeClass({active:p.value.includes(E.id)})},t.toDisplayString(E.name),11,CM)),64))]),t.createElementVNode("div",kM,[SM,t.createVNode(pr,{modelValue:m.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>m.value=E),b[3]||(b[3]=E=>E&&(y.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",EM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"player"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,NM)),64))])]),$M,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:f},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:_},"Listo")])],34)],4))}},xM=bt(BM,[["__scopeId","data-v-2118a6cd"]]),VM="/icn-filter1.svg",IM="/icn-expand-arrow1.svg",AM="/icn-filter2.svg",OM="/icn-arrow-expand.svg",TM="_containernofoundsearchrecientes_1gxk5_159",zM="_btndeletefilters_1gxk5_215",FM="_leyenddeleteshow_1gxk5_247",RM="_selectoritem_1gxk5_261",PM="_anNoEstn_1gxk5_279",DM="_groupsLeague_1gxk5_287",LM="_historicas_1gxk5_297",jM="_switchOption_1gxk5_309",vM="_recientes_1gxk5_331",MM="_switchOption1_1gxk5_343",HM="_switchOption2_1gxk5_369",UM="_switchStatesBig_1gxk5_387",GM="_groupsLeagueParent_1gxk5_407",WM="_imgHomeTeamIcon_1gxk5_427",qM="_imgHomeTeamWrapper_1gxk5_441",JM="_teamContainer_1gxk5_467",XM="_name_1gxk5_493",ZM="_homeTeamContainer_1gxk5_507",YM="_div_1gxk5_529",KM="_scoreContainer_1gxk5_539",QM="_scoreContainerWrapper_1gxk5_561",eH="_teamContainer1_1gxk5_587",tH="_awayTeamContainer_1gxk5_613",aH="_matchContainer_1gxk5_635",oH="_sliderMatchesChild_1gxk5_655",sH="_manchesterUnited_1gxk5_669",nH="_sliderMatchesItem_1gxk5_683",iH="_sliderMatches_1gxk5_655",rH="_sortIcon_1gxk5_719",lH="_filtros_1gxk5_735",cH="_sortParent_1gxk5_753",dH="_shapeIcon_1gxk5_769",mH="_btnFilter_1gxk5_781",pH="_btnFilter1_1gxk5_813",hH="_btnFilterParent_1gxk5_843",gH="_backArrowIcon_1gxk5_861",yH="_teamContainer2_1gxk5_875",uH="_homeTeam_1gxk5_507",fH="_div4_1gxk5_907",_H="_finalScore_1gxk5_919",bH="_manchesterUnited1_1gxk5_947",wH="_scoreContainer1_1gxk5_963",CH="_match_1gxk5_635",kH="_manchesterUnited2_1gxk5_997",SH="_btnDetails_1gxk5_1023",EH="_matchContainer1_1gxk5_1047",NH="_goalChild_1gxk5_1065",$H="_goal_1gxk5_1065",BH="_manchesterUnited3_1gxk5_1095",xH="_minuteEvent_1gxk5_1111",VH="_yellowCard_1gxk5_1127",IH="_awayTeamEvents_1gxk5_1143",AH="_rectangle_1gxk5_1159",OH="_homeTeamEvents_1gxk5_1175",TH="_totalEvents_1gxk5_1193",zH="_headerSeccionAlineaciones1_1gxk5_1211",FH="_sliderMatchesInner_1gxk5_1233",RH="_btnFilter2_1gxk5_1247",PH="_btnDetails1_1gxk5_1281",DH="_matchContainer3_1gxk5_1299",LH="_backArrowIcon1_1gxk5_1321",jH="_match1_1gxk5_1335",vH="_headerSeccionAlineaciones2_1gxk5_1347",MH="_jugadores2_1gxk5_1369",HH="_switchOption6_1gxk5_1383",UH="_switchOption7_1gxk5_1405",GH="_switchStatesBig2_1gxk5_1431",WH="_manchesterUnited26_1gxk5_1447",qH="_homeTeamContainer2_1gxk5_1459",JH="_vectorIcon_1gxk5_1475",XH="_teamSwitch_1gxk5_1487",ZH="_matchContainer5_1gxk5_1513",YH="_manchesterUnited27_1gxk5_1535",KH="_sliderMatchesChild1_1gxk5_1551",QH="_sliderMatchesChild2_1gxk5_1573",eU="_sliderMatches2_1gxk5_1595",tU="_filtros2_1gxk5_1615",aU="_btnFilter4_1gxk5_1635",oU="_jornada2_1gxk5_1667",sU="_filterMatchday_1gxk5_1681",nU="_btnDetails2_1gxk5_1703",iU="_filtersContainer_1gxk5_1725",rU="_matchContainer6_1gxk5_1745",lU="_matchDetailContainer_1gxk5_1763",cU="_containerData_1gxk5_1783",dU="_headerSeccionAlineaciones3_1gxk5_1813",mU="_headerSeccionAlineaciones_1gxk5_1211",pU="_headerSeccionAlineaciones31200_1gxk5_1865",hU="_headerSeccionAlineaciones3420_1gxk5_1891",gU="_headerSeccionAlineaciones3880_1gxk5_1917",yU="_headerSeccionAlineaciones3540_1gxk5_1941",uU="_headerSeccionAlineaciones11200_1gxk5_1967",fU="_headerSeccionAlineaciones1420_1gxk5_1995",_U="_headerSeccionAlineaciones1880_1gxk5_2017",bU="_headerSeccionAlineaciones21200_1gxk5_2039",wU="_headerSeccionAlineaciones2420_1gxk5_2067",CU="_headerSeccionAlineaciones2880_1gxk5_2091",kU="_headerSeccionAlineaciones2540_1gxk5_2113",SU={containernofoundsearchrecientes:TM,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:zM,leyenddeleteshow:FM,selectoritem:RM,anNoEstn:PM,groupsLeague:DM,historicas:LM,switchOption:jM,recientes:vM,switchOption1:MM,switchOption2:HM,switchStatesBig:UM,groupsLeagueParent:GM,imgHomeTeamIcon:WM,imgHomeTeamWrapper:qM,teamContainer:JM,name:XM,homeTeamContainer:ZM,div:YM,scoreContainer:KM,scoreContainerWrapper:QM,teamContainer1:eH,awayTeamContainer:tH,matchContainer:aH,sliderMatchesChild:oH,manchesterUnited:sH,sliderMatchesItem:nH,sliderMatches:iH,sortIcon:rH,filtros:lH,sortParent:cH,shapeIcon:dH,btnFilter:mH,btnFilter1:pH,btnFilterParent:hH,backArrowIcon:gH,teamContainer2:yH,homeTeam:uH,div4:fH,finalScore:_H,manchesterUnited1:bH,scoreContainer1:wH,match:CH,manchesterUnited2:kH,btnDetails:SH,matchContainer1:EH,goalChild:NH,goal:$H,manchesterUnited3:BH,minuteEvent:xH,yellowCard:VH,awayTeamEvents:IH,rectangle:AH,homeTeamEvents:OH,totalEvents:TH,headerSeccionAlineaciones1:zH,sliderMatchesInner:FH,btnFilter2:RH,btnDetails1:PH,matchContainer3:DH,backArrowIcon1:LH,match1:jH,headerSeccionAlineaciones2:vH,jugadores2:MH,switchOption6:HH,switchOption7:UH,switchStatesBig2:GH,manchesterUnited26:WH,homeTeamContainer2:qH,vectorIcon:JH,teamSwitch:XH,matchContainer5:ZH,manchesterUnited27:YH,sliderMatchesChild1:KH,sliderMatchesChild2:QH,sliderMatches2:eU,filtros2:tU,btnFilter4:aU,jornada2:oU,filterMatchday:sU,btnDetails2:nU,filtersContainer:iU,matchContainer6:rU,matchDetailContainer:lU,containerData:cU,headerSeccionAlineaciones3:dU,headerSeccionAlineaciones:mU,headerSeccionAlineaciones31200:pU,headerSeccionAlineaciones3420:hU,headerSeccionAlineaciones3880:gU,headerSeccionAlineaciones3540:yU,headerSeccionAlineaciones11200:uU,headerSeccionAlineaciones1420:fU,headerSeccionAlineaciones1880:_U,headerSeccionAlineaciones21200:bU,headerSeccionAlineaciones2420:wU,headerSeccionAlineaciones2880:CU,headerSeccionAlineaciones2540:kU},EU={components:{GSCCarousel:gr,GscSwitchComponent:Zs,GSCDropdown:Pm,GSCFilter:xM,GSCSwitchRadio:Yf,GSCMatchDetails:e_},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(a){throw new Error(a)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},changeDropdown(e){const a=this.gameRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_match_result}),a.push(this.gameRecientes[this.teamSelect][o])):this.gameRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]));else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o])}else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},changeFiltersModal(e){this.filterObject=e,this.openfiltervalue=!1,this.matchFilter()},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},changeCarouselItem(e){e.selectedItem&&(this.getMinutesData(e.selectedItem.minutes),this.$emit("input",e),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.keyUpdate+=1)},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},NU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),$U=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BU=["src"],xU=["src"],VU={class:"selector-tournaments"},IU=["src"],AU=["src"],OU={key:1},TU=t.createElementVNode("br",null,null,-1),zU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),FU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),RU=["src"],PU=["src"],DU={class:"selector-tournaments"},LU=["src"],jU=["src"],vU={key:1},MU=t.createElementVNode("br",null,null,-1),HU=["src"],UU=["src"],GU={class:"selector-tournaments"},WU=["src"],qU=["src"],JU={key:1},XU=t.createElementVNode("br",null,null,-1);function ZU(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),m=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[NU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),$U],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,BU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,xU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[0]||(a[0]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",VU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{"default-item-by-index":2,key:n.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,IU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,AU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",OU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),TU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[2]||(a[2]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[zU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),FU],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,RU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,PU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[3]||(a[3]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:VM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:IM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",DU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[4]||(a[4]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,LU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,jU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",vU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),MU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,HU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,UU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[6]||(a[6]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:AM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:OM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",GU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[7]||(a[7]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,WU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,qU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",JU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),XU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const YU={$style:SU},KU=bt(EU,[["render",ZU],["__cssModules",YU]]),QU="_selectoritem_16hc8_179",eG="_selectoritem2_16hc8_199",tG="_gscheaderlineup_16hc8_219",aG="_anNoEstn_16hc8_233",oG="_groupsLeague_16hc8_239",sG="_jugadores_16hc8_249",nG="_switchOption_16hc8_259",iG="_jugadores1_16hc8_279",rG="_switchOption1_16hc8_289",lG="_switchStatesBig_16hc8_305",cG="_groupsLeagueParent_16hc8_323",dG="_imgHomeTeamIcon_16hc8_341",mG="_imgHomeTeamWrapper_16hc8_353",pG="_teamContainer_16hc8_377",hG="_name_16hc8_401",gG="_homeTeamContainer_16hc8_413",yG="_div_16hc8_433",uG="_titleSession_16hc8_441",fG="_scoreContainer_16hc8_461",_G="_scoreContainerWrapper_16hc8_481",bG="_teamContainer1_16hc8_505",wG="_awayTeamContainer_16hc8_529",CG="_matchContainer_16hc8_549",kG="_sliderMatchesChild_16hc8_567",SG="_manchesterUnited_16hc8_579",EG="_sliderMatchesItem_16hc8_591",NG="_sliderMatches_16hc8_567",$G="_sortIcon_16hc8_627",BG="_filtros_16hc8_641",xG="_sortParent_16hc8_657",VG="_shapeIcon_16hc8_671",IG="_btnFilter_16hc8_681",AG="_btnFilter1_16hc8_709",OG="_btnFilterParent_16hc8_737",TG="_backArrowIcon_16hc8_753",zG="_teamContainer2_16hc8_765",FG="_homeTeam_16hc8_413",RG="_div4_16hc8_793",PG="_finalScore_16hc8_803",DG="_manchesterUnited1_16hc8_829",LG="_scoreContainer1_16hc8_843",jG="_match_16hc8_549",vG="_manchesterUnited2_16hc8_879",MG="_btnDetails_16hc8_889",HG="_matchContainer1_16hc8_909",UG="_goalChild_16hc8_925",GG="_goal_16hc8_925",WG="_manchesterUnited3_16hc8_951",qG="_minuteEvent_16hc8_965",JG="_yellowCard_16hc8_979",XG="_awayTeamEvents_16hc8_993",ZG="_rectangle_16hc8_1007",YG="_homeTeamEvents_16hc8_1021",KG="_totalEvents_16hc8_1037",QG="_headerSeccionAlineaciones1_16hc8_1053",eW="_switchOption3_16hc8_1075",tW="_switchOption4_16hc8_1099",aW="_switchStatesBig1_16hc8_1119",oW="_manchesterUnited13_16hc8_1133",sW="_homeTeamContainer1_16hc8_1143",nW="_scoreContainer2_16hc8_1157",iW="_matchContainer2_16hc8_1185",rW="_manchesterUnited14_16hc8_1205",lW="_sliderMatchesInner_16hc8_1219",cW="_rectangleIcon_16hc8_1239",dW="_sliderMatches1_16hc8_1259",mW="_containerData_16hc8_1275",pW="_headerSeccionAlineaciones2_16hc8_1303",hW="_headerSeccionAlineaciones_16hc8_1053",gW="_headerSeccionAlineaciones21200_16hc8_1351",yW="_headerSeccionAlineaciones1540_16hc8_1357",uW="_headerSeccionAlineaciones2540_16hc8_1365",fW={selectoritem:QU,selectoritem2:eG,gscheaderlineup:tG,anNoEstn:aG,groupsLeague:oG,jugadores:sG,switchOption:nG,jugadores1:iG,switchOption1:rG,switchStatesBig:lG,groupsLeagueParent:cG,imgHomeTeamIcon:dG,imgHomeTeamWrapper:mG,teamContainer:pG,name:hG,homeTeamContainer:gG,div:yG,titleSession:uG,scoreContainer:fG,scoreContainerWrapper:_G,teamContainer1:bG,awayTeamContainer:wG,matchContainer:CG,sliderMatchesChild:kG,manchesterUnited:SG,sliderMatchesItem:EG,sliderMatches:NG,sortIcon:$G,filtros:BG,sortParent:xG,shapeIcon:VG,btnFilter:IG,btnFilter1:AG,btnFilterParent:OG,backArrowIcon:TG,teamContainer2:zG,homeTeam:FG,div4:RG,finalScore:PG,manchesterUnited1:DG,scoreContainer1:LG,match:jG,manchesterUnited2:vG,btnDetails:MG,matchContainer1:HG,goalChild:UG,goal:GG,manchesterUnited3:WG,minuteEvent:qG,yellowCard:JG,awayTeamEvents:XG,rectangle:ZG,homeTeamEvents:YG,totalEvents:KG,headerSeccionAlineaciones1:QG,switchOption3:eW,switchOption4:tW,switchStatesBig1:aW,manchesterUnited13:oW,homeTeamContainer1:sW,scoreContainer2:nW,matchContainer2:iW,manchesterUnited14:rW,sliderMatchesInner:lW,rectangleIcon:cW,sliderMatches1:dW,containerData:mW,headerSeccionAlineaciones2:pW,headerSeccionAlineaciones:hW,headerSeccionAlineaciones21200:gW,headerSeccionAlineaciones1540:yW,headerSeccionAlineaciones2540:uW},_W={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},bW=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),wW=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),CW=["src"],kW=["src"],SW=["src"],EW=["src"],NW=["src"],$W=["src"];function BW(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[bW,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),wW],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,CW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(o.gameInfo.season_name!==void 0?o.gameInfo.season_name+" | "+i.remplazarMxJor(o.gameInfo.matchday_abbreviation)+" | "+o.gameInfo.home_team_abbreviation+" - "+o.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,kW)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,SW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,EW),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,NW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,$W)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const xW={$style:fW},VW=bt(_W,[["render",BW],["__cssModules",xW]]),IW="_anNoEstn_j98j7_139",AW="_groupsLeague_j98j7_145",OW="_historicas_j98j7_153",TW="_switchOption_j98j7_163",zW="_switchOption1_j98j7_183",FW="_probables_j98j7_203",RW="_switchOption2_j98j7_213",PW="_switchStatesBig_j98j7_237",DW="_groupsLeagueParent_j98j7_255",LW="_imgHomeTeamIcon_j98j7_273",jW="_imgHomeTeamWrapper_j98j7_285",vW="_teamContainer_j98j7_309",MW="_name_j98j7_333",HW="_jor_j98j7_345",UW="_jorParent_j98j7_357",GW="_shapeIcon_j98j7_373",WW="_frameParent_j98j7_383",qW="_manchesterUnited_j98j7_413",JW="_necaxaIcon_j98j7_435",XW="_manchesterUnited1_j98j7_447",ZW="_team_j98j7_309",YW="_homeTeamContainer_j98j7_475",KW="_div1_j98j7_495",QW="_scoreContainer_j98j7_503",eq="_scoreContainerWrapper_j98j7_525",tq="_team1_j98j7_549",aq="_name1_j98j7_563",oq="_teamContainer1_j98j7_577",sq="_awayTeamContainer_j98j7_601",nq="_matchContainer_j98j7_623",iq="_goalChild_j98j7_641",rq="_goal_j98j7_641",lq="_manchesterUnited4_j98j7_667",cq="_minuteEvent_j98j7_681",dq="_yellowCard_j98j7_695",mq="_awayTeamEvents_j98j7_709",pq="_rectangle_j98j7_723",hq="_homeTeamEvents_j98j7_737",gq="_totalEvents_j98j7_753",yq="_headerSeccionAlineaciones1_j98j7_769",uq="_homeTeamContainer1_j98j7_789",fq="_awayTeamContainer1_j98j7_813",_q="_headerSeccionAlineaciones2_j98j7_837",bq="_jugadores_j98j7_857",wq="_switchOption6_j98j7_869",Cq="_switchOption8_j98j7_889",kq="_switchStatesBig2_j98j7_913",Sq="_manchesterUnited28_j98j7_927",Eq="_homeTeamContainer2_j98j7_935",Nq="_matchContainer2_j98j7_949",$q="_manchesterUnited29_j98j7_971",Bq="_sliderMatchesChild_j98j7_985",xq="_sliderMatchesItem_j98j7_1005",Vq="_sliderMatches_j98j7_985",Iq="_jorParent2_j98j7_1045",Aq="_filterMatchday_j98j7_1059",Oq="_necaxaIcon4_j98j7_1081",Tq="_team4_j98j7_1093",zq="_filterMatchdayParent_j98j7_1113",Fq="_filterMatchday1_j98j7_1127",Rq="_teamParent_j98j7_1157",Pq="_filtersContainer_j98j7_1177",Dq="_containerData_j98j7_1195",Lq="_headerSeccionAlineaciones3_j98j7_1223",jq="_headerSeccionAlineaciones_j98j7_769",vq={anNoEstn:IW,groupsLeague:AW,historicas:OW,switchOption:TW,switchOption1:zW,probables:FW,switchOption2:RW,switchStatesBig:PW,groupsLeagueParent:DW,imgHomeTeamIcon:LW,imgHomeTeamWrapper:jW,teamContainer:vW,name:MW,jor:HW,jorParent:UW,shapeIcon:GW,frameParent:WW,manchesterUnited:qW,necaxaIcon:JW,manchesterUnited1:XW,team:ZW,homeTeamContainer:YW,div1:KW,scoreContainer:QW,scoreContainerWrapper:eq,team1:tq,name1:aq,teamContainer1:oq,awayTeamContainer:sq,matchContainer:nq,goalChild:iq,goal:rq,manchesterUnited4:lq,minuteEvent:cq,yellowCard:dq,awayTeamEvents:mq,rectangle:pq,homeTeamEvents:hq,totalEvents:gq,headerSeccionAlineaciones1:yq,homeTeamContainer1:uq,awayTeamContainer1:fq,headerSeccionAlineaciones2:_q,jugadores:bq,switchOption6:wq,switchOption8:Cq,switchStatesBig2:kq,manchesterUnited28:Sq,homeTeamContainer2:Eq,matchContainer2:Nq,manchesterUnited29:$q,sliderMatchesChild:Bq,sliderMatchesItem:xq,sliderMatches:Vq,jorParent2:Iq,filterMatchday:Aq,necaxaIcon4:Oq,team4:Tq,filterMatchdayParent:zq,filterMatchday1:Fq,teamParent:Rq,filtersContainer:Pq,containerData:Dq,headerSeccionAlineaciones3:Lq,headerSeccionAlineaciones:jq},Mq={components:{GSCDropdown:Pm,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(a){throw new Error(a)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const a=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][a])},changeDropdownLocal(e){const a=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][a])}}},Hq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Uq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Gq=["src"],Wq={class:"selector-tournaments"},qq=["src"],Jq=["src"],Xq={class:"selector-tournaments"},Zq=["src"],Yq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Kq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Qq=["src"],eJ={class:"selector-tournaments"},tJ=["src"],aJ=["src"],oJ={class:"selector-tournaments"},sJ=["src"],nJ=["src"],iJ=["src"],rJ={class:"selector-tournaments"},lJ=["src"],cJ=["src"],dJ={class:"selector-tournaments"};function mJ(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Hq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Uq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Gq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Wq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,qq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Xq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Zq)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Yq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Kq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Qq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",eJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,tJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,aJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",oJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,sJ)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,nJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,iJ)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",rJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,lJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,cJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",dJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const pJ={$style:vq},hJ=bt(Mq,[["render",mJ],["__cssModules",pJ]]),h_="/line.png";let g_=null;const gJ={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:Pj,HeaderPlayerHistorico:hM,HeaderPlayerRecientes:KU,HeaderPlayerProbables:hJ,HeaderPlayerPostmatch:VW},data(){return{selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e){this.selectedOption!=="Postmatch"&&(e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game),e==="Recientes"&&(await this.getLineUp(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][0].id),this.valueUpdateRecientes+=1))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){e&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Postmatch"?await this.getLineUp(e.game_id):this.selectOptMenuheader=="Historicos"&&await this.getLineUp(this.gamesHistoric[0].game))}}},sockets:{new_bench(e,a){if(a[this.home_team_id]){this.playersHome=this.playersHome.filter(function(f){return!f.isbench});for(let f=0;f<a[this.home_team_id].length;f++)if(!a[this.home_team_id][f].isTitular){this.subsTitle=!0;var o=a[this.home_team_id][f].playerName.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=this.dataPlayersHome.findIndex(_=>_.player_id==a[this.home_team_id][f].playerID);this.playersHome.push({played:!1,name:a[this.home_team_id][f].playerName,position:h!=-1?this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.home_team_id][f].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.home_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.home_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}if(a[this.away_team_id]){this.playersAway=this.playersAway.filter(function(f){return!f.isbench});for(let f=0;f<a[this.away_team_id].length;f++)if(!a[this.away_team_id][f].isTitular){this.subsTitle=!0;var d=a[this.away_team_id][f].playerName.split(","),l=d[0].split(" "),m=o[1].trim().split(" "),p="";l.length==2||l.length==1?l[0].length<4?p=l[0]+" "+l[1]:p=l[0]:l.length==3?p=l[0]+" "+l[1]:l.length==4&&(p=l[1]+" "+l[2]+" "+l[3]);var y=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";p=p.replace(",","");var g=y+". "+p,u=this.dataPlayersAway.findIndex(_=>_.player_id==a[this.away_team_id][f].playerID);this.playersAway.push({played:!1,name:a[this.away_team_id][f].playerName,position:u!=-1?this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.away_team_id][f].playerID+".png",nationality:u!=-1&&this.dataPlayersAway[u].nationality?this.dataPlayersAway[u].nationality.substring(0,3):"",imgNationality:u!=-1?this.dataPlayersAway[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.away_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.away_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}},new_lineup(e,a){if(a.team_id==a.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=a.home_team.players;for(let b=0;b<a.data.length;b++){this.home_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","home",0);var o=a.data[b].player_name.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=a.data[b].x,d=h*50/100,l=a.home_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersHome.push({played:!0,name:a.data[b].player_name,position:l!=-1?this.positions[a.home_team.players[l].position_id-1].name:"",position_id:a.home_team.players[l].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:l!=-1&&a.home_team.players[l].nationality?a.home_team.players[l].nationality.substring(0,3):"",imgNationality:l!=-1?a.home_team.players[l].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:d*.9,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-2,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=a.away_team.players;for(let b=0;b<a.data.length;b++){this.away_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","away",0);var m=a.data[b].player_name.split(","),p=m[0].split(" "),y=m[1].trim().split(" "),g="";p.length==2||p.length==1?p[0].length<4?g=p[0]+" "+p[1]:g=p[0]:p.length==3?g=p[0]+" "+p[1]:p.length==4&&(g=p[1]+" "+p[2]+" "+p[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var f=u+". "+g,_=a.data[b].x,k=100-(100-_)*50/100;k=k*.9;var w=a.away_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersAway.push({played:!0,name:a.data[b].player_name,position:w!=-1?this.positions[a.away_team.players[w].position_id-1].name:"",position_id:a.away_team.players[w].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:w!=-1&&a.away_team.players[w].nationality?a.away_team.players[w].nationality.substring(0,3):"",imgNationality:w!=-1?a.away_team.players[w].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:f,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:k+2,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-7,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersAway.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}},update_mxm(e,a){var o=-1,s=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(B=>B.idredcards==a.play_id),i=this.playersHome.findIndex(B=>B.idyellowcards==a.play_id),r=this.playersHome.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersHome.length;B++){var c=this.playersHome[B].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,s=B)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,s),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,s),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,s),o!=-1&&this.resetPlayUpdate("Goals","Home",o,s)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(B=>B.idredcards==a.play_id),d=this.playersAway.findIndex(B=>B.idyellowcards==a.play_id),l=this.playersAway.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersAway.length;B++){var m=this.playersAway[B].idsGoals.findIndex($=>$==a.play_id);m!=-1&&(o=m,s=B)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,s),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,s),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,s),o!=-1&&this.resetPlayUpdate("Goals","Away",o,s)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=a.player_id.split("@"),y=this.playersHome.findIndex(B=>B.playerId==p[0]),g=this.playersHome.findIndex(B=>B.playerId==p[1]);y!=-1&&(this.playersHome[y].idSubstitution=a.play_id,this.playersHome[y].substitutionOut=!0,this.playersHome[y].substitutionMin=a.minute,this.playersHome[y].substitutionDataID=a.team_id+"@"+a.player_id),g!=-1&&(this.playersHome[g].idSubstitution=a.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=a.minute,this.playersHome[g].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var u=a.player_id.split("@"),f=this.playersAway.findIndex(B=>B.playerId==u[0]),_=this.playersAway.findIndex(B=>B.playerId==u[1]);y!=-1&&(this.playersAway[f].idSubstitution=a.play_id,this.playersAway[f].substitutionOut=!0,this.playersAway[f].substitutionMin=a.minute,this.playersAway[f].substitutionDataID=a.team_id+"@"+a.player_id),_!=-1&&(this.playersAway[_].idSubstitution=a.play_id,this.playersAway[_].substitutionIn=!0,this.playersAway[_].substitutionMin=a.minute,this.playersAway[_].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var k=this.playersHome.findIndex(B=>B.playerId==a.player_id);k!=-1&&(this.playersHome[k].goals+=1,this.playersHome[k].goalsMin.push(a.minute),this.playersHome[k].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(B=>B.playerId==a.player_id);w!=-1&&(this.playersAway[w].goals+=1,this.playersAway[w].goalsMin.push(a.minute),this.playersAway[w].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var b=this.playersHome.findIndex(B=>B.playerId==a.player_id);b!=-1&&(this.playersHome[b].yellowcards+=1,this.playersHome[b].yellowcardsMin=a.minute,this.playersHome[b].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var E=this.playersAway.findIndex(B=>B.playerId==a.player_id);E!=-1&&(this.playersAway[E].yellowcards+=1,this.playersAway[E].yellowcardsMin=a.minute,this.playersAway[E].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var x=this.playersHome.findIndex(B=>B.playerId==a.player_id);x!=-1&&(this.playersHome[x].redcards+=1,this.playersHome[x].redcardsMin=a.minute,this.playersHome[x].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(B=>B.playerId==a.player_id);V!=-1&&(this.playersAway[V].redcards+=1,this.playersAway[V].redcardsMin=a.minute,this.playersAway[V].idredcards=a.play_id)}}}},delete_mxm(e,a){if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++)this.playersHome[o].idSubstitution==a.play_id&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionIn=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idSubstitution==a.play_id&&(this.playersAway[o].substitutionOut=!1,this.playersAway[o].substitutionIn=!1,this.playersAway[o].substitutionMin="",this.playersAway[o].substitutionDataID="",this.playersAway[o].idSubstitution=0);if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++){const s=this.playersHome[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(s,1),this.playersHome[o].idsGoals.splice(s,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const s=this.playersAway[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(s,1),this.playersAway[o].idsGoals.splice(s,1))}if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idyellowcards==a.play_id&&(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idyellowcards==a.play_id&&(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0);if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idredcards==a.play_id&&(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idredcards==a.play_id&&(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)},new_mxm(e,a){if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var o=a.player_id.split("@"),s=this.playersHome.findIndex(g=>g.playerId==o[0]),n=this.playersHome.findIndex(g=>g.playerId==o[1]);s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].substitutionDataID=a.team_id+"@"+a.player_id),n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var i=a.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==i[0]),c=this.playersAway.findIndex(g=>g.playerId==i[1]);s!=-1&&(this.playersAway[r].idSubstitution=a.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=a.minute,this.playersAway[r].substitutionDataID=a.team_id+"@"+a.player_id),c!=-1&&(this.playersAway[c].idSubstitution=a.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=a.minute,this.playersAway[c].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==a.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(a.minute),this.playersHome[h].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(g=>g.playerId==a.player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(a.minute),this.playersAway[d].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(g=>g.playerId==a.player_id);l!=-1&&(this.playersHome[l].yellowcards+=1,this.playersHome[l].yellowcardsMin=a.minute,this.playersHome[l].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var m=this.playersAway.findIndex(g=>g.playerId==a.player_id);m!=-1&&(this.playersAway[m].yellowcards+=1,this.playersAway[m].yellowcardsMin=a.minute,this.playersAway[m].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=a.minute,this.playersHome[p].idredcards=a.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=a.minute,this.playersAway[y].idredcards=a.play_id)}}}}},methods:{async getLineUpProbablesHome3D(e){try{const w=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!w||!w.data)throw new Error("There is not lineups for this game.");if(w.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.home_team.players,w.data.home_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+"_g.svg","home",0);var a=w.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=w.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,d=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.home_team.players[d].position_id-1].name,position_id:w.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.home_team.players[d].nationality?w.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:w.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:w.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.home_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.home_team.bench){for(let b=0;b<w.data.home_team.bench.length;b++){this.subsTitle=!0;var l=w.data.home_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.home_team.bench[b].playerName,position:f!=-1?this.positions[w.data.home_team.players[f].position_id-1].name:"",position_id:w.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.home_team.players[f].nationality?w.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.home_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.home_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}if(w.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.away_team.players,w.data.away_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+"_g.svg","home",0);var a=w.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,_=w.data.away_team.starting_lineup[0].lineup[b].x;_=Math.abs(_-100);var h=_*50/100,k=w.data.away_team.starting_lineup[0].lineup[b].y;k=Math.abs(k-100);var d=w.data.away_team.players.findIndex(F=>F.player_id==w.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.away_team.players[d].position_id-1].name,position_id:w.data.away_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.away_team.players[d].nationality?w.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:k-20,positionY:h*.9,positionXOrigin:w.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.away_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.away_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.away_team.bench){for(let b=0;b<w.data.away_team.bench.length;b++){this.subsTitle=!0;var l=w.data.away_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.away_team.players.findIndex(I=>I.player_id==w.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.away_team.bench[b].playerName,position:f!=-1?this.positions[w.data.away_team.players[f].position_id-1].name:"",position_id:w.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.away_team.players[f].nationality?w.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.away_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.away_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}await this.getMXM(e)}catch(w){return Promise.reject(w)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const _=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players;for(let k=0;k<_.data.home_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var a=_.data.home_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.home_team.starting_lineup[0].lineup[k].x;c=Math.abs(c-100);var h=100-(100-c)*50/100;h=h*.9;var d=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.home_team.players[d].position_id-1].name,position_id:_.data.home_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.home_team.players[d].nationality?_.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.home_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.home_team.bench){for(let k=0;k<_.data.home_team.bench.length;k++){this.subsTitle=!0;var l=_.data.home_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[k].playerName,position:f!=-1?this.positions[_.data.home_team.players[f].position_id-1].name:"",position_id:_.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.home_team.players[f].nationality?_.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.away_team.players;for(let k=0;k<_.data.away_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var a=_.data.away_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.away_team.starting_lineup[0].lineup[k].x,h=100-(100-c)*50/100;h=h*.9;var d=_.data.away_team.players.findIndex(I=>I.player_id==_.data.away_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.away_team.players[d].position_id-1].name,position_id:_.data.away_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.away_team.players[d].nationality?_.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.away_team.bench){for(let k=0;k<_.data.away_team.bench.length;k++){this.subsTitle=!0;var l=_.data.away_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.away_team.players.findIndex(z=>z.player_id==_.data.away_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[k].playerName,position:f!=-1?this.positions[_.data.away_team.players[f].position_id-1].name:"",position_id:_.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.away_team.players[f].nationality?_.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}await this.getMXM(e)}catch(_){return Promise.reject(_)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.homeTeam.acronym=this.homeTeamAbrev,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.visitingTeam.acronym=this.awayTeamAbrev,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),this.homeTeam.acronym=e.ht_abrev,this.visitingTeam.acronym=e.at_abrev,await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.homeTeam.acronym=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronym=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,home_team_abbreviation:a.data.games_historic[o].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[o].away_team_abbreviation,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[o].matchday_abbreviation),id:a.data.away_team_games_recent[o].matchday_id})}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.homeTeamAbrev=a.data.teams[0].acronym,this.awayTeamAbrev=a.data.teams[1].acronym,this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)g_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),g_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<this.playersHome.length;g++)this.playersHome[g].goalsMin=[],this.playersHome[g].idsGoals=[];for(let g=0;g<this.playersAway.length;g++)this.playersAway[g].goalsMin=[],this.playersAway[g].idsGoals=[];for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineUp(e){if(e!=null&&(Jf(),!this.playersHome.length&&!this.playersHome.length))try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.cleaneData(),this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}await this.getMXM(e)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},yJ={class:"size-browser-class"},uJ={class:"lineup-players is-centered"},fJ={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},_J={class:"modal-substitutions__substitution-container"},bJ={class:"modal-substitutions__substitution-container__header"},wJ={style:{"margin-left":"32px"}},CJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),kJ=[CJ],SJ={class:"modal-substitutions__substitution-container__players-container"},EJ={class:"substitution-player-data-container"},NJ={class:"substitution-player-data-container__img-player"},$J=["src"],BJ={class:"substitution-player-data-container__img-player__team"},xJ=["src"],VJ={class:"substitution-player-data-container__name-player"},IJ={class:"substitution-player-data-container__position-player"},AJ={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},OJ={key:0,class:"substitution-player-data-container__shirt-player__circle"},TJ={key:1},zJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),FJ=[zJ],RJ={class:"substitution-player-data-container__substitution-player"},PJ={class:"substitution-indicator nomargin"},DJ=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),LJ={class:"substitution-player-data-container__center"},jJ=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),vJ={class:"substitution-player-data-container__minute"},MJ={class:"substitution-player-data-container"},HJ={class:"substitution-player-data-container__img-player"},UJ=["src"],GJ={class:"substitution-player-data-container__img-player__team"},WJ=["src"],qJ={class:"substitution-player-data-container__name-player"},JJ={class:"substitution-player-data-container__position-player"},XJ={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},ZJ={key:0},YJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),KJ=[YJ],QJ={key:1,class:"substitution-player-data-container__shirt-player__circle"},eX={class:"substitution-player-data-container__substitution-player"},tX={class:"substitution-indicator nomargin"},aX=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),oX=["onClick"],sX=t.createElementVNode("img",{src:h_},null,-1),nX=[sX],iX=["onClick"],rX=t.createElementVNode("img",{src:h_},null,-1),lX=[rX],cX={key:0,class:"cont-lineup-gsc-componente"},dX={class:"shield-team-cont homecolor"},mX=["src"],pX={class:"shield-team-cont awaycolor"},hX=["src"],gX={key:0,class:"header-lineup-shield-team home"},yX={class:"shield-team-cont homecolor"},uX=["src"],fX={class:"header-lineup-shield-team-wrapper"},_X={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},bX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),wX={key:0,class:"header-lineup-shield-team away"},CX={class:"shield-team-cont awaycolor"},kX=["src"],SX={class:"header-lineup-shield-team-wrapper"},EX={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},NX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),$X=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),BX=[$X],xX=t.createElementVNode("br",null,null,-1);function VX(e,a,o,s,n,i){const r=t.resolveComponent("HeaderPlayerPostmatch"),c=t.resolveComponent("HeaderPlayerHistorico"),h=t.resolveComponent("HeaderPlayerRecientes"),d=t.resolveComponent("HeaderPlayerProbables"),l=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",yJ,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",uJ,[t.createElementVNode("div",fJ,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric,"game-recientes":Object.keys(n.gameInfoheader).length>0?n.gamesRecientes[n.gameInfoheader.home_team_abbreviation].length+n.gamesRecientes[n.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{key:1,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,"player-home":n.playersHome,"player-away":n.playersAway,"matchdays-default":n.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":n.matchdaysPerTeam,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",n.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",_J,[t.createElementVNode("div",bJ,[t.createElementVNode("span",wJ,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=m=>i.closeChange())},kJ)])]),t.createElementVNode("div",SJ,[t.createElementVNode("div",EJ,[t.createElementVNode("div",NJ,[n.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,$J)):t.createCommentVNode("",!0),t.createElementVNode("div",BJ,[n.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,xJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",VJ,t.toDisplayString(n.substitutionModal.in.name),1),t.createElementVNode("div",IJ,t.toDisplayString(n.substitutionModal.in.position),1),t.createElementVNode("div",AJ,[n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",OJ,t.toDisplayString(n.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",TJ,FJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",RJ,[t.createElementVNode("template",null,[t.createElementVNode("div",PJ,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),DJ])])])]),t.createElementVNode("div",LJ,[jJ,t.createElementVNode("div",vJ,t.toDisplayString(n.substitutionModal.min)+"'",1)]),t.createElementVNode("div",MJ,[t.createElementVNode("div",HJ,[n.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,UJ)):t.createCommentVNode("",!0),t.createElementVNode("div",GJ,[n.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,WJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",qJ,t.toDisplayString(n.substitutionModal.out.name),1),t.createElementVNode("div",JJ,t.toDisplayString(n.substitutionModal.out.position),1),t.createElementVNode("div",XJ,[n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",ZJ,KJ)):t.createCommentVNode("",!0),n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",QJ,t.toDisplayString(n.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",eX,[t.createElementVNode("template",null,[t.createElementVNode("div",tX,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),aX])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_home"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="home"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},nX,10,oX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_away"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="away"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},lX,10,iX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cX,[t.createElementVNode("div",{class:t.normalizeClass(i.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=m=>i.viewLineupTeam("home"))},[t.createElementVNode("div",dX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,mX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=m=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",pX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,hX)):t.createCommentVNode("",!0)])],4)],2),n.teamActive=="home"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",gX,[t.createElementVNode("div",yX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,uX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",fX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",_X,[bX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),n.teamActive=="away"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wX,[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",CX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kX)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",SX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EX,[NX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},BX,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),xX,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const IX=bt(gJ,[["render",VX]]),AX={components:{GSCLineups2D:KL,GSCLineups3D:IX},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{}};function OX(e,a,o,s,n,i){const r=t.resolveComponent("GSCLineups2D"),c=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[o.type=="2D"?(t.openBlock(),t.createBlock(r,{key:0,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0),o.type=="3D"?(t.openBlock(),t.createBlock(c,{key:1,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0)])}const y_=bt(AX,[["render",OX]]),AMe="",OMe="",TX={class:"alineaciones-container"},zX=Fe({__name:"GSCLineupsMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,o=t.ref(0);return t.watch(()=>a.game,s=>{o.value=s.gameId},{deep:!0,immediate:!0}),(s,n)=>(t.openBlock(),t.createElementBlock("div",TX,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-1db549f2"]]);function u_(e,a){return function(){return e.apply(a,arguments)}}const{toString:FX}=Object.prototype,{getPrototypeOf:Lm}=Object,fr=(e=>a=>{const o=FX.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),sa=e=>(e=e.toLowerCase(),a=>fr(a)===e),_r=e=>a=>typeof a===e,{isArray:jo}=Array,Qs=_r("undefined");function RX(e){return e!==null&&!Qs(e)&&e.constructor!==null&&!Qs(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f_=sa("ArrayBuffer");function PX(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&f_(e.buffer),a}const DX=_r("string"),Vt=_r("function"),__=_r("number"),br=e=>e!==null&&typeof e=="object",LX=e=>e===!0||e===!1,wr=e=>{if(fr(e)!=="object")return!1;const a=Lm(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jX=sa("Date"),vX=sa("File"),MX=sa("Blob"),HX=sa("FileList"),UX=e=>br(e)&&Vt(e.pipe),GX=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((a=fr(e))==="formdata"||a==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},WX=sa("URLSearchParams"),qX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function en(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),jo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function b_(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const w_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),C_=e=>!Qs(e)&&e!==w_;function jm(){const{caseless:e}=C_(this)&&this||{},a={},o=(s,n)=>{const i=e&&b_(a,n)||n;wr(a[i])&&wr(s)?a[i]=jm(a[i],s):wr(s)?a[i]=jm({},s):jo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&en(arguments[s],o);return a}const JX=(e,a,o,{allOwnKeys:s}={})=>(en(a,(n,i)=>{o&&Vt(n)?e[i]=u_(n,o):e[i]=n},{allOwnKeys:s}),e),XX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZX=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},YX=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Lm(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},KX=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},QX=e=>{if(!e)return null;if(jo(e))return e;let a=e.length;if(!__(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},eZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Lm(Uint8Array)),tZ=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},aZ=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},oZ=sa("HTMLFormElement"),sZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),k_=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),nZ=sa("RegExp"),S_=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};en(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},iZ=e=>{S_(e,(a,o)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Vt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},rZ=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return jo(e)?s(e):s(String(e).split(a)),o},lZ=()=>{},cZ=(e,a)=>(e=+e,Number.isFinite(e)?e:a),vm="abcdefghijklmnopqrstuvwxyz",E_="0123456789",N_={DIGIT:E_,ALPHA:vm,ALPHA_DIGIT:vm+vm.toUpperCase()+E_},dZ=(e=16,a=N_.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function mZ(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pZ=e=>{const a=new Array(10),o=(s,n)=>{if(br(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=jo(s)?[]:{};return en(s,(r,c)=>{const h=o(r,n+1);!Qs(h)&&(i[c]=h)}),a[n]=void 0,i}}return s};return o(e,0)},hZ=sa("AsyncFunction"),gZ=e=>e&&(br(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),v={isArray:jo,isArrayBuffer:f_,isBuffer:RX,isFormData:GX,isArrayBufferView:PX,isString:DX,isNumber:__,isBoolean:LX,isObject:br,isPlainObject:wr,isUndefined:Qs,isDate:jX,isFile:vX,isBlob:MX,isRegExp:nZ,isFunction:Vt,isStream:UX,isURLSearchParams:WX,isTypedArray:eZ,isFileList:HX,forEach:en,merge:jm,extend:JX,trim:qX,stripBOM:XX,inherits:ZX,toFlatObject:YX,kindOf:fr,kindOfTest:sa,endsWith:KX,toArray:QX,forEachEntry:tZ,matchAll:aZ,isHTMLForm:oZ,hasOwnProperty:k_,hasOwnProp:k_,reduceDescriptors:S_,freezeMethods:iZ,toObjectSet:rZ,toCamelCase:sZ,noop:lZ,toFiniteNumber:cZ,findKey:b_,global:w_,isContextDefined:C_,ALPHABET:N_,generateString:dZ,isSpecCompliantForm:mZ,toJSONObject:pZ,isAsyncFn:hZ,isThenable:gZ};function fe(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}v.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $_=fe.prototype,B_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B_[e]={value:e}}),Object.defineProperties(fe,B_),Object.defineProperty($_,"isAxiosError",{value:!0}),fe.from=(e,a,o,s,n,i)=>{const r=Object.create($_);return v.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),fe.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const yZ=null;function Mm(e){return v.isPlainObject(e)||v.isArray(e)}function x_(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function V_(e,a,o){return e?e.concat(a).map(function(s,n){return s=x_(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function uZ(e){return v.isArray(e)&&!e.some(Mm)}const fZ=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function Cr(e,a,o){if(!v.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=v.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!v.isUndefined(g[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(a);if(!v.isFunction(n))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!c&&v.isBlob(y))throw new fe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,u){let f=y;if(y&&!u&&typeof y=="object"){if(v.endsWith(g,"{}"))g=s?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&uZ(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(f=v.toArray(y)))return g=x_(g),f.forEach(function(_,k){!(v.isUndefined(_)||_===null)&&a.append(r===!0?V_([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Mm(y)?!0:(a.append(V_(u,g,i),h(y)),!1)}const l=[],m=Object.assign(fZ,{defaultVisitor:d,convertValue:h,isVisitable:Mm});function p(y,g){if(!v.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(y),v.forEach(y,function(u,f){(!(v.isUndefined(u)||u===null)&&n.call(a,u,v.isString(f)?f.trim():f,g,m))===!0&&p(u,g?g.concat(f):[f])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return p(e),a}function I_(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Hm(e,a){this._pairs=[],e&&Cr(e,this,a)}const A_=Hm.prototype;A_.append=function(e,a){this._pairs.push([e,a])},A_.toString=function(e){const a=e?function(o){return e.call(this,o,I_)}:I_;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function _Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O_(e,a,o){if(!a)return e;const s=o&&o.encode||_Z,n=o&&o.serialize;let i;if(n?i=n(a,o):i=v.isURLSearchParams(a)?a.toString():new Hm(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const T_=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){v.forEach(this.handlers,function(o){o!==null&&a(o)})}},z_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bZ=typeof URLSearchParams<"u"?URLSearchParams:Hm,wZ=typeof FormData<"u"?FormData:null,CZ=typeof Blob<"u"?Blob:null,kZ={isBrowser:!0,classes:{URLSearchParams:bZ,FormData:wZ,Blob:CZ},protocols:["http","https","file","blob","url","data"]},F_=typeof window<"u"&&typeof document<"u",SZ=(e=>F_&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F_,hasStandardBrowserEnv:SZ,hasStandardBrowserWebWorkerEnv:EZ},Symbol.toStringTag,{value:"Module"})),na={...NZ,...kZ};function $Z(e,a){return Cr(e,new na.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return na.isNode&&v.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function BZ(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xZ(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function R_(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&v.isArray(n)?n.length:r,h?(v.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!v.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&v.isArray(n[r])&&(n[r]=xZ(n[r])),!c)}if(v.isFormData(e)&&v.isFunction(e.entries)){const o={};return v.forEachEntry(e,(s,n)=>{a(BZ(s),n,o,0)}),o}return null}function VZ(e,a,o){if(v.isString(e))try{return(a||JSON.parse)(e),v.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Um={transitional:z_,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=v.isObject(e);if(n&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return s?JSON.stringify(R_(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return $Z(e,this.formSerializer).toString();if((i=v.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Cr(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),VZ(e)):e}],transformResponse:[function(e){const a=this.transitional||Um.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&v.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?fe.from(i,fe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Um.headers[e]={}});const Gm=Um,IZ=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AZ=e=>{const a={};let o,s,n;return e&&e.split(`
|
|
43
|
+
*/const ct={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},n_={itemsToShow:{default:ct.itemsToShow,type:Number},itemsToScroll:{default:ct.itemsToScroll,type:Number},wrapAround:{default:ct.wrapAround,type:Boolean},throttle:{default:ct.throttle,type:Number},snapAlign:{default:ct.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:ct.transition,type:Number},breakpoints:{default:ct.breakpoints,type:Object},autoplay:{default:ct.autoplay,type:Number},pauseAutoplayOnHover:{default:ct.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:ct.mouseDrag,type:Boolean},touchDrag:{default:ct.touchDrag,type:Boolean},dir:{default:ct.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:ct.i18n,type:Object},settings:{default(){return{}},type:Object}};function xD({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:n=1}=e;if(s)return Math.max(a-1,0);let i;switch(o){case"start":i=a-n;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((n-.5)/2);break;case"center-even":i=a-Math.ceil(n/2);break;default:i=0;break}return Math.max(i,0)}function VD({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:s,itemsToShow:n=1}=e;let i=0;if(o||n>a)return i;switch(s){case"start":i=0;break;case"end":i=n-1;break;case"center":case"center-odd":i=Math.floor((n-1)/2);break;case"center-even":i=Math.floor((n-2)/2);break;default:i=0;break}return i}function zm({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function ID({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:s,wrapAround:n,itemsToShow:i=1}=e;let r=a;switch(s){case"center":case"center-odd":r-=(i-1)/2;break;case"center-even":r-=(i-2)/2;break;case"end":r-=i-1;break}return n?r:zm({val:r,max:o-i,min:0})}function i_(e){return e?e.reduce((a,o)=>{var s;return o.type===t.Fragment?[...a,...i_(o.children)]:((s=o.type)===null||s===void 0?void 0:s.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Fm({val:e,max:a,min:o=0}){return e>a?Fm({val:e-(a+1),max:a,min:o}):e<o?Fm({val:e+(a+1),max:a,min:o}):e}function AD(e,a){let o;return a?function(...s){const n=this;o||(e.apply(n,s),o=!0,setTimeout(()=>o=!1,a))}:e}function OD(e,a){let o;return function(...s){o&&clearTimeout(o),o=setTimeout(()=>{e(...s),o=null},a)}}function TD(e="",a={}){return Object.entries(a).reduce((o,[s,n])=>o.replace(`{${s}}`,String(n)),e)}var zD=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},ct))),a=t.inject("currentSlide",t.ref(0)),o=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},TD(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),FD=t.defineComponent({name:"Carousel",props:n_,setup(e,{slots:a,emit:o,expose:s}){var n;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},ct));let l=Object.assign({},ct),m;const p=t.ref((n=e.modelValue)!==null&&n!==void 0?n:0),y=t.ref(0),g=t.ref(0),u=t.ref(0),f=t.ref(0);let _,k;t.provide("config",d),t.provide("slidesCount",h),t.provide("currentSlide",p),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){m=Object.assign({},e.breakpoints),l=Object.assign(Object.assign(Object.assign({},l),e),{i18n:Object.assign(Object.assign({},l.i18n),e.i18n),breakpoints:void 0}),E(l)}function b(){if(!m||!Object.keys(m).length)return;const S=Object.keys(m).map(O=>Number(O)).sort((O,oe)=>+oe-+O);let T=Object.assign({},l);S.some(O=>{const oe=window.matchMedia(`(min-width: ${O}px)`).matches;return oe&&(T=Object.assign(Object.assign({},T),m[O])),oe}),E(T)}function E(S){Object.entries(S).forEach(([T,O])=>d[T]=O)}const x=OD(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function B(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=xD({config:d,slidesCount:h.value}),f.value=VD({config:d,slidesCount:h.value}),d.wrapAround||(p.value=zm({val:p.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),Le(),window.addEventListener("resize",x,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",x,{passive:!0})});let $=!1;const z={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),F=t.ref(!1),ee=t.ref(!1),re=()=>{F.value=!0},Q=()=>{F.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||P.value)&&(z.x=$?S.touches[0].clientX:S.clientX,z.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",R,!0)))}const N=AD(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const T=A.x-z.x,O=A.y-z.y;I.y=O,I.x=T},d.throttle);function R(){const S=d.dir==="rtl"?-1:1,T=Math.sign(I.x)*.4,O=Math.round(I.x/c.value+T)*S;if(O&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(p.value-O),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",R,!0)}function Le(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&F.value||te()},d.autoplay))}function se(){_&&(clearInterval(_),_=null),Le()}const P=t.ref(!1);function K(S){const T=d.wrapAround?S:zm({val:S,max:u.value,min:f.value});p.value===T||P.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!0,y.value=p.value,p.value=T,k=setTimeout(()=>{if(d.wrapAround){const O=Fm({val:T,max:u.value,min:0});O!==p.value&&(p.value=O,o("loop",{currentSlideIndex:p.value,slidingToIndex:S}))}o("update:modelValue",p.value),o("slide-end",{currentSlideIndex:p.value,prevSlideIndex:y.value,slidesCount:h.value}),P.value=!1,se()},d.transition))}function te(){K(p.value+d.itemsToScroll)}function ae(){K(p.value-d.itemsToScroll)}const ne={slideTo:K,next:te,prev:ae};t.provide("nav",ne),t.provide("isSliding",P);const ie=t.computed(()=>ID({config:d,currentSlide:p.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,T=ie.value*c.value*S;return{transform:`translateX(${I.x-T}px)`,transition:`${P.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),B(),V(),se()}Object.keys(n_).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==p.value&&K(Number(S))}),t.watch(h,B),o("before-init"),w();const xe={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:p,maxSlide:u,minSlide:f,middleSlide:g};s({updateBreakpointsConfigs:b,updateSlidesData:B,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:ne,data:xe});const Re=a.default||a.slides,Pe=a.addons,ve=t.reactive(xe);return()=>{const S=i_(Re==null?void 0:Re(ve)),T=(Pe==null?void 0:Pe(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let O=S;if(d.wrapAround){const Oe=S.map((ze,le)=>t.cloneVNode(ze,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((ze,le)=>t.cloneVNode(ze,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));O=[...Oe,...S,...Te]}r.value=S,h.value=Math.max(S.length,1);const oe=t.h("ol",{class:"carousel__track",style:ce.value,onMousedownCapture:d.mouseDrag?C:null,onTouchstartPassiveCapture:d.touchDrag?C:null},O),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":P.value,"is-dragging":ee.value,"is-hover":F.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,T,t.h(zD)])}}}),r_;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(r_||(r_={}));var RD=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:a}){const o=t.inject("config",t.reactive(Object.assign({},ct))),s=t.inject("currentSlide",t.ref(0)),n=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===s.value,c=()=>e.index===s.value-1,h=()=>e.index===s.value+1,d=()=>{const l=Math.floor(n.value),m=Math.ceil(n.value+o.itemsToShow-1);return e.index>=l&&e.index<=m};return()=>{var l;return t.h("li",{style:{width:`${100/o.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":d(),"carousel__slide--active":r(),"carousel__slide--prev":c(),"carousel__slide--next":h(),"carousel__slide--sliding":i.value},"aria-hidden":!d()},(l=a.default)===null||l===void 0?void 0:l.call(a))}}});const PD=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},DD=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),LD={class:"gsc-carousel"},jD={key:0},vD=DD(()=>t.createElementVNode("div",null,"no hay",-1)),MD=[vD],HD={class:"gsc-carousel__2d__slides"},UD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},GD=["fill"],WD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qD=["fill"],JD={class:"gsc-carousel__2d__navigation"},XD={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZD=["stroke"],YD={key:1,class:"gsc-carousel__2d__navigation__pagination"},KD=["onClick"],QD={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eL=["stroke"],tL={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const s=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const n=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(n,u=>{u&&c.value?(c.value=!1,h(s.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>s.currentItemIndex,u=>{r.value!==u&&p(u)}),t.watch(()=>s.items,u=>{n.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&n.value){if(s.defaultItemByProp){const f=s.items.findIndex(_=>_[s.defaultItemByProp.propName]===s.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=s.defaultItemByIndex,i.value=u[s.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){n.value&&n.value.next()}function l(){n.value&&n.value.prev()}function m(){n.value&&n.value.updateSlideWidth()}function p(u){n.value&&n.value.slideTo(u)}function y(u){n.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?s.items.length-1:u.slidingToIndex===s.items.length?0:u.slidingToIndex;r.value=f,i.value=s.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:m,slideTo:p}),(u,f)=>(t.openBlock(),t.createElementBlock("div",LD,[s.is3d?(t.openBlock(),t.createElementBlock("div",jD,MD)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",HD,[t.createVNode(t.unref(FD),{ref_key:"carousel2d",ref:n,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:g},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createBlock(t.unref(RD),{key:k},{default:t.withCtx(()=>[t.renderSlot(u.$slots,"default",{item:_},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",onClick:f[0]||(f[0]=_=>n.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",UD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,GD)]))],2)])):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",onClick:f[1]||(f[1]=_=>d())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",WD,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,qD)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",JD,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:f[2]||(f[2]=_=>l())},[(t.openBlock(),t.createElementBlock("svg",XD,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:s.arrowsColor},null,8,ZD)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",YD,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(_,k)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${s.navigationHeight}px`,width:`${r.value===k?s.navigationActiveWidth:s.navigationActiveWidth/2}px`,borderRadius:`${s.navigationBorderRadius}px`,backgroundColor:`${r.value===k?s.navigationActiveColor:s.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>y(k)},null,12,KD))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:f[3]||(f[3]=_=>n.value.next())},[(t.openBlock(),t.createElementBlock("svg",QD,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:s.arrowsColor},null,8,eL)]))])):t.createCommentVNode("",!0)])],2))]))}},gr=PD(tL,[["__scopeId","data-v-dd3cbf69"]]),aL=(e,a)=>{const o=e.__vccOpts||e;for(const[s,n]of a)o[s]=n;return o},Rm={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(e){this.status=e}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(e){this.$emit("click",e),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},l_=()=>{t.useCssVars(e=>({"1c960139":e.height,b2f635d8:e.borderWidthBtn,"06e99898":e.borderType,"55555c76":e.borderColor,"23b6d320":e.borderRadius,"22c97374":e.width,"22bb09fa":e.backgroundColor,c148da7c:e.cursorType,cce756fc:e.fontSize,cff98d60:e.fontStyle,"5123b3a5":e.fontFamily,"47bf58db":e.marginLeftStat,cadc8414:e.fontSizeStat}))},c_=Rm.setup;Rm.setup=c_?(e,a)=>(l_(),c_(e,a)):l_;const oL=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),sL=["src"],nL={key:1,class:"text"},iL=["src"],rL={class:"stats"},lL=oL(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),cL={class:"numstats"},dL={class:"leyend"};function mL(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",n.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,n.status&&o.typeOnOff&&i.customActive]),onClick:a[0]||(a[0]=(...r)=>i.btnClick&&i.btnClick(...r))},[o.icon&&o.iconPosition.toLowerCase()==="left"?(t.openBlock(),t.createElementBlock("img",{key:0,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,sL)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",nL,t.toDisplayString(o.textValue),1)):t.createCommentVNode("",!0),o.icon&&o.iconPosition.toLowerCase()==="right"?(t.openBlock(),t.createElementBlock("img",{key:2,class:"icon",style:t.normalizeStyle({width:o.iconSize}),src:o.icon},null,12,iL)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0),o.type==1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"button-target",onClick:a[1]||(a[1]=(...r)=>i.btnClick&&i.btnClick(...r))},[t.createElementVNode("div",rL,[lL,t.createElementVNode("div",cL,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",dL,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const pL=aL(Rm,[["render",mL],["__scopeId","data-v-fb269a1e"]]),hL={class:"gsc-dropdown__main-container__item-selected"},gL=["height","width"],yL=["stroke"],uL={class:"gsc-dropdown__items-container"},fL=["onClick"],_L={key:0,class:"gsc-dropdown__items-footer"},Pm={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(e){return["solid","dotted","dashed"].includes(e)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(a=>a in e)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listItemPadding:{type:String,default:"10px 12px"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1}},emits:["input","click-ready","update:modelValue"],setup(e,{emit:a}){const o=e,s=t.ref({}),n=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(y,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&y&&y.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,s.value=y[u]):(i.value=0,s.value=y[0])}else s.value=y[o.defaultItemByIndex];a("input",s.value)}},{immediate:!0}),t.watch(()=>o.modelValue,y=>{if(y){const g=o.items.findIndex(u=>typeof y=="object"?JSON.stringify(u)===JSON.stringify(y):u===y);g!==-1&&(i.value=g,s.value=o.items[g],a("update:modelValue",s.value))}},{immediate:!0});const c=t.computed(()=>({height:o.height,width:o.width,backgroundColor:o.backgroundColor,borderRadius:`${o.borderRadius}px`,border:`${o.borderType} ${o.borderWidth}px ${o.borderColor}`,color:o.color,"--hover-background-color":o.hoverBackgroundColor,"--list-item-padding":o.listItemPadding,"--list-background-color":o.listBackgroundColor,"--list-height":o.listHeight,"--list-item-selected-color":o.listItemSelectedColor,"--list-item-selected-background-color":o.listItemSelectedBackgroundColor,"--list-item-color":o.listItemColor,"--list-border-radius":`${o.listBorderRadius}`,"--list-border-color":o.listBorderColor,"--list-width":o.isListSameWidth?o.width:"fit-content","--list-border-width":`${o.listBorderWidth}px`,"--footer-border":`${o.footerBorderWidth}px solid ${o.footerBorderColor}`,"--dropdown-opacity":o.isDisabled?"0.5":"1","--dropdown-cursor":o.isDisabled?"not-allowed":"pointer","--dropdown-font-size":o.fontSize?o.fontSize:"14px"})),h=t.computed(()=>({height:`${o.arrowHeight}px`,width:`${o.arrowWidth}px`}));function d(){o.isDisabled||(r.value=!r.value)}function l(y){n.value&&!n.value.contains(y.target)&&(r.value=!1)}function m(y,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),s.value=y,a("input",s.value),a("update:modelValue",s.value)}function p(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(y,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:t.normalizeStyle(c.value)},[t.createElementVNode("div",{class:"gsc-dropdown__main-container",style:t.normalizeStyle({"padding-right":`${e.arrowWidth+8}px`}),onClick:d},[t.createElementVNode("div",hL,[t.renderSlot(y.$slots,"default",{selectedItem:s.value})]),t.createElementVNode("div",{class:t.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:t.normalizeStyle(h.value)},[(t.openBlock(),t.createElementBlock("svg",{height:e.arrowHeight,width:e.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,yL)],8,gL))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",uL,[t.createElementVNode("div",null,[t.createElementVNode("div",{class:"gsc-dropdown__items",style:t.normalizeStyle({"margin-top":`${o.borderWidth}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(u,f)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["gsc-dropdown__items__item",{selected:f===i.value}]),key:f,onClick:_=>m(u,f)},[t.renderSlot(y.$slots,"availableItem",{item:u})],10,fL))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",_L,[t.createVNode(t.unref(pL),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:p})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let d_=null;const bL={components:{LineupField:UR,LineupRecentItem:aP,LineupMainHeader:NP,LineupFilter:qP,MatchDetails:e_,GscSwitchComponent:Zs,GSCCarousel:gr,GSCDropdown:Pm},props:{game:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Recientes"},componentWidth:{type:Number,default:767,validator(e){return e>0}}},data(){return{selectedIndexOption:0,rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",updatehistoricos:0,rivalVisitAbrev:"",selectOptMenuheader:"Recientes",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,playersAway:[],subsTitle:!1,uniformHome:"",uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},isInsideClick:!1,homeTeam:{},headerInfoHistoricItemGame:{},visitingTeam:{},gameForAnalysis:{},movil:!1,auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],vDeleteFilter:!1,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],matchdaysPerTeam:[],lastGetGame:0,probablyTeam:{acronym:"NEX",img:zR},localDetails:[],postmatchDescription:"Clausura 2018 I JOR 5 I CHI - ATL 12",showDetails:!1,foreignDetails:[],players:[],filterObject:{selectedFilterResults:["win","draw","lose"],selectedFilterTeam:["visit","local"]},updateCarouselGames:0,teamSelect:"",matchdaysFiltersUpdate:[],gamesFiltersUpdate:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},matchHomeProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},matchAwayProbables(){return this.matchdaysPerTeam[this.gameInfoheader.home_team_abbreviation]},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0},mobileClass(){return this.calendarResizeObserver<768?"break-point-3":""}},async mounted(){if(document.addEventListener("click",this.handleOutsideClick),setTimeout(()=>{this.setUpResizeObserver()},500),this.game||this.$route.params.gameId)try{this.cleaneData(),this.getLineUp(this.game.game_id),await this.getHeaderInfo(this.game),this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter()}catch(e){throw new Error(e)}},beforeDestroy(){document.removeEventListener("click",this.handleOutsideClick)},watch:{selectedOption:{immediate:!1,async handler(e){this.cleaneData(),this.auxProbablesIDGameHome=0,this.auxProbablesIDGameAway=0,e==="Postmatch"&&await this.getLineUp(this.game.game_id),e==="Probables"&&await this.getHeaderInfo(this.game),e==="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),e==="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){try{e!==null&&e!==""&&typeof e>"u"&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Recientes"&&(this.teamSelect=this.gameInfoheader.home_team_abbreviation,await this.matchFilter(),await this.getLineUp(this.gameRecientesFilter[0].id)),this.selectedOption=="Historicos"&&(this.updatehistoricos+=1,this.gamesHistoric&&this.gamesHistoric.length>0&&this.gamesHistoric[0]&&this.gamesHistoric[0].game&&this.getLineUp(this.gamesHistoric[0].game)))}catch(a){throw new Error(a)}}}},methods:{clickOnDeleteFilter(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickready(){},handleInsideClick(){this.isInsideClick=!0},handleOutsideClick(e){this.$refs.targetElement&&!this.$refs.targetElement.contains(e.target)&&(this.isInsideClick=!1)},remplazarMxJor(e){return e.replace("M","JOR ")},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.updateCarouselGames+=1,this.matchFilter())},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])):this.gamesRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]));else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.gamesRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o])}else if(this.gamesRecientes[this.teamSelect])for(let o=0;o<this.gamesRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gamesRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gamesRecientes[this.teamSelect][o].matchday_id,match_result:this.gamesRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gamesRecientes[this.teamSelect][o].home_match_result:this.gamesRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gamesRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},changeFiltersModal(e){this.filterObject=e,this.matchFilter()},changeDropdownVisit(e){if(this.auxProbablesIDGameAway!=e.id){this.auxProbablesIDGameAway=e.id;const a=this.gamesRecientes[this.gameInfoheader.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team_abbreviation:this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfoheader.away_team_abbreviation==this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].home_team+".png",this.cleaneDataProbablesAway(),this.getLineupDataProbablesAway(this.gamesRecientes[this.gameInfoheader.away_team_abbreviation][a].id)}},changeDropdownLocal(e){if(this.auxProbablesIDGameHome!=e.id){this.auxProbablesIDGameHome=e.id;const a=this.gamesRecientes[this.gameInfoheader.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team_abbreviation:this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfoheader.home_team_abbreviation==this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].away_team+".png",this.cleaneDataProbablesHome(),this.getLineupDataProbablesHome(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][a].id)}},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItemH(e){this.headerInfoHistoricItemGame=e.selectedItem.objgame;var a={season_id:e.selectedItem.season,game_id:e.selectedItem.game};this.cleaneData(),this.getLineUp(a.game_id)},changeDropdown(e){const a=this.gamesRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},async changeCarouselItem(e){this.keyUpdate+=1,this.getMinutesData(e.selectedItem.minutes),this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id};var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id,this.selectedIndexOption=e.selectedItemIndex},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,a.data.games_historic&&a.data.games_historic.length>0)for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});if(this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[],a.data.home_team_games_recent&&a.data.home_team_games_recent.length>0)for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});if(a.data.away_team_games_recent&&a.data.away_team_games_recent.length>0)for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:a.data.away_team_games_recent[o].matchday_abbreviation.replace("M","Jornada "),id:a.data.away_team_games_recent[o].matchday_id})},clickOnSelectOption(e){this.selectOptMenuheader=e},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneDataProbablesHome(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.home_team),this.homeTeamLogo="",this.homeTeamName="",this.homeTeamAbrev="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataProbablesAway(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.players=this.players.filter(e=>e.team_id!==this.gameInfoheader.away_team),this.awayTeamAbrev="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneData(){this.lastGetGame=0,this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.homeTeamAbrev="",this.awayTeamAbrev="",this.home_team_id=0,this.players=[],this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)d_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),d_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineupDataProbablesAway(e){try{const h=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!h||!h.data)throw new Error("There is not lineups for this game.");if(h.data.home_team.team_id==this.gameInfoheader.away_team){for(let d=0;d<h.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.home_team.team_id+"_g.svg","away",0);var a=h.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.home_team.starting_lineup[0].lineup[d].x;r=Math.abs(r-100);var c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.home_team.team_id,number:h.data.home_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.home_team.starting_lineup[0].lineup[d].player_id+".png",posX:c+7,posY:h.data.home_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.home_team.team_id+".png"}this.playersAway.sort((d,l)=>d.position_id>l.position_id?1:l.position_id>d.position_id?-1:0)}if(h.data.away_team.team_id==this.gameInfoheader.away_team)for(let d=0;d<h.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=h.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+h.data.away_team.team_id+"_g.svg","away",0);var a=h.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=h.data.away_team.starting_lineup[0].lineup[d].x,c=100-(100-r)*50/100;c=c*.9,this.players.push({team_id:h.data.away_team.team_id,number:h.data.away_team.starting_lineup[0].lineup[d].jersey_number,isFirstTeam:!1,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+h.data.away_team.starting_lineup[0].lineup[d].player_id+".png",posX:100-(100-h.data.away_team.starting_lineup[0].lineup[d].x)*50/100,posY:h.data.away_team.starting_lineup[0].lineup[d].y}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+h.data.away_team.team_id+".png"}}catch(h){return Promise.reject(h)}},async getLineupDataProbablesHome(e){try{const l=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!l||!l.data)throw new Error("There is not lineups for this game.");if(l.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.home_team.players,l.data.home_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.home_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.home_team.team_id+"_g.svg","home",0);var a=l.data.home_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[m].x,c=r*50/100;this.players.push({team_id:l.data.home_team.team_id,number:l.data.home_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[m].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[m].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[m].y}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.home_team.team_id+".png"}}if(l.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=l.data.away_team.players,l.data.away_team.starting_lineup[0].lineup.sort((m,p)=>m.position_id>p.position_id?1:p.position_id>m.position_id?-1:0);for(let m=0;m<l.data.away_team.starting_lineup[0].lineup.length;m++){this.home_team_id=l.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+l.data.away_team.team_id+"_g.svg","home",0);var a=l.data.away_team.starting_lineup[0].lineup[m].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[m].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[m].y;d=Math.abs(d-100),this.players.push({team_id:l.data.away_team.team_id,number:l.data.away_team.starting_lineup[0].lineup[m].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[m].player_id+".png",posX:c-2,posY:d-9}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+l.data.away_team.team_id+".png"}}}catch(l){return Promise.reject(l)}},async getLineUp(e){if(Jf(),!this.playersHome.length)try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.players=[],this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!0,name:i+". "+n,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",posX:C.data.home_team.starting_lineup[0].lineup[N].x*50/100,posY:C.data.home_team.starting_lineup[0].lineup[N].y}),this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.players.push({number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,isFirstTeam:!1,name:E+". "+b,photo:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",posX:100-(100-C.data.away_team.starting_lineup[0].lineup[N].x)*50/100,posY:C.data.away_team.starting_lineup[0].lineup[N].y}),this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}this.game.prematch||this.getMXM(this.game.game_id)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},Ys=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),wL={class:"lineup__header",ref:"gamesContainer"},CL=Ys(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),kL={key:0,style:{width:"325px"}},SL={class:"lineup__card"},EL={key:0},NL={key:1},$L={key:2},BL={key:3,class:"lineup__card-body"},xL={key:0,class:"lineup__selector",style:{margin:"auto"}},VL={class:"lineup__selector-item"},IL={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},AL={class:"lineup__filters"},OL={class:"selector-tournaments"},TL={class:"lineup__items-carousel"},zL=Ys(()=>t.createElementVNode("div",null,null,-1)),FL={class:"lineup__items-center"},RL={class:"lineup__selector-recientes"},PL={key:1,class:"containernofoundsearchrecientes"},DL=Ys(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),LL={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},jL={key:5,class:"lineup__card-body space-between"},vL={class:"lineup__card-body__probables"},ML={class:"selector-tournaments"},HL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),UL=["src"],GL={class:"lineup__card-body__probables"},WL=["src"],qL=Ys(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),JL={class:"selector-tournaments"},XL={key:6,class:"lineup__card-body space-between"},ZL={class:"postmatch__matchday"};function YL(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),m=t.resolveComponent("LineupRecentItem"),p=t.resolveComponent("MatchDetails"),y=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",wL,[CL,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",kL,[(n.gameInfoheader.game_status==0||n.gameInfoheader.game_status==4)&&i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.selectedOption,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:a[0]||(a[0]=g=>o.selectedOption=g)},null,8,["selectedOption"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],512),t.createElementVNode("div",SL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",EL,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",NL,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",$L,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(n.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:n.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.headerInfoHistoricItemGame.score[0]+" - "+n.headerInfoHistoricItemGame.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(n.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:n.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.home_team+".png"},visitTeam:{acronym:n.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+n.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:n.rivalHomeAbrev,img:n.rivalHomeImg},probablyTeamAway:{acronym:n.rivalVisitAbrev,img:n.rivalVisitImg},score:n.gameInfoheader.score[0]+" - "+n.gameInfoheader.score[1],onChange:i.changeSwitchRadio,type:o.selectedOption},null,8,["localTeam","visitTeam","probablyTeamHome","probablyTeamAway","score","onChange","type"])):t.createCommentVNode("",!0)],64)),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock("div",BL,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",xL,[n.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:n.updatehistoricos,onInput:i.changeCarouselItemH,items:n.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",VL,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",IL,[t.createElementVNode("div",AL,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:n.vDeleteFilter},null,8,["onChange","reset"]),t.createElementVNode("div",{class:"lineup__filters__selector",ref:"targetElement",onClick:a[1]||(a[1]=(...g)=>i.handleInsideClick&&i.handleInsideClick(...g))},[(t.openBlock(),t.createBlock(l,{items:i.matchdaysFinal,onInput:i.changeDropdown,backgroundColor:"transparent",height:"25px",key:e.keyUpdate,color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,"default-item-by-prop":e.defaultDropItem,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",OL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput","default-item-by-prop"]))],512),t.createElementVNode("div",{class:"lineup__text-btn",onClick:a[2]||(a[2]=g=>n.showDetails=!n.showDetails)},t.toDisplayString(n.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",TL,[zL,t.createElementVNode("div",FL,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",RL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",PL,[DL,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),n.showDetails?(t.openBlock(),t.createBlock(p,{key:0,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",LL,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":n.selectedIndexOption,width:"600px",height:"80px",key:n.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(m,{game:g,teamSelect:n.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),n.showDetails?(t.openBlock(),t.createBlock(p,{key:1,localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",jL,[t.createElementVNode("div",vL,[t.createVNode(l,{items:i.matchHomeProbables,onInput:i.changeDropdownLocal,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",ML,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),HL,t.createElementVNode("img",{src:n.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,UL)]),t.createElementVNode("div",GL,[t.createElementVNode("img",{src:n.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,WL),qL,t.createVNode(l,{items:i.matchAwayProbables,onInput:i.changeDropdownVisit,backgroundColor:"transparent",height:"25px",color:"rgba(255, 255, 255, 0.7)",arrowColor:"rgba(255, 255, 255, 0.7)",borderColor:"rgba(255, 255, 255, 0.3)",style:{"font-size":"10px"},arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(g=>[t.createElementVNode("div",JL,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"])])])):o.selectedOption==="Postmatch"?(t.openBlock(),t.createElementBlock("div",XL,[t.createElementVNode("div",ZL,t.toDisplayString(n.gameInfoheader.season_name!==void 0?n.gameInfoheader.season_name+" | "+i.remplazarMxJor(n.gameInfoheader.matchday_abbreviation)+" | "+n.gameInfoheader.home_team_abbreviation+" - "+n.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(y,{class:"lineup__field",players:n.players},null,8,["players"])])],2)}const KL=bt(bL,[["render",YL],["__scopeId","data-v-3e8dc5c2"]]),QL={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{},mounted(){}},yr=e=>(t.pushScopeId("data-v-57833ebc"),e=e(),t.popScopeId(),e),ej={key:0,class:"gsc-item-player"},tj={class:"gsc-num-player"},aj={class:"gsc-cont-info-by-player"},oj={class:"gsc-cont-info-by-player-row1"},sj={class:"shield-player-cont"},nj=["src"],ij={class:"gsc-cont-info-by-player-row2"},rj={class:"gsc-cont-info-by-player-row2-line-name"},lj={class:"gsc-cont-info-by-player-row2-line-data"},cj={class:"cont-display-gsc"},dj=["src"],mj={class:"gsc-cont-cards"},pj={key:0,class:"gsc-yellow_card_div"},hj={key:1,class:"gsc-red_card_div"},gj={key:2,class:"gsc-yellowred_card_div"},yj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),uj={key:5,class:"gsc-goal_card_div_wrapper"},fj=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),_j={key:1,class:"gsc-item-player"},bj={class:"gsc-num-player2"},wj={class:"gsc-cont-info-by-player2"},Cj={class:"gsc-cont-info-by-player-row2"},kj={class:"gsc-cont-info-by-player-row2-line-name2"},Sj={class:"gsc-cont-info-by-player-row2-line-data"},Ej={class:"gsc-cont-cards2"},Nj={key:0,class:"gsc-yellow_card_div"},$j={key:1,class:"gsc-red_card_div"},Bj={key:2,class:"gsc-yellowred_card_div"},xj=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Vj={key:5,class:"gsc-goal_card_div_wrapper"},Ij=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Aj={class:"cont-display-gsc"},Oj=["src"],Tj={class:"gsc-cont-info-by-player-row1"},zj={class:"shield-player-cont"},Fj=["src"];function Rj(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",ej,[t.createElementVNode("div",tj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",aj,[t.createElementVNode("div",oj,[t.createElementVNode("div",sj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,nj)])]),t.createElementVNode("div",ij,[t.createElementVNode("div",rj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",lj,[t.createElementVNode("div",cj,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,dj),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",mj,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",pj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",hj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",gj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[yj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",uj,[fj,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",_j,[t.createElementVNode("div",bj,[o.data.shirt<10?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("0")],64)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(o.data.shirt),1)]),t.createElementVNode("div",wj,[t.createElementVNode("div",Cj,[t.createElementVNode("div",kj,t.toDisplayString(o.data.name),1),t.createElementVNode("div",Sj,[t.createElementVNode("div",Ej,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Nj)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",$j)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Bj)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:3},[t.createTextVNode("'"+t.toDisplayString(o.data.yellowcardmin),1)],64)):t.createCommentVNode("",!0),o.data.redcard>=1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[t.createTextVNode("'"+t.toDisplayString(o.data.redcardmin),1)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.data.goalsMin,(r,c)=>(t.openBlock(),t.createElementBlock("div",{class:"gsc-goal_card_div_wrapper",key:c},[xj,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Vj,[Ij,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Aj,[t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3),t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,Oj)])])]),t.createElementVNode("div",Tj,[t.createElementVNode("div",zj,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,Fj)])])])])):t.createCommentVNode("",!0)],64)}const Pj=bt(QL,[["render",Rj],["__scopeId","data-v-57833ebc"]]),Dm="/icn-filter.svg",Ks="/icn-expand-arrow.svg",m_="/backarrow.svg",p_="/nextarrow.svg",Dj="_selectoritem_1dafy_137",Lj="_selectoritem2_1dafy_157",jj="_gscheaderlineup_1dafy_177",vj="_anNoEstn_1dafy_191",Mj="_groupsLeague_1dafy_197",Hj="_jugadores_1dafy_209",Uj="_switchOption_1dafy_219",Gj="_jugadores1_1dafy_239",Wj="_switchOption1_1dafy_249",qj="_switchStatesBig_1dafy_265",Jj="_groupsLeagueParent_1dafy_283",Xj="_imgHomeTeamIcon_1dafy_301",Zj="_imgHomeTeamWrapper_1dafy_313",Yj="_teamContainer_1dafy_337",Kj="_name_1dafy_361",Qj="_homeTeamContainer_1dafy_373",ev="_div_1dafy_393",tv="_scoreContainer_1dafy_401",av="_scoreContainerWrapper_1dafy_421",ov="_teamContainer1_1dafy_447",sv="_awayTeamContainer_1dafy_471",nv="_matchContainer_1dafy_491",iv="_sliderMatchesChild_1dafy_509",rv="_manchesterUnited_1dafy_521",lv="_sliderMatchesItem_1dafy_533",cv="_sliderMatches_1dafy_509",dv="_sortIcon_1dafy_569",mv="_filtros_1dafy_583",pv="_sortParent_1dafy_599",hv="_shapeIcon_1dafy_613",gv="_btnFilter_1dafy_623",yv="_btnFilter1_1dafy_651",uv="_btnFilterParent_1dafy_679",fv="_backArrowIcon_1dafy_695",_v="_teamContainer2_1dafy_707",bv="_homeTeam_1dafy_373",wv="_div4_1dafy_735",Cv="_finalScore_1dafy_745",kv="_manchesterUnited1_1dafy_771",Sv="_scoreContainer1_1dafy_785",Ev="_match_1dafy_491",Nv="_manchesterUnited2_1dafy_821",$v="_btnDetails_1dafy_831",Bv="_matchContainer1_1dafy_851",xv="_goalChild_1dafy_867",Vv="_goal_1dafy_867",Iv="_manchesterUnited3_1dafy_893",Av="_minuteEvent_1dafy_907",Ov="_yellowCard_1dafy_921",Tv="_awayTeamEvents_1dafy_935",zv="_rectangle_1dafy_949",Fv="_homeTeamEvents_1dafy_963",Rv="_totalEvents_1dafy_979",Pv="_headerSeccionAlineaciones1_1dafy_995",Dv="_switchOption3_1dafy_1017",Lv="_switchOption4_1dafy_1041",jv="_switchStatesBig1_1dafy_1061",vv="_manchesterUnited13_1dafy_1075",Mv="_homeTeamContainer1_1dafy_1085",Hv="_scoreContainer2_1dafy_1099",Uv="_matchContainer2_1dafy_1127",Gv="_manchesterUnited14_1dafy_1147",Wv="_sliderMatchesInner_1dafy_1161",qv="_rectangleIcon_1dafy_1181",Jv="_sliderMatches1_1dafy_1201",Xv="_containerData_1dafy_1217",Zv="_headerSeccionAlineaciones2_1dafy_1245",Yv="_headerSeccionAlineaciones_1dafy_995",Kv="_headerSeccionAlineaciones21200_1dafy_1293",Qv="_headerSeccionAlineaciones1540_1dafy_1299",eM="_headerSeccionAlineaciones2540_1dafy_1307",tM={selectoritem:Dj,selectoritem2:Lj,gscheaderlineup:jj,anNoEstn:vj,groupsLeague:Mj,jugadores:Hj,switchOption:Uj,jugadores1:Gj,switchOption1:Wj,switchStatesBig:qj,groupsLeagueParent:Jj,imgHomeTeamIcon:Xj,imgHomeTeamWrapper:Zj,teamContainer:Yj,name:Kj,homeTeamContainer:Qj,div:ev,scoreContainer:tv,scoreContainerWrapper:av,teamContainer1:ov,awayTeamContainer:sv,matchContainer:nv,sliderMatchesChild:iv,manchesterUnited:rv,sliderMatchesItem:lv,sliderMatches:cv,sortIcon:dv,filtros:mv,sortParent:pv,shapeIcon:hv,btnFilter:gv,btnFilter1:yv,btnFilterParent:uv,backArrowIcon:fv,teamContainer2:_v,homeTeam:bv,div4:wv,finalScore:Cv,manchesterUnited1:kv,scoreContainer1:Sv,match:Ev,manchesterUnited2:Nv,btnDetails:$v,matchContainer1:Bv,goalChild:xv,goal:Vv,manchesterUnited3:Iv,minuteEvent:Av,yellowCard:Ov,awayTeamEvents:Tv,rectangle:zv,homeTeamEvents:Fv,totalEvents:Rv,headerSeccionAlineaciones1:Pv,switchOption3:Dv,switchOption4:Lv,switchStatesBig1:jv,manchesterUnited13:vv,homeTeamContainer1:Mv,scoreContainer2:Hv,matchContainer2:Uv,manchesterUnited14:Gv,sliderMatchesInner:Wv,rectangleIcon:qv,sliderMatches1:Jv,containerData:Xv,headerSeccionAlineaciones2:Zv,headerSeccionAlineaciones:Yv,headerSeccionAlineaciones21200:Kv,headerSeccionAlineaciones1540:Qv,headerSeccionAlineaciones2540:eM},aM={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},oM=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),sM=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),nM=["src"],iM=["src"],rM=["src"],lM=["src"],cM=["src"],dM=["src"];function mM(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[oM,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),sM],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,nM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)}," - ",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,iM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:1,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,rM)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,lM)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},[(o.gameInfo.game_status==0||o.gameInfo.game_status==4)&&o.gameRecientes>0?(t.openBlock(),t.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en: ",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.home_team+".png"},null,10,cM)):t.createCommentVNode("",!0)],2)],2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("img",{key:0,class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameHistoric[n.selectedOption].objgame.away_team+".png"},null,10,dM)):t.createCommentVNode("",!0)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},[o.gameHistoric.length>0?(t.openBlock(),t.createBlock(c,{key:0,"current-item-index":n.selectedOption,onInput:i.changeCarouselItem,items:o.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:h})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem2)},t.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const pM={$style:tM},hM=bt(aM,[["render",mM],["__cssModules",pM]]),ur=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),gM=t.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-2118a6cd><g id="vuesax/outline/sort" data-v-2118a6cd><g id="sort" data-v-2118a6cd><path id="Vector" opacity="0.7" d="M15.75 5.8125H2.25C1.9425 5.8125 1.6875 5.5575 1.6875 5.25C1.6875 4.9425 1.9425 4.6875 2.25 4.6875H15.75C16.0575 4.6875 16.3125 4.9425 16.3125 5.25C16.3125 5.5575 16.0575 5.8125 15.75 5.8125Z" fill="white" data-v-2118a6cd></path><path id="Vector_2" opacity="0.7" d="M13.5 9.5625H4.5C4.1925 9.5625 3.9375 9.3075 3.9375 9C3.9375 8.6925 4.1925 8.4375 4.5 8.4375H13.5C13.8075 8.4375 14.0625 8.6925 14.0625 9C14.0625 9.3075 13.8075 9.5625 13.5 9.5625Z" fill="white" data-v-2118a6cd></path><path id="Vector_3" opacity="0.7" d="M10.5 13.3125H7.5C7.1925 13.3125 6.9375 13.0575 6.9375 12.75C6.9375 12.4425 7.1925 12.1875 7.5 12.1875H10.5C10.8075 12.1875 11.0625 12.4425 11.0625 12.75C11.0625 13.0575 10.8075 13.3125 10.5 13.3125Z" fill="white" data-v-2118a6cd></path></g></g></svg>',1),yM=["value"],uM=ur(()=>t.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1)),fM={class:"filter-modal__padding"},_M={class:"filter-modal__content-header"},bM=ur(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),wM={class:"filter-modal__content-options"},CM=["onClick"],kM={class:"filter-modal__content-header"},SM=ur(()=>t.createElementVNode("h3",null,"Resultados:",-1)),EM={class:"filter-modal__content-options"},NM=["onClick"],$M=ur(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),BM={__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(e){return e>0}}},emits:["update:model-value","change"],setup(e,{emit:a}){const o=e;t.useCssVars(w=>({d00c78a6:e.marginModal}));const s=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],i=t.ref(null),r=t.ref(["local","visit"]),c=t.ref(["win","draw","lose"]),h=t.ref(!0),d=t.ref(!0),l=t.ref(!0),m=t.ref(!0),p=t.ref(["local","visit"]),y=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(p.value)),c.value=JSON.parse(JSON.stringify(y.value)),h.value=l.value,d.value=m.value};t.watch(()=>o.itemSelect,w=>{w&&(p.value=w.selectedFilterTeam,y.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=p.value:E=y.value;const x=E.findIndex(V=>V===w);x==-1?E.push(w):b=="team"&&p.value.length==2?E.splice(x,1):(b=="team"&&E.push(w),y.value.length>1&&E.splice(x,1)),l.value=p.value.length==2,m.value=y.value.length==3},f=()=>{p.value=["local","visit"],y.value=["win","draw","lose"],l.value=!0,m.value=!0,a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},_=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})},k=()=>{a("change",{selectedFilterTeam:p.value,selectedFilterResults:y.value})};return(w,b)=>(t.openBlock(),t.createElementBlock("div",{class:"filter-modal",style:t.normalizeStyle({zIndex:e.zIndex})},[e.showButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:g},[gM,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,yM),uM])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["filter-modal__content",e.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:i,onFocusout:b[4]||(b[4]=E=>{e.isOpen=!1,k()})},[t.createElementVNode("div",fM,[t.createElementVNode("div",_M,[bM,t.createVNode(pr,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(p.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",wM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"team"),class:t.normalizeClass({active:p.value.includes(E.id)})},t.toDisplayString(E.name),11,CM)),64))]),t.createElementVNode("div",kM,[SM,t.createVNode(pr,{modelValue:m.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>m.value=E),b[3]||(b[3]=E=>E&&(y.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",EM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:x=>u(E.id,"player"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,NM)),64))])]),$M,t.createElementVNode("div",{class:"filter-modal__buttons"},[t.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:f},"Quitar filtros"),t.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:_},"Listo")])],34)],4))}},xM=bt(BM,[["__scopeId","data-v-2118a6cd"]]),VM="/icn-filter1.svg",IM="/icn-expand-arrow1.svg",AM="/icn-filter2.svg",OM="/icn-arrow-expand.svg",TM="_containernofoundsearchrecientes_1gxk5_159",zM="_btndeletefilters_1gxk5_215",FM="_leyenddeleteshow_1gxk5_247",RM="_selectoritem_1gxk5_261",PM="_anNoEstn_1gxk5_279",DM="_groupsLeague_1gxk5_287",LM="_historicas_1gxk5_297",jM="_switchOption_1gxk5_309",vM="_recientes_1gxk5_331",MM="_switchOption1_1gxk5_343",HM="_switchOption2_1gxk5_369",UM="_switchStatesBig_1gxk5_387",GM="_groupsLeagueParent_1gxk5_407",WM="_imgHomeTeamIcon_1gxk5_427",qM="_imgHomeTeamWrapper_1gxk5_441",JM="_teamContainer_1gxk5_467",XM="_name_1gxk5_493",ZM="_homeTeamContainer_1gxk5_507",YM="_div_1gxk5_529",KM="_scoreContainer_1gxk5_539",QM="_scoreContainerWrapper_1gxk5_561",eH="_teamContainer1_1gxk5_587",tH="_awayTeamContainer_1gxk5_613",aH="_matchContainer_1gxk5_635",oH="_sliderMatchesChild_1gxk5_655",sH="_manchesterUnited_1gxk5_669",nH="_sliderMatchesItem_1gxk5_683",iH="_sliderMatches_1gxk5_655",rH="_sortIcon_1gxk5_719",lH="_filtros_1gxk5_735",cH="_sortParent_1gxk5_753",dH="_shapeIcon_1gxk5_769",mH="_btnFilter_1gxk5_781",pH="_btnFilter1_1gxk5_813",hH="_btnFilterParent_1gxk5_843",gH="_backArrowIcon_1gxk5_861",yH="_teamContainer2_1gxk5_875",uH="_homeTeam_1gxk5_507",fH="_div4_1gxk5_907",_H="_finalScore_1gxk5_919",bH="_manchesterUnited1_1gxk5_947",wH="_scoreContainer1_1gxk5_963",CH="_match_1gxk5_635",kH="_manchesterUnited2_1gxk5_997",SH="_btnDetails_1gxk5_1023",EH="_matchContainer1_1gxk5_1047",NH="_goalChild_1gxk5_1065",$H="_goal_1gxk5_1065",BH="_manchesterUnited3_1gxk5_1095",xH="_minuteEvent_1gxk5_1111",VH="_yellowCard_1gxk5_1127",IH="_awayTeamEvents_1gxk5_1143",AH="_rectangle_1gxk5_1159",OH="_homeTeamEvents_1gxk5_1175",TH="_totalEvents_1gxk5_1193",zH="_headerSeccionAlineaciones1_1gxk5_1211",FH="_sliderMatchesInner_1gxk5_1233",RH="_btnFilter2_1gxk5_1247",PH="_btnDetails1_1gxk5_1281",DH="_matchContainer3_1gxk5_1299",LH="_backArrowIcon1_1gxk5_1321",jH="_match1_1gxk5_1335",vH="_headerSeccionAlineaciones2_1gxk5_1347",MH="_jugadores2_1gxk5_1369",HH="_switchOption6_1gxk5_1383",UH="_switchOption7_1gxk5_1405",GH="_switchStatesBig2_1gxk5_1431",WH="_manchesterUnited26_1gxk5_1447",qH="_homeTeamContainer2_1gxk5_1459",JH="_vectorIcon_1gxk5_1475",XH="_teamSwitch_1gxk5_1487",ZH="_matchContainer5_1gxk5_1513",YH="_manchesterUnited27_1gxk5_1535",KH="_sliderMatchesChild1_1gxk5_1551",QH="_sliderMatchesChild2_1gxk5_1573",eU="_sliderMatches2_1gxk5_1595",tU="_filtros2_1gxk5_1615",aU="_btnFilter4_1gxk5_1635",oU="_jornada2_1gxk5_1667",sU="_filterMatchday_1gxk5_1681",nU="_btnDetails2_1gxk5_1703",iU="_filtersContainer_1gxk5_1725",rU="_matchContainer6_1gxk5_1745",lU="_matchDetailContainer_1gxk5_1763",cU="_containerData_1gxk5_1783",dU="_headerSeccionAlineaciones3_1gxk5_1813",mU="_headerSeccionAlineaciones_1gxk5_1211",pU="_headerSeccionAlineaciones31200_1gxk5_1865",hU="_headerSeccionAlineaciones3420_1gxk5_1891",gU="_headerSeccionAlineaciones3880_1gxk5_1917",yU="_headerSeccionAlineaciones3540_1gxk5_1941",uU="_headerSeccionAlineaciones11200_1gxk5_1967",fU="_headerSeccionAlineaciones1420_1gxk5_1995",_U="_headerSeccionAlineaciones1880_1gxk5_2017",bU="_headerSeccionAlineaciones21200_1gxk5_2039",wU="_headerSeccionAlineaciones2420_1gxk5_2067",CU="_headerSeccionAlineaciones2880_1gxk5_2091",kU="_headerSeccionAlineaciones2540_1gxk5_2113",SU={containernofoundsearchrecientes:TM,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:zM,leyenddeleteshow:FM,selectoritem:RM,anNoEstn:PM,groupsLeague:DM,historicas:LM,switchOption:jM,recientes:vM,switchOption1:MM,switchOption2:HM,switchStatesBig:UM,groupsLeagueParent:GM,imgHomeTeamIcon:WM,imgHomeTeamWrapper:qM,teamContainer:JM,name:XM,homeTeamContainer:ZM,div:YM,scoreContainer:KM,scoreContainerWrapper:QM,teamContainer1:eH,awayTeamContainer:tH,matchContainer:aH,sliderMatchesChild:oH,manchesterUnited:sH,sliderMatchesItem:nH,sliderMatches:iH,sortIcon:rH,filtros:lH,sortParent:cH,shapeIcon:dH,btnFilter:mH,btnFilter1:pH,btnFilterParent:hH,backArrowIcon:gH,teamContainer2:yH,homeTeam:uH,div4:fH,finalScore:_H,manchesterUnited1:bH,scoreContainer1:wH,match:CH,manchesterUnited2:kH,btnDetails:SH,matchContainer1:EH,goalChild:NH,goal:$H,manchesterUnited3:BH,minuteEvent:xH,yellowCard:VH,awayTeamEvents:IH,rectangle:AH,homeTeamEvents:OH,totalEvents:TH,headerSeccionAlineaciones1:zH,sliderMatchesInner:FH,btnFilter2:RH,btnDetails1:PH,matchContainer3:DH,backArrowIcon1:LH,match1:jH,headerSeccionAlineaciones2:vH,jugadores2:MH,switchOption6:HH,switchOption7:UH,switchStatesBig2:GH,manchesterUnited26:WH,homeTeamContainer2:qH,vectorIcon:JH,teamSwitch:XH,matchContainer5:ZH,manchesterUnited27:YH,sliderMatchesChild1:KH,sliderMatchesChild2:QH,sliderMatches2:eU,filtros2:tU,btnFilter4:aU,jornada2:oU,filterMatchday:sU,btnDetails2:nU,filtersContainer:iU,matchContainer6:rU,matchDetailContainer:lU,containerData:cU,headerSeccionAlineaciones3:dU,headerSeccionAlineaciones:mU,headerSeccionAlineaciones31200:pU,headerSeccionAlineaciones3420:hU,headerSeccionAlineaciones3880:gU,headerSeccionAlineaciones3540:yU,headerSeccionAlineaciones11200:uU,headerSeccionAlineaciones1420:fU,headerSeccionAlineaciones1880:_U,headerSeccionAlineaciones21200:bU,headerSeccionAlineaciones2420:wU,headerSeccionAlineaciones2880:CU,headerSeccionAlineaciones2540:kU},EU={components:{GSCCarousel:gr,GscSwitchComponent:Zs,GSCDropdown:Pm,GSCFilter:xM,GSCSwitchRadio:Yf,GSCMatchDetails:e_},props:{widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.teamSelect=e.home_team_abbreviation,this.matchFilter()}catch(a){throw new Error(a)}}},gameRecientes:{immediate:!0,handler:async function(e){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a]);for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==1&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==2&&e.push(this.matchdaysFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)this.matchdaysFiltersUpdate[a].match_result==3&&e.push(this.matchdaysFiltersUpdate[a])}else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);else for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)e.push(this.matchdaysFiltersUpdate[a]);return e},gameRecientesFilter(){var e=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a]);for(let a=0;a<this.gamesFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==1||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==1)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==2||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==2)&&e.push(this.gamesFiltersUpdate[a]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let a=0;a<this.matchdaysFiltersUpdate.length;a++)(this.gamesFiltersUpdate[a].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].visiting_match_result==3||this.gamesFiltersUpdate[a].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[a].home_match_result==3)&&e.push(this.gamesFiltersUpdate[a])}else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);else for(let a=0;a<this.gamesFiltersUpdate.length;a++)e.push(this.gamesFiltersUpdate[a]);return e},headerSeccionAlineaciones1Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones1420:e<=880?this.$style.headerSeccionAlineaciones1880:e<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones2420:e<=540?this.$style.headerSeccionAlineaciones2540:e<=880?this.$style.headerSeccionAlineaciones2880:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const e=this.widthSize;return e<=420?this.$style.headerSeccionAlineaciones3420:e<=540?this.$style.headerSeccionAlineaciones3540:e<=880?this.$style.headerSeccionAlineaciones3880:e<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},changeDropdown(e){const a=this.gameRecientes[this.teamSelect].findIndex(o=>o.matchday_id==e.id);a!=-1&&(this.selectedIndexOption=a)},matchFilter(){var e=[],a=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_match_result}),a.push(this.gameRecientes[this.teamSelect][o])):this.gameRecientes[this.teamSelect][o].away_team_abbreviation==this.teamSelect&&(e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]));else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.gameRecientes[this.teamSelect][o].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o])}else if(this.gameRecientes[this.teamSelect])for(let o=0;o<this.gameRecientes[this.teamSelect].length;o++)e.push({name:this.getRound(this.gameRecientes[this.teamSelect][o].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][o].matchday_id,match_result:this.gameRecientes[this.teamSelect][o].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][o].home_match_result:this.gameRecientes[this.teamSelect][o].visiting_match_result}),a.push(this.gameRecientes[this.teamSelect][o]);this.gamesFiltersUpdate=a,this.matchdaysFiltersUpdate=e},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},changeFiltersModal(e){this.filterObject=e,this.openfiltervalue=!1,this.matchFilter()},openFilter(){this.openfiltervalue=!0},getMinutesData(e){this.localDetails=[],this.foreignDetails=[];for(let a=0;a<e.home_goals_minutes.length;a++)this.localDetails.push({description:e.home_goals_minutes[a],icon:"goal"});for(let a=0;a<e.visiting_goals_minutes.length;a++)this.foreignDetails.push({description:e.visiting_goals_minutes[a],icon:"goal"});for(let a=0;a<e.home_yellow_cards_minutes.length;a++)this.localDetails.push({description:e.home_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.away_yellow_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_yellow_cards_minutes[a],icon:"yellow-card"});for(let a=0;a<e.home_red_cards_minutes.length;a++)this.localDetails.push({description:e.home_red_cards_minutes[a],icon:"red-card"});for(let a=0;a<e.away_red_cards_minutes.length;a++)this.foreignDetails.push({description:e.away_red_cards_minutes[a],icon:"red-card"})},changeCarouselItem(e){e.selectedItem&&(this.getMinutesData(e.selectedItem.minutes),this.$emit("input",e),this.selectedIndexOption=e.selectedItemIndex,this.defaultDropItem={propName:"id",value:e.selectedItem.matchday_id},this.keyUpdate+=1)},changeSwitchRadio(e){typeof e!="object"&&(this.teamSelect=e,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},NU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),$U=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BU=["src"],xU=["src"],VU={class:"selector-tournaments"},IU=["src"],AU=["src"],OU={key:1},TU=t.createElementVNode("br",null,null,-1),zU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),FU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),RU=["src"],PU=["src"],DU={class:"selector-tournaments"},LU=["src"],jU=["src"],vU={key:1},MU=t.createElementVNode("br",null,null,-1),HU=["src"],UU=["src"],GU={class:"selector-tournaments"},WU=["src"],qU=["src"],JU={key:1},XU=t.createElementVNode("br",null,null,-1);function ZU(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),m=t.resolveComponent("GSCMatchDetails");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[NU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),$U],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,BU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,xU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[0]||(a[0]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",VU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{"default-item-by-index":2,key:n.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,IU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,AU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",OU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),TU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[2]||(a[2]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[zU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),FU],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,RU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,PU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer3)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter2),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[3]||(a[3]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:VM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:IM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",DU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[4]||(a[4]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match1)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,LU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,jU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",vU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),MU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones3Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited26)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer5),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,HU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamSwitch),id:"switch-team"},[t.createVNode(c,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":o.gameInfo.home_team_abbreviation,onChange:i.changeSwitchRadio,"text-option-right":o.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,UU)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter4),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent),onClick:a[6]||(a[6]=(...p)=>i.openFilter&&i.openFilter(...p))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:AM},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros2)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:OM},null,2),t.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:i.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:t.normalizeClass(e.$style.filterMatchday),id:"menu-matchday",items:i.matchdaysFinal,onInput:i.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(p=>[t.createElementVNode("div",GU,t.toDisplayString(p.selectedItem.name),1)]),availableItem:t.withCtx(({item:p})=>[t.createElementVNode("div",null,t.toDisplayString(p.name),1)]),_:1},8,["default-item-by-prop","class","items","onInput"])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2),onClick:a[7]||(a[7]=(...p)=>i.clickShowDetails&&i.clickShowDetails(...p))},[n.showDetails?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ocultar detalles")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Ver detalles")],64))],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchDetailContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer6),id:"match-info-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(l,{key:0,items:i.gameRecientesFilter,"current-item-index":n.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:p})=>[t.createElementVNode("div",{class:t.normalizeClass(e.$style.selectoritem)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.home_team+".png"},null,10,WU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(p.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(p).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(p.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(p.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[p.home_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),p.away_team_abbreviation==n.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[p.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),p.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),p.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+p.away_team+".png"},null,10,qU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(p.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",JU,[t.createElementVNode("div",{class:t.normalizeClass(e.$style.containernofoundsearchrecientes)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.leyenddeleteshow)},[t.createTextVNode("No hay resultados con los criterios"),XU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...p)=>i.deleteFilters&&i.deleteFilters(...p))},"Eliminar filtros aplicados",2)],2)])),n.showDetails?(t.openBlock(),t.createBlock(m,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const YU={$style:SU},KU=bt(EU,[["render",ZU],["__cssModules",YU]]),QU="_selectoritem_16hc8_179",eG="_selectoritem2_16hc8_199",tG="_gscheaderlineup_16hc8_219",aG="_anNoEstn_16hc8_233",oG="_groupsLeague_16hc8_239",sG="_jugadores_16hc8_249",nG="_switchOption_16hc8_259",iG="_jugadores1_16hc8_279",rG="_switchOption1_16hc8_289",lG="_switchStatesBig_16hc8_305",cG="_groupsLeagueParent_16hc8_323",dG="_imgHomeTeamIcon_16hc8_341",mG="_imgHomeTeamWrapper_16hc8_353",pG="_teamContainer_16hc8_377",hG="_name_16hc8_401",gG="_homeTeamContainer_16hc8_413",yG="_div_16hc8_433",uG="_titleSession_16hc8_441",fG="_scoreContainer_16hc8_461",_G="_scoreContainerWrapper_16hc8_481",bG="_teamContainer1_16hc8_505",wG="_awayTeamContainer_16hc8_529",CG="_matchContainer_16hc8_549",kG="_sliderMatchesChild_16hc8_567",SG="_manchesterUnited_16hc8_579",EG="_sliderMatchesItem_16hc8_591",NG="_sliderMatches_16hc8_567",$G="_sortIcon_16hc8_627",BG="_filtros_16hc8_641",xG="_sortParent_16hc8_657",VG="_shapeIcon_16hc8_671",IG="_btnFilter_16hc8_681",AG="_btnFilter1_16hc8_709",OG="_btnFilterParent_16hc8_737",TG="_backArrowIcon_16hc8_753",zG="_teamContainer2_16hc8_765",FG="_homeTeam_16hc8_413",RG="_div4_16hc8_793",PG="_finalScore_16hc8_803",DG="_manchesterUnited1_16hc8_829",LG="_scoreContainer1_16hc8_843",jG="_match_16hc8_549",vG="_manchesterUnited2_16hc8_879",MG="_btnDetails_16hc8_889",HG="_matchContainer1_16hc8_909",UG="_goalChild_16hc8_925",GG="_goal_16hc8_925",WG="_manchesterUnited3_16hc8_951",qG="_minuteEvent_16hc8_965",JG="_yellowCard_16hc8_979",XG="_awayTeamEvents_16hc8_993",ZG="_rectangle_16hc8_1007",YG="_homeTeamEvents_16hc8_1021",KG="_totalEvents_16hc8_1037",QG="_headerSeccionAlineaciones1_16hc8_1053",eW="_switchOption3_16hc8_1075",tW="_switchOption4_16hc8_1099",aW="_switchStatesBig1_16hc8_1119",oW="_manchesterUnited13_16hc8_1133",sW="_homeTeamContainer1_16hc8_1143",nW="_scoreContainer2_16hc8_1157",iW="_matchContainer2_16hc8_1185",rW="_manchesterUnited14_16hc8_1205",lW="_sliderMatchesInner_16hc8_1219",cW="_rectangleIcon_16hc8_1239",dW="_sliderMatches1_16hc8_1259",mW="_containerData_16hc8_1275",pW="_headerSeccionAlineaciones2_16hc8_1303",hW="_headerSeccionAlineaciones_16hc8_1053",gW="_headerSeccionAlineaciones21200_16hc8_1351",yW="_headerSeccionAlineaciones1540_16hc8_1357",uW="_headerSeccionAlineaciones2540_16hc8_1365",fW={selectoritem:QU,selectoritem2:eG,gscheaderlineup:tG,anNoEstn:aG,groupsLeague:oG,jugadores:sG,switchOption:nG,jugadores1:iG,switchOption1:rG,switchStatesBig:lG,groupsLeagueParent:cG,imgHomeTeamIcon:dG,imgHomeTeamWrapper:mG,teamContainer:pG,name:hG,homeTeamContainer:gG,div:yG,titleSession:uG,scoreContainer:fG,scoreContainerWrapper:_G,teamContainer1:bG,awayTeamContainer:wG,matchContainer:CG,sliderMatchesChild:kG,manchesterUnited:SG,sliderMatchesItem:EG,sliderMatches:NG,sortIcon:$G,filtros:BG,sortParent:xG,shapeIcon:VG,btnFilter:IG,btnFilter1:AG,btnFilterParent:OG,backArrowIcon:TG,teamContainer2:zG,homeTeam:FG,div4:RG,finalScore:PG,manchesterUnited1:DG,scoreContainer1:LG,match:jG,manchesterUnited2:vG,btnDetails:MG,matchContainer1:HG,goalChild:UG,goal:GG,manchesterUnited3:WG,minuteEvent:qG,yellowCard:JG,awayTeamEvents:XG,rectangle:ZG,homeTeamEvents:YG,totalEvents:KG,headerSeccionAlineaciones1:QG,switchOption3:eW,switchOption4:tW,switchStatesBig1:aW,manchesterUnited13:oW,homeTeamContainer1:sW,scoreContainer2:nW,matchContainer2:iW,manchesterUnited14:rW,sliderMatchesInner:lW,rectangleIcon:cW,sliderMatches1:dW,containerData:mW,headerSeccionAlineaciones2:pW,headerSeccionAlineaciones:hW,headerSeccionAlineaciones21200:gW,headerSeccionAlineaciones1540:yW,headerSeccionAlineaciones2540:uW},_W={components:{GSCCarousel:gr,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",{season_id:e.season_id,game_id:e.id})}catch(a){throw new Error(a)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const e=this.widthSize;return e<=540?this.$style.headerSeccionAlineaciones2540:e<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{remplazarMxJor(e){return e.replace("M","JOR ")},changeCarouselItem(e){this.$emit("input",{season_id:e.selectedItem.season,game_id:e.selectedItem.game,ht_abrev:e.selectedItem.home_team_abbreviation,at_abrev:e.selectedItem.away_team_abbreviation}),this.selectedOption=e.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)}}},bW=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),wW=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),CW=["src"],kW=["src"],SW=["src"],EW=["src"],NW=["src"],$W=["src"];function BW(e,a,o,s,n,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.gscheaderlineup)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones1Class),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[bW,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),wW],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,CW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleSession)},t.toDisplayString(o.gameInfo.season_name!==void 0?o.gameInfo.season_name+" | "+i.remplazarMxJor(o.gameInfo.matchday_abbreviation)+" | "+o.gameInfo.home_team_abbreviation+" - "+o.gameInfo.away_team_abbreviation:""),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,kW)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches)},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnFilterParent)},[t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Dm},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Filtros",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2),t.createElementVNode("button",{class:t.normalizeClass(e.$style.btnFilter1),id:"btn-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.sortParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"Jornada",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtros)},"2",2)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.shapeIcon),alt:"",src:Ks},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.match)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:m_},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,SW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[o.teamActive=="home"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Ganado ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Perdido ")],64)):t.createCommentVNode("",!0),Object.visiting_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode(" Empatado ")],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeam)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer2)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,EW),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:p_},null,2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDetails)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(i.headerSeccionAlineaciones2Class),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig1),id:"switch-lineup"},null,2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited13)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,NW)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer2)},[Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div)},"-",2),Object.keys(o.gameInfo).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div)},t.toDisplayString(o.gameInfo.score[1]),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,$W)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const xW={$style:fW},VW=bt(_W,[["render",BW],["__cssModules",xW]]),IW="_anNoEstn_j98j7_139",AW="_groupsLeague_j98j7_145",OW="_historicas_j98j7_153",TW="_switchOption_j98j7_163",zW="_switchOption1_j98j7_183",FW="_probables_j98j7_203",RW="_switchOption2_j98j7_213",PW="_switchStatesBig_j98j7_237",DW="_groupsLeagueParent_j98j7_255",LW="_imgHomeTeamIcon_j98j7_273",jW="_imgHomeTeamWrapper_j98j7_285",vW="_teamContainer_j98j7_309",MW="_name_j98j7_333",HW="_jor_j98j7_345",UW="_jorParent_j98j7_357",GW="_shapeIcon_j98j7_373",WW="_frameParent_j98j7_383",qW="_manchesterUnited_j98j7_413",JW="_necaxaIcon_j98j7_435",XW="_manchesterUnited1_j98j7_447",ZW="_team_j98j7_309",YW="_homeTeamContainer_j98j7_475",KW="_div1_j98j7_495",QW="_scoreContainer_j98j7_503",eq="_scoreContainerWrapper_j98j7_525",tq="_team1_j98j7_549",aq="_name1_j98j7_563",oq="_teamContainer1_j98j7_577",sq="_awayTeamContainer_j98j7_601",nq="_matchContainer_j98j7_623",iq="_goalChild_j98j7_641",rq="_goal_j98j7_641",lq="_manchesterUnited4_j98j7_667",cq="_minuteEvent_j98j7_681",dq="_yellowCard_j98j7_695",mq="_awayTeamEvents_j98j7_709",pq="_rectangle_j98j7_723",hq="_homeTeamEvents_j98j7_737",gq="_totalEvents_j98j7_753",yq="_headerSeccionAlineaciones1_j98j7_769",uq="_homeTeamContainer1_j98j7_789",fq="_awayTeamContainer1_j98j7_813",_q="_headerSeccionAlineaciones2_j98j7_837",bq="_jugadores_j98j7_857",wq="_switchOption6_j98j7_869",Cq="_switchOption8_j98j7_889",kq="_switchStatesBig2_j98j7_913",Sq="_manchesterUnited28_j98j7_927",Eq="_homeTeamContainer2_j98j7_935",Nq="_matchContainer2_j98j7_949",$q="_manchesterUnited29_j98j7_971",Bq="_sliderMatchesChild_j98j7_985",xq="_sliderMatchesItem_j98j7_1005",Vq="_sliderMatches_j98j7_985",Iq="_jorParent2_j98j7_1045",Aq="_filterMatchday_j98j7_1059",Oq="_necaxaIcon4_j98j7_1081",Tq="_team4_j98j7_1093",zq="_filterMatchdayParent_j98j7_1113",Fq="_filterMatchday1_j98j7_1127",Rq="_teamParent_j98j7_1157",Pq="_filtersContainer_j98j7_1177",Dq="_containerData_j98j7_1195",Lq="_headerSeccionAlineaciones3_j98j7_1223",jq="_headerSeccionAlineaciones_j98j7_769",vq={anNoEstn:IW,groupsLeague:AW,historicas:OW,switchOption:TW,switchOption1:zW,probables:FW,switchOption2:RW,switchStatesBig:PW,groupsLeagueParent:DW,imgHomeTeamIcon:LW,imgHomeTeamWrapper:jW,teamContainer:vW,name:MW,jor:HW,jorParent:UW,shapeIcon:GW,frameParent:WW,manchesterUnited:qW,necaxaIcon:JW,manchesterUnited1:XW,team:ZW,homeTeamContainer:YW,div1:KW,scoreContainer:QW,scoreContainerWrapper:eq,team1:tq,name1:aq,teamContainer1:oq,awayTeamContainer:sq,matchContainer:nq,goalChild:iq,goal:rq,manchesterUnited4:lq,minuteEvent:cq,yellowCard:dq,awayTeamEvents:mq,rectangle:pq,homeTeamEvents:hq,totalEvents:gq,headerSeccionAlineaciones1:yq,homeTeamContainer1:uq,awayTeamContainer1:fq,headerSeccionAlineaciones2:_q,jugadores:bq,switchOption6:wq,switchOption8:Cq,switchStatesBig2:kq,manchesterUnited28:Sq,homeTeamContainer2:Eq,matchContainer2:Nq,manchesterUnited29:$q,sliderMatchesChild:Bq,sliderMatchesItem:xq,sliderMatches:Vq,jorParent2:Iq,filterMatchday:Aq,necaxaIcon4:Oq,team4:Tq,filterMatchdayParent:zq,filterMatchday1:Fq,teamParent:Rq,filtersContainer:Pq,containerData:Dq,headerSeccionAlineaciones3:Lq,headerSeccionAlineaciones:jq},Mq={components:{GSCDropdown:Pm,GscSwitchComponent:Zs},props:{optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(e){try{this.$emit("input",e)}catch(a){throw new Error(a)}}}},methods:{clickOnSelectOption(e){this.$emit("clickOnSelectOption",e)},changeDropdownVisit(e){const a=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].away_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][a].home_team+".png",this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][a])},changeDropdownLocal(e){const a=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(o=>o.matchday_id===e.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team_abbreviation?"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].home_team+".png":"https://az755631.vo.msecnd.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][a].away_team+".png",this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][a])}}},Hq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Uq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Gq=["src"],Wq={class:"selector-tournaments"},qq=["src"],Jq=["src"],Xq={class:"selector-tournaments"},Zq=["src"],Yq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Kq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Qq=["src"],eJ={class:"selector-tournaments"},tJ=["src"],aJ=["src"],oJ={class:"selector-tournaments"},sJ=["src"],nJ=["src"],iJ=["src"],rJ={class:"selector-tournaments"},lJ=["src"],cJ=["src"],dJ={class:"selector-tournaments"};function mJ(e,a,o,s,n,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCDropdown");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones1),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Hq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Uq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Gq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Wq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,qq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainerWrapper)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"-",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div1)},"2",2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createVNode(c,{class:t.normalizeClass(e.$style.frameParent),items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",Xq,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name1)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,Zq)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones2),id:"header-desktop"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeagueParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.groupsLeague)},[Yq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Kq],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,Qq)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",eJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,tJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalHomeAbrev),3)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.awayTeamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(n.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,aJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.frameParent)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",oJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,sJ)],2)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.headerSeccionAlineaciones3),id:"header-mobile"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.switchStatesBig2),id:"switch-lineup"},[t.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:o.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:i.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerData)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited28)},"Alineación utilizada en:",2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.matchContainer2),id:"match-container"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.home_team+".png"},null,10,nJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.home_team_abbreviation),3)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.homeTeamContainer2)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.name)},t.toDisplayString(o.gameInfo.away_team_abbreviation),3),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.imgHomeTeamWrapper)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+o.gameInfo.away_team+".png"},null,10,iJ)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filtersContainer)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchdayParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.home_team_abbreviation],onInput:i.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",rJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.team4)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,lJ)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamParent)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.team1)},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,cJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},"vs",2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.filterMatchday1)},[t.createVNode(c,{items:o.matchdaysDefault[o.gameInfo.away_team_abbreviation],onInput:i.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:t.withCtx(h=>[t.createElementVNode("div",dJ,t.toDisplayString(h.selectedItem.name),1)]),availableItem:t.withCtx(({item:h})=>[t.createElementVNode("div",null,t.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const pJ={$style:vq},hJ=bt(Mq,[["render",mJ],["__cssModules",pJ]]),h_="/line.png";let g_=null;const gJ={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:Pj,HeaderPlayerHistorico:hM,HeaderPlayerRecientes:KU,HeaderPlayerProbables:hJ,HeaderPlayerPostmatch:VW},data(){return{selectOptMenuheader:"Historicos",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,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}},computed:{goalcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"goal_card_div440":e<=650?"goal_card_div650":e<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"yellowred_card_div440":e<=650?"yellowred_card_div650":e<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const e=this.gamesContainerWidth;return e<=440?"red_card_div440":e<=650?"red_card_div650":e<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const e=this.gamesContainerWidth;return e<=440?"yellow_card_div440":e<=650?"yellow_card_div650":e<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-chamge-player-item440":e<=650?"info-chamge-player-item650":e<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const e=this.gamesContainerWidth;return e<=440?"info-name-player-item440":e<=650?"info-name-player-item650":e<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const e=this.gamesContainerWidth;return e<=400?"info-player-item400":e<=440?"info-player-item440":e<=650?"info-player-item650":e<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const e=this.gamesContainerWidth;return e<=440?"num-Player440":e<=540?"num-Player540":e<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const e=this.gamesContainerWidth;return e<=440?"jerseyitemplayer440":e<=540?"jerseyitemplayer540":e<=650?"jerseyitemplayer650":e<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},canchacontainerClass(){const e=this.gamesContainerWidth;return e<=300?"cancha-container300":e<=325?"cancha-container325":e<=350?"cancha-container350":e<=440?"cancha-container440":e<=540?"cancha-container540":e<=740?"cancha-container740":e<=820?"cancha-container820":e<=840?"cancha-container840":e<=940?"cancha-container940":e<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const e=this.gamesContainerWidth;return e<=300?"field-container300":e<=380?"field-container380":e<=440?"field-container440":e<=540?"field-container540":e<=740?"field-container740":"field-container"},notificationnolineupsClass(){const e=this.gamesContainerWidth;return e<=300?"notification-no-lineups300":e<=370?"notification-no-lineups370":e<=400?"notification-no-lineups400":e<=460?"notification-no-lineups460":e<=500?"notification-no-lineups500":e<=530?"notification-no-lineups530":e<=740?"notification-no-lineups740":e<=768?"notification-no-lineups768":e<=830?"notification-no-lineups830":e<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const e=this.gamesContainerWidth;return e<=300?"container-no-lineups300":e<=350?"container-no-lineups350":e<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const e=this.gamesContainerWidth;return e<=740?"gsc-lineups-container680":e<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontainerhome680":e<=768?"gsclineupscontainerhome768":e<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const e=this.gamesContainerWidth;return e<=740?"gsclineupscontaineraway680":e<=768?"gsclineupscontaineraway768":e<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(e){throw new Error(e)}},watch:{selectOptMenuheader:{immediate:!0,async handler(e,a){e!=a&&this.selectedOption!=="Postmatch"&&(e==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game),e==="Recientes"&&(this.keyUpdateRecientes+=1,await this.getLineUp(this.gamesRecientes[this.gameInfoheader.home_team_abbreviation][0].id)))}},"$socket.connected":{immediate:!0,handler(e){e&&this.getDataSocket()}},game:{immediate:!0,handler:async function(e){e&&(this.cleaneData(),await this.gameDataInfo(e),await this.getHeaderInfo(e),this.selectedOption=="Postmatch"?await this.getLineUp(e.game_id):this.selectOptMenuheader=="Historicos"&&await this.getLineUp(this.gamesHistoric[0].game))}}},sockets:{new_bench(e,a){if(a[this.home_team_id]){this.playersHome=this.playersHome.filter(function(f){return!f.isbench});for(let f=0;f<a[this.home_team_id].length;f++)if(!a[this.home_team_id][f].isTitular){this.subsTitle=!0;var o=a[this.home_team_id][f].playerName.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=this.dataPlayersHome.findIndex(_=>_.player_id==a[this.home_team_id][f].playerID);this.playersHome.push({played:!1,name:a[this.home_team_id][f].playerName,position:h!=-1?this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.home_team_id][f].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.home_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.home_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.home_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}if(a[this.away_team_id]){this.playersAway=this.playersAway.filter(function(f){return!f.isbench});for(let f=0;f<a[this.away_team_id].length;f++)if(!a[this.away_team_id][f].isTitular){this.subsTitle=!0;var d=a[this.away_team_id][f].playerName.split(","),l=d[0].split(" "),m=o[1].trim().split(" "),p="";l.length==2||l.length==1?l[0].length<4?p=l[0]+" "+l[1]:p=l[0]:l.length==3?p=l[0]+" "+l[1]:l.length==4&&(p=l[1]+" "+l[2]+" "+l[3]);var y=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.length-2].charAt(0):"";p=p.replace(",","");var g=y+". "+p,u=this.dataPlayersAway.findIndex(_=>_.player_id==a[this.away_team_id][f].playerID);this.playersAway.push({played:!1,name:a[this.away_team_id][f].playerName,position:u!=-1?this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a[this.away_team_id][f].playerID+".png",nationality:u!=-1&&this.dataPlayersAway[u].nationality?this.dataPlayersAway[u].nationality.substring(0,3):"",imgNationality:u!=-1?this.dataPlayersAway[u].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:g,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+this.away_team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a[this.away_team_id][f].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:a[this.away_team_id][f].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((f,_)=>f.position_id>_.position_id?1:_.position_id>f.position_id?-1:0)}},new_lineup(e,a){if(a.team_id==a.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=a.home_team.players;for(let b=0;b<a.data.length;b++){this.home_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","home",0);var o=a.data[b].player_name.split(","),s=o[0].split(" "),n=o[1].trim().split(" "),i="";s.length==2||s.length==1?s[0].length<4?i=s[0]+" "+s[1]:i=s[0]:s.length==3?i=s[0]+" "+s[1]:s.length==4&&(i=s[1]+" "+s[2]+" "+s[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";i=i.replace(",","");var c=r+". "+i,h=a.data[b].x,d=h*50/100,l=a.home_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersHome.push({played:!0,name:a.data[b].player_name,position:l!=-1?this.positions[a.home_team.players[l].position_id-1].name:"",position_id:a.home_team.players[l].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:l!=-1&&a.home_team.players[l].nationality?a.home_team.players[l].nationality.substring(0,3):"",imgNationality:l!=-1?a.home_team.players[l].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:c,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:d*.9,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-2,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=a.away_team.players;for(let b=0;b<a.data.length;b++){this.away_team_id=a.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+a.team_id+"_g.svg","away",0);var m=a.data[b].player_name.split(","),p=m[0].split(" "),y=m[1].trim().split(" "),g="";p.length==2||p.length==1?p[0].length<4?g=p[0]+" "+p[1]:g=p[0]:p.length==3?g=p[0]+" "+p[1]:p.length==4&&(g=p[1]+" "+p[2]+" "+p[3]);var u=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";g=g.replace(",","");var f=u+". "+g,_=a.data[b].x,k=100-(100-_)*50/100;k=k*.9;var w=a.away_team.players.findIndex(E=>E.player_id==a.data[b].player_id);this.playersAway.push({played:!0,name:a.data[b].player_name,position:w!=-1?this.positions[a.away_team.players[w].position_id-1].name:"",position_id:a.away_team.players[w].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+a.data[b].player_id+".png",nationality:w!=-1&&a.away_team.players[w].nationality?a.away_team.players[w].nationality.substring(0,3):"",imgNationality:w!=-1?a.away_team.players[w].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:f,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:a.data[b].jersey_number,positionX:a.data[b].y-13,positionY:k+2,positionXOrigin:a.data[b].y-17,positionYOrigin:a.data[b].x-7,playerId:a.data[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:a.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+a.team_id+".png"}this.playersAway.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}},update_mxm(e,a){var o=-1,s=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(B=>B.idredcards==a.play_id),i=this.playersHome.findIndex(B=>B.idyellowcards==a.play_id),r=this.playersHome.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersHome.length;B++){var c=this.playersHome[B].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,s=B)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,s),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,s),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,s),o!=-1&&this.resetPlayUpdate("Goals","Home",o,s)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(B=>B.idredcards==a.play_id),d=this.playersAway.findIndex(B=>B.idyellowcards==a.play_id),l=this.playersAway.findIndex(B=>B.idSubstitution==a.play_id);for(let B=0;B<this.playersAway.length;B++){var m=this.playersAway[B].idsGoals.findIndex($=>$==a.play_id);m!=-1&&(o=m,s=B)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,s),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,s),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,s),o!=-1&&this.resetPlayUpdate("Goals","Away",o,s)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=a.player_id.split("@"),y=this.playersHome.findIndex(B=>B.playerId==p[0]),g=this.playersHome.findIndex(B=>B.playerId==p[1]);y!=-1&&(this.playersHome[y].idSubstitution=a.play_id,this.playersHome[y].substitutionOut=!0,this.playersHome[y].substitutionMin=a.minute,this.playersHome[y].substitutionDataID=a.team_id+"@"+a.player_id),g!=-1&&(this.playersHome[g].idSubstitution=a.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=a.minute,this.playersHome[g].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var u=a.player_id.split("@"),f=this.playersAway.findIndex(B=>B.playerId==u[0]),_=this.playersAway.findIndex(B=>B.playerId==u[1]);y!=-1&&(this.playersAway[f].idSubstitution=a.play_id,this.playersAway[f].substitutionOut=!0,this.playersAway[f].substitutionMin=a.minute,this.playersAway[f].substitutionDataID=a.team_id+"@"+a.player_id),_!=-1&&(this.playersAway[_].idSubstitution=a.play_id,this.playersAway[_].substitutionIn=!0,this.playersAway[_].substitutionMin=a.minute,this.playersAway[_].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var k=this.playersHome.findIndex(B=>B.playerId==a.player_id);k!=-1&&(this.playersHome[k].goals+=1,this.playersHome[k].goalsMin.push(a.minute),this.playersHome[k].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(B=>B.playerId==a.player_id);w!=-1&&(this.playersAway[w].goals+=1,this.playersAway[w].goalsMin.push(a.minute),this.playersAway[w].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var b=this.playersHome.findIndex(B=>B.playerId==a.player_id);b!=-1&&(this.playersHome[b].yellowcards+=1,this.playersHome[b].yellowcardsMin=a.minute,this.playersHome[b].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var E=this.playersAway.findIndex(B=>B.playerId==a.player_id);E!=-1&&(this.playersAway[E].yellowcards+=1,this.playersAway[E].yellowcardsMin=a.minute,this.playersAway[E].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var x=this.playersHome.findIndex(B=>B.playerId==a.player_id);x!=-1&&(this.playersHome[x].redcards+=1,this.playersHome[x].redcardsMin=a.minute,this.playersHome[x].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(B=>B.playerId==a.player_id);V!=-1&&(this.playersAway[V].redcards+=1,this.playersAway[V].redcardsMin=a.minute,this.playersAway[V].idredcards=a.play_id)}}}},delete_mxm(e,a){if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++)this.playersHome[o].idSubstitution==a.play_id&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionIn=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idSubstitution==a.play_id&&(this.playersAway[o].substitutionOut=!1,this.playersAway[o].substitutionIn=!1,this.playersAway[o].substitutionMin="",this.playersAway[o].substitutionDataID="",this.playersAway[o].idSubstitution=0);if(this.playersHome.length>0)for(let o=0;o<this.playersHome.length;o++){const s=this.playersHome[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(s,1),this.playersHome[o].idsGoals.splice(s,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const s=this.playersAway[o].idsGoals.findIndex(n=>n==a.play_id);s!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(s,1),this.playersAway[o].idsGoals.splice(s,1))}if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idyellowcards==a.play_id&&(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idyellowcards==a.play_id&&(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0);if(this.playersHome.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersHome[o].idredcards==a.play_id&&(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0);if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++)this.playersAway[o].idredcards==a.play_id&&(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)},new_mxm(e,a){if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var o=a.player_id.split("@"),s=this.playersHome.findIndex(g=>g.playerId==o[0]),n=this.playersHome.findIndex(g=>g.playerId==o[1]);s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].substitutionDataID=a.team_id+"@"+a.player_id),n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id)}}else if(this.playersAway.length>0){var i=a.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==i[0]),c=this.playersAway.findIndex(g=>g.playerId==i[1]);s!=-1&&(this.playersAway[r].idSubstitution=a.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=a.minute,this.playersAway[r].substitutionDataID=a.team_id+"@"+a.player_id),c!=-1&&(this.playersAway[c].idSubstitution=a.play_id,this.playersAway[c].substitutionIn=!0,this.playersAway[c].substitutionMin=a.minute,this.playersAway[c].substitutionDataID=a.team_id+"@"+a.player_id)}}if(a.event_type_id==1){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==a.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(a.minute),this.playersHome[h].idsGoals.push(a.play_id))}}else if(this.playersAway.length>0){var d=this.playersAway.findIndex(g=>g.playerId==a.player_id);d!=-1&&(this.playersAway[d].goals+=1,this.playersAway[d].goalsMin.push(a.minute),this.playersAway[d].idsGoals.push(a.play_id))}}if(a.event_type_id==2){if(a.category_id==8){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(g=>g.playerId==a.player_id);l!=-1&&(this.playersHome[l].yellowcards+=1,this.playersHome[l].yellowcardsMin=a.minute,this.playersHome[l].idyellowcards=a.play_id)}}else if(this.playersAway.length>0){var m=this.playersAway.findIndex(g=>g.playerId==a.player_id);m!=-1&&(this.playersAway[m].yellowcards+=1,this.playersAway[m].yellowcardsMin=a.minute,this.playersAway[m].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=a.minute,this.playersHome[p].idredcards=a.play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=a.minute,this.playersAway[y].idredcards=a.play_id)}}}}},methods:{async getLineUpProbablesHome3D(e){try{const w=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!w||!w.data)throw new Error("There is not lineups for this game.");if(w.data.home_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.home_team.players,w.data.home_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.home_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.home_team.team_id+"_g.svg","home",0);var a=w.data.home_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=w.data.home_team.starting_lineup[0].lineup[b].x,h=c*50/100,d=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.home_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.home_team.players[d].position_id-1].name,position_id:w.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.home_team.players[d].nationality?w.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.starting_lineup[0].lineup[b].jersey_number,positionX:w.data.home_team.starting_lineup[0].lineup[b].y-13,positionY:h*.9,positionXOrigin:w.data.home_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.home_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.home_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.home_team.bench){for(let b=0;b<w.data.home_team.bench.length;b++){this.subsTitle=!0;var l=w.data.home_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.home_team.players.findIndex(E=>E.player_id==w.data.home_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.home_team.bench[b].playerName,position:f!=-1?this.positions[w.data.home_team.players[f].position_id-1].name:"",position_id:w.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.home_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.home_team.players[f].nationality?w.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.home_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.home_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.home_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}if(w.data.away_team.team_id==this.gameInfoheader.home_team){this.dataPlayersHome=w.data.away_team.players,w.data.away_team.starting_lineup[0].lineup.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0);for(let b=0;b<w.data.away_team.starting_lineup[0].lineup.length;b++){this.home_team_id=w.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+w.data.away_team.team_id+"_g.svg","home",0);var a=w.data.away_team.starting_lineup[0].lineup[b].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,_=w.data.away_team.starting_lineup[0].lineup[b].x;_=Math.abs(_-100);var h=_*50/100,k=w.data.away_team.starting_lineup[0].lineup[b].y;k=Math.abs(k-100);var d=w.data.away_team.players.findIndex(F=>F.player_id==w.data.away_team.starting_lineup[0].lineup[b].player_id);this.playersHome.push({played:!0,name:w.data.away_team.starting_lineup[0].lineup[b].player_name,position:this.positions[w.data.away_team.players[d].position_id-1].name,position_id:w.data.away_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.starting_lineup[0].lineup[b].player_id+".png",nationality:w.data.away_team.players[d].nationality?w.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:w.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.starting_lineup[0].lineup[b].jersey_number,positionX:k-20,positionY:h*.9,positionXOrigin:w.data.away_team.starting_lineup[0].lineup[b].y-17,positionYOrigin:w.data.away_team.starting_lineup[0].lineup[b].x-2,playerId:w.data.away_team.starting_lineup[0].lineup[b].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:w.data.away_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png"}if(this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0),w.data.away_team.bench){for(let b=0;b<w.data.away_team.bench.length;b++){this.subsTitle=!0;var l=w.data.away_team.bench[b].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=w.data.away_team.players.findIndex(I=>I.player_id==w.data.away_team.bench[b].playerID);this.playersHome.push({played:!1,name:w.data.away_team.bench[b].playerName,position:f!=-1?this.positions[w.data.away_team.players[f].position_id-1].name:"",position_id:w.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+w.data.away_team.bench[b].playerID+".png",nationality:f!=-1&&w.data.away_team.players[f].nationality?w.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?w.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+w.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:w.data.away_team.bench[b].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:w.data.away_team.bench[b].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:w.data.away_team.team_id})}this.playersHome.sort((b,E)=>b.position_id>E.position_id?1:E.position_id>b.position_id?-1:0)}}await this.getMXM(e)}catch(w){return Promise.reject(w)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(e){try{const _=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!_||!_.data)throw new Error("There is not lineups for this game.");if(_.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.home_team.players;for(let k=0;k<_.data.home_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.home_team.team_id+"_g.svg","away",0);var a=_.data.home_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.home_team.starting_lineup[0].lineup[k].x;c=Math.abs(c-100);var h=100-(100-c)*50/100;h=h*.9;var d=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.home_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.home_team.players[d].position_id-1].name,position_id:_.data.home_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.home_team.players[d].nationality?_.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.home_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.home_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.home_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.home_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.home_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.home_team.bench){for(let k=0;k<_.data.home_team.bench.length;k++){this.subsTitle=!0;var l=_.data.home_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.home_team.players.findIndex(w=>w.player_id==_.data.home_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.home_team.bench[k].playerName,position:f!=-1?this.positions[_.data.home_team.players[f].position_id-1].name:"",position_id:_.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.home_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.home_team.players[f].nationality?_.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.home_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.home_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.home_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}if(_.data.away_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=_.data.away_team.players;for(let k=0;k<_.data.away_team.starting_lineup[0].lineup.length;k++){this.away_team_id=_.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+_.data.away_team.team_id+"_g.svg","away",0);var a=_.data.away_team.starting_lineup[0].lineup[k].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=_.data.away_team.starting_lineup[0].lineup[k].x,h=100-(100-c)*50/100;h=h*.9;var d=_.data.away_team.players.findIndex(I=>I.player_id==_.data.away_team.starting_lineup[0].lineup[k].player_id);this.playersAway.push({played:!0,name:_.data.away_team.starting_lineup[0].lineup[k].player_name,position:this.positions[_.data.away_team.players[d].position_id-1].name,position_id:_.data.away_team.players[d].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.starting_lineup[0].lineup[k].player_id+".png",nationality:_.data.away_team.players[d].nationality?_.data.away_team.players[d].nationality.substring(0,3):"",imgNationality:_.data.away_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.starting_lineup[0].lineup[k].jersey_number,positionX:_.data.away_team.starting_lineup[0].lineup[k].y-13,positionY:h,positionXOrigin:_.data.away_team.starting_lineup[0].lineup[k].y-17,positionYOrigin:_.data.away_team.starting_lineup[0].lineup[k].x-7,playerId:_.data.away_team.starting_lineup[0].lineup[k].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:_.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png"}if(this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0),_.data.away_team.bench){for(let k=0;k<_.data.away_team.bench.length;k++){this.subsTitle=!0;var l=_.data.away_team.bench[k].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=_.data.away_team.players.findIndex(z=>z.player_id==_.data.away_team.bench[k].playerID);this.playersAway.push({played:!1,name:_.data.away_team.bench[k].playerName,position:f!=-1?this.positions[_.data.away_team.players[f].position_id-1].name:"",position_id:_.data.away_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+_.data.away_team.bench[k].playerID+".png",nationality:f!=-1&&_.data.away_team.players[f].nationality?_.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?_.data.away_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+_.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:_.data.away_team.bench[k].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:_.data.away_team.bench[k].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:_.data.away_team.team_id})}this.playersAway.sort((k,w)=>k.position_id>w.position_id?1:w.position_id>k.position_id?-1:0)}}await this.getMXM(e)}catch(_){return Promise.reject(_)}},async getLineupProbablesHome(e){this.auxProbablesIDGameHome!=e.id&&(this.auxProbablesIDGameHome=e.id,this.homeTeam.acronym=this.homeTeamAbrev,this.cleaneDataHome(),this.getLineUpProbablesHome3D(e.id))},async getLineupProbablesAway(e){this.auxProbablesIDGameAway!=e.id&&(this.auxProbablesIDGameAway=e.id,this.visitingTeam.acronym=this.awayTeamAbrev,this.cleaneDataAway(),this.getLineUpProbablesAway3D(e.id))},async getLineupProbables(e){var a={season_id:e.season_id,game_id:e.id};this.lastGetGame!=a.game_id&&(this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id},async changeCarouselItem(e){typeof e.game_id<"u"&&e.game_id!=this.gameInfoheader.id&&this.auxHistoricGameID!=e.game_id&&(this.auxHistoricGameID=e.game_id,this.cleaneData(),this.homeTeam.acronym=e.ht_abrev,this.visitingTeam.acronym=e.at_abrev,await this.getLineUp(e.game_id))},async changeCarouselItemRecent(e){if(e.selectedItem){var a={season_id:e.selectedItem.season_id,game_id:e.selectedItem.id};this.lastGetGame!=a.game_id&&(this.homeTeam.acronym=e.selectedItem.home_team_abbreviation,this.visitingTeam.acronym=e.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(a.game_id)),this.lastGetGame=a.game_id}},async getHeaderInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+e.season_id+"/games/"+e.game_id+"/lineups");if(this.gameInfoheader=a.data.game,this.selectedOption!="Postmatch"){for(let o=0;o<a.data.games_historic.length;o++)this.gamesHistoric.push({objgame:a.data.games_historic[o],game:a.data.games_historic[o].id,home_team_abbreviation:a.data.games_historic[o].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[o].away_team_abbreviation,season:a.data.games_historic[o].season_id,description:a.data.games_historic[o].season_name+" | "+this.getRoundH(a.data.games_historic[o].matchday_abbreviation)+" | "+a.data.games_historic[o].home_team_abbreviation+" - "+a.data.games_historic[o].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let o=0;o<a.data.home_team_games_recent.length;o++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[o].matchday_abbreviation),id:a.data.home_team_games_recent[o].matchday_id});for(let o=0;o<a.data.away_team_games_recent.length;o++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[o]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[o].matchday_abbreviation),id:a.data.away_team_games_recent[o].matchday_id})}},getRound(e){let a=e.replace("M","Jornada ");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},getRoundH(e){let a=e.replace("M","J");return a=a.replace("PO1","CFI"),a=a.replace("PO2","CFV"),a=a.replace("PO3","SFI"),a=a.replace("PO4","SFV"),a=a.replace("PO5","FI"),a=a.replace("PO6","FV"),a},clickOnSelectOption(e){this.selectOptMenuheader=e,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(e){const a=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlGames+e.season_id+"/games/"+e.game_id);this.homeTeam=a.data.teams[0],this.homeTeamAbrev=a.data.teams[0].acronym,this.awayTeamAbrev=a.data.teams[1].acronym,this.visitingTeam=a.data.teams[1];const o=a.data.games.find(s=>s.game_id===Number(s.game_id));this.gameForAnalysis=o},cleaneData(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.playersAway=[],this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.uniformAway="",this.uniformAwayG="",this.dataPlayersHome=[],this.dataPlayersAway=[],this.homeTeamLogo="",this.awayTeamLogo="",this.homeTeamName="",this.awayTeamName="",this.home_team_id=0,this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},getDataSocket(){Lo("lineups.game."+this.game.game_id),Lo("mxm.game."+this.game.game_id),Lo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,s){if(e=="Substitution")if(a=="Home"){var n=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==n[1]),r=this.playersHome.findIndex(l=>l.playerId==n[2]);i!=-1&&(this.playersHome[i].substitutionOut=!1,this.playersHome[i].substitutionMin="",this.playersHome[i].substitutionDataID="",this.playersHome[i].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var c=this.playersAway[o].substitutionDataID.split("@"),h=this.playersAway.findIndex(l=>l.playerId==c[1]),d=this.playersAway.findIndex(l=>l.playerId==c[2]);i!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),d!=-1&&(this.playersAway[d].substitutionIn=!1,this.playersAway[d].substitutionMin="",this.playersAway[d].substitutionDataID="",this.playersAway[d].idSubstitution=0)}e=="YellowCard"&&(a=="Home"?(this.playersHome[o].yellowcards=0,this.playersHome[o].yellowcardsMin=0,this.playersHome[o].idyellowcards=0):(this.playersAway[o].yellowcards=0,this.playersAway[o].yellowcardsMin=0,this.playersAway[o].idyellowcards=0)),e=="RedCard"&&(a=="Home"?(this.playersHome[o].redcards=0,this.playersHome[o].redcardsMin=0,this.playersHome[o].idredcards=0):(this.playersAway[o].redcards=0,this.playersAway[o].redcardsMin=0,this.playersAway[o].idredcards=0)),e=="Goals"&&(a=="Home"?(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(o,1),this.playersHome[s].idsGoals.splice(o,1)):(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(o,1),this.playersAway[s].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)g_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),g_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const y=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<this.playersHome.length;g++)this.playersHome[g].goalsMin=[],this.playersHome[g].idsGoals=[];for(let g=0;g<this.playersAway.length;g++)this.playersAway[g].goalsMin=[],this.playersAway[g].idsGoals=[];for(let g=0;g<y.data.plays.length;g++){if(y.data.plays[g].event_type_id==3){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=y.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),s=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=y.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=y.data.plays[g].minute,this.playersHome[o].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),s!=-1&&(this.playersHome[s].idSubstitution=y.data.plays[g].play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=y.data.plays[g].minute,this.playersHome[s].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}else if(this.playersAway.length>0){var n=y.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==n[0]),r=this.playersAway.findIndex(u=>u.playerId==n[1]);i!=-1&&(this.playersAway[i].idSubstitution=y.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=y.data.plays[g].minute,this.playersAway[i].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=y.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=y.data.plays[g].minute,this.playersAway[r].substitutionDataID=y.data.plays[g].team_id+"@"+y.data.plays[g].player_id)}}if(y.data.plays[g].event_type_id==1){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(y.data.plays[g].minute),this.playersHome[c].idsGoals.push(y.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(y.data.plays[g].minute),this.playersAway[h].idsGoals.push(y.data.plays[g].play_id))}}if(y.data.plays[g].event_type_id==2){if(y.data.plays[g].category_id==8){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=y.data.plays[g].minute,this.playersHome[d].idyellowcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=y.data.plays[g].minute,this.playersAway[l].idyellowcards=y.data.plays[g].play_id)}}if(y.data.plays[g].category_id==9){if(y.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var m=this.playersHome.findIndex(u=>u.playerId==y.data.plays[g].player_id);m!=-1&&(this.playersHome[m].redcards+=1,this.playersHome[m].redcardsMin=y.data.plays[g].minute,this.playersHome[m].idredcards=y.data.plays[g].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(u=>u.playerId==y.data.plays[g].player_id);p!=-1&&(this.playersAway[p].redcards+=1,this.playersAway[p].redcardsMin=y.data.plays[g].minute,this.playersAway[p].idredcards=y.data.plays[g].play_id)}}}}}catch(y){return Promise.reject(y)}},async getLineUp(e){if(e!=null&&(Jf(),!this.playersHome.length&&!this.playersHome.length))try{const C=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.url+e);if(!C||!C.data)throw new Error("There is not lineups for this game.");this.cleaneData(),this.dataPlayersHome=C.data.home_team.players,this.dataPlayersAway=C.data.away_team.players,C.data.home_team.starting_lineup[0].lineup.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0);for(let N=0;N<C.data.home_team.starting_lineup[0].lineup.length;N++){this.home_team_id=C.data.home_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+".svg","home",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.home_team.team_id+"_g.svg","home",0);var a=C.data.home_team.starting_lineup[0].lineup[N].player_name.split(","),o=a[0].split(" "),s=a[1].trim().split(" "),n="";o.length==2||o.length==1?o[0].length<4?n=o[0]+" "+o[1]:n=o[0]:o.length==3?n=o[0]+" "+o[1]:o.length==4&&(n=o[1]+" "+o[2]+" "+o[3]);var i=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.length-2].charAt(0):"";n=n.replace(",","");var r=i+". "+n,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.starting_lineup[0].lineup[N].player_id);this.playersHome.push({played:!0,name:C.data.home_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.home_team.players[d].position_id-1].name,position_id:C.data.home_team.players[d].position_id-1,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.home_team.players[d].nationality?C.data.home_team.players[d].nationality.substring(0,3):"",imgNationality:C.data.home_team.players[d].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.home_team.starting_lineup[0].lineup[N].y-13,positionY:h*.9,positionXOrigin:C.data.home_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.home_team.starting_lineup[0].lineup[N].x-2,playerId:C.data.home_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.home_team.team_id}),this.homeTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png"}if(this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.home_team.bench){for(let N=0;N<C.data.home_team.bench.length;N++){this.subsTitle=!0;var l=C.data.home_team.bench[N].playerName.split(","),m=l[0].split(" "),p=l[1].trim().split(" "),y="";m.length==2||m.length==1?m[0].length<4?y=m[0]+" "+m[1]:y=m[0]:m.length==3?y=m[0]+" "+m[1]:m.length==4&&(y=m[1]+" "+m[2]+" "+m[3]);var g=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var u=g+". "+y,f=C.data.home_team.players.findIndex(R=>R.player_id==C.data.home_team.bench[N].playerID);this.playersHome.push({played:!1,name:C.data.home_team.bench[N].playerName,position:f!=-1?this.positions[C.data.home_team.players[f].position_id-1].name:"",position_id:C.data.home_team.players[f].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.home_team.bench[N].playerID+".png",nationality:f!=-1&&C.data.home_team.players[f].nationality?C.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:f!=-1?C.data.home_team.players[f].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.home_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.home_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.home_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.home_team.team_id})}this.playersHome.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}for(let N=0;N<C.data.away_team.starting_lineup[0].lineup.length;N++){this.away_team_id=C.data.away_team.team_id,this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+".svg","away",1),this.imageExists("https://az755631.vo.msecnd.net/jersey-teams/"+C.data.away_team.team_id+"_g.svg","away",0);var _=C.data.away_team.starting_lineup[0].lineup[N].player_name.split(","),k=_[0].split(" "),w=_[1].trim().split(" "),b="";k.length==2||k.length==1?k[0].length<4?b=k[0]+" "+k[1]:b=k[0]:k.length==3?b=k[0]+" "+k[1]:k.length==4&&(b=k[1]+" "+k[2]+" "+k[3]);var E=w[s.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var x=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,B=100-(100-V)*50/100;B=B*.9;var $=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.starting_lineup[0].lineup[N].player_id);this.playersAway.push({played:!0,name:C.data.away_team.starting_lineup[0].lineup[N].player_name,position:this.positions[C.data.away_team.players[$].position_id-1].name,position_id:C.data.away_team.players[$].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.starting_lineup[0].lineup[N].player_id+".png",nationality:C.data.away_team.players[$].nationality?C.data.away_team.players[$].nationality.substring(0,3):"",imgNationality:C.data.away_team.players[$].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:x,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.starting_lineup[0].lineup[N].jersey_number,positionX:C.data.away_team.starting_lineup[0].lineup[N].y-13,positionY:B,positionXOrigin:C.data.away_team.starting_lineup[0].lineup[N].y-17,positionYOrigin:C.data.away_team.starting_lineup[0].lineup[N].x-7,playerId:C.data.away_team.starting_lineup[0].lineup[N].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:C.data.away_team.team_id}),this.awayTeamLogo="https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png"}if(this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0),C.data.away_team.bench){for(let N=0;N<C.data.away_team.bench.length;N++){this.subsTitle=!0;var z=C.data.away_team.bench[N].playerName.split(","),A=z[0].split(" "),I=z[1].trim().split(" "),F="";A.length==2||A.length==1?A[0].length<4?F=A[0]+" "+A[1]:F=A[0]:A.length==3?F=A[0]+" "+A[1]:A.length==4&&(F=A[1]+" "+A[2]+" "+A[3]);var ee=I[I.length-1]!=""?I[I.length-1].charAt(0):I[I.length-2]?I[I.length-2].charAt(0):"";F=F.replace(",","");var re=ee+". "+F,Q=C.data.away_team.players.findIndex(R=>R.player_id==C.data.away_team.bench[N].playerID);this.playersAway.push({played:!1,name:C.data.away_team.bench[N].playerName,position:Q!=-1?this.positions[C.data.away_team.players[Q].position_id-1].name:"",position_id:C.data.away_team.players[Q].position_id,imgPlayer:"https://az755631.vo.msecnd.net/players-profile/"+C.data.away_team.bench[N].playerID+".png",nationality:Q!=-1&&C.data.away_team.players[Q].nationality?C.data.away_team.players[Q].nationality.substring(0,3):"",imgNationality:Q!=-1?C.data.away_team.players[Q].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:re,imgTeam:"https://az755631.vo.msecnd.net/teams-80/"+C.data.away_team.team_id+".png",substitutionMin:"",substitutionDataID:"",shirt_number:C.data.away_team.bench[N].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:C.data.away_team.bench[N].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:C.data.away_team.team_id})}this.playersAway.sort((N,R)=>N.position_id>R.position_id?1:R.position_id>N.position_id?-1:0)}await this.getMXM(e)}catch(C){return Promise.reject(C)}},closeChange(){this.subsActive=!1},imageExists(e,a,o){var s=new XMLHttpRequest,n=0;a=="away"?o==1?this.uniformAway==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformAwayG==""&&(s.open("HEAD",e,!1),s.send(),n=1):o==1?this.uniformHome==""&&(s.open("HEAD",e,!1),s.send(),n=1):this.uniformHomeG==""&&(s.open("HEAD",e,!1),s.send(),n=1),n==1&&(s.status==200?a=="away"?o==1?this.uniformAway="url("+e+")":this.uniformAwayG="url("+e+")":o==1?this.uniformHome="url("+e+")":this.uniformHomeG="url("+e+")":a=="away"?o==1?this.uniformAway="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://az755631.vo.msecnd.net/jersey-teams/default_visita_g.svg)":o==1?this.uniformHome="url(https://az755631.vo.msecnd.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://az755631.vo.msecnd.net/jersey-teams/default_local_g.svg)")},viewChange(e){var a=e.split("@");if(a[0]==this.home_team_id){var o=this.playersHome.findIndex(r=>r.playerId==a[1]),s=this.playersHome.findIndex(r=>r.playerId==a[2]);o!=-1?(this.substitutionModal.min=this.playersHome[o].substitutionMin,this.substitutionModal.in.name=this.playersHome[o].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[o].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[o].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[o].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[o].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),s!=-1?(this.substitutionModal.out.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[s].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[s].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),i!=-1?(this.substitutionModal.out.name=this.playersAway[i].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[i].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[i].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[i].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[i].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(e){this.teamActive=e}}},yJ={class:"size-browser-class"},uJ={class:"lineup-players is-centered"},fJ={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},_J={class:"modal-substitutions__substitution-container"},bJ={class:"modal-substitutions__substitution-container__header"},wJ={style:{"margin-left":"32px"}},CJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),kJ=[CJ],SJ={class:"modal-substitutions__substitution-container__players-container"},EJ={class:"substitution-player-data-container"},NJ={class:"substitution-player-data-container__img-player"},$J=["src"],BJ={class:"substitution-player-data-container__img-player__team"},xJ=["src"],VJ={class:"substitution-player-data-container__name-player"},IJ={class:"substitution-player-data-container__position-player"},AJ={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},OJ={key:0,class:"substitution-player-data-container__shirt-player__circle"},TJ={key:1},zJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),FJ=[zJ],RJ={class:"substitution-player-data-container__substitution-player"},PJ={class:"substitution-indicator nomargin"},DJ=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),LJ={class:"substitution-player-data-container__center"},jJ=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),vJ={class:"substitution-player-data-container__minute"},MJ={class:"substitution-player-data-container"},HJ={class:"substitution-player-data-container__img-player"},UJ=["src"],GJ={class:"substitution-player-data-container__img-player__team"},WJ=["src"],qJ={class:"substitution-player-data-container__name-player"},JJ={class:"substitution-player-data-container__position-player"},XJ={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},ZJ={key:0},YJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),KJ=[YJ],QJ={key:1,class:"substitution-player-data-container__shirt-player__circle"},eX={class:"substitution-player-data-container__substitution-player"},tX={class:"substitution-indicator nomargin"},aX=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),oX=["onClick"],sX=t.createElementVNode("img",{src:h_},null,-1),nX=[sX],iX=["onClick"],rX=t.createElementVNode("img",{src:h_},null,-1),lX=[rX],cX={key:0,class:"cont-lineup-gsc-componente"},dX={class:"shield-team-cont homecolor"},mX=["src"],pX={class:"shield-team-cont awaycolor"},hX=["src"],gX={key:0,class:"header-lineup-shield-team home"},yX={class:"shield-team-cont homecolor"},uX=["src"],fX={class:"header-lineup-shield-team-wrapper"},_X={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},bX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),wX={key:0,class:"header-lineup-shield-team away"},CX={class:"shield-team-cont awaycolor"},kX=["src"],SX={class:"header-lineup-shield-team-wrapper"},EX={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},NX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),$X=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),BX=[$X],xX=t.createElementVNode("br",null,null,-1);function VX(e,a,o,s,n,i){const r=t.resolveComponent("HeaderPlayerPostmatch"),c=t.resolveComponent("HeaderPlayerHistorico"),h=t.resolveComponent("HeaderPlayerRecientes"),d=t.resolveComponent("HeaderPlayerProbables"),l=t.resolveComponent("CardPlayer");return t.openBlock(),t.createElementBlock("div",null,[t.createElementVNode("div",yJ,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",uJ,[t.createElementVNode("div",fJ,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[n.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":n.matchdaysPerTeam,"game-historic":n.gamesHistoric,"game-recientes":Object.keys(n.gameInfoheader).length>0?n.gamesRecientes[n.gameInfoheader.home_team_abbreviation].length+n.gamesRecientes[n.gameInfoheader.away_team_abbreviation].length:0},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},key:n.keyUpdateRecientes,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,"player-home":n.playersHome,"player-away":n.playersAway,"matchdays-default":n.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),n.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":n.matchdaysPerTeam,"option-selected":n.selectOptMenuheader,"width-size":n.gamesContainerWidth,"game-info":n.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":n.gamesRecientes},null,8,["onClickOnSelectOption","matchdays-default","option-selected","width-size","game-info","onChangehome","onChangeaway","game-recientes"])):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",n.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",_J,[t.createElementVNode("div",bJ,[t.createElementVNode("span",wJ,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=m=>i.closeChange())},kJ)])]),t.createElementVNode("div",SJ,[t.createElementVNode("div",EJ,[t.createElementVNode("div",NJ,[n.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,$J)):t.createCommentVNode("",!0),t.createElementVNode("div",BJ,[n.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,xJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",VJ,t.toDisplayString(n.substitutionModal.in.name),1),t.createElementVNode("div",IJ,t.toDisplayString(n.substitutionModal.in.position),1),t.createElementVNode("div",AJ,[n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",OJ,t.toDisplayString(n.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),n.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",TJ,FJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",RJ,[t.createElementVNode("template",null,[t.createElementVNode("div",PJ,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),DJ])])])]),t.createElementVNode("div",LJ,[jJ,t.createElementVNode("div",vJ,t.toDisplayString(n.substitutionModal.min)+"'",1)]),t.createElementVNode("div",MJ,[t.createElementVNode("div",HJ,[n.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,UJ)):t.createCommentVNode("",!0),t.createElementVNode("div",GJ,[n.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,WJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+n.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",qJ,t.toDisplayString(n.substitutionModal.out.name),1),t.createElementVNode("div",JJ,t.toDisplayString(n.substitutionModal.out.position),1),t.createElementVNode("div",XJ,[n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",ZJ,KJ)):t.createCommentVNode("",!0),n.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",QJ,t.toDisplayString(n.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",eX,[t.createElementVNode("template",null,[t.createElementVNode("div",tX,[t.createElementVNode("div",null,t.toDisplayString(n.substitutionModal.min)+"'",1),aX])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.notificationnolineupsClass])}," Las alineaciones estarán disponibles unos minutos antes de que inicie el partido. ",2)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_home"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="home"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},nX,10,oX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"jersey_away"},[m.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,n.gamesContainerWidth<740?n.teamActive=="away"?"active":"disabled":"",n.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(n.movil?{top:m.positionXOrigin+"%",left:m.positionYOrigin+"%"}:{top:m.positionX+"%",left:m.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(m.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,m.yellowcards>0&&m.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,m.yellowcards==0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,m.yellowcards>0&&m.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,m.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),t.createElementVNode("div",{class:t.normalizeClass(i.infoplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.infonameplayeritemClass)},[t.createElementVNode("div",{class:t.normalizeClass(["num-item-new-away",[n.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(m.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(m.abrevNamePlayer),1)],2),m.substitutionIn||m.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:y=>i.viewChange(m.substitutionDataID)},lX,10,iX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cX,[t.createElementVNode("div",{class:t.normalizeClass(i.containerlineupsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.menuTeamsClass)},[t.createElementVNode("div",{class:"header-lineup-shield-team home",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=m=>i.viewLineupTeam("home"))},[t.createElementVNode("div",dX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,mX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},n.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=m=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",pX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,hX)):t.createCommentVNode("",!0)])],4)],2),n.teamActive=="home"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",gX,[t.createElementVNode("div",yX,[n.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,uX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(n.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",fX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",_X,[bX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersHome,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,position:i.positionClass,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),n.teamActive=="away"||n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[n.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wX,[t.createElementVNode("div",null,t.toDisplayString(n.visitingTeam.acronym),1),t.createElementVNode("div",CX,[n.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:n.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kX)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",SX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EX,[NX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n.playersAway,(m,p)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:p+"line_away"},[m.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:2,position:i.positionClass2,data:{color:p%2==0?"#0d1d29":"#172531",img:m.imgPlayer,name:m.name,position:m.position,nation:m.imgNationality,shirt:m.shirt_number,yellowcard:m.yellowcards,redcard:m.redcards,yellowcardmin:m.yellowcardsMin,redcardmin:m.redcardsMin,goalsMin:m.goalsMin,substitutionIn:m.substitutionIn,substitutionOut:m.substitutionOut,substitutionMin:m.substitutionMin}},null,8,["position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&i.numPlayer==0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containernolineups)},[t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},BX,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),xX,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const IX=bt(gJ,[["render",VX]]),AX={components:{GSCLineups2D:KL,GSCLineups3D:IX},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{}};function OX(e,a,o,s,n,i){const r=t.resolveComponent("GSCLineups2D"),c=t.resolveComponent("GSCLineups3D");return t.openBlock(),t.createElementBlock("div",null,[o.type=="2D"?(t.openBlock(),t.createBlock(r,{key:0,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0),o.type=="3D"?(t.openBlock(),t.createBlock(c,{key:1,"selected-option":o.selectedOption,game:o.game},null,8,["selected-option","game"])):t.createCommentVNode("",!0)])}const y_=bt(AX,[["render",OX]]),AMe="",OMe="",TX={class:"alineaciones-container"},zX=Fe({__name:"GSCLineupsMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",homeTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/18.png",team_id:10,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://az755631.vo.msecnd.net/teams-80/1.png",team_id:1,provisional_logo:"https://az755631.vo.msecnd.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})}},setup(e){const a=e,o=t.ref(0);return t.watch(()=>a.game,s=>{o.value=s.gameId},{deep:!0,immediate:!0}),(s,n)=>(t.openBlock(),t.createElementBlock("div",TX,[e.game.status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Historicos",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(y_),{key:o.value,type:"3D","selected-option":"Postmatch",game:{game_id:e.game.gameId,season_id:e.game.seasonId,prematch:!1}},null,8,["game"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-1db549f2"]]);function u_(e,a){return function(){return e.apply(a,arguments)}}const{toString:FX}=Object.prototype,{getPrototypeOf:Lm}=Object,fr=(e=>a=>{const o=FX.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),sa=e=>(e=e.toLowerCase(),a=>fr(a)===e),_r=e=>a=>typeof a===e,{isArray:jo}=Array,Qs=_r("undefined");function RX(e){return e!==null&&!Qs(e)&&e.constructor!==null&&!Qs(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const f_=sa("ArrayBuffer");function PX(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&f_(e.buffer),a}const DX=_r("string"),Vt=_r("function"),__=_r("number"),br=e=>e!==null&&typeof e=="object",LX=e=>e===!0||e===!1,wr=e=>{if(fr(e)!=="object")return!1;const a=Lm(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jX=sa("Date"),vX=sa("File"),MX=sa("Blob"),HX=sa("FileList"),UX=e=>br(e)&&Vt(e.pipe),GX=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Vt(e.append)&&((a=fr(e))==="formdata"||a==="object"&&Vt(e.toString)&&e.toString()==="[object FormData]"))},WX=sa("URLSearchParams"),qX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function en(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let s,n;if(typeof e!="object"&&(e=[e]),jo(e))for(s=0,n=e.length;s<n;s++)a.call(null,e[s],s,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(s=0;s<r;s++)c=i[s],a.call(null,e[c],c,e)}}function b_(e,a){a=a.toLowerCase();const o=Object.keys(e);let s=o.length,n;for(;s-- >0;)if(n=o[s],a===n.toLowerCase())return n;return null}const w_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),C_=e=>!Qs(e)&&e!==w_;function jm(){const{caseless:e}=C_(this)&&this||{},a={},o=(s,n)=>{const i=e&&b_(a,n)||n;wr(a[i])&&wr(s)?a[i]=jm(a[i],s):wr(s)?a[i]=jm({},s):jo(s)?a[i]=s.slice():a[i]=s};for(let s=0,n=arguments.length;s<n;s++)arguments[s]&&en(arguments[s],o);return a}const JX=(e,a,o,{allOwnKeys:s}={})=>(en(a,(n,i)=>{o&&Vt(n)?e[i]=u_(n,o):e[i]=n},{allOwnKeys:s}),e),XX=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),ZX=(e,a,o,s)=>{e.prototype=Object.create(a.prototype,s),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},YX=(e,a,o,s)=>{let n,i,r;const c={};if(a=a||{},e==null)return a;do{for(n=Object.getOwnPropertyNames(e),i=n.length;i-- >0;)r=n[i],(!s||s(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Lm(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},KX=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const s=e.indexOf(a,o);return s!==-1&&s===o},QX=e=>{if(!e)return null;if(jo(e))return e;let a=e.length;if(!__(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},eZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Lm(Uint8Array)),tZ=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=o.next())&&!s.done;){const n=s.value;a.call(e,n[0],n[1])}},aZ=(e,a)=>{let o;const s=[];for(;(o=e.exec(a))!==null;)s.push(o);return s},oZ=sa("HTMLFormElement"),sZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,s){return o.toUpperCase()+s}),k_=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),nZ=sa("RegExp"),S_=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),s={};en(o,(n,i)=>{let r;(r=a(n,i,e))!==!1&&(s[i]=r||n)}),Object.defineProperties(e,s)},iZ=e=>{S_(e,(a,o)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const s=e[o];if(Vt(s)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},rZ=(e,a)=>{const o={},s=n=>{n.forEach(i=>{o[i]=!0})};return jo(e)?s(e):s(String(e).split(a)),o},lZ=()=>{},cZ=(e,a)=>(e=+e,Number.isFinite(e)?e:a),vm="abcdefghijklmnopqrstuvwxyz",E_="0123456789",N_={DIGIT:E_,ALPHA:vm,ALPHA_DIGIT:vm+vm.toUpperCase()+E_},dZ=(e=16,a=N_.ALPHA_DIGIT)=>{let o="";const{length:s}=a;for(;e--;)o+=a[Math.random()*s|0];return o};function mZ(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const pZ=e=>{const a=new Array(10),o=(s,n)=>{if(br(s)){if(a.indexOf(s)>=0)return;if(!("toJSON"in s)){a[n]=s;const i=jo(s)?[]:{};return en(s,(r,c)=>{const h=o(r,n+1);!Qs(h)&&(i[c]=h)}),a[n]=void 0,i}}return s};return o(e,0)},hZ=sa("AsyncFunction"),gZ=e=>e&&(br(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),v={isArray:jo,isArrayBuffer:f_,isBuffer:RX,isFormData:GX,isArrayBufferView:PX,isString:DX,isNumber:__,isBoolean:LX,isObject:br,isPlainObject:wr,isUndefined:Qs,isDate:jX,isFile:vX,isBlob:MX,isRegExp:nZ,isFunction:Vt,isStream:UX,isURLSearchParams:WX,isTypedArray:eZ,isFileList:HX,forEach:en,merge:jm,extend:JX,trim:qX,stripBOM:XX,inherits:ZX,toFlatObject:YX,kindOf:fr,kindOfTest:sa,endsWith:KX,toArray:QX,forEachEntry:tZ,matchAll:aZ,isHTMLForm:oZ,hasOwnProperty:k_,hasOwnProp:k_,reduceDescriptors:S_,freezeMethods:iZ,toObjectSet:rZ,toCamelCase:sZ,noop:lZ,toFiniteNumber:cZ,findKey:b_,global:w_,isContextDefined:C_,ALPHABET:N_,generateString:dZ,isSpecCompliantForm:mZ,toJSONObject:pZ,isAsyncFn:hZ,isThenable:gZ};function fe(e,a,o,s,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",a&&(this.code=a),o&&(this.config=o),s&&(this.request=s),n&&(this.response=n)}v.inherits(fe,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:v.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const $_=fe.prototype,B_={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{B_[e]={value:e}}),Object.defineProperties(fe,B_),Object.defineProperty($_,"isAxiosError",{value:!0}),fe.from=(e,a,o,s,n,i)=>{const r=Object.create($_);return v.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),fe.call(r,e.message,a,o,s,n),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const yZ=null;function Mm(e){return v.isPlainObject(e)||v.isArray(e)}function x_(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function V_(e,a,o){return e?e.concat(a).map(function(s,n){return s=x_(s),!o&&n?"["+s+"]":s}).join(o?".":""):a}function uZ(e){return v.isArray(e)&&!e.some(Mm)}const fZ=v.toFlatObject(v,{},null,function(e){return/^is[A-Z]/.test(e)});function Cr(e,a,o){if(!v.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=v.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(y,g){return!v.isUndefined(g[y])});const s=o.metaTokens,n=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(a);if(!v.isFunction(n))throw new TypeError("visitor must be a function");function h(y){if(y===null)return"";if(v.isDate(y))return y.toISOString();if(!c&&v.isBlob(y))throw new fe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(y)||v.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,g,u){let f=y;if(y&&!u&&typeof y=="object"){if(v.endsWith(g,"{}"))g=s?g:g.slice(0,-2),y=JSON.stringify(y);else if(v.isArray(y)&&uZ(y)||(v.isFileList(y)||v.endsWith(g,"[]"))&&(f=v.toArray(y)))return g=x_(g),f.forEach(function(_,k){!(v.isUndefined(_)||_===null)&&a.append(r===!0?V_([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Mm(y)?!0:(a.append(V_(u,g,i),h(y)),!1)}const l=[],m=Object.assign(fZ,{defaultVisitor:d,convertValue:h,isVisitable:Mm});function p(y,g){if(!v.isUndefined(y)){if(l.indexOf(y)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(y),v.forEach(y,function(u,f){(!(v.isUndefined(u)||u===null)&&n.call(a,u,v.isString(f)?f.trim():f,g,m))===!0&&p(u,g?g.concat(f):[f])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return p(e),a}function I_(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Hm(e,a){this._pairs=[],e&&Cr(e,this,a)}const A_=Hm.prototype;A_.append=function(e,a){this._pairs.push([e,a])},A_.toString=function(e){const a=e?function(o){return e.call(this,o,I_)}:I_;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function _Z(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function O_(e,a,o){if(!a)return e;const s=o&&o.encode||_Z,n=o&&o.serialize;let i;if(n?i=n(a,o):i=v.isURLSearchParams(a)?a.toString():new Hm(a,o).toString(s),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const T_=class{constructor(){this.handlers=[]}use(a,o,s){return this.handlers.push({fulfilled:a,rejected:o,synchronous:s?s.synchronous:!1,runWhen:s?s.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){v.forEach(this.handlers,function(o){o!==null&&a(o)})}},z_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bZ=typeof URLSearchParams<"u"?URLSearchParams:Hm,wZ=typeof FormData<"u"?FormData:null,CZ=typeof Blob<"u"?Blob:null,kZ={isBrowser:!0,classes:{URLSearchParams:bZ,FormData:wZ,Blob:CZ},protocols:["http","https","file","blob","url","data"]},F_=typeof window<"u"&&typeof document<"u",SZ=(e=>F_&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),EZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),NZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:F_,hasStandardBrowserEnv:SZ,hasStandardBrowserWebWorkerEnv:EZ},Symbol.toStringTag,{value:"Module"})),na={...NZ,...kZ};function $Z(e,a){return Cr(e,new na.classes.URLSearchParams,Object.assign({visitor:function(o,s,n,i){return na.isNode&&v.isBuffer(o)?(this.append(s,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function BZ(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xZ(e){const a={},o=Object.keys(e);let s;const n=o.length;let i;for(s=0;s<n;s++)i=o[s],a[i]=e[i];return a}function R_(e){function a(o,s,n,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&v.isArray(n)?n.length:r,h?(v.hasOwnProp(n,r)?n[r]=[n[r],s]:n[r]=s,!c):((!n[r]||!v.isObject(n[r]))&&(n[r]=[]),a(o,s,n[r],i)&&v.isArray(n[r])&&(n[r]=xZ(n[r])),!c)}if(v.isFormData(e)&&v.isFunction(e.entries)){const o={};return v.forEachEntry(e,(s,n)=>{a(BZ(s),n,o,0)}),o}return null}function VZ(e,a,o){if(v.isString(e))try{return(a||JSON.parse)(e),v.trim(e)}catch(s){if(s.name!=="SyntaxError")throw s}return(o||JSON.stringify)(e)}const Um={transitional:z_,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",s=o.indexOf("application/json")>-1,n=v.isObject(e);if(n&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return s?JSON.stringify(R_(e)):e;if(v.isArrayBuffer(e)||v.isBuffer(e)||v.isStream(e)||v.isFile(e)||v.isBlob(e))return e;if(v.isArrayBufferView(e))return e.buffer;if(v.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(n){if(o.indexOf("application/x-www-form-urlencoded")>-1)return $Z(e,this.formSerializer).toString();if((i=v.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return Cr(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),VZ(e)):e}],transformResponse:[function(e){const a=this.transitional||Um.transitional,o=a&&a.forcedJSONParsing,s=this.responseType==="json";if(e&&v.isString(e)&&(o&&!this.responseType||s)){const n=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(e)}catch(i){if(n)throw i.name==="SyntaxError"?fe.from(i,fe.ERR_BAD_RESPONSE,this,null,this.response):i}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:na.classes.FormData,Blob:na.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};v.forEach(["delete","get","head","post","put","patch"],e=>{Um.headers[e]={}});const Gm=Um,IZ=v.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),AZ=e=>{const a={};let o,s,n;return e&&e.split(`
|
|
44
44
|
`).forEach(function(i){n=i.indexOf(":"),o=i.substring(0,n).trim().toLowerCase(),s=i.substring(n+1).trim(),!(!o||a[o]&&IZ[o])&&(o==="set-cookie"?a[o]?a[o].push(s):a[o]=[s]:a[o]=a[o]?a[o]+", "+s:s)}),a},P_=Symbol("internals");function tn(e){return e&&String(e).trim().toLowerCase()}function kr(e){return e===!1||e==null?e:v.isArray(e)?e.map(kr):String(e)}function OZ(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let s;for(;s=o.exec(e);)a[s[1]]=s[2];return a}const TZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Wm(e,a,o,s,n){if(v.isFunction(s))return s.call(this,a,o);if(n&&(a=o),!!v.isString(a)){if(v.isString(s))return a.indexOf(s)!==-1;if(v.isRegExp(s))return s.test(a)}}function zZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,s)=>o.toUpperCase()+s)}function FZ(e,a){const o=v.toCamelCase(" "+a);["get","set","has"].forEach(s=>{Object.defineProperty(e,s+o,{value:function(n,i,r){return this[s].call(this,a,n,i,r)},configurable:!0})})}let Sr=class{constructor(a){a&&this.set(a)}set(a,o,s){const n=this;function i(c,h,d){const l=tn(h);if(!l)throw new Error("header name must be a non-empty string");const m=v.findKey(n,l);(!m||n[m]===void 0||d===!0||d===void 0&&n[m]!==!1)&&(n[m||h]=kr(c))}const r=(c,h)=>v.forEach(c,(d,l)=>i(d,l,h));return v.isPlainObject(a)||a instanceof this.constructor?r(a,o):v.isString(a)&&(a=a.trim())&&!TZ(a)?r(AZ(a),o):a!=null&&i(o,a,s),this}get(a,o){if(a=tn(a),a){const s=v.findKey(this,a);if(s){const n=this[s];if(!o)return n;if(o===!0)return OZ(n);if(v.isFunction(o))return o.call(this,n,s);if(v.isRegExp(o))return o.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=tn(a),a){const s=v.findKey(this,a);return!!(s&&this[s]!==void 0&&(!o||Wm(this,this[s],s,o)))}return!1}delete(a,o){const s=this;let n=!1;function i(r){if(r=tn(r),r){const c=v.findKey(s,r);c&&(!o||Wm(s,s[c],c,o))&&(delete s[c],n=!0)}}return v.isArray(a)?a.forEach(i):i(a),n}clear(a){const o=Object.keys(this);let s=o.length,n=!1;for(;s--;){const i=o[s];(!a||Wm(this,this[i],i,a,!0))&&(delete this[i],n=!0)}return n}normalize(a){const o=this,s={};return v.forEach(this,(n,i)=>{const r=v.findKey(s,i);if(r){o[r]=kr(n),delete o[i];return}const c=a?zZ(i):String(i).trim();c!==i&&delete o[i],o[c]=kr(n),s[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return v.forEach(this,(s,n)=>{s!=null&&s!==!1&&(o[n]=a&&v.isArray(s)?s.join(", "):s)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
45
45
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const s=new this(a);return o.forEach(n=>s.set(n)),s}static accessor(a){const o=(this[P_]=this[P_]={accessors:{}}).accessors,s=this.prototype;function n(i){const r=tn(i);o[r]||(FZ(s,i),o[r]=!0)}return v.isArray(a)?a.forEach(n):n(a),this}};Sr.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),v.reduceDescriptors(Sr.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(s){this[o]=s}}}),v.freezeMethods(Sr);const Oa=Sr;function qm(e,a){const o=this||Gm,s=a||o,n=Oa.from(s.headers);let i=s.data;return v.forEach(e,function(r){i=r.call(o,i,n.normalize(),a?a.status:void 0)}),n.normalize(),i}function D_(e){return!!(e&&e.__CANCEL__)}function an(e,a,o){fe.call(this,e??"canceled",fe.ERR_CANCELED,a,o),this.name="CanceledError"}v.inherits(an,fe,{__CANCEL__:!0});function RZ(e,a,o){const s=o.config.validateStatus;!o.status||!s||s(o.status)?e(o):a(new fe("Request failed with status code "+o.status,[fe.ERR_BAD_REQUEST,fe.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const PZ=na.hasStandardBrowserEnv?{write(e,a,o,s,n,i){const r=[e+"="+encodeURIComponent(a)];v.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),v.isString(s)&&r.push("path="+s),v.isString(n)&&r.push("domain="+n),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function DZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function LZ(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function L_(e,a){return e&&!DZ(a)?LZ(e,a):a}const jZ=na.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function s(n){let i=n;return e&&(a.setAttribute("href",i),i=a.href),a.setAttribute("href",i),{href:a.href,protocol:a.protocol?a.protocol.replace(/:$/,""):"",host:a.host,search:a.search?a.search.replace(/^\?/,""):"",hash:a.hash?a.hash.replace(/^#/,""):"",hostname:a.hostname,port:a.port,pathname:a.pathname.charAt(0)==="/"?a.pathname:"/"+a.pathname}}return o=s(window.location.href),function(n){const i=v.isString(n)?s(n):n;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function vZ(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function MZ(e,a){e=e||10;const o=new Array(e),s=new Array(e);let n=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const h=Date.now(),d=s[i];r||(r=h),o[n]=c,s[n]=h;let l=i,m=0;for(;l!==n;)m+=o[l++],l=l%e;if(n=(n+1)%e,n===i&&(i=(i+1)%e),h-r<a)return;const p=d&&h-d;return p?Math.round(m*1e3/p):void 0}}function j_(e,a){let o=0;const s=MZ(50,250);return n=>{const i=n.loaded,r=n.lengthComputable?n.total:void 0,c=i-o,h=s(c),d=i<=r;o=i;const l={loaded:i,total:r,progress:r?i/r:void 0,bytes:c,rate:h||void 0,estimated:h&&r&&d?(r-i)/h:void 0,event:n};l[a?"download":"upload"]=!0,e(l)}}const HZ=typeof XMLHttpRequest<"u",UZ=HZ&&function(e){return new Promise(function(a,o){let s=e.data;const n=Oa.from(e.headers).normalize();let{responseType:i,withXSRFToken:r}=e,c;function h(){e.cancelToken&&e.cancelToken.unsubscribe(c),e.signal&&e.signal.removeEventListener("abort",c)}let d;if(v.isFormData(s)){if(na.hasStandardBrowserEnv||na.hasStandardBrowserWebWorkerEnv)n.setContentType(!1);else if((d=n.getContentType())!==!1){const[g,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];n.setContentType([g||"multipart/form-data",...u].join("; "))}}let l=new XMLHttpRequest;if(e.auth){const g=e.auth.username||"",u=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";n.set("Authorization","Basic "+btoa(g+":"+u))}const m=L_(e.baseURL,e.url);l.open(e.method.toUpperCase(),O_(m,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function p(){if(!l)return;const g=Oa.from("getAllResponseHeaders"in l&&l.getAllResponseHeaders()),u={data:!i||i==="text"||i==="json"?l.responseText:l.response,status:l.status,statusText:l.statusText,headers:g,config:e,request:l};RZ(function(f){a(f),h()},function(f){o(f),h()},u),l=null}if("onloadend"in l?l.onloadend=p:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(p)},l.onabort=function(){l&&(o(new fe("Request aborted",fe.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new fe("Network Error",fe.ERR_NETWORK,e,l)),l=null},l.ontimeout=function(){let g=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const u=e.transitional||z_;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new fe(g,u.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,l)),l=null},na.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(e)),r||r!==!1&&jZ(m))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&PZ.read(e.xsrfCookieName);g&&n.set(e.xsrfHeaderName,g)}s===void 0&&n.setContentType(null),"setRequestHeader"in l&&v.forEach(n.toJSON(),function(g,u){l.setRequestHeader(u,g)}),v.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",j_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",j_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=g=>{l&&(o(!g||g.type?new an(null,e,l):g),l.abort(),l=null)},e.cancelToken&&e.cancelToken.subscribe(c),e.signal&&(e.signal.aborted?c():e.signal.addEventListener("abort",c)));const y=vZ(m);if(y&&na.protocols.indexOf(y)===-1){o(new fe("Unsupported protocol "+y+":",fe.ERR_BAD_REQUEST,e));return}l.send(s||null)})},Jm={http:yZ,xhr:UZ};v.forEach(Jm,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const v_=e=>`- ${e}`,GZ=e=>v.isFunction(e)||e===null||e===!1,M_={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:a}=e;let o,s;const n={};for(let i=0;i<a;i++){o=e[i];let r;if(s=o,!GZ(o)&&(s=Jm[(r=String(o)).toLowerCase()],s===void 0))throw new fe(`Unknown adapter '${r}'`);if(s)break;n[r||"#"+i]=s}if(!s){const i=Object.entries(n).map(([c,h])=>`adapter ${c} `+(h===!1?"is not supported by the environment":"is not available in the build"));let r=a?i.length>1?`since :
|
|
46
46
|
`+i.map(v_).join(`
|