@golstats/gsc-game-data 1.0.64 → 1.0.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/gsc-game-data.js +29 -25
- package/dist/gsc-game-data.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +4 -4
|
@@ -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"}},l_={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 PD({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(o){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function RD({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(o||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Pm({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function DD({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){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 s?r:Pm({val:r,max:o-i,min:0})}function c_(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...c_(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Rm({val:e,max:a,min:o=0}){return e>a?Rm({val:e-(a+1),max:a,min:o}):e<o?Rm({val:e+(a+1),max:a,min:o}):e}function jD(e,a){let o;return a?function(...n){const s=this;o||(e.apply(s,n),o=!0,setTimeout(()=>o=!1,a))}:e}function LD(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function vD(e="",a={}){return Object.entries(a).reduce((o,[n,s])=>o.replace(`{${n}}`,String(s)),e)}var MD=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"},vD(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),HD=t.defineComponent({name:"Carousel",props:l_,setup(e,{slots:a,emit:o,expose:n}){var s;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),p;const y=t.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=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",y),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){p=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(!p||!Object.keys(p).length)return;const S=Object.keys(p).map(T=>Number(T)).sort((T,oe)=>+oe-+T);let F=Object.assign({},l);S.some(T=>{const oe=window.matchMedia(`(min-width: ${T}px)`).matches;return oe&&(F=Object.assign(Object.assign({},F),p[T])),oe}),E(F)}function E(S){Object.entries(S).forEach(([F,T])=>d[F]=T)}const B=LD(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function x(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=PD({config:d,slidesCount:h.value}),f.value=RD({config:d,slidesCount:h.value}),d.wrapAround||(y.value=Pm({val:y.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),je(),window.addEventListener("resize",B,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",B,{passive:!0})});let $=!1;const O={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),z=t.ref(!1),ee=t.ref(!1),re=()=>{z.value=!0},Q=()=>{z.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||R.value)&&(O.x=$?S.touches[0].clientX:S.clientX,O.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",P,!0)))}const N=jD(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const F=A.x-O.x,T=A.y-O.y;I.y=T,I.x=F},d.throttle);function P(){const S=d.dir==="rtl"?-1:1,F=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+F)*S;if(T&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(y.value-T),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",P,!0)}function je(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&z.value||te()},d.autoplay))}function ne(){_&&(clearInterval(_),_=null),je()}const R=t.ref(!1);function K(S){const F=d.wrapAround?S:Pm({val:S,max:u.value,min:f.value});y.value===F||R.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!0,m.value=y.value,y.value=F,k=setTimeout(()=>{if(d.wrapAround){const T=Rm({val:F,max:u.value,min:0});T!==y.value&&(y.value=T,o("loop",{currentSlideIndex:y.value,slidingToIndex:S}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!1,ne()},d.transition))}function te(){K(y.value+d.itemsToScroll)}function ae(){K(y.value-d.itemsToScroll)}const se={slideTo:K,next:te,prev:ae};t.provide("nav",se),t.provide("isSliding",R);const ie=t.computed(()=>DD({config:d,currentSlide:y.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,F=ie.value*c.value*S;return{transform:`translateX(${I.x-F}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),x(),V(),ne()}Object.keys(l_).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==y.value&&K(Number(S))}),t.watch(h,x),o("before-init"),w();const $e={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:y,maxSlide:u,minSlide:f,middleSlide:g};n({updateBreakpointsConfigs:b,updateSlidesData:x,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:se,data:$e});const Pe=a.default||a.slides,Re=a.addons,ve=t.reactive($e);return()=>{const S=c_(Pe==null?void 0:Pe(ve)),F=(Re==null?void 0:Re(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let T=S;if(d.wrapAround){const Oe=S.map((Fe,le)=>t.cloneVNode(Fe,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((Fe,le)=>t.cloneVNode(Fe,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));T=[...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},T),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ee.value,"is-hover":z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,F,t.h(MD)])}}}),d_;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(d_||(d_={}));var UD=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))),n=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===n.value,c=()=>e.index===n.value-1,h=()=>e.index===n.value+1,d=()=>{const l=Math.floor(s.value),p=Math.ceil(s.value+o.itemsToShow-1);return e.index>=l&&e.index<=p};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 GD=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},WD=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),qD={class:"gsc-carousel"},JD={key:0},XD=WD(()=>t.createElementVNode("div",null,"no hay",-1)),ZD=[XD],YD={class:"gsc-carousel__2d__slides"},KD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},QD=["fill"],ej={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tj=["fill"],aj={class:"gsc-carousel__2d__navigation"},oj={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nj=["stroke"],sj={key:1,class:"gsc-carousel__2d__navigation__pagination"},ij=["onClick"],rj={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lj=["stroke"],cj={__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"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(u=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const s=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(s,u=>{u&&c.value?(c.value=!1,h(n.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,u=>{r.value!==u&&y(u)}),t.watch(()=>n.items,u=>{s.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&s.value){if(n.defaultItemByProp){const f=n.items.findIndex(_=>_[n.defaultItemByProp.propName]===n.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=n.defaultItemByIndex,i.value=u[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){s.value&&s.value.next()}function l(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function y(u){s.value&&s.value.slideTo(u)}function m(u){s.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?n.items.length-1:u.slidingToIndex===n.items.length?0:u.slidingToIndex;r.value=f,i.value=n.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:p,slideTo:y}),(u,f)=>(t.openBlock(),t.createElementBlock("div",qD,[n.is3d?(t.openBlock(),t.createElementBlock("div",JD,ZD)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",YD,[t.createVNode(t.unref(HD),{ref_key:"carousel2d",ref:s,"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(UD),{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",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:f[0]||(f[0]=_=>s.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",KD,[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,QD)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),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",ej,[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,tj)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",aj,[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",oj,[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:n.arrowsColor},null,8,nj)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",sj,[(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:`${n.navigationHeight}px`,width:`${r.value===k?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===k?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>m(k)},null,12,ij))),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]=_=>s.value.next())},[(t.openBlock(),t.createElementBlock("svg",rj,[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:n.arrowsColor},null,8,lj)]))])):t.createCommentVNode("",!0)])],2))]))}},gr=GD(cj,[["__scopeId","data-v-cf3e4ab5"]]),dj=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Dm={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))}}},m_=()=>{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}))},p_=Dm.setup;Dm.setup=p_?(e,a)=>(m_(),p_(e,a)):m_;const mj=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),pj=["src"],hj={key:1,class:"text"},gj=["src"],yj={class:"stats"},uj=mj(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),fj={class:"numstats"},_j={class:"leyend"};function bj(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.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,pj)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",hj,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,gj)):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",yj,[uj,t.createElementVNode("div",fj,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",_j,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const wj=dj(Dm,[["render",bj],["__scopeId","data-v-fb269a1e"]]),Cj={class:"gsc-dropdown__main-container__item-selected"},kj=["height","width"],Sj=["stroke"],Ej={class:"gsc-dropdown__items-container"},Nj=["onClick"],xj={key:0,class:"gsc-dropdown__items-footer"},jm={__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,n=t.ref({}),s=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(m,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&m&&m.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,n.value=m[u]):(i.value=0,n.value=m[0])}else n.value=m[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,m=>{if(m){const g=o.items.findIndex(u=>typeof m=="object"?JSON.stringify(u)===JSON.stringify(m):u===m);g!==-1&&(i.value=g,n.value=o.items[g],a("update:modelValue",n.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(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function p(m,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function y(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(m,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,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",Cj,[t.renderSlot(m.$slots,"default",{selectedItem:n.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,Sj)],8,kj))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Ej,[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:_=>p(u,f)},[t.renderSlot(m.$slots,"availableItem",{item:u})],10,Nj))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",xj,[t.createVNode(t.unref(wj),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let h_=null;const Bj={components:{LineupField:KP,LineupRecentItem:dR,LineupMainHeader:TR,LineupFilter:tD,MatchDetails:o_,GscSwitchComponent:Yn,GSCCarousel:gr,GSCDropdown:jm},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:MP},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(n=>n.game_id===Number(n.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(){vo("lineups.game."+this.game.game_id),vo("mxm.game."+this.game.game_id),vo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)h_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),h_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.home_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[p].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[p].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[p].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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.away_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[p].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[p].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(Yf(),!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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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+". "+s,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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},Kn=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),$j={class:"lineup__header",ref:"gamesContainer"},Vj=Kn(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),Ij={key:0,style:{width:"325px"}},Aj={class:"lineup__card"},Oj={key:0},Tj={key:1},Fj={key:2},zj={key:3,class:"lineup__card-body"},Pj={key:0,class:"lineup__selector",style:{margin:"auto"}},Rj={class:"lineup__selector-item"},Dj={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},jj={class:"lineup__filters"},Lj={class:"selector-tournaments"},vj={class:"lineup__items-carousel"},Mj=Kn(()=>t.createElementVNode("div",null,null,-1)),Hj={class:"lineup__items-center"},Uj={class:"lineup__selector-recientes"},Gj={key:1,class:"containernofoundsearchrecientes"},Wj=Kn(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),qj={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},Jj={key:5,class:"lineup__card-body space-between"},Xj={class:"lineup__card-body__probables"},Zj={class:"selector-tournaments"},Yj=Kn(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Kj=["src"],Qj={class:"lineup__card-body__probables"},eL=["src"],tL=Kn(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),aL={class:"selector-tournaments"},oL={key:6,class:"lineup__card-body space-between"},nL={class:"postmatch__matchday"};function sL(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),p=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),m=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",$j,[Vj,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Ij,[(s.gameInfoheader.game_status==0||s.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",Aj,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",Oj,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",Tj,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",Fj,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(s.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:s.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.headerInfoHistoricItemGame.score[0]+" - "+s.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(s.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.home_team+".png"},visitTeam:{acronym:s.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.gameInfoheader.score[0]+" - "+s.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",zj,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Pj,[s.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:s.updatehistoricos,onInput:i.changeCarouselItemH,items:s.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",Rj,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",Dj,[t.createElementVNode("div",jj,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:s.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",Lj,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=>s.showDetails=!s.showDetails)},t.toDisplayString(s.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",vj,[Mj,t.createElementVNode("div",Hj,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Uj,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",Gj,[Wj,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),s.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",qj,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),s.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",Jj,[t.createElementVNode("div",Xj,[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",Zj,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),Yj,t.createElementVNode("img",{src:s.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,Kj)]),t.createElementVNode("div",Qj,[t.createElementVNode("img",{src:s.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,eL),tL,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",aL,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",oL,[t.createElementVNode("div",nL,t.toDisplayString(s.gameInfoheader.season_name!==void 0?s.gameInfoheader.season_name+" | "+i.remplazarMxJor(s.gameInfoheader.matchday_abbreviation)+" | "+s.gameInfoheader.home_team_abbreviation+" - "+s.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(m,{class:"lineup__field",players:s.players},null,8,["players"])])],2)}const iL=bt(Bj,[["render",sL],["__scopeId","data-v-3e8dc5c2"]]),rL={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){this.$emit("onOpenProfile",e)}},mounted(){}},yr=e=>(t.pushScopeId("data-v-89ae6362"),e=e(),t.popScopeId(),e),lL={key:0,class:"gsc-item-player"},cL={class:"gsc-num-player"},dL={class:"gsc-cont-info-by-player"},mL={class:"gsc-cont-info-by-player-row1"},pL={class:"shield-player-cont"},hL=["src"],gL={class:"gsc-cont-info-by-player-row2"},yL={class:"gsc-cont-info-by-player-row2-line-data"},uL={class:"cont-display-gsc"},fL=["src"],_L={class:"gsc-cont-cards"},bL={key:0,class:"gsc-yellow_card_div"},wL={key:1,class:"gsc-red_card_div"},CL={key:2,class:"gsc-yellowred_card_div"},kL=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),SL={key:5,class:"gsc-goal_card_div_wrapper"},EL=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),NL={key:1,class:"gsc-item-player"},xL={class:"gsc-num-player2"},BL={class:"gsc-cont-info-by-player2"},$L={class:"gsc-cont-info-by-player-row2"},VL={class:"gsc-cont-info-by-player-row2-line-data"},IL={class:"gsc-cont-cards2"},AL={key:0,class:"gsc-yellow_card_div"},OL={key:1,class:"gsc-red_card_div"},TL={key:2,class:"gsc-yellowred_card_div"},FL=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),zL={key:5,class:"gsc-goal_card_div_wrapper"},PL=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),RL={class:"cont-display-gsc"},DL=["src"],jL={class:"gsc-cont-info-by-player-row1"},LL={class:"shield-player-cont"},vL=["src"];function ML(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",lL,[t.createElementVNode("div",cL,[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",dL,[t.createElementVNode("div",mL,[t.createElementVNode("div",pL,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,hL)])]),t.createElementVNode("div",gL,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",onClick:a[0]||(a[0]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season}))},t.toDisplayString(o.data.name),1),t.createElementVNode("div",yL,[t.createElementVNode("div",uL,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,fL),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",_L,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",bL)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",wL)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",CL)):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},[kL,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",SL,[EL,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",NL,[t.createElementVNode("div",xL,[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",BL,[t.createElementVNode("div",$L,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",onClick:a[1]||(a[1]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season}))},t.toDisplayString(o.data.name),1),t.createElementVNode("div",VL,[t.createElementVNode("div",IL,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",AL)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",OL)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",TL)):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},[FL,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",zL,[PL,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",RL,[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,DL)])])]),t.createElementVNode("div",jL,[t.createElementVNode("div",LL,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,vL)])])])])):t.createCommentVNode("",!0)],64)}const HL=bt(rL,[["render",ML],["__scopeId","data-v-89ae6362"]]),Lm="/icn-filter.svg",Qn="/icn-expand-arrow.svg",g_="/backarrow.svg",y_="/nextarrow.svg",UL="_selectoritem_1dafy_137",GL="_selectoritem2_1dafy_157",WL="_gscheaderlineup_1dafy_177",qL="_anNoEstn_1dafy_191",JL="_groupsLeague_1dafy_197",XL="_jugadores_1dafy_209",ZL="_switchOption_1dafy_219",YL="_jugadores1_1dafy_239",KL="_switchOption1_1dafy_249",QL="_switchStatesBig_1dafy_265",ev="_groupsLeagueParent_1dafy_283",tv="_imgHomeTeamIcon_1dafy_301",av="_imgHomeTeamWrapper_1dafy_313",ov="_teamContainer_1dafy_337",nv="_name_1dafy_361",sv="_homeTeamContainer_1dafy_373",iv="_div_1dafy_393",rv="_scoreContainer_1dafy_401",lv="_scoreContainerWrapper_1dafy_421",cv="_teamContainer1_1dafy_447",dv="_awayTeamContainer_1dafy_471",mv="_matchContainer_1dafy_491",pv="_sliderMatchesChild_1dafy_509",hv="_manchesterUnited_1dafy_521",gv="_sliderMatchesItem_1dafy_533",yv="_sliderMatches_1dafy_509",uv="_sortIcon_1dafy_569",fv="_filtros_1dafy_583",_v="_sortParent_1dafy_599",bv="_shapeIcon_1dafy_613",wv="_btnFilter_1dafy_623",Cv="_btnFilter1_1dafy_651",kv="_btnFilterParent_1dafy_679",Sv="_backArrowIcon_1dafy_695",Ev="_teamContainer2_1dafy_707",Nv="_homeTeam_1dafy_373",xv="_div4_1dafy_735",Bv="_finalScore_1dafy_745",$v="_manchesterUnited1_1dafy_771",Vv="_scoreContainer1_1dafy_785",Iv="_match_1dafy_491",Av="_manchesterUnited2_1dafy_821",Ov="_btnDetails_1dafy_831",Tv="_matchContainer1_1dafy_851",Fv="_goalChild_1dafy_867",zv="_goal_1dafy_867",Pv="_manchesterUnited3_1dafy_893",Rv="_minuteEvent_1dafy_907",Dv="_yellowCard_1dafy_921",jv="_awayTeamEvents_1dafy_935",Lv="_rectangle_1dafy_949",vv="_homeTeamEvents_1dafy_963",Mv="_totalEvents_1dafy_979",Hv="_headerSeccionAlineaciones1_1dafy_995",Uv="_switchOption3_1dafy_1017",Gv="_switchOption4_1dafy_1041",Wv="_switchStatesBig1_1dafy_1061",qv="_manchesterUnited13_1dafy_1075",Jv="_homeTeamContainer1_1dafy_1085",Xv="_scoreContainer2_1dafy_1099",Zv="_matchContainer2_1dafy_1127",Yv="_manchesterUnited14_1dafy_1147",Kv="_sliderMatchesInner_1dafy_1161",Qv="_rectangleIcon_1dafy_1181",eM="_sliderMatches1_1dafy_1201",tM="_containerData_1dafy_1217",aM="_headerSeccionAlineaciones2_1dafy_1245",oM="_headerSeccionAlineaciones_1dafy_995",nM="_headerSeccionAlineaciones21200_1dafy_1293",sM="_headerSeccionAlineaciones1540_1dafy_1299",iM="_headerSeccionAlineaciones2540_1dafy_1307",rM={selectoritem:UL,selectoritem2:GL,gscheaderlineup:WL,anNoEstn:qL,groupsLeague:JL,jugadores:XL,switchOption:ZL,jugadores1:YL,switchOption1:KL,switchStatesBig:QL,groupsLeagueParent:ev,imgHomeTeamIcon:tv,imgHomeTeamWrapper:av,teamContainer:ov,name:nv,homeTeamContainer:sv,div:iv,scoreContainer:rv,scoreContainerWrapper:lv,teamContainer1:cv,awayTeamContainer:dv,matchContainer:mv,sliderMatchesChild:pv,manchesterUnited:hv,sliderMatchesItem:gv,sliderMatches:yv,sortIcon:uv,filtros:fv,sortParent:_v,shapeIcon:bv,btnFilter:wv,btnFilter1:Cv,btnFilterParent:kv,backArrowIcon:Sv,teamContainer2:Ev,homeTeam:Nv,div4:xv,finalScore:Bv,manchesterUnited1:$v,scoreContainer1:Vv,match:Iv,manchesterUnited2:Av,btnDetails:Ov,matchContainer1:Tv,goalChild:Fv,goal:zv,manchesterUnited3:Pv,minuteEvent:Rv,yellowCard:Dv,awayTeamEvents:jv,rectangle:Lv,homeTeamEvents:vv,totalEvents:Mv,headerSeccionAlineaciones1:Hv,switchOption3:Uv,switchOption4:Gv,switchStatesBig1:Wv,manchesterUnited13:qv,homeTeamContainer1:Jv,scoreContainer2:Xv,matchContainer2:Zv,manchesterUnited14:Yv,sliderMatchesInner:Kv,rectangleIcon:Qv,sliderMatches1:eM,containerData:tM,headerSeccionAlineaciones2:aM,headerSeccionAlineaciones:oM,headerSeccionAlineaciones21200:nM,headerSeccionAlineaciones1540:sM,headerSeccionAlineaciones2540:iM},lM={components:{GSCCarousel:gr,GscSwitchComponent:Yn},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)}}},cM=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),dM=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),mM=["src"],pM=["src"],hM=["src"],gM=["src"],yM=["src"],uM=["src"];function fM(e,a,o,n,s,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)},[cM,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),dM],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[s.selectedOption].objgame.home_team+".png"},null,10,mM)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,pM)):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":s.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:Lm},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:Qn},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:Qn},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:g_},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[s.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[s.selectedOption].objgame.home_team+".png"},null,10,hM)):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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,gM)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[s.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:y_},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[s.selectedOption].objgame.home_team+".png"},null,10,yM)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,uM)):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":s.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 _M={$style:rM},bM=bt(lM,[["render",fM],["__cssModules",_M]]),ur=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),wM=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),CM=["value"],kM=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)),SM={class:"filter-modal__padding"},EM={class:"filter-modal__content-header"},NM=ur(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),xM={class:"filter-modal__content-options"},BM=["onClick"],$M={class:"filter-modal__content-header"},VM=ur(()=>t.createElementVNode("h3",null,"Resultados:",-1)),IM={class:"filter-modal__content-options"},AM=["onClick"],OM=ur(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),TM={__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 n=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],s=[{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),p=t.ref(!0),y=t.ref(["local","visit"]),m=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(y.value)),c.value=JSON.parse(JSON.stringify(m.value)),h.value=l.value,d.value=p.value};t.watch(()=>o.itemSelect,w=>{w&&(y.value=w.selectedFilterTeam,m.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=y.value:E=m.value;const B=E.findIndex(V=>V===w);B==-1?E.push(w):b=="team"&&y.value.length==2?E.splice(B,1):(b=="team"&&E.push(w),m.value.length>1&&E.splice(B,1)),l.value=y.value.length==2,p.value=m.value.length==3},f=()=>{y.value=["local","visit"],m.value=["win","draw","lose"],l.value=!0,p.value=!0,a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},_=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},k=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.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},[wM,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,CM),kM])):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",SM,[t.createElementVNode("div",EM,[NM,t.createVNode(pr,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",xM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"team"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,BM)),64))]),t.createElementVNode("div",$M,[VM,t.createVNode(pr,{modelValue:p.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>p.value=E),b[3]||(b[3]=E=>E&&(m.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",IM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"player"),class:t.normalizeClass({active:m.value.includes(E.id)})},t.toDisplayString(E.name),11,AM)),64))])]),OM,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))}},FM=bt(TM,[["__scopeId","data-v-2118a6cd"]]),zM="/icn-filter1.svg",PM="/icn-expand-arrow1.svg",RM="/icn-filter2.svg",DM="/icn-arrow-expand.svg",jM="_containernofoundsearchrecientes_1gxk5_159",LM="_btndeletefilters_1gxk5_215",vM="_leyenddeleteshow_1gxk5_247",MM="_selectoritem_1gxk5_261",HM="_anNoEstn_1gxk5_279",UM="_groupsLeague_1gxk5_287",GM="_historicas_1gxk5_297",WM="_switchOption_1gxk5_309",qM="_recientes_1gxk5_331",JM="_switchOption1_1gxk5_343",XM="_switchOption2_1gxk5_369",ZM="_switchStatesBig_1gxk5_387",YM="_groupsLeagueParent_1gxk5_407",KM="_imgHomeTeamIcon_1gxk5_427",QM="_imgHomeTeamWrapper_1gxk5_441",eH="_teamContainer_1gxk5_467",tH="_name_1gxk5_493",aH="_homeTeamContainer_1gxk5_507",oH="_div_1gxk5_529",nH="_scoreContainer_1gxk5_539",sH="_scoreContainerWrapper_1gxk5_561",iH="_teamContainer1_1gxk5_587",rH="_awayTeamContainer_1gxk5_613",lH="_matchContainer_1gxk5_635",cH="_sliderMatchesChild_1gxk5_655",dH="_manchesterUnited_1gxk5_669",mH="_sliderMatchesItem_1gxk5_683",pH="_sliderMatches_1gxk5_655",hH="_sortIcon_1gxk5_719",gH="_filtros_1gxk5_735",yH="_sortParent_1gxk5_753",uH="_shapeIcon_1gxk5_769",fH="_btnFilter_1gxk5_781",_H="_btnFilter1_1gxk5_813",bH="_btnFilterParent_1gxk5_843",wH="_backArrowIcon_1gxk5_861",CH="_teamContainer2_1gxk5_875",kH="_homeTeam_1gxk5_507",SH="_div4_1gxk5_907",EH="_finalScore_1gxk5_919",NH="_manchesterUnited1_1gxk5_947",xH="_scoreContainer1_1gxk5_963",BH="_match_1gxk5_635",$H="_manchesterUnited2_1gxk5_997",VH="_btnDetails_1gxk5_1023",IH="_matchContainer1_1gxk5_1047",AH="_goalChild_1gxk5_1065",OH="_goal_1gxk5_1065",TH="_manchesterUnited3_1gxk5_1095",FH="_minuteEvent_1gxk5_1111",zH="_yellowCard_1gxk5_1127",PH="_awayTeamEvents_1gxk5_1143",RH="_rectangle_1gxk5_1159",DH="_homeTeamEvents_1gxk5_1175",jH="_totalEvents_1gxk5_1193",LH="_headerSeccionAlineaciones1_1gxk5_1211",vH="_sliderMatchesInner_1gxk5_1233",MH="_btnFilter2_1gxk5_1247",HH="_btnDetails1_1gxk5_1281",UH="_matchContainer3_1gxk5_1299",GH="_backArrowIcon1_1gxk5_1321",WH="_match1_1gxk5_1335",qH="_headerSeccionAlineaciones2_1gxk5_1347",JH="_jugadores2_1gxk5_1369",XH="_switchOption6_1gxk5_1383",ZH="_switchOption7_1gxk5_1405",YH="_switchStatesBig2_1gxk5_1431",KH="_manchesterUnited26_1gxk5_1447",QH="_homeTeamContainer2_1gxk5_1459",eU="_vectorIcon_1gxk5_1475",tU="_teamSwitch_1gxk5_1487",aU="_matchContainer5_1gxk5_1513",oU="_manchesterUnited27_1gxk5_1535",nU="_sliderMatchesChild1_1gxk5_1551",sU="_sliderMatchesChild2_1gxk5_1573",iU="_sliderMatches2_1gxk5_1595",rU="_filtros2_1gxk5_1615",lU="_btnFilter4_1gxk5_1635",cU="_jornada2_1gxk5_1667",dU="_filterMatchday_1gxk5_1681",mU="_btnDetails2_1gxk5_1703",pU="_filtersContainer_1gxk5_1725",hU="_matchContainer6_1gxk5_1745",gU="_matchDetailContainer_1gxk5_1763",yU="_containerData_1gxk5_1783",uU="_headerSeccionAlineaciones3_1gxk5_1813",fU="_headerSeccionAlineaciones_1gxk5_1211",_U="_headerSeccionAlineaciones31200_1gxk5_1865",bU="_headerSeccionAlineaciones3420_1gxk5_1891",wU="_headerSeccionAlineaciones3880_1gxk5_1917",CU="_headerSeccionAlineaciones3540_1gxk5_1941",kU="_headerSeccionAlineaciones11200_1gxk5_1967",SU="_headerSeccionAlineaciones1420_1gxk5_1995",EU="_headerSeccionAlineaciones1880_1gxk5_2017",NU="_headerSeccionAlineaciones21200_1gxk5_2039",xU="_headerSeccionAlineaciones2420_1gxk5_2067",BU="_headerSeccionAlineaciones2880_1gxk5_2091",$U="_headerSeccionAlineaciones2540_1gxk5_2113",VU={containernofoundsearchrecientes:jM,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:LM,leyenddeleteshow:vM,selectoritem:MM,anNoEstn:HM,groupsLeague:UM,historicas:GM,switchOption:WM,recientes:qM,switchOption1:JM,switchOption2:XM,switchStatesBig:ZM,groupsLeagueParent:YM,imgHomeTeamIcon:KM,imgHomeTeamWrapper:QM,teamContainer:eH,name:tH,homeTeamContainer:aH,div:oH,scoreContainer:nH,scoreContainerWrapper:sH,teamContainer1:iH,awayTeamContainer:rH,matchContainer:lH,sliderMatchesChild:cH,manchesterUnited:dH,sliderMatchesItem:mH,sliderMatches:pH,sortIcon:hH,filtros:gH,sortParent:yH,shapeIcon:uH,btnFilter:fH,btnFilter1:_H,btnFilterParent:bH,backArrowIcon:wH,teamContainer2:CH,homeTeam:kH,div4:SH,finalScore:EH,manchesterUnited1:NH,scoreContainer1:xH,match:BH,manchesterUnited2:$H,btnDetails:VH,matchContainer1:IH,goalChild:AH,goal:OH,manchesterUnited3:TH,minuteEvent:FH,yellowCard:zH,awayTeamEvents:PH,rectangle:RH,homeTeamEvents:DH,totalEvents:jH,headerSeccionAlineaciones1:LH,sliderMatchesInner:vH,btnFilter2:MH,btnDetails1:HH,matchContainer3:UH,backArrowIcon1:GH,match1:WH,headerSeccionAlineaciones2:qH,jugadores2:JH,switchOption6:XH,switchOption7:ZH,switchStatesBig2:YH,manchesterUnited26:KH,homeTeamContainer2:QH,vectorIcon:eU,teamSwitch:tU,matchContainer5:aU,manchesterUnited27:oU,sliderMatchesChild1:nU,sliderMatchesChild2:sU,sliderMatches2:iU,filtros2:rU,btnFilter4:lU,jornada2:cU,filterMatchday:dU,btnDetails2:mU,filtersContainer:pU,matchContainer6:hU,matchDetailContainer:gU,containerData:yU,headerSeccionAlineaciones3:uU,headerSeccionAlineaciones:fU,headerSeccionAlineaciones31200:_U,headerSeccionAlineaciones3420:bU,headerSeccionAlineaciones3880:wU,headerSeccionAlineaciones3540:CU,headerSeccionAlineaciones11200:kU,headerSeccionAlineaciones1420:SU,headerSeccionAlineaciones1880:EU,headerSeccionAlineaciones21200:NU,headerSeccionAlineaciones2420:xU,headerSeccionAlineaciones2880:BU,headerSeccionAlineaciones2540:$U},IU={components:{GSCCarousel:gr,GscSwitchComponent:Yn,GSCDropdown:jm,GSCFilter:FM,GSCSwitchRadio:e_,GSCMatchDetails:o_},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)}}},AU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),OU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),TU=["src"],FU=["src"],zU={class:"selector-tournaments"},PU=["src"],RU=["src"],DU={key:1},jU=t.createElementVNode("br",null,null,-1),LU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),vU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),MU=["src"],HU=["src"],UU={class:"selector-tournaments"},GU=["src"],WU=["src"],qU={key:1},JU=t.createElementVNode("br",null,null,-1),XU=["src"],ZU=["src"],YU={class:"selector-tournaments"},KU=["src"],QU=["src"],eG={key:1},tG=t.createElementVNode("br",null,null,-1);function aG(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),p=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)},[AU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),OU],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,TU)],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":s.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,FU)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Lm},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:Qn},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.openfiltervalue,onChange:i.changeFiltersModal,reset:s.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",zU,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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:s.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,PU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,RU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",DU,[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"),jU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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)},[LU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),vU],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,MU)],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":s.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,HU)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:zM},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:PM},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",UU,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,GU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,WU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",qU,[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"),JU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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,XU)],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":s.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,ZU)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:RM},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:DM},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",YU,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,KU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,QU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",eG,[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"),tG,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const oG={$style:VU},nG=bt(IU,[["render",aG],["__cssModules",oG]]),sG="_selectoritem_16hc8_179",iG="_selectoritem2_16hc8_199",rG="_gscheaderlineup_16hc8_219",lG="_anNoEstn_16hc8_233",cG="_groupsLeague_16hc8_239",dG="_jugadores_16hc8_249",mG="_switchOption_16hc8_259",pG="_jugadores1_16hc8_279",hG="_switchOption1_16hc8_289",gG="_switchStatesBig_16hc8_305",yG="_groupsLeagueParent_16hc8_323",uG="_imgHomeTeamIcon_16hc8_341",fG="_imgHomeTeamWrapper_16hc8_353",_G="_teamContainer_16hc8_377",bG="_name_16hc8_401",wG="_homeTeamContainer_16hc8_413",CG="_div_16hc8_433",kG="_titleSession_16hc8_441",SG="_scoreContainer_16hc8_461",EG="_scoreContainerWrapper_16hc8_481",NG="_teamContainer1_16hc8_505",xG="_awayTeamContainer_16hc8_529",BG="_matchContainer_16hc8_549",$G="_sliderMatchesChild_16hc8_567",VG="_manchesterUnited_16hc8_579",IG="_sliderMatchesItem_16hc8_591",AG="_sliderMatches_16hc8_567",OG="_sortIcon_16hc8_627",TG="_filtros_16hc8_641",FG="_sortParent_16hc8_657",zG="_shapeIcon_16hc8_671",PG="_btnFilter_16hc8_681",RG="_btnFilter1_16hc8_709",DG="_btnFilterParent_16hc8_737",jG="_backArrowIcon_16hc8_753",LG="_teamContainer2_16hc8_765",vG="_homeTeam_16hc8_413",MG="_div4_16hc8_793",HG="_finalScore_16hc8_803",UG="_manchesterUnited1_16hc8_829",GG="_scoreContainer1_16hc8_843",WG="_match_16hc8_549",qG="_manchesterUnited2_16hc8_879",JG="_btnDetails_16hc8_889",XG="_matchContainer1_16hc8_909",ZG="_goalChild_16hc8_925",YG="_goal_16hc8_925",KG="_manchesterUnited3_16hc8_951",QG="_minuteEvent_16hc8_965",eW="_yellowCard_16hc8_979",tW="_awayTeamEvents_16hc8_993",aW="_rectangle_16hc8_1007",oW="_homeTeamEvents_16hc8_1021",nW="_totalEvents_16hc8_1037",sW="_headerSeccionAlineaciones1_16hc8_1053",iW="_switchOption3_16hc8_1075",rW="_switchOption4_16hc8_1099",lW="_switchStatesBig1_16hc8_1119",cW="_manchesterUnited13_16hc8_1133",dW="_homeTeamContainer1_16hc8_1143",mW="_scoreContainer2_16hc8_1157",pW="_matchContainer2_16hc8_1185",hW="_manchesterUnited14_16hc8_1205",gW="_sliderMatchesInner_16hc8_1219",yW="_rectangleIcon_16hc8_1239",uW="_sliderMatches1_16hc8_1259",fW="_containerData_16hc8_1275",_W="_headerSeccionAlineaciones2_16hc8_1303",bW="_headerSeccionAlineaciones_16hc8_1053",wW="_headerSeccionAlineaciones21200_16hc8_1351",CW="_headerSeccionAlineaciones1540_16hc8_1357",kW="_headerSeccionAlineaciones2540_16hc8_1365",SW={selectoritem:sG,selectoritem2:iG,gscheaderlineup:rG,anNoEstn:lG,groupsLeague:cG,jugadores:dG,switchOption:mG,jugadores1:pG,switchOption1:hG,switchStatesBig:gG,groupsLeagueParent:yG,imgHomeTeamIcon:uG,imgHomeTeamWrapper:fG,teamContainer:_G,name:bG,homeTeamContainer:wG,div:CG,titleSession:kG,scoreContainer:SG,scoreContainerWrapper:EG,teamContainer1:NG,awayTeamContainer:xG,matchContainer:BG,sliderMatchesChild:$G,manchesterUnited:VG,sliderMatchesItem:IG,sliderMatches:AG,sortIcon:OG,filtros:TG,sortParent:FG,shapeIcon:zG,btnFilter:PG,btnFilter1:RG,btnFilterParent:DG,backArrowIcon:jG,teamContainer2:LG,homeTeam:vG,div4:MG,finalScore:HG,manchesterUnited1:UG,scoreContainer1:GG,match:WG,manchesterUnited2:qG,btnDetails:JG,matchContainer1:XG,goalChild:ZG,goal:YG,manchesterUnited3:KG,minuteEvent:QG,yellowCard:eW,awayTeamEvents:tW,rectangle:aW,homeTeamEvents:oW,totalEvents:nW,headerSeccionAlineaciones1:sW,switchOption3:iW,switchOption4:rW,switchStatesBig1:lW,manchesterUnited13:cW,homeTeamContainer1:dW,scoreContainer2:mW,matchContainer2:pW,manchesterUnited14:hW,sliderMatchesInner:gW,rectangleIcon:yW,sliderMatches1:uW,containerData:fW,headerSeccionAlineaciones2:_W,headerSeccionAlineaciones:bW,headerSeccionAlineaciones21200:wW,headerSeccionAlineaciones1540:CW,headerSeccionAlineaciones2540:kW},EW={components:{GSCCarousel:gr,GscSwitchComponent:Yn},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)}}},NW=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),xW=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BW=["src"],$W=["src"],VW=["src"],IW=["src"],AW=["src"],OW=["src"];function TW(e,a,o,n,s,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)},[NW,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),xW],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,BW)],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,$W)],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:Lm},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:Qn},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:Qn},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:g_},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,VW)],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,IW),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:y_},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,AW)],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,OW)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const FW={$style:SW},zW=bt(EW,[["render",TW],["__cssModules",FW]]),PW="_anNoEstn_j98j7_139",RW="_groupsLeague_j98j7_145",DW="_historicas_j98j7_153",jW="_switchOption_j98j7_163",LW="_switchOption1_j98j7_183",vW="_probables_j98j7_203",MW="_switchOption2_j98j7_213",HW="_switchStatesBig_j98j7_237",UW="_groupsLeagueParent_j98j7_255",GW="_imgHomeTeamIcon_j98j7_273",WW="_imgHomeTeamWrapper_j98j7_285",qW="_teamContainer_j98j7_309",JW="_name_j98j7_333",XW="_jor_j98j7_345",ZW="_jorParent_j98j7_357",YW="_shapeIcon_j98j7_373",KW="_frameParent_j98j7_383",QW="_manchesterUnited_j98j7_413",eq="_necaxaIcon_j98j7_435",tq="_manchesterUnited1_j98j7_447",aq="_team_j98j7_309",oq="_homeTeamContainer_j98j7_475",nq="_div1_j98j7_495",sq="_scoreContainer_j98j7_503",iq="_scoreContainerWrapper_j98j7_525",rq="_team1_j98j7_549",lq="_name1_j98j7_563",cq="_teamContainer1_j98j7_577",dq="_awayTeamContainer_j98j7_601",mq="_matchContainer_j98j7_623",pq="_goalChild_j98j7_641",hq="_goal_j98j7_641",gq="_manchesterUnited4_j98j7_667",yq="_minuteEvent_j98j7_681",uq="_yellowCard_j98j7_695",fq="_awayTeamEvents_j98j7_709",_q="_rectangle_j98j7_723",bq="_homeTeamEvents_j98j7_737",wq="_totalEvents_j98j7_753",Cq="_headerSeccionAlineaciones1_j98j7_769",kq="_homeTeamContainer1_j98j7_789",Sq="_awayTeamContainer1_j98j7_813",Eq="_headerSeccionAlineaciones2_j98j7_837",Nq="_jugadores_j98j7_857",xq="_switchOption6_j98j7_869",Bq="_switchOption8_j98j7_889",$q="_switchStatesBig2_j98j7_913",Vq="_manchesterUnited28_j98j7_927",Iq="_homeTeamContainer2_j98j7_935",Aq="_matchContainer2_j98j7_949",Oq="_manchesterUnited29_j98j7_971",Tq="_sliderMatchesChild_j98j7_985",Fq="_sliderMatchesItem_j98j7_1005",zq="_sliderMatches_j98j7_985",Pq="_jorParent2_j98j7_1045",Rq="_filterMatchday_j98j7_1059",Dq="_necaxaIcon4_j98j7_1081",jq="_team4_j98j7_1093",Lq="_filterMatchdayParent_j98j7_1113",vq="_filterMatchday1_j98j7_1127",Mq="_teamParent_j98j7_1157",Hq="_filtersContainer_j98j7_1177",Uq="_containerData_j98j7_1195",Gq="_headerSeccionAlineaciones3_j98j7_1223",Wq="_headerSeccionAlineaciones_j98j7_769",qq={anNoEstn:PW,groupsLeague:RW,historicas:DW,switchOption:jW,switchOption1:LW,probables:vW,switchOption2:MW,switchStatesBig:HW,groupsLeagueParent:UW,imgHomeTeamIcon:GW,imgHomeTeamWrapper:WW,teamContainer:qW,name:JW,jor:XW,jorParent:ZW,shapeIcon:YW,frameParent:KW,manchesterUnited:QW,necaxaIcon:eq,manchesterUnited1:tq,team:aq,homeTeamContainer:oq,div1:nq,scoreContainer:sq,scoreContainerWrapper:iq,team1:rq,name1:lq,teamContainer1:cq,awayTeamContainer:dq,matchContainer:mq,goalChild:pq,goal:hq,manchesterUnited4:gq,minuteEvent:yq,yellowCard:uq,awayTeamEvents:fq,rectangle:_q,homeTeamEvents:bq,totalEvents:wq,headerSeccionAlineaciones1:Cq,homeTeamContainer1:kq,awayTeamContainer1:Sq,headerSeccionAlineaciones2:Eq,jugadores:Nq,switchOption6:xq,switchOption8:Bq,switchStatesBig2:$q,manchesterUnited28:Vq,homeTeamContainer2:Iq,matchContainer2:Aq,manchesterUnited29:Oq,sliderMatchesChild:Tq,sliderMatchesItem:Fq,sliderMatches:zq,jorParent2:Pq,filterMatchday:Rq,necaxaIcon4:Dq,team4:jq,filterMatchdayParent:Lq,filterMatchday1:vq,teamParent:Mq,filtersContainer:Hq,containerData:Uq,headerSeccionAlineaciones3:Gq,headerSeccionAlineaciones:Wq},Jq={components:{GSCDropdown:jm,GscSwitchComponent:Yn},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])}}},Xq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Zq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Yq=["src"],Kq={class:"selector-tournaments"},Qq=["src"],eJ=["src"],tJ={class:"selector-tournaments"},aJ=["src"],oJ=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),nJ=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),sJ=["src"],iJ={class:"selector-tournaments"},rJ=["src"],lJ=["src"],cJ={class:"selector-tournaments"},dJ=["src"],mJ=["src"],pJ=["src"],hJ={class:"selector-tournaments"},gJ=["src"],yJ=["src"],uJ={class:"selector-tournaments"};function fJ(e,a,o,n,s,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)},[Xq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Zq],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,Yq)],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",Kq,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:s.rivalHomeImg},null,10,Qq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,eJ),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",tJ,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,aJ)],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)},[oJ,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),nJ],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,sJ)],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",iJ,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:s.rivalHomeImg},null,10,rJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,lJ),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",cJ,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,dJ)],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,mJ)],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,pJ)],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",hJ,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:s.rivalHomeImg},null,10,gJ)],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:s.rivalVisitImg},null,10,yJ),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",uJ,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 _J={$style:qq},bJ=bt(Jq,[["render",fJ],["__cssModules",_J]]),u_="/line.png";let f_=null;const wJ={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:HL,HeaderPlayerHistorico:bM,HeaderPlayerRecientes:nG,HeaderPlayerProbables:bJ,HeaderPlayerPostmatch:zW},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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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(" "),p=o[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var m=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var g=m+". "+y,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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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 p=a.data[b].player_name.split(","),y=p[0].split(" "),m=p[1].trim().split(" "),g="";y.length==2||y.length==1?y[0].length<4?g=y[0]+" "+y[1]:g=y[0]:y.length==3?g=y[0]+" "+y[1]:y.length==4&&(g=y[1]+" "+y[2]+" "+y[3]);var u=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.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,n=-1;if(this.playersHome.length>0){var s=this.playersHome.findIndex(x=>x.idredcards==a.play_id),i=this.playersHome.findIndex(x=>x.idyellowcards==a.play_id),r=this.playersHome.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersHome.length;x++){var c=this.playersHome[x].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,n=x)}s!=-1&&this.resetPlayUpdate("RedCard","Home",s,n),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,n),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,n),o!=-1&&this.resetPlayUpdate("Goals","Home",o,n)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(x=>x.idredcards==a.play_id),d=this.playersAway.findIndex(x=>x.idyellowcards==a.play_id),l=this.playersAway.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersAway.length;x++){var p=this.playersAway[x].idsGoals.findIndex($=>$==a.play_id);p!=-1&&(o=p,n=x)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,n),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,n),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,n),o!=-1&&this.resetPlayUpdate("Goals","Away",o,n)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=a.player_id.split("@"),m=this.playersHome.findIndex(x=>x.playerId==y[0]),g=this.playersHome.findIndex(x=>x.playerId==y[1]);m!=-1&&(this.playersHome[m].idSubstitution=a.play_id,this.playersHome[m].substitutionOut=!0,this.playersHome[m].substitutionMin=a.minute,this.playersHome[m].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(x=>x.playerId==u[0]),_=this.playersAway.findIndex(x=>x.playerId==u[1]);m!=-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(x=>x.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(x=>x.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(x=>x.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(x=>x.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 B=this.playersHome.findIndex(x=>x.playerId==a.player_id);B!=-1&&(this.playersHome[B].redcards+=1,this.playersHome[B].redcardsMin=a.minute,this.playersHome[B].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(x=>x.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 n=this.playersHome[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(n,1),this.playersHome[o].idsGoals.splice(n,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const n=this.playersAway[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(n,1),this.playersAway[o].idsGoals.splice(n,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("@"),n=this.playersHome.findIndex(g=>g.playerId==o[0]),s=this.playersHome.findIndex(g=>g.playerId==o[1]);n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionOut=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id),s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].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]);n!=-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 p=this.playersAway.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=a.minute,this.playersAway[p].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=a.minute,this.playersHome[y].idredcards=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].redcards+=1,this.playersAway[m].redcardsMin=a.minute,this.playersAway[m].idredcards=a.play_id)}}}}},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)},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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,_=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(z=>z.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=_.data.away_team.players.findIndex(O=>O.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(n=>n.game_id===Number(n.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(){vo("lineups.game."+this.game.game_id),vo("mxm.game."+this.game.game_id),vo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)f_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),f_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=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<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},async getLineUp(e){if(e!=null&&(Yf(),!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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},CJ={class:"size-browser-class"},kJ={class:"lineup-players is-centered"},SJ={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},EJ={class:"modal-substitutions__substitution-container"},NJ={class:"modal-substitutions__substitution-container__header"},xJ={style:{"margin-left":"32px"}},BJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),$J=[BJ],VJ={class:"modal-substitutions__substitution-container__players-container"},IJ={class:"substitution-player-data-container"},AJ={class:"substitution-player-data-container__img-player"},OJ=["src"],TJ={class:"substitution-player-data-container__img-player__team"},FJ=["src"],zJ={class:"substitution-player-data-container__name-player"},PJ={class:"substitution-player-data-container__position-player"},RJ={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},DJ={key:0,class:"substitution-player-data-container__shirt-player__circle"},jJ={key:1},LJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),vJ=[LJ],MJ={class:"substitution-player-data-container__substitution-player"},HJ={class:"substitution-indicator nomargin"},UJ=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),GJ={class:"substitution-player-data-container__center"},WJ=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),qJ={class:"substitution-player-data-container__minute"},JJ={class:"substitution-player-data-container"},XJ={class:"substitution-player-data-container__img-player"},ZJ=["src"],YJ={class:"substitution-player-data-container__img-player__team"},KJ=["src"],QJ={class:"substitution-player-data-container__name-player"},eX={class:"substitution-player-data-container__position-player"},tX={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},aX={key:0},oX=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),nX=[oX],sX={key:1,class:"substitution-player-data-container__shirt-player__circle"},iX={class:"substitution-player-data-container__substitution-player"},rX={class:"substitution-indicator nomargin"},lX=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),cX=["onClick"],dX=t.createElementVNode("img",{src:u_},null,-1),mX=[dX],pX=["onClick"],hX=t.createElementVNode("img",{src:u_},null,-1),gX=[hX],yX={key:0,class:"cont-lineup-gsc-componente"},uX={class:"shield-team-cont homecolor"},fX=["src"],_X={class:"shield-team-cont awaycolor"},bX=["src"],wX={key:0,class:"header-lineup-shield-team home"},CX={class:"shield-team-cont homecolor"},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),xX={key:0,class:"header-lineup-shield-team away"},BX={class:"shield-team-cont awaycolor"},$X=["src"],VX={class:"header-lineup-shield-team-wrapper"},IX={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},AX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),OX=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),TX=[OX],FX=t.createElementVNode("br",null,null,-1);function zX(e,a,o,n,s,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",CJ,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",kJ,[t.createElementVNode("div",SJ,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric,"game-recientes":Object.keys(s.gameInfoheader).length>0?s.gamesRecientes[s.gameInfoheader.home_team_abbreviation].length+s.gamesRecientes[s.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),s.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},key:s.keyUpdateRecientes,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,"player-home":s.playersHome,"player-away":s.playersAway,"matchdays-default":s.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":s.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),s.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":s.matchdaysPerTeam,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":s.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:s.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",s.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",EJ,[t.createElementVNode("div",NJ,[t.createElementVNode("span",xJ,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=p=>i.closeChange())},$J)])]),t.createElementVNode("div",VJ,[t.createElementVNode("div",IJ,[t.createElementVNode("div",AJ,[s.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,OJ)):t.createCommentVNode("",!0),t.createElementVNode("div",TJ,[s.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,FJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",zJ,t.toDisplayString(s.substitutionModal.in.name),1),t.createElementVNode("div",PJ,t.toDisplayString(s.substitutionModal.in.position),1),t.createElementVNode("div",RJ,[s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",DJ,t.toDisplayString(s.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",jJ,vJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",MJ,[t.createElementVNode("template",null,[t.createElementVNode("div",HJ,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),UJ])])])]),t.createElementVNode("div",GJ,[WJ,t.createElementVNode("div",qJ,t.toDisplayString(s.substitutionModal.min)+"'",1)]),t.createElementVNode("div",JJ,[t.createElementVNode("div",XJ,[s.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,ZJ)):t.createCommentVNode("",!0),t.createElementVNode("div",YJ,[s.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,KJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",QJ,t.toDisplayString(s.substitutionModal.out.name),1),t.createElementVNode("div",eX,t.toDisplayString(s.substitutionModal.out.position),1),t.createElementVNode("div",tX,[s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",aX,nX)):t.createCommentVNode("",!0),s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",sX,t.toDisplayString(s.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",iX,[t.createElementVNode("template",null,[t.createElementVNode("div",rX,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),lX])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="home"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformHome}:{backgroundImage:s.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},mX,10,cX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="away"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformAway}:{backgroundImage:s.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},gX,10,pX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",yX,[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"},s.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=p=>i.viewLineupTeam("home"))},[t.createElementVNode("div",uX,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,fX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},s.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=p=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",_X,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,bX)):t.createCommentVNode("",!0)])],4)],2),s.teamActive=="home"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wX,[t.createElementVNode("div",CX,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",SX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EX,[NX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),s.teamActive=="away"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",xX,[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",BX,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,$X)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",VX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",IX,[AX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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",s.gamesContainerWidth<740?"movil":""])},TX,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",s.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",s.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),FX,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const PX=bt(wJ,[["render",zX]]),RX={components:{GSCLineups2D:iL,GSCLineups3D:PX},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function DX(e,a,o,n,s,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,onOnOpenProfile:i.onOpenProfile,"selected-option":o.selectedOption,game:o.game},null,8,["onOnOpenProfile","selected-option","game"])):t.createCommentVNode("",!0)])}const __=bt(RX,[["render",DX]]),oHe="",nHe="",jX={class:"alineaciones-container"},LX=ze({__name:"GSCLineupsMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,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"}})}},emits:["onOpenProfile"],setup(e,{emit:a}){const o=e,n=t.ref(0);t.watch(()=>o.game,i=>{n.value=i.gameId},{deep:!0,immediate:!0});function s(i){a("onOpenProfile",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",jX,[e.game.status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(__),{onOnOpenProfile:s,key:n.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(__),{onOnOpenProfile:s,key:n.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-9aae2489"]]);function b_(e,a){return function(){return e.apply(a,arguments)}}const{toString:vX}=Object.prototype,{getPrototypeOf:vm}=Object,fr=(e=>a=>{const o=vX.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),na=e=>(e=e.toLowerCase(),a=>fr(a)===e),_r=e=>a=>typeof a===e,{isArray:Mo}=Array,es=_r("undefined");function MX(e){return e!==null&&!es(e)&&e.constructor!==null&&!es(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w_=na("ArrayBuffer");function HX(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&w_(e.buffer),a}const UX=_r("string"),Vt=_r("function"),C_=_r("number"),br=e=>e!==null&&typeof e=="object",GX=e=>e===!0||e===!1,wr=e=>{if(fr(e)!=="object")return!1;const a=vm(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WX=na("Date"),qX=na("File"),JX=na("Blob"),XX=na("FileList"),ZX=e=>br(e)&&Vt(e.pipe),YX=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]"))},KX=na("URLSearchParams"),QX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ts(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Mo(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function k_(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const S_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),E_=e=>!es(e)&&e!==S_;function Mm(){const{caseless:e}=E_(this)&&this||{},a={},o=(n,s)=>{const i=e&&k_(a,s)||s;wr(a[i])&&wr(n)?a[i]=Mm(a[i],n):wr(n)?a[i]=Mm({},n):Mo(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&ts(arguments[n],o);return a}const eZ=(e,a,o,{allOwnKeys:n}={})=>(ts(a,(s,i)=>{o&&Vt(s)?e[i]=b_(s,o):e[i]=s},{allOwnKeys:n}),e),tZ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aZ=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},oZ=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&vm(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},nZ=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},sZ=e=>{if(!e)return null;if(Mo(e))return e;let a=e.length;if(!C_(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},iZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&vm(Uint8Array)),rZ=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},lZ=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},cZ=na("HTMLFormElement"),dZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),N_=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),mZ=na("RegExp"),x_=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ts(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},pZ=e=>{x_(e,(a,o)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(Vt(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},hZ=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return Mo(e)?n(e):n(String(e).split(a)),o},gZ=()=>{},yZ=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Hm="abcdefghijklmnopqrstuvwxyz",B_="0123456789",$_={DIGIT:B_,ALPHA:Hm,ALPHA_DIGIT:Hm+Hm.toUpperCase()+B_},uZ=(e=16,a=$_.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function fZ(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _Z=e=>{const a=new Array(10),o=(n,s)=>{if(br(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=Mo(n)?[]:{};return ts(n,(r,c)=>{const h=o(r,s+1);!es(h)&&(i[c]=h)}),a[s]=void 0,i}}return n};return o(e,0)},bZ=na("AsyncFunction"),wZ=e=>e&&(br(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),v={isArray:Mo,isArrayBuffer:w_,isBuffer:MX,isFormData:YX,isArrayBufferView:HX,isString:UX,isNumber:C_,isBoolean:GX,isObject:br,isPlainObject:wr,isUndefined:es,isDate:WX,isFile:qX,isBlob:JX,isRegExp:mZ,isFunction:Vt,isStream:ZX,isURLSearchParams:KX,isTypedArray:iZ,isFileList:XX,forEach:ts,merge:Mm,extend:eZ,trim:QX,stripBOM:tZ,inherits:aZ,toFlatObject:oZ,kindOf:fr,kindOfTest:na,endsWith:nZ,toArray:sZ,forEachEntry:rZ,matchAll:lZ,isHTMLForm:cZ,hasOwnProperty:N_,hasOwnProp:N_,reduceDescriptors:x_,freezeMethods:pZ,toObjectSet:hZ,toCamelCase:dZ,noop:gZ,toFiniteNumber:yZ,findKey:k_,global:S_,isContextDefined:E_,ALPHABET:$_,generateString:uZ,isSpecCompliantForm:fZ,toJSONObject:_Z,isAsyncFn:bZ,isThenable:wZ};function fe(e,a,o,n,s){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),n&&(this.request=n),s&&(this.response=s)}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 V_=fe.prototype,I_={};["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=>{I_[e]={value:e}}),Object.defineProperties(fe,I_),Object.defineProperty(V_,"isAxiosError",{value:!0}),fe.from=(e,a,o,n,s,i)=>{const r=Object.create(V_);return v.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),fe.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const CZ=null;function Um(e){return v.isPlainObject(e)||v.isArray(e)}function A_(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function O_(e,a,o){return e?e.concat(a).map(function(n,s){return n=A_(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function kZ(e){return v.isArray(e)&&!e.some(Um)}const SZ=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(m,g){return!v.isUndefined(g[m])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(a);if(!v.isFunction(s))throw new TypeError("visitor must be a function");function h(m){if(m===null)return"";if(v.isDate(m))return m.toISOString();if(!c&&v.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(m)||v.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,u){let f=m;if(m&&!u&&typeof m=="object"){if(v.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(v.isArray(m)&&kZ(m)||(v.isFileList(m)||v.endsWith(g,"[]"))&&(f=v.toArray(m)))return g=A_(g),f.forEach(function(_,k){!(v.isUndefined(_)||_===null)&&a.append(r===!0?O_([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Um(m)?!0:(a.append(O_(u,g,i),h(m)),!1)}const l=[],p=Object.assign(SZ,{defaultVisitor:d,convertValue:h,isVisitable:Um});function y(m,g){if(!v.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(m),v.forEach(m,function(u,f){(!(v.isUndefined(u)||u===null)&&s.call(a,u,v.isString(f)?f.trim():f,g,p))===!0&&y(u,g?g.concat(f):[f])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return y(e),a}function T_(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Gm(e,a){this._pairs=[],e&&Cr(e,this,a)}const F_=Gm.prototype;F_.append=function(e,a){this._pairs.push([e,a])},F_.toString=function(e){const a=e?function(o){return e.call(this,o,T_)}:T_;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function EZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function z_(e,a,o){if(!a)return e;const n=o&&o.encode||EZ,s=o&&o.serialize;let i;if(s?i=s(a,o):i=v.isURLSearchParams(a)?a.toString():new Gm(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const P_=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.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)})}},R_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},NZ=typeof URLSearchParams<"u"?URLSearchParams:Gm,xZ=typeof FormData<"u"?FormData:null,BZ=typeof Blob<"u"?Blob:null,$Z={isBrowser:!0,classes:{URLSearchParams:NZ,FormData:xZ,Blob:BZ},protocols:["http","https","file","blob","url","data"]},D_=typeof window<"u"&&typeof document<"u",VZ=(e=>D_&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),IZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),AZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:D_,hasStandardBrowserEnv:VZ,hasStandardBrowserWebWorkerEnv:IZ},Symbol.toStringTag,{value:"Module"})),sa={...AZ,...$Z};function OZ(e,a){return Cr(e,new sa.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return sa.isNode&&v.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function TZ(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function FZ(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function j_(e){function a(o,n,s,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&v.isArray(s)?s.length:r,h?(v.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!v.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&v.isArray(s[r])&&(s[r]=FZ(s[r])),!c)}if(v.isFormData(e)&&v.isFunction(e.entries)){const o={};return v.forEachEntry(e,(n,s)=>{a(TZ(n),s,o,0)}),o}return null}function zZ(e,a,o){if(v.isString(e))try{return(a||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Wm={transitional:R_,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=v.isObject(e);if(s&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return n?JSON.stringify(j_(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(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return OZ(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 s||n?(a.setContentType("application/json",!1),zZ(e)):e}],transformResponse:[function(e){const a=this.transitional||Wm.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&v.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)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:sa.classes.FormData,Blob:sa.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=>{Wm.headers[e]={}});const qm=Wm,PZ=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"]),RZ=e=>{const a={};let o,n,s;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"}},l_={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 PD({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(o){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function RD({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(o||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Pm({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function DD({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){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 s?r:Pm({val:r,max:o-i,min:0})}function c_(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...c_(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Rm({val:e,max:a,min:o=0}){return e>a?Rm({val:e-(a+1),max:a,min:o}):e<o?Rm({val:e+(a+1),max:a,min:o}):e}function jD(e,a){let o;return a?function(...n){const s=this;o||(e.apply(s,n),o=!0,setTimeout(()=>o=!1,a))}:e}function LD(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function vD(e="",a={}){return Object.entries(a).reduce((o,[n,s])=>o.replace(`{${n}}`,String(s)),e)}var MD=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"},vD(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),HD=t.defineComponent({name:"Carousel",props:l_,setup(e,{slots:a,emit:o,expose:n}){var s;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),p;const y=t.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=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",y),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){p=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(!p||!Object.keys(p).length)return;const S=Object.keys(p).map(T=>Number(T)).sort((T,oe)=>+oe-+T);let F=Object.assign({},l);S.some(T=>{const oe=window.matchMedia(`(min-width: ${T}px)`).matches;return oe&&(F=Object.assign(Object.assign({},F),p[T])),oe}),E(F)}function E(S){Object.entries(S).forEach(([F,T])=>d[F]=T)}const B=LD(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function x(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=PD({config:d,slidesCount:h.value}),f.value=RD({config:d,slidesCount:h.value}),d.wrapAround||(y.value=Pm({val:y.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),je(),window.addEventListener("resize",B,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",B,{passive:!0})});let $=!1;const O={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),z=t.ref(!1),ee=t.ref(!1),re=()=>{z.value=!0},Q=()=>{z.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||R.value)&&(O.x=$?S.touches[0].clientX:S.clientX,O.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",P,!0)))}const N=jD(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const F=A.x-O.x,T=A.y-O.y;I.y=T,I.x=F},d.throttle);function P(){const S=d.dir==="rtl"?-1:1,F=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+F)*S;if(T&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(y.value-T),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",P,!0)}function je(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&z.value||te()},d.autoplay))}function ne(){_&&(clearInterval(_),_=null),je()}const R=t.ref(!1);function K(S){const F=d.wrapAround?S:Pm({val:S,max:u.value,min:f.value});y.value===F||R.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!0,m.value=y.value,y.value=F,k=setTimeout(()=>{if(d.wrapAround){const T=Rm({val:F,max:u.value,min:0});T!==y.value&&(y.value=T,o("loop",{currentSlideIndex:y.value,slidingToIndex:S}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!1,ne()},d.transition))}function te(){K(y.value+d.itemsToScroll)}function ae(){K(y.value-d.itemsToScroll)}const se={slideTo:K,next:te,prev:ae};t.provide("nav",se),t.provide("isSliding",R);const ie=t.computed(()=>DD({config:d,currentSlide:y.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,F=ie.value*c.value*S;return{transform:`translateX(${I.x-F}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),x(),V(),ne()}Object.keys(l_).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==y.value&&K(Number(S))}),t.watch(h,x),o("before-init"),w();const $e={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:y,maxSlide:u,minSlide:f,middleSlide:g};n({updateBreakpointsConfigs:b,updateSlidesData:x,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:se,data:$e});const Pe=a.default||a.slides,Re=a.addons,ve=t.reactive($e);return()=>{const S=c_(Pe==null?void 0:Pe(ve)),F=(Re==null?void 0:Re(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let T=S;if(d.wrapAround){const Oe=S.map((Fe,le)=>t.cloneVNode(Fe,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((Fe,le)=>t.cloneVNode(Fe,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));T=[...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},T),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ee.value,"is-hover":z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,F,t.h(MD)])}}}),d_;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(d_||(d_={}));var UD=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))),n=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===n.value,c=()=>e.index===n.value-1,h=()=>e.index===n.value+1,d=()=>{const l=Math.floor(s.value),p=Math.ceil(s.value+o.itemsToShow-1);return e.index>=l&&e.index<=p};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 GD=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},WD=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),qD={class:"gsc-carousel"},JD={key:0},XD=WD(()=>t.createElementVNode("div",null,"no hay",-1)),ZD=[XD],YD={class:"gsc-carousel__2d__slides"},KD={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},QD=["fill"],ej={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tj=["fill"],aj={class:"gsc-carousel__2d__navigation"},oj={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},nj=["stroke"],sj={key:1,class:"gsc-carousel__2d__navigation__pagination"},ij=["onClick"],rj={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lj=["stroke"],cj={__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"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(u=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const s=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(s,u=>{u&&c.value?(c.value=!1,h(n.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,u=>{r.value!==u&&y(u)}),t.watch(()=>n.items,u=>{s.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&s.value){if(n.defaultItemByProp){const f=n.items.findIndex(_=>_[n.defaultItemByProp.propName]===n.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=n.defaultItemByIndex,i.value=u[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){s.value&&s.value.next()}function l(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function y(u){s.value&&s.value.slideTo(u)}function m(u){s.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?n.items.length-1:u.slidingToIndex===n.items.length?0:u.slidingToIndex;r.value=f,i.value=n.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:p,slideTo:y}),(u,f)=>(t.openBlock(),t.createElementBlock("div",qD,[n.is3d?(t.openBlock(),t.createElementBlock("div",JD,ZD)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",YD,[t.createVNode(t.unref(HD),{ref_key:"carousel2d",ref:s,"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(UD),{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",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:f[0]||(f[0]=_=>s.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",KD,[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,QD)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),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",ej,[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,tj)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",aj,[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",oj,[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:n.arrowsColor},null,8,nj)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",sj,[(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:`${n.navigationHeight}px`,width:`${r.value===k?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===k?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>m(k)},null,12,ij))),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]=_=>s.value.next())},[(t.openBlock(),t.createElementBlock("svg",rj,[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:n.arrowsColor},null,8,lj)]))])):t.createCommentVNode("",!0)])],2))]))}},gr=GD(cj,[["__scopeId","data-v-cf3e4ab5"]]),dj=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Dm={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))}}},m_=()=>{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}))},p_=Dm.setup;Dm.setup=p_?(e,a)=>(m_(),p_(e,a)):m_;const mj=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),pj=["src"],hj={key:1,class:"text"},gj=["src"],yj={class:"stats"},uj=mj(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),fj={class:"numstats"},_j={class:"leyend"};function bj(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.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,pj)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",hj,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,gj)):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",yj,[uj,t.createElementVNode("div",fj,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",_j,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const wj=dj(Dm,[["render",bj],["__scopeId","data-v-fb269a1e"]]),Cj={class:"gsc-dropdown__main-container__item-selected"},kj=["height","width"],Sj=["stroke"],Ej={class:"gsc-dropdown__items-container"},Nj=["onClick"],xj={key:0,class:"gsc-dropdown__items-footer"},jm={__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,n=t.ref({}),s=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(m,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&m&&m.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,n.value=m[u]):(i.value=0,n.value=m[0])}else n.value=m[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,m=>{if(m){const g=o.items.findIndex(u=>typeof m=="object"?JSON.stringify(u)===JSON.stringify(m):u===m);g!==-1&&(i.value=g,n.value=o.items[g],a("update:modelValue",n.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(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function p(m,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function y(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(m,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,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",Cj,[t.renderSlot(m.$slots,"default",{selectedItem:n.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,Sj)],8,kj))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",Ej,[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:_=>p(u,f)},[t.renderSlot(m.$slots,"availableItem",{item:u})],10,Nj))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",xj,[t.createVNode(t.unref(wj),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let h_=null;const Bj={components:{LineupField:KP,LineupRecentItem:dR,LineupMainHeader:TR,LineupFilter:tD,MatchDetails:o_,GscSwitchComponent:Yn,GSCCarousel:gr,GSCDropdown:jm},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:MP},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(n=>n.game_id===Number(n.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(){vo("lineups.game."+this.game.game_id),vo("mxm.game."+this.game.game_id),vo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)h_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),h_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=await Bt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.home_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[p].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[p].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[p].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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.away_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[p].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[p].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(Yf(),!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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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+". "+s,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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},Kn=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),$j={class:"lineup__header",ref:"gamesContainer"},Vj=Kn(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),Ij={key:0,style:{width:"325px"}},Aj={class:"lineup__card"},Oj={key:0},Tj={key:1},Fj={key:2},zj={key:3,class:"lineup__card-body"},Pj={key:0,class:"lineup__selector",style:{margin:"auto"}},Rj={class:"lineup__selector-item"},Dj={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},jj={class:"lineup__filters"},Lj={class:"selector-tournaments"},vj={class:"lineup__items-carousel"},Mj=Kn(()=>t.createElementVNode("div",null,null,-1)),Hj={class:"lineup__items-center"},Uj={class:"lineup__selector-recientes"},Gj={key:1,class:"containernofoundsearchrecientes"},Wj=Kn(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),qj={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},Jj={key:5,class:"lineup__card-body space-between"},Xj={class:"lineup__card-body__probables"},Zj={class:"selector-tournaments"},Yj=Kn(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Kj=["src"],Qj={class:"lineup__card-body__probables"},eL=["src"],tL=Kn(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),aL={class:"selector-tournaments"},oL={key:6,class:"lineup__card-body space-between"},nL={class:"postmatch__matchday"};function sL(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),p=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),m=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",$j,[Vj,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Ij,[(s.gameInfoheader.game_status==0||s.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",Aj,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",Oj,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",Tj,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",Fj,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(s.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:s.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.headerInfoHistoricItemGame.score[0]+" - "+s.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(s.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.home_team+".png"},visitTeam:{acronym:s.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.gameInfoheader.score[0]+" - "+s.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",zj,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",Pj,[s.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:s.updatehistoricos,onInput:i.changeCarouselItemH,items:s.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",Rj,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",Dj,[t.createElementVNode("div",jj,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:s.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",Lj,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=>s.showDetails=!s.showDetails)},t.toDisplayString(s.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",vj,[Mj,t.createElementVNode("div",Hj,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",Uj,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",Gj,[Wj,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),s.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",qj,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),s.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",Jj,[t.createElementVNode("div",Xj,[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",Zj,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),Yj,t.createElementVNode("img",{src:s.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,Kj)]),t.createElementVNode("div",Qj,[t.createElementVNode("img",{src:s.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,eL),tL,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",aL,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",oL,[t.createElementVNode("div",nL,t.toDisplayString(s.gameInfoheader.season_name!==void 0?s.gameInfoheader.season_name+" | "+i.remplazarMxJor(s.gameInfoheader.matchday_abbreviation)+" | "+s.gameInfoheader.home_team_abbreviation+" - "+s.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(m,{class:"lineup__field",players:s.players},null,8,["players"])])],2)}const iL=bt(Bj,[["render",sL],["__scopeId","data-v-3e8dc5c2"]]),rL={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){e.section!="Historicos"&&this.$emit("onOpenProfile",e)}},mounted(){}},yr=e=>(t.pushScopeId("data-v-59dc0feb"),e=e(),t.popScopeId(),e),lL={key:0,class:"gsc-item-player"},cL={class:"gsc-num-player"},dL={class:"gsc-cont-info-by-player"},mL={class:"gsc-cont-info-by-player-row1"},pL={class:"shield-player-cont"},hL=["src"],gL={class:"gsc-cont-info-by-player-row2"},yL={class:"gsc-cont-info-by-player-row2-line-data"},uL={class:"cont-display-gsc"},fL=["src"],_L={class:"gsc-cont-cards"},bL={key:0,class:"gsc-yellow_card_div"},wL={key:1,class:"gsc-red_card_div"},CL={key:2,class:"gsc-yellowred_card_div"},kL=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),SL={key:5,class:"gsc-goal_card_div_wrapper"},EL=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),NL={key:1,class:"gsc-item-player"},xL={class:"gsc-num-player2"},BL={class:"gsc-cont-info-by-player2"},$L={class:"gsc-cont-info-by-player-row2"},VL={class:"gsc-cont-info-by-player-row2-line-data"},IL={class:"gsc-cont-cards2"},AL={key:0,class:"gsc-yellow_card_div"},OL={key:1,class:"gsc-red_card_div"},TL={key:2,class:"gsc-yellowred_card_div"},FL=yr(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),zL={key:5,class:"gsc-goal_card_div_wrapper"},PL=yr(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),RL={class:"cont-display-gsc"},DL=["src"],jL={class:"gsc-cont-info-by-player-row1"},LL={class:"shield-player-cont"},vL=["src"];function ML(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",lL,[t.createElementVNode("div",cL,[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",dL,[t.createElementVNode("div",mL,[t.createElementVNode("div",pL,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,hL)])]),t.createElementVNode("div",gL,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(o.data.section=="Historicos"?"text-decoration: none !important; cursor: default !important":""),onClick:a[0]||(a[0]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",yL,[t.createElementVNode("div",uL,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,fL),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",_L,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",bL)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",wL)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",CL)):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},[kL,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",SL,[EL,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",NL,[t.createElementVNode("div",xL,[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",BL,[t.createElementVNode("div",$L,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(o.data.section=="Historicos"?"text-decoration: none !important; cursor: default !important":""),onClick:a[1]||(a[1]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",VL,[t.createElementVNode("div",IL,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",AL)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",OL)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",TL)):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},[FL,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",zL,[PL,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",RL,[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,DL)])])]),t.createElementVNode("div",jL,[t.createElementVNode("div",LL,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,vL)])])])])):t.createCommentVNode("",!0)],64)}const HL=bt(rL,[["render",ML],["__scopeId","data-v-59dc0feb"]]),Lm="/icn-filter.svg",Qn="/icn-expand-arrow.svg",g_="/backarrow.svg",y_="/nextarrow.svg",UL="_selectoritem_1dafy_137",GL="_selectoritem2_1dafy_157",WL="_gscheaderlineup_1dafy_177",qL="_anNoEstn_1dafy_191",JL="_groupsLeague_1dafy_197",XL="_jugadores_1dafy_209",ZL="_switchOption_1dafy_219",YL="_jugadores1_1dafy_239",KL="_switchOption1_1dafy_249",QL="_switchStatesBig_1dafy_265",ev="_groupsLeagueParent_1dafy_283",tv="_imgHomeTeamIcon_1dafy_301",av="_imgHomeTeamWrapper_1dafy_313",ov="_teamContainer_1dafy_337",nv="_name_1dafy_361",sv="_homeTeamContainer_1dafy_373",iv="_div_1dafy_393",rv="_scoreContainer_1dafy_401",lv="_scoreContainerWrapper_1dafy_421",cv="_teamContainer1_1dafy_447",dv="_awayTeamContainer_1dafy_471",mv="_matchContainer_1dafy_491",pv="_sliderMatchesChild_1dafy_509",hv="_manchesterUnited_1dafy_521",gv="_sliderMatchesItem_1dafy_533",yv="_sliderMatches_1dafy_509",uv="_sortIcon_1dafy_569",fv="_filtros_1dafy_583",_v="_sortParent_1dafy_599",bv="_shapeIcon_1dafy_613",wv="_btnFilter_1dafy_623",Cv="_btnFilter1_1dafy_651",kv="_btnFilterParent_1dafy_679",Sv="_backArrowIcon_1dafy_695",Ev="_teamContainer2_1dafy_707",Nv="_homeTeam_1dafy_373",xv="_div4_1dafy_735",Bv="_finalScore_1dafy_745",$v="_manchesterUnited1_1dafy_771",Vv="_scoreContainer1_1dafy_785",Iv="_match_1dafy_491",Av="_manchesterUnited2_1dafy_821",Ov="_btnDetails_1dafy_831",Tv="_matchContainer1_1dafy_851",Fv="_goalChild_1dafy_867",zv="_goal_1dafy_867",Pv="_manchesterUnited3_1dafy_893",Rv="_minuteEvent_1dafy_907",Dv="_yellowCard_1dafy_921",jv="_awayTeamEvents_1dafy_935",Lv="_rectangle_1dafy_949",vv="_homeTeamEvents_1dafy_963",Mv="_totalEvents_1dafy_979",Hv="_headerSeccionAlineaciones1_1dafy_995",Uv="_switchOption3_1dafy_1017",Gv="_switchOption4_1dafy_1041",Wv="_switchStatesBig1_1dafy_1061",qv="_manchesterUnited13_1dafy_1075",Jv="_homeTeamContainer1_1dafy_1085",Xv="_scoreContainer2_1dafy_1099",Zv="_matchContainer2_1dafy_1127",Yv="_manchesterUnited14_1dafy_1147",Kv="_sliderMatchesInner_1dafy_1161",Qv="_rectangleIcon_1dafy_1181",eM="_sliderMatches1_1dafy_1201",tM="_containerData_1dafy_1217",aM="_headerSeccionAlineaciones2_1dafy_1245",oM="_headerSeccionAlineaciones_1dafy_995",nM="_headerSeccionAlineaciones21200_1dafy_1293",sM="_headerSeccionAlineaciones1540_1dafy_1299",iM="_headerSeccionAlineaciones2540_1dafy_1307",rM={selectoritem:UL,selectoritem2:GL,gscheaderlineup:WL,anNoEstn:qL,groupsLeague:JL,jugadores:XL,switchOption:ZL,jugadores1:YL,switchOption1:KL,switchStatesBig:QL,groupsLeagueParent:ev,imgHomeTeamIcon:tv,imgHomeTeamWrapper:av,teamContainer:ov,name:nv,homeTeamContainer:sv,div:iv,scoreContainer:rv,scoreContainerWrapper:lv,teamContainer1:cv,awayTeamContainer:dv,matchContainer:mv,sliderMatchesChild:pv,manchesterUnited:hv,sliderMatchesItem:gv,sliderMatches:yv,sortIcon:uv,filtros:fv,sortParent:_v,shapeIcon:bv,btnFilter:wv,btnFilter1:Cv,btnFilterParent:kv,backArrowIcon:Sv,teamContainer2:Ev,homeTeam:Nv,div4:xv,finalScore:Bv,manchesterUnited1:$v,scoreContainer1:Vv,match:Iv,manchesterUnited2:Av,btnDetails:Ov,matchContainer1:Tv,goalChild:Fv,goal:zv,manchesterUnited3:Pv,minuteEvent:Rv,yellowCard:Dv,awayTeamEvents:jv,rectangle:Lv,homeTeamEvents:vv,totalEvents:Mv,headerSeccionAlineaciones1:Hv,switchOption3:Uv,switchOption4:Gv,switchStatesBig1:Wv,manchesterUnited13:qv,homeTeamContainer1:Jv,scoreContainer2:Xv,matchContainer2:Zv,manchesterUnited14:Yv,sliderMatchesInner:Kv,rectangleIcon:Qv,sliderMatches1:eM,containerData:tM,headerSeccionAlineaciones2:aM,headerSeccionAlineaciones:oM,headerSeccionAlineaciones21200:nM,headerSeccionAlineaciones1540:sM,headerSeccionAlineaciones2540:iM},lM={components:{GSCCarousel:gr,GscSwitchComponent:Yn},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)}}},cM=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),dM=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),mM=["src"],pM=["src"],hM=["src"],gM=["src"],yM=["src"],uM=["src"];function fM(e,a,o,n,s,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)},[cM,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),dM],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[s.selectedOption].objgame.home_team+".png"},null,10,mM)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,pM)):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":s.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:Lm},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:Qn},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:Qn},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:g_},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[s.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[s.selectedOption].objgame.home_team+".png"},null,10,hM)):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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,gM)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[s.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:y_},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[s.selectedOption].objgame.home_team+".png"},null,10,yM)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,uM)):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":s.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 _M={$style:rM},bM=bt(lM,[["render",fM],["__cssModules",_M]]),ur=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),wM=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),CM=["value"],kM=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)),SM={class:"filter-modal__padding"},EM={class:"filter-modal__content-header"},NM=ur(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),xM={class:"filter-modal__content-options"},BM=["onClick"],$M={class:"filter-modal__content-header"},VM=ur(()=>t.createElementVNode("h3",null,"Resultados:",-1)),IM={class:"filter-modal__content-options"},AM=["onClick"],OM=ur(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),TM={__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 n=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],s=[{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),p=t.ref(!0),y=t.ref(["local","visit"]),m=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(y.value)),c.value=JSON.parse(JSON.stringify(m.value)),h.value=l.value,d.value=p.value};t.watch(()=>o.itemSelect,w=>{w&&(y.value=w.selectedFilterTeam,m.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=y.value:E=m.value;const B=E.findIndex(V=>V===w);B==-1?E.push(w):b=="team"&&y.value.length==2?E.splice(B,1):(b=="team"&&E.push(w),m.value.length>1&&E.splice(B,1)),l.value=y.value.length==2,p.value=m.value.length==3},f=()=>{y.value=["local","visit"],m.value=["win","draw","lose"],l.value=!0,p.value=!0,a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},_=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},k=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.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},[wM,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,CM),kM])):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",SM,[t.createElementVNode("div",EM,[NM,t.createVNode(pr,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",xM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"team"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,BM)),64))]),t.createElementVNode("div",$M,[VM,t.createVNode(pr,{modelValue:p.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>p.value=E),b[3]||(b[3]=E=>E&&(m.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",IM,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"player"),class:t.normalizeClass({active:m.value.includes(E.id)})},t.toDisplayString(E.name),11,AM)),64))])]),OM,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))}},FM=bt(TM,[["__scopeId","data-v-2118a6cd"]]),zM="/icn-filter1.svg",PM="/icn-expand-arrow1.svg",RM="/icn-filter2.svg",DM="/icn-arrow-expand.svg",jM="_containernofoundsearchrecientes_1gxk5_159",LM="_btndeletefilters_1gxk5_215",vM="_leyenddeleteshow_1gxk5_247",MM="_selectoritem_1gxk5_261",HM="_anNoEstn_1gxk5_279",UM="_groupsLeague_1gxk5_287",GM="_historicas_1gxk5_297",WM="_switchOption_1gxk5_309",qM="_recientes_1gxk5_331",JM="_switchOption1_1gxk5_343",XM="_switchOption2_1gxk5_369",ZM="_switchStatesBig_1gxk5_387",YM="_groupsLeagueParent_1gxk5_407",KM="_imgHomeTeamIcon_1gxk5_427",QM="_imgHomeTeamWrapper_1gxk5_441",eH="_teamContainer_1gxk5_467",tH="_name_1gxk5_493",aH="_homeTeamContainer_1gxk5_507",oH="_div_1gxk5_529",nH="_scoreContainer_1gxk5_539",sH="_scoreContainerWrapper_1gxk5_561",iH="_teamContainer1_1gxk5_587",rH="_awayTeamContainer_1gxk5_613",lH="_matchContainer_1gxk5_635",cH="_sliderMatchesChild_1gxk5_655",dH="_manchesterUnited_1gxk5_669",mH="_sliderMatchesItem_1gxk5_683",pH="_sliderMatches_1gxk5_655",hH="_sortIcon_1gxk5_719",gH="_filtros_1gxk5_735",yH="_sortParent_1gxk5_753",uH="_shapeIcon_1gxk5_769",fH="_btnFilter_1gxk5_781",_H="_btnFilter1_1gxk5_813",bH="_btnFilterParent_1gxk5_843",wH="_backArrowIcon_1gxk5_861",CH="_teamContainer2_1gxk5_875",kH="_homeTeam_1gxk5_507",SH="_div4_1gxk5_907",EH="_finalScore_1gxk5_919",NH="_manchesterUnited1_1gxk5_947",xH="_scoreContainer1_1gxk5_963",BH="_match_1gxk5_635",$H="_manchesterUnited2_1gxk5_997",VH="_btnDetails_1gxk5_1023",IH="_matchContainer1_1gxk5_1047",AH="_goalChild_1gxk5_1065",OH="_goal_1gxk5_1065",TH="_manchesterUnited3_1gxk5_1095",FH="_minuteEvent_1gxk5_1111",zH="_yellowCard_1gxk5_1127",PH="_awayTeamEvents_1gxk5_1143",RH="_rectangle_1gxk5_1159",DH="_homeTeamEvents_1gxk5_1175",jH="_totalEvents_1gxk5_1193",LH="_headerSeccionAlineaciones1_1gxk5_1211",vH="_sliderMatchesInner_1gxk5_1233",MH="_btnFilter2_1gxk5_1247",HH="_btnDetails1_1gxk5_1281",UH="_matchContainer3_1gxk5_1299",GH="_backArrowIcon1_1gxk5_1321",WH="_match1_1gxk5_1335",qH="_headerSeccionAlineaciones2_1gxk5_1347",JH="_jugadores2_1gxk5_1369",XH="_switchOption6_1gxk5_1383",ZH="_switchOption7_1gxk5_1405",YH="_switchStatesBig2_1gxk5_1431",KH="_manchesterUnited26_1gxk5_1447",QH="_homeTeamContainer2_1gxk5_1459",eU="_vectorIcon_1gxk5_1475",tU="_teamSwitch_1gxk5_1487",aU="_matchContainer5_1gxk5_1513",oU="_manchesterUnited27_1gxk5_1535",nU="_sliderMatchesChild1_1gxk5_1551",sU="_sliderMatchesChild2_1gxk5_1573",iU="_sliderMatches2_1gxk5_1595",rU="_filtros2_1gxk5_1615",lU="_btnFilter4_1gxk5_1635",cU="_jornada2_1gxk5_1667",dU="_filterMatchday_1gxk5_1681",mU="_btnDetails2_1gxk5_1703",pU="_filtersContainer_1gxk5_1725",hU="_matchContainer6_1gxk5_1745",gU="_matchDetailContainer_1gxk5_1763",yU="_containerData_1gxk5_1783",uU="_headerSeccionAlineaciones3_1gxk5_1813",fU="_headerSeccionAlineaciones_1gxk5_1211",_U="_headerSeccionAlineaciones31200_1gxk5_1865",bU="_headerSeccionAlineaciones3420_1gxk5_1891",wU="_headerSeccionAlineaciones3880_1gxk5_1917",CU="_headerSeccionAlineaciones3540_1gxk5_1941",kU="_headerSeccionAlineaciones11200_1gxk5_1967",SU="_headerSeccionAlineaciones1420_1gxk5_1995",EU="_headerSeccionAlineaciones1880_1gxk5_2017",NU="_headerSeccionAlineaciones21200_1gxk5_2039",xU="_headerSeccionAlineaciones2420_1gxk5_2067",BU="_headerSeccionAlineaciones2880_1gxk5_2091",$U="_headerSeccionAlineaciones2540_1gxk5_2113",VU={containernofoundsearchrecientes:jM,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:LM,leyenddeleteshow:vM,selectoritem:MM,anNoEstn:HM,groupsLeague:UM,historicas:GM,switchOption:WM,recientes:qM,switchOption1:JM,switchOption2:XM,switchStatesBig:ZM,groupsLeagueParent:YM,imgHomeTeamIcon:KM,imgHomeTeamWrapper:QM,teamContainer:eH,name:tH,homeTeamContainer:aH,div:oH,scoreContainer:nH,scoreContainerWrapper:sH,teamContainer1:iH,awayTeamContainer:rH,matchContainer:lH,sliderMatchesChild:cH,manchesterUnited:dH,sliderMatchesItem:mH,sliderMatches:pH,sortIcon:hH,filtros:gH,sortParent:yH,shapeIcon:uH,btnFilter:fH,btnFilter1:_H,btnFilterParent:bH,backArrowIcon:wH,teamContainer2:CH,homeTeam:kH,div4:SH,finalScore:EH,manchesterUnited1:NH,scoreContainer1:xH,match:BH,manchesterUnited2:$H,btnDetails:VH,matchContainer1:IH,goalChild:AH,goal:OH,manchesterUnited3:TH,minuteEvent:FH,yellowCard:zH,awayTeamEvents:PH,rectangle:RH,homeTeamEvents:DH,totalEvents:jH,headerSeccionAlineaciones1:LH,sliderMatchesInner:vH,btnFilter2:MH,btnDetails1:HH,matchContainer3:UH,backArrowIcon1:GH,match1:WH,headerSeccionAlineaciones2:qH,jugadores2:JH,switchOption6:XH,switchOption7:ZH,switchStatesBig2:YH,manchesterUnited26:KH,homeTeamContainer2:QH,vectorIcon:eU,teamSwitch:tU,matchContainer5:aU,manchesterUnited27:oU,sliderMatchesChild1:nU,sliderMatchesChild2:sU,sliderMatches2:iU,filtros2:rU,btnFilter4:lU,jornada2:cU,filterMatchday:dU,btnDetails2:mU,filtersContainer:pU,matchContainer6:hU,matchDetailContainer:gU,containerData:yU,headerSeccionAlineaciones3:uU,headerSeccionAlineaciones:fU,headerSeccionAlineaciones31200:_U,headerSeccionAlineaciones3420:bU,headerSeccionAlineaciones3880:wU,headerSeccionAlineaciones3540:CU,headerSeccionAlineaciones11200:kU,headerSeccionAlineaciones1420:SU,headerSeccionAlineaciones1880:EU,headerSeccionAlineaciones21200:NU,headerSeccionAlineaciones2420:xU,headerSeccionAlineaciones2880:BU,headerSeccionAlineaciones2540:$U},IU={components:{GSCCarousel:gr,GscSwitchComponent:Yn,GSCDropdown:jm,GSCFilter:FM,GSCSwitchRadio:e_,GSCMatchDetails:o_},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)}}},AU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),OU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),TU=["src"],FU=["src"],zU={class:"selector-tournaments"},PU=["src"],RU=["src"],DU={key:1},jU=t.createElementVNode("br",null,null,-1),LU=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),vU=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),MU=["src"],HU=["src"],UU={class:"selector-tournaments"},GU=["src"],WU=["src"],qU={key:1},JU=t.createElementVNode("br",null,null,-1),XU=["src"],ZU=["src"],YU={class:"selector-tournaments"},KU=["src"],QU=["src"],eG={key:1},tG=t.createElementVNode("br",null,null,-1);function aG(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),p=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)},[AU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),OU],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,TU)],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":s.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,FU)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:Lm},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:Qn},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.openfiltervalue,onChange:i.changeFiltersModal,reset:s.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",zU,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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:s.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,PU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,RU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",DU,[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"),jU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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)},[LU,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),vU],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,MU)],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":s.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,HU)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:zM},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:PM},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",UU,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,GU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,WU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",qU,[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"),JU,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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,XU)],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":s.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,ZU)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:RM},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:DM},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",YU,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,KU)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,QU),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",eG,[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"),tG,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const oG={$style:VU},nG=bt(IU,[["render",aG],["__cssModules",oG]]),sG="_selectoritem_16hc8_179",iG="_selectoritem2_16hc8_199",rG="_gscheaderlineup_16hc8_219",lG="_anNoEstn_16hc8_233",cG="_groupsLeague_16hc8_239",dG="_jugadores_16hc8_249",mG="_switchOption_16hc8_259",pG="_jugadores1_16hc8_279",hG="_switchOption1_16hc8_289",gG="_switchStatesBig_16hc8_305",yG="_groupsLeagueParent_16hc8_323",uG="_imgHomeTeamIcon_16hc8_341",fG="_imgHomeTeamWrapper_16hc8_353",_G="_teamContainer_16hc8_377",bG="_name_16hc8_401",wG="_homeTeamContainer_16hc8_413",CG="_div_16hc8_433",kG="_titleSession_16hc8_441",SG="_scoreContainer_16hc8_461",EG="_scoreContainerWrapper_16hc8_481",NG="_teamContainer1_16hc8_505",xG="_awayTeamContainer_16hc8_529",BG="_matchContainer_16hc8_549",$G="_sliderMatchesChild_16hc8_567",VG="_manchesterUnited_16hc8_579",IG="_sliderMatchesItem_16hc8_591",AG="_sliderMatches_16hc8_567",OG="_sortIcon_16hc8_627",TG="_filtros_16hc8_641",FG="_sortParent_16hc8_657",zG="_shapeIcon_16hc8_671",PG="_btnFilter_16hc8_681",RG="_btnFilter1_16hc8_709",DG="_btnFilterParent_16hc8_737",jG="_backArrowIcon_16hc8_753",LG="_teamContainer2_16hc8_765",vG="_homeTeam_16hc8_413",MG="_div4_16hc8_793",HG="_finalScore_16hc8_803",UG="_manchesterUnited1_16hc8_829",GG="_scoreContainer1_16hc8_843",WG="_match_16hc8_549",qG="_manchesterUnited2_16hc8_879",JG="_btnDetails_16hc8_889",XG="_matchContainer1_16hc8_909",ZG="_goalChild_16hc8_925",YG="_goal_16hc8_925",KG="_manchesterUnited3_16hc8_951",QG="_minuteEvent_16hc8_965",eW="_yellowCard_16hc8_979",tW="_awayTeamEvents_16hc8_993",aW="_rectangle_16hc8_1007",oW="_homeTeamEvents_16hc8_1021",nW="_totalEvents_16hc8_1037",sW="_headerSeccionAlineaciones1_16hc8_1053",iW="_switchOption3_16hc8_1075",rW="_switchOption4_16hc8_1099",lW="_switchStatesBig1_16hc8_1119",cW="_manchesterUnited13_16hc8_1133",dW="_homeTeamContainer1_16hc8_1143",mW="_scoreContainer2_16hc8_1157",pW="_matchContainer2_16hc8_1185",hW="_manchesterUnited14_16hc8_1205",gW="_sliderMatchesInner_16hc8_1219",yW="_rectangleIcon_16hc8_1239",uW="_sliderMatches1_16hc8_1259",fW="_containerData_16hc8_1275",_W="_headerSeccionAlineaciones2_16hc8_1303",bW="_headerSeccionAlineaciones_16hc8_1053",wW="_headerSeccionAlineaciones21200_16hc8_1351",CW="_headerSeccionAlineaciones1540_16hc8_1357",kW="_headerSeccionAlineaciones2540_16hc8_1365",SW={selectoritem:sG,selectoritem2:iG,gscheaderlineup:rG,anNoEstn:lG,groupsLeague:cG,jugadores:dG,switchOption:mG,jugadores1:pG,switchOption1:hG,switchStatesBig:gG,groupsLeagueParent:yG,imgHomeTeamIcon:uG,imgHomeTeamWrapper:fG,teamContainer:_G,name:bG,homeTeamContainer:wG,div:CG,titleSession:kG,scoreContainer:SG,scoreContainerWrapper:EG,teamContainer1:NG,awayTeamContainer:xG,matchContainer:BG,sliderMatchesChild:$G,manchesterUnited:VG,sliderMatchesItem:IG,sliderMatches:AG,sortIcon:OG,filtros:TG,sortParent:FG,shapeIcon:zG,btnFilter:PG,btnFilter1:RG,btnFilterParent:DG,backArrowIcon:jG,teamContainer2:LG,homeTeam:vG,div4:MG,finalScore:HG,manchesterUnited1:UG,scoreContainer1:GG,match:WG,manchesterUnited2:qG,btnDetails:JG,matchContainer1:XG,goalChild:ZG,goal:YG,manchesterUnited3:KG,minuteEvent:QG,yellowCard:eW,awayTeamEvents:tW,rectangle:aW,homeTeamEvents:oW,totalEvents:nW,headerSeccionAlineaciones1:sW,switchOption3:iW,switchOption4:rW,switchStatesBig1:lW,manchesterUnited13:cW,homeTeamContainer1:dW,scoreContainer2:mW,matchContainer2:pW,manchesterUnited14:hW,sliderMatchesInner:gW,rectangleIcon:yW,sliderMatches1:uW,containerData:fW,headerSeccionAlineaciones2:_W,headerSeccionAlineaciones:bW,headerSeccionAlineaciones21200:wW,headerSeccionAlineaciones1540:CW,headerSeccionAlineaciones2540:kW},EW={components:{GSCCarousel:gr,GscSwitchComponent:Yn},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)}}},NW=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),xW=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BW=["src"],$W=["src"],VW=["src"],IW=["src"],AW=["src"],OW=["src"];function TW(e,a,o,n,s,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)},[NW,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),xW],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,BW)],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,$W)],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:Lm},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:Qn},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:Qn},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:g_},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,VW)],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,IW),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:y_},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,AW)],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,OW)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const FW={$style:SW},zW=bt(EW,[["render",TW],["__cssModules",FW]]),PW="_anNoEstn_j98j7_139",RW="_groupsLeague_j98j7_145",DW="_historicas_j98j7_153",jW="_switchOption_j98j7_163",LW="_switchOption1_j98j7_183",vW="_probables_j98j7_203",MW="_switchOption2_j98j7_213",HW="_switchStatesBig_j98j7_237",UW="_groupsLeagueParent_j98j7_255",GW="_imgHomeTeamIcon_j98j7_273",WW="_imgHomeTeamWrapper_j98j7_285",qW="_teamContainer_j98j7_309",JW="_name_j98j7_333",XW="_jor_j98j7_345",ZW="_jorParent_j98j7_357",YW="_shapeIcon_j98j7_373",KW="_frameParent_j98j7_383",QW="_manchesterUnited_j98j7_413",eq="_necaxaIcon_j98j7_435",tq="_manchesterUnited1_j98j7_447",aq="_team_j98j7_309",oq="_homeTeamContainer_j98j7_475",nq="_div1_j98j7_495",sq="_scoreContainer_j98j7_503",iq="_scoreContainerWrapper_j98j7_525",rq="_team1_j98j7_549",lq="_name1_j98j7_563",cq="_teamContainer1_j98j7_577",dq="_awayTeamContainer_j98j7_601",mq="_matchContainer_j98j7_623",pq="_goalChild_j98j7_641",hq="_goal_j98j7_641",gq="_manchesterUnited4_j98j7_667",yq="_minuteEvent_j98j7_681",uq="_yellowCard_j98j7_695",fq="_awayTeamEvents_j98j7_709",_q="_rectangle_j98j7_723",bq="_homeTeamEvents_j98j7_737",wq="_totalEvents_j98j7_753",Cq="_headerSeccionAlineaciones1_j98j7_769",kq="_homeTeamContainer1_j98j7_789",Sq="_awayTeamContainer1_j98j7_813",Eq="_headerSeccionAlineaciones2_j98j7_837",Nq="_jugadores_j98j7_857",xq="_switchOption6_j98j7_869",Bq="_switchOption8_j98j7_889",$q="_switchStatesBig2_j98j7_913",Vq="_manchesterUnited28_j98j7_927",Iq="_homeTeamContainer2_j98j7_935",Aq="_matchContainer2_j98j7_949",Oq="_manchesterUnited29_j98j7_971",Tq="_sliderMatchesChild_j98j7_985",Fq="_sliderMatchesItem_j98j7_1005",zq="_sliderMatches_j98j7_985",Pq="_jorParent2_j98j7_1045",Rq="_filterMatchday_j98j7_1059",Dq="_necaxaIcon4_j98j7_1081",jq="_team4_j98j7_1093",Lq="_filterMatchdayParent_j98j7_1113",vq="_filterMatchday1_j98j7_1127",Mq="_teamParent_j98j7_1157",Hq="_filtersContainer_j98j7_1177",Uq="_containerData_j98j7_1195",Gq="_headerSeccionAlineaciones3_j98j7_1223",Wq="_headerSeccionAlineaciones_j98j7_769",qq={anNoEstn:PW,groupsLeague:RW,historicas:DW,switchOption:jW,switchOption1:LW,probables:vW,switchOption2:MW,switchStatesBig:HW,groupsLeagueParent:UW,imgHomeTeamIcon:GW,imgHomeTeamWrapper:WW,teamContainer:qW,name:JW,jor:XW,jorParent:ZW,shapeIcon:YW,frameParent:KW,manchesterUnited:QW,necaxaIcon:eq,manchesterUnited1:tq,team:aq,homeTeamContainer:oq,div1:nq,scoreContainer:sq,scoreContainerWrapper:iq,team1:rq,name1:lq,teamContainer1:cq,awayTeamContainer:dq,matchContainer:mq,goalChild:pq,goal:hq,manchesterUnited4:gq,minuteEvent:yq,yellowCard:uq,awayTeamEvents:fq,rectangle:_q,homeTeamEvents:bq,totalEvents:wq,headerSeccionAlineaciones1:Cq,homeTeamContainer1:kq,awayTeamContainer1:Sq,headerSeccionAlineaciones2:Eq,jugadores:Nq,switchOption6:xq,switchOption8:Bq,switchStatesBig2:$q,manchesterUnited28:Vq,homeTeamContainer2:Iq,matchContainer2:Aq,manchesterUnited29:Oq,sliderMatchesChild:Tq,sliderMatchesItem:Fq,sliderMatches:zq,jorParent2:Pq,filterMatchday:Rq,necaxaIcon4:Dq,team4:jq,filterMatchdayParent:Lq,filterMatchday1:vq,teamParent:Mq,filtersContainer:Hq,containerData:Uq,headerSeccionAlineaciones3:Gq,headerSeccionAlineaciones:Wq},Jq={components:{GSCDropdown:jm,GscSwitchComponent:Yn},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])}}},Xq=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),Zq=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),Yq=["src"],Kq={class:"selector-tournaments"},Qq=["src"],eJ=["src"],tJ={class:"selector-tournaments"},aJ=["src"],oJ=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),nJ=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),sJ=["src"],iJ={class:"selector-tournaments"},rJ=["src"],lJ=["src"],cJ={class:"selector-tournaments"},dJ=["src"],mJ=["src"],pJ=["src"],hJ={class:"selector-tournaments"},gJ=["src"],yJ=["src"],uJ={class:"selector-tournaments"};function fJ(e,a,o,n,s,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)},[Xq,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),Zq],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,Yq)],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",Kq,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:s.rivalHomeImg},null,10,Qq),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,eJ),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",tJ,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,aJ)],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)},[oJ,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),nJ],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,sJ)],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",iJ,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:s.rivalHomeImg},null,10,rJ),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,lJ),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",cJ,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,dJ)],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,mJ)],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,pJ)],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",hJ,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:s.rivalHomeImg},null,10,gJ)],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:s.rivalVisitImg},null,10,yJ),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",uJ,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 _J={$style:qq},bJ=bt(Jq,[["render",fJ],["__cssModules",_J]]),u_="/line.png";let f_=null;const wJ={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:HL,HeaderPlayerHistorico:bM,HeaderPlayerRecientes:nG,HeaderPlayerProbables:bJ,HeaderPlayerPostmatch:zW},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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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(" "),p=o[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var m=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var g=m+". "+y,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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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 p=a.data[b].player_name.split(","),y=p[0].split(" "),m=p[1].trim().split(" "),g="";y.length==2||y.length==1?y[0].length<4?g=y[0]+" "+y[1]:g=y[0]:y.length==3?g=y[0]+" "+y[1]:y.length==4&&(g=y[1]+" "+y[2]+" "+y[3]);var u=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.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,n=-1;if(this.playersHome.length>0){var s=this.playersHome.findIndex(x=>x.idredcards==a.play_id),i=this.playersHome.findIndex(x=>x.idyellowcards==a.play_id),r=this.playersHome.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersHome.length;x++){var c=this.playersHome[x].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,n=x)}s!=-1&&this.resetPlayUpdate("RedCard","Home",s,n),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,n),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,n),o!=-1&&this.resetPlayUpdate("Goals","Home",o,n)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(x=>x.idredcards==a.play_id),d=this.playersAway.findIndex(x=>x.idyellowcards==a.play_id),l=this.playersAway.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersAway.length;x++){var p=this.playersAway[x].idsGoals.findIndex($=>$==a.play_id);p!=-1&&(o=p,n=x)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,n),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,n),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,n),o!=-1&&this.resetPlayUpdate("Goals","Away",o,n)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=a.player_id.split("@"),m=this.playersHome.findIndex(x=>x.playerId==y[0]),g=this.playersHome.findIndex(x=>x.playerId==y[1]);m!=-1&&(this.playersHome[m].idSubstitution=a.play_id,this.playersHome[m].substitutionOut=!0,this.playersHome[m].substitutionMin=a.minute,this.playersHome[m].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(x=>x.playerId==u[0]),_=this.playersAway.findIndex(x=>x.playerId==u[1]);m!=-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(x=>x.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(x=>x.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(x=>x.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(x=>x.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 B=this.playersHome.findIndex(x=>x.playerId==a.player_id);B!=-1&&(this.playersHome[B].redcards+=1,this.playersHome[B].redcardsMin=a.minute,this.playersHome[B].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(x=>x.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 n=this.playersHome[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(n,1),this.playersHome[o].idsGoals.splice(n,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const n=this.playersAway[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(n,1),this.playersAway[o].idsGoals.splice(n,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("@"),n=this.playersHome.findIndex(g=>g.playerId==o[0]),s=this.playersHome.findIndex(g=>g.playerId==o[1]);n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionOut=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id),s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].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]);n!=-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 p=this.playersAway.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=a.minute,this.playersAway[p].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=a.minute,this.playersHome[y].idredcards=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].redcards+=1,this.playersAway[m].redcardsMin=a.minute,this.playersAway[m].idredcards=a.play_id)}}}}},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)},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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,_=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(z=>z.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=_.data.away_team.players.findIndex(O=>O.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(n=>n.game_id===Number(n.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(){vo("lineups.game."+this.game.game_id),vo("mxm.game."+this.game.game_id),vo("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)f_=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),f_.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=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<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},async getLineUp(e){if(e!=null&&(Yf(),!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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},CJ={class:"size-browser-class"},kJ={class:"lineup-players is-centered"},SJ={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},EJ={class:"modal-substitutions__substitution-container"},NJ={class:"modal-substitutions__substitution-container__header"},xJ={style:{"margin-left":"32px"}},BJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),$J=[BJ],VJ={class:"modal-substitutions__substitution-container__players-container"},IJ={class:"substitution-player-data-container"},AJ={class:"substitution-player-data-container__img-player"},OJ=["src"],TJ={class:"substitution-player-data-container__img-player__team"},FJ=["src"],zJ={class:"substitution-player-data-container__name-player"},PJ={class:"substitution-player-data-container__position-player"},RJ={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},DJ={key:0,class:"substitution-player-data-container__shirt-player__circle"},jJ={key:1},LJ=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),vJ=[LJ],MJ={class:"substitution-player-data-container__substitution-player"},HJ={class:"substitution-indicator nomargin"},UJ=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),GJ={class:"substitution-player-data-container__center"},WJ=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),qJ={class:"substitution-player-data-container__minute"},JJ={class:"substitution-player-data-container"},XJ={class:"substitution-player-data-container__img-player"},ZJ=["src"],YJ={class:"substitution-player-data-container__img-player__team"},KJ=["src"],QJ={class:"substitution-player-data-container__name-player"},eX={class:"substitution-player-data-container__position-player"},tX={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},aX={key:0},oX=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),nX=[oX],sX={key:1,class:"substitution-player-data-container__shirt-player__circle"},iX={class:"substitution-player-data-container__substitution-player"},rX={class:"substitution-indicator nomargin"},lX=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),cX=["onClick"],dX=t.createElementVNode("img",{src:u_},null,-1),mX=[dX],pX=["onClick"],hX=t.createElementVNode("img",{src:u_},null,-1),gX=[hX],yX={key:0,class:"cont-lineup-gsc-componente"},uX={class:"shield-team-cont homecolor"},fX=["src"],_X={class:"shield-team-cont awaycolor"},bX=["src"],wX={key:0,class:"header-lineup-shield-team home"},CX={class:"shield-team-cont homecolor"},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),xX={key:0,class:"header-lineup-shield-team away"},BX={class:"shield-team-cont awaycolor"},$X=["src"],VX={class:"header-lineup-shield-team-wrapper"},IX={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},AX=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),OX=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),TX=[OX],FX=t.createElementVNode("br",null,null,-1);function zX(e,a,o,n,s,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",CJ,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",kJ,[t.createElementVNode("div",SJ,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric,"game-recientes":Object.keys(s.gameInfoheader).length>0?s.gamesRecientes[s.gameInfoheader.home_team_abbreviation].length+s.gamesRecientes[s.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),s.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},key:s.keyUpdateRecientes,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,"player-home":s.playersHome,"player-away":s.playersAway,"matchdays-default":s.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":s.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),s.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":s.matchdaysPerTeam,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":s.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:s.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",s.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",EJ,[t.createElementVNode("div",NJ,[t.createElementVNode("span",xJ,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=p=>i.closeChange())},$J)])]),t.createElementVNode("div",VJ,[t.createElementVNode("div",IJ,[t.createElementVNode("div",AJ,[s.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,OJ)):t.createCommentVNode("",!0),t.createElementVNode("div",TJ,[s.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,FJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",zJ,t.toDisplayString(s.substitutionModal.in.name),1),t.createElementVNode("div",PJ,t.toDisplayString(s.substitutionModal.in.position),1),t.createElementVNode("div",RJ,[s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",DJ,t.toDisplayString(s.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",jJ,vJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",MJ,[t.createElementVNode("template",null,[t.createElementVNode("div",HJ,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),UJ])])])]),t.createElementVNode("div",GJ,[WJ,t.createElementVNode("div",qJ,t.toDisplayString(s.substitutionModal.min)+"'",1)]),t.createElementVNode("div",JJ,[t.createElementVNode("div",XJ,[s.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,ZJ)):t.createCommentVNode("",!0),t.createElementVNode("div",YJ,[s.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,KJ)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",QJ,t.toDisplayString(s.substitutionModal.out.name),1),t.createElementVNode("div",eX,t.toDisplayString(s.substitutionModal.out.position),1),t.createElementVNode("div",tX,[s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",aX,nX)):t.createCommentVNode("",!0),s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",sX,t.toDisplayString(s.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",iX,[t.createElementVNode("template",null,[t.createElementVNode("div",rX,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),lX])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="home"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformHome}:{backgroundImage:s.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},mX,10,cX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="away"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformAway}:{backgroundImage:s.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},gX,10,pX)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",yX,[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"},s.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=p=>i.viewLineupTeam("home"))},[t.createElementVNode("div",uX,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,fX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},s.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=p=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",_X,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,bX)):t.createCommentVNode("",!0)])],4)],2),s.teamActive=="home"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wX,[t.createElementVNode("div",CX,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kX)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",SX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EX,[NX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),s.teamActive=="away"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",xX,[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",BX,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,$X)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",VX,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",IX,[AX,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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",s.gamesContainerWidth<740?"movil":""])},TX,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",s.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",s.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),FX,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const PX=bt(wJ,[["render",zX]]),RX={components:{GSCLineups2D:iL,GSCLineups3D:PX},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function DX(e,a,o,n,s,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,onOnOpenProfile:i.onOpenProfile,"selected-option":o.selectedOption,game:o.game},null,8,["onOnOpenProfile","selected-option","game"])):t.createCommentVNode("",!0)])}const __=bt(RX,[["render",DX]]),oHe="",nHe="",jX={class:"alineaciones-container"},LX=ze({__name:"GSCLineupsMain",props:{game:{type:Object,default:()=>({gameId:79623,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,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"}})}},emits:["onOpenProfile"],setup(e,{emit:a}){const o=e,n=t.ref(0);t.watch(()=>o.game,i=>{n.value=i.gameId},{deep:!0,immediate:!0});function s(i){a("onOpenProfile",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",jX,[e.game.status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref(__),{onOnOpenProfile:s,key:n.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(__),{onOnOpenProfile:s,key:n.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-9aae2489"]]);function b_(e,a){return function(){return e.apply(a,arguments)}}const{toString:vX}=Object.prototype,{getPrototypeOf:vm}=Object,fr=(e=>a=>{const o=vX.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),na=e=>(e=e.toLowerCase(),a=>fr(a)===e),_r=e=>a=>typeof a===e,{isArray:Mo}=Array,es=_r("undefined");function MX(e){return e!==null&&!es(e)&&e.constructor!==null&&!es(e.constructor)&&Vt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const w_=na("ArrayBuffer");function HX(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&w_(e.buffer),a}const UX=_r("string"),Vt=_r("function"),C_=_r("number"),br=e=>e!==null&&typeof e=="object",GX=e=>e===!0||e===!1,wr=e=>{if(fr(e)!=="object")return!1;const a=vm(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},WX=na("Date"),qX=na("File"),JX=na("Blob"),XX=na("FileList"),ZX=e=>br(e)&&Vt(e.pipe),YX=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]"))},KX=na("URLSearchParams"),QX=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ts(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),Mo(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function k_(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const S_=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),E_=e=>!es(e)&&e!==S_;function Mm(){const{caseless:e}=E_(this)&&this||{},a={},o=(n,s)=>{const i=e&&k_(a,s)||s;wr(a[i])&&wr(n)?a[i]=Mm(a[i],n):wr(n)?a[i]=Mm({},n):Mo(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&ts(arguments[n],o);return a}const eZ=(e,a,o,{allOwnKeys:n}={})=>(ts(a,(s,i)=>{o&&Vt(s)?e[i]=b_(s,o):e[i]=s},{allOwnKeys:n}),e),tZ=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),aZ=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},oZ=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&vm(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},nZ=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},sZ=e=>{if(!e)return null;if(Mo(e))return e;let a=e.length;if(!C_(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},iZ=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&vm(Uint8Array)),rZ=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},lZ=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},cZ=na("HTMLFormElement"),dZ=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),N_=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),mZ=na("RegExp"),x_=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};ts(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},pZ=e=>{x_(e,(a,o)=>{if(Vt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(Vt(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},hZ=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return Mo(e)?n(e):n(String(e).split(a)),o},gZ=()=>{},yZ=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Hm="abcdefghijklmnopqrstuvwxyz",B_="0123456789",$_={DIGIT:B_,ALPHA:Hm,ALPHA_DIGIT:Hm+Hm.toUpperCase()+B_},uZ=(e=16,a=$_.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function fZ(e){return!!(e&&Vt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const _Z=e=>{const a=new Array(10),o=(n,s)=>{if(br(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=Mo(n)?[]:{};return ts(n,(r,c)=>{const h=o(r,s+1);!es(h)&&(i[c]=h)}),a[s]=void 0,i}}return n};return o(e,0)},bZ=na("AsyncFunction"),wZ=e=>e&&(br(e)||Vt(e))&&Vt(e.then)&&Vt(e.catch),v={isArray:Mo,isArrayBuffer:w_,isBuffer:MX,isFormData:YX,isArrayBufferView:HX,isString:UX,isNumber:C_,isBoolean:GX,isObject:br,isPlainObject:wr,isUndefined:es,isDate:WX,isFile:qX,isBlob:JX,isRegExp:mZ,isFunction:Vt,isStream:ZX,isURLSearchParams:KX,isTypedArray:iZ,isFileList:XX,forEach:ts,merge:Mm,extend:eZ,trim:QX,stripBOM:tZ,inherits:aZ,toFlatObject:oZ,kindOf:fr,kindOfTest:na,endsWith:nZ,toArray:sZ,forEachEntry:rZ,matchAll:lZ,isHTMLForm:cZ,hasOwnProperty:N_,hasOwnProp:N_,reduceDescriptors:x_,freezeMethods:pZ,toObjectSet:hZ,toCamelCase:dZ,noop:gZ,toFiniteNumber:yZ,findKey:k_,global:S_,isContextDefined:E_,ALPHABET:$_,generateString:uZ,isSpecCompliantForm:fZ,toJSONObject:_Z,isAsyncFn:bZ,isThenable:wZ};function fe(e,a,o,n,s){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),n&&(this.request=n),s&&(this.response=s)}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 V_=fe.prototype,I_={};["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=>{I_[e]={value:e}}),Object.defineProperties(fe,I_),Object.defineProperty(V_,"isAxiosError",{value:!0}),fe.from=(e,a,o,n,s,i)=>{const r=Object.create(V_);return v.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),fe.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const CZ=null;function Um(e){return v.isPlainObject(e)||v.isArray(e)}function A_(e){return v.endsWith(e,"[]")?e.slice(0,-2):e}function O_(e,a,o){return e?e.concat(a).map(function(n,s){return n=A_(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function kZ(e){return v.isArray(e)&&!e.some(Um)}const SZ=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(m,g){return!v.isUndefined(g[m])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&v.isSpecCompliantForm(a);if(!v.isFunction(s))throw new TypeError("visitor must be a function");function h(m){if(m===null)return"";if(v.isDate(m))return m.toISOString();if(!c&&v.isBlob(m))throw new fe("Blob is not supported. Use a Buffer instead.");return v.isArrayBuffer(m)||v.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,u){let f=m;if(m&&!u&&typeof m=="object"){if(v.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(v.isArray(m)&&kZ(m)||(v.isFileList(m)||v.endsWith(g,"[]"))&&(f=v.toArray(m)))return g=A_(g),f.forEach(function(_,k){!(v.isUndefined(_)||_===null)&&a.append(r===!0?O_([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Um(m)?!0:(a.append(O_(u,g,i),h(m)),!1)}const l=[],p=Object.assign(SZ,{defaultVisitor:d,convertValue:h,isVisitable:Um});function y(m,g){if(!v.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(m),v.forEach(m,function(u,f){(!(v.isUndefined(u)||u===null)&&s.call(a,u,v.isString(f)?f.trim():f,g,p))===!0&&y(u,g?g.concat(f):[f])}),l.pop()}}if(!v.isObject(e))throw new TypeError("data must be an object");return y(e),a}function T_(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Gm(e,a){this._pairs=[],e&&Cr(e,this,a)}const F_=Gm.prototype;F_.append=function(e,a){this._pairs.push([e,a])},F_.toString=function(e){const a=e?function(o){return e.call(this,o,T_)}:T_;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function EZ(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function z_(e,a,o){if(!a)return e;const n=o&&o.encode||EZ,s=o&&o.serialize;let i;if(s?i=s(a,o):i=v.isURLSearchParams(a)?a.toString():new Gm(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const P_=class{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.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)})}},R_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},NZ=typeof URLSearchParams<"u"?URLSearchParams:Gm,xZ=typeof FormData<"u"?FormData:null,BZ=typeof Blob<"u"?Blob:null,$Z={isBrowser:!0,classes:{URLSearchParams:NZ,FormData:xZ,Blob:BZ},protocols:["http","https","file","blob","url","data"]},D_=typeof window<"u"&&typeof document<"u",VZ=(e=>D_&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),IZ=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),AZ=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:D_,hasStandardBrowserEnv:VZ,hasStandardBrowserWebWorkerEnv:IZ},Symbol.toStringTag,{value:"Module"})),sa={...AZ,...$Z};function OZ(e,a){return Cr(e,new sa.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return sa.isNode&&v.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function TZ(e){return v.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function FZ(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function j_(e){function a(o,n,s,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&v.isArray(s)?s.length:r,h?(v.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!v.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&v.isArray(s[r])&&(s[r]=FZ(s[r])),!c)}if(v.isFormData(e)&&v.isFunction(e.entries)){const o={};return v.forEachEntry(e,(n,s)=>{a(TZ(n),s,o,0)}),o}return null}function zZ(e,a,o){if(v.isString(e))try{return(a||JSON.parse)(e),v.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const Wm={transitional:R_,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=v.isObject(e);if(s&&v.isHTMLForm(e)&&(e=new FormData(e)),v.isFormData(e))return n?JSON.stringify(j_(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(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return OZ(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 s||n?(a.setContentType("application/json",!1),zZ(e)):e}],transformResponse:[function(e){const a=this.transitional||Wm.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&v.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)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:sa.classes.FormData,Blob:sa.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=>{Wm.headers[e]={}});const qm=Wm,PZ=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"]),RZ=e=>{const a={};let o,n,s;return e&&e.split(`
|
|
44
44
|
`).forEach(function(i){s=i.indexOf(":"),o=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!o||a[o]&&PZ[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},L_=Symbol("internals");function as(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 DZ(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const jZ=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Jm(e,a,o,n,s){if(v.isFunction(n))return n.call(this,a,o);if(s&&(a=o),!!v.isString(a)){if(v.isString(n))return a.indexOf(n)!==-1;if(v.isRegExp(n))return n.test(a)}}function LZ(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function vZ(e,a){const o=v.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let Sr=class{constructor(a){a&&this.set(a)}set(a,o,n){const s=this;function i(c,h,d){const l=as(h);if(!l)throw new Error("header name must be a non-empty string");const p=v.findKey(s,l);(!p||s[p]===void 0||d===!0||d===void 0&&s[p]!==!1)&&(s[p||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())&&!jZ(a)?r(RZ(a),o):a!=null&&i(o,a,n),this}get(a,o){if(a=as(a),a){const n=v.findKey(this,a);if(n){const s=this[n];if(!o)return s;if(o===!0)return DZ(s);if(v.isFunction(o))return o.call(this,s,n);if(v.isRegExp(o))return o.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=as(a),a){const n=v.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||Jm(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let s=!1;function i(r){if(r=as(r),r){const c=v.findKey(n,r);c&&(!o||Jm(n,n[c],c,o))&&(delete n[c],s=!0)}}return v.isArray(a)?a.forEach(i):i(a),s}clear(a){const o=Object.keys(this);let n=o.length,s=!1;for(;n--;){const i=o[n];(!a||Jm(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const o=this,n={};return v.forEach(this,(s,i)=>{const r=v.findKey(n,i);if(r){o[r]=kr(s),delete o[i];return}const c=a?LZ(i):String(i).trim();c!==i&&delete o[i],o[c]=kr(s),n[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return v.forEach(this,(n,s)=>{n!=null&&n!==!1&&(o[s]=a&&v.isArray(n)?n.join(", "):n)}),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 n=new this(a);return o.forEach(s=>n.set(s)),n}static accessor(a){const o=(this[L_]=this[L_]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=as(i);o[r]||(vZ(n,i),o[r]=!0)}return v.isArray(a)?a.forEach(s):s(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(n){this[o]=n}}}),v.freezeMethods(Sr);const Oa=Sr;function Xm(e,a){const o=this||qm,n=a||o,s=Oa.from(n.headers);let i=n.data;return v.forEach(e,function(r){i=r.call(o,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function v_(e){return!!(e&&e.__CANCEL__)}function os(e,a,o){fe.call(this,e??"canceled",fe.ERR_CANCELED,a,o),this.name="CanceledError"}v.inherits(os,fe,{__CANCEL__:!0});function MZ(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(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 HZ=sa.hasStandardBrowserEnv?{write(e,a,o,n,s,i){const r=[e+"="+encodeURIComponent(a)];v.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),v.isString(n)&&r.push("path="+n),v.isString(s)&&r.push("domain="+s),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 UZ(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function GZ(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function M_(e,a){return e&&!UZ(a)?GZ(e,a):a}const WZ=sa.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(s){let i=s;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=n(window.location.href),function(s){const i=v.isString(s)?n(s):s;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function qZ(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function JZ(e,a){e=e||10;const o=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const h=Date.now(),d=n[i];r||(r=h),o[s]=c,n[s]=h;let l=i,p=0;for(;l!==s;)p+=o[l++],l=l%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),h-r<a)return;const y=d&&h-d;return y?Math.round(p*1e3/y):void 0}}function H_(e,a){let o=0;const n=JZ(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,c=i-o,h=n(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:s};l[a?"download":"upload"]=!0,e(l)}}const XZ=typeof XMLHttpRequest<"u",ZZ=XZ&&function(e){return new Promise(function(a,o){let n=e.data;const s=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(n)){if(sa.hasStandardBrowserEnv||sa.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((d=s.getContentType())!==!1){const[g,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];s.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)):"";s.set("Authorization","Basic "+btoa(g+":"+u))}const p=M_(e.baseURL,e.url);l.open(e.method.toUpperCase(),z_(p,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function y(){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};MZ(function(f){a(f),h()},function(f){o(f),h()},u),l=null}if("onloadend"in l?l.onloadend=y:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(y)},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||R_;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new fe(g,u.clarifyTimeoutError?fe.ETIMEDOUT:fe.ECONNABORTED,e,l)),l=null},sa.hasStandardBrowserEnv&&(r&&v.isFunction(r)&&(r=r(e)),r||r!==!1&&WZ(p))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&HZ.read(e.xsrfCookieName);g&&s.set(e.xsrfHeaderName,g)}n===void 0&&s.setContentType(null),"setRequestHeader"in l&&v.forEach(s.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",H_(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",H_(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=g=>{l&&(o(!g||g.type?new os(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 m=qZ(p);if(m&&sa.protocols.indexOf(m)===-1){o(new fe("Unsupported protocol "+m+":",fe.ERR_BAD_REQUEST,e));return}l.send(n||null)})},Zm={http:CZ,xhr:ZZ};v.forEach(Zm,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const U_=e=>`- ${e}`,YZ=e=>v.isFunction(e)||e===null||e===!1,G_={getAdapter:e=>{e=v.isArray(e)?e:[e];const{length:a}=e;let o,n;const s={};for(let i=0;i<a;i++){o=e[i];let r;if(n=o,!YZ(o)&&(n=Zm[(r=String(o)).toLowerCase()],n===void 0))throw new fe(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).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(U_).join(`
|
|
@@ -71,7 +71,7 @@
|
|
|
71
71
|
* Vue 3 Carousel 0.3.1
|
|
72
72
|
* (c) 2023
|
|
73
73
|
* @license MIT
|
|
74
|
-
*/const mt={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"}},_4={itemsToShow:{default:mt.itemsToShow,type:Number},itemsToScroll:{default:mt.itemsToScroll,type:Number},wrapAround:{default:mt.wrapAround,type:Boolean},throttle:{default:mt.throttle,type:Number},snapAlign:{default:mt.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:mt.transition,type:Number},breakpoints:{default:mt.breakpoints,type:Object},autoplay:{default:mt.autoplay,type:Number},pauseAutoplayOnHover:{default:mt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:mt.mouseDrag,type:Boolean},touchDrag:{default:mt.touchDrag,type:Boolean},dir:{default:mt.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:mt.i18n,type:Object},settings:{default(){return{}},type:Object}};function jye({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(o){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Lye({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(o||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Eh({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function vye({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){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 s?r:Eh({val:r,max:o-i,min:0})}function b4(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...b4(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Nh({val:e,max:a,min:o=0}){return e>a?Nh({val:e-(a+1),max:a,min:o}):e<o?Nh({val:e+(a+1),max:a,min:o}):e}function Mye(e,a){let o;return a?function(...n){const s=this;o||(e.apply(s,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Hye(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Uye(e="",a={}){return Object.entries(a).reduce((o,[n,s])=>o.replace(`{${n}}`,String(s)),e)}var Gye=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},mt))),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"},Uye(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Wye=t.defineComponent({name:"Carousel",props:_4,setup(e,{slots:a,emit:o,expose:n}){var s;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},mt));let l=Object.assign({},mt),p;const y=t.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=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",y),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){p=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(!p||!Object.keys(p).length)return;const S=Object.keys(p).map(T=>Number(T)).sort((T,oe)=>+oe-+T);let F=Object.assign({},l);S.some(T=>{const oe=window.matchMedia(`(min-width: ${T}px)`).matches;return oe&&(F=Object.assign(Object.assign({},F),p[T])),oe}),E(F)}function E(S){Object.entries(S).forEach(([F,T])=>d[F]=T)}const B=Hye(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function x(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=jye({config:d,slidesCount:h.value}),f.value=Lye({config:d,slidesCount:h.value}),d.wrapAround||(y.value=Eh({val:y.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),je(),window.addEventListener("resize",B,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",B,{passive:!0})});let $=!1;const O={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),z=t.ref(!1),ee=t.ref(!1),re=()=>{z.value=!0},Q=()=>{z.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||R.value)&&(O.x=$?S.touches[0].clientX:S.clientX,O.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",P,!0)))}const N=Mye(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const F=A.x-O.x,T=A.y-O.y;I.y=T,I.x=F},d.throttle);function P(){const S=d.dir==="rtl"?-1:1,F=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+F)*S;if(T&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(y.value-T),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",P,!0)}function je(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&z.value||te()},d.autoplay))}function ne(){_&&(clearInterval(_),_=null),je()}const R=t.ref(!1);function K(S){const F=d.wrapAround?S:Eh({val:S,max:u.value,min:f.value});y.value===F||R.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!0,m.value=y.value,y.value=F,k=setTimeout(()=>{if(d.wrapAround){const T=Nh({val:F,max:u.value,min:0});T!==y.value&&(y.value=T,o("loop",{currentSlideIndex:y.value,slidingToIndex:S}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!1,ne()},d.transition))}function te(){K(y.value+d.itemsToScroll)}function ae(){K(y.value-d.itemsToScroll)}const se={slideTo:K,next:te,prev:ae};t.provide("nav",se),t.provide("isSliding",R);const ie=t.computed(()=>vye({config:d,currentSlide:y.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,F=ie.value*c.value*S;return{transform:`translateX(${I.x-F}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),x(),V(),ne()}Object.keys(_4).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==y.value&&K(Number(S))}),t.watch(h,x),o("before-init"),w();const $e={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:y,maxSlide:u,minSlide:f,middleSlide:g};n({updateBreakpointsConfigs:b,updateSlidesData:x,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:se,data:$e});const Pe=a.default||a.slides,Re=a.addons,ve=t.reactive($e);return()=>{const S=b4(Pe==null?void 0:Pe(ve)),F=(Re==null?void 0:Re(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let T=S;if(d.wrapAround){const Oe=S.map((Fe,le)=>t.cloneVNode(Fe,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((Fe,le)=>t.cloneVNode(Fe,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));T=[...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},T),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ee.value,"is-hover":z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,F,t.h(Gye)])}}}),w4;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(w4||(w4={}));var qye=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({},mt))),n=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===n.value,c=()=>e.index===n.value-1,h=()=>e.index===n.value+1,d=()=>{const l=Math.floor(s.value),p=Math.ceil(s.value+o.itemsToShow-1);return e.index>=l&&e.index<=p};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 Jye=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Xye=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),Zye={class:"gsc-carousel"},Yye={key:0},Kye=Xye(()=>t.createElementVNode("div",null,"no hay",-1)),Qye=[Kye],e0e={class:"gsc-carousel__2d__slides"},t0e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a0e=["fill"],o0e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n0e=["fill"],s0e={class:"gsc-carousel__2d__navigation"},i0e={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r0e=["stroke"],l0e={key:1,class:"gsc-carousel__2d__navigation__pagination"},c0e=["onClick"],d0e={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m0e=["stroke"],p0e={__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 n=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(s,u=>{u&&c.value?(c.value=!1,h(n.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,u=>{r.value!==u&&y(u)}),t.watch(()=>n.items,u=>{s.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&s.value){if(n.defaultItemByProp){const f=n.items.findIndex(_=>_[n.defaultItemByProp.propName]===n.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=n.defaultItemByIndex,i.value=u[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){s.value&&s.value.next()}function l(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function y(u){s.value&&s.value.slideTo(u)}function m(u){s.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?n.items.length-1:u.slidingToIndex===n.items.length?0:u.slidingToIndex;r.value=f,i.value=n.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:p,slideTo:y}),(u,f)=>(t.openBlock(),t.createElementBlock("div",Zye,[n.is3d?(t.openBlock(),t.createElementBlock("div",Yye,Qye)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",e0e,[t.createVNode(t.unref(Wye),{ref_key:"carousel2d",ref:s,"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(qye),{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]=_=>s.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",t0e,[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,a0e)]))],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",o0e,[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,n0e)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",s0e,[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",i0e,[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:n.arrowsColor},null,8,r0e)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",l0e,[(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:`${n.navigationHeight}px`,width:`${r.value===k?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===k?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>m(k)},null,12,c0e))),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]=_=>s.value.next())},[(t.openBlock(),t.createElementBlock("svg",d0e,[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:n.arrowsColor},null,8,m0e)]))])):t.createCommentVNode("",!0)])],2))]))}},h0e=Jye(p0e,[["__scopeId","data-v-dd3cbf69"]]),xh=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o};let C4=null;const Bh={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)C4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),C4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},k4=()=>{t.useCssVars(e=>({"30c6a434":e.colorBackgroundHome+"45","7fc59d92":e.colorBackgroundAway+"45","21945b84":e.colorBackgroundHome,21914993:e.colorBackgroundAway}))},S4=Bh.setup;Bh.setup=S4?(e,a)=>(k4(),S4(e,a)):k4;const ul=e=>(t.pushScopeId("data-v-947163bf"),e=e(),t.popScopeId(),e),g0e=ul(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),y0e=[g0e],u0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),f0e=["src"],_0e=ul(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),b0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),w0e=["src"],C0e=["src"],k0e={class:"text-container"};function S0e(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},y0e,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),u0e,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,f0e),t.createElementVNode("div",{class:t.normalizeClass([i.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(i.baselogoright)},null,2),_0e,b0e,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,w0e),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.logoright)},null,10,C0e),t.createElementVNode("div",k0e,[t.createElementVNode("span",{class:t.normalizeClass(i.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(i.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const E0e=xh(Bh,[["render",S0e],["__scopeId","data-v-947163bf"]]);let E4=null;const $h={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)E4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),E4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},N4=()=>{t.useCssVars(e=>({a66b3a58:e.colorBackgroundHome,a6715e3a:e.colorBackgroundAway,"4117430c":e.colorBackgroundAway+"62","6896b4f4":e.colorBackgroundHome+"36"}))},x4=$h.setup;$h.setup=x4?(e,a)=>(N4(),x4(e,a)):N4;const fl=e=>(t.pushScopeId("data-v-cab435d8"),e=e(),t.popScopeId(),e),N0e=fl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),x0e=fl(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),B0e=[x0e],$0e={class:"player-container"},V0e=["src"],I0e=["src"],A0e=["src"],O0e={class:"container-score"},T0e=["src"],F0e=["src"],z0e=["src"],P0e=fl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),R0e=fl(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function D0e(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[N0e,t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},B0e,2),t.createElementVNode("div",$0e,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(i.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(i.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(i.playerimage)},null,10,V0e)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,I0e)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,A0e)):t.createCommentVNode("",!0),t.createElementVNode("div",O0e,[t.createElementVNode("div",{class:t.normalizeClass(i.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameHomeTeam),3),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,T0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(i.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(i.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,F0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,z0e),P0e,R0e],2)}const j0e=xh($h,[["render",D0e],["__scopeId","data-v-cab435d8"]]),L0e={components:{GSCCarousel:h0e,GSCThumbnailHighlightGameHistoric:E0e,GSCThumbnailHighlightGamePlayer:j0e},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let n={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:o,advancedFilter:{playListTitle:""}};e.data.category!==0&&(n.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",n)},play(e){this.$emit("play",e)},async getData(e){const a=Dye.create({headers:{Authorization:`${this.token}`}});var o=[],n={};if(e.type=="player"){const s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={category:0,player_id:s.data.player_id,position_id:s.data.position_id,color:s.data.info_thumbnails.colors.background_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.player_id+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.team_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:s.data.seasons[e.season].games_played[i].player_name,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),game_id:s.data.seasons[e.season].games_played[i].game_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},o.push(n)}else if(e.type=="historic"){const s=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let r=0;r<s.data.plays.length;r++)n={player:"Jornada "+s.data.plays[r][6],player_name:s.data.plays[r][4],season_id:s.data.plays[r][31],game_id:s.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},o.length>0?!o.filter(c=>c.game_id===s.data.plays[r][3]).length>0&&o.push(n):o.push(n);const i=s.data.thumbnails;for(let r=0;r<o.length;r++){const c=Math.floor(Math.random()*i[o[r].game_id].info_thumbnails.images.background_default_games.length);o[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+i[o[r].game_id].info_thumbnails.images.background_default_games[c],o[r].backgroundhome=i[o[r].game_id].info_thumbnails.home_colors.background_color,o[r].backgroundaway=i[o[r].game_id].info_thumbnails.away_colors.background_color,o[r].logoaway="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.away_colors.team_id+".png",o[r].logohome="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.home_colors.team_id+".png",o[r].match=i[o[r].game_id].matchday_name.replace("Matchday","Jor"),o[r].seasonname=i[o[r].game_id].season_name,o[r].score=i[o[r].game_id].score[0]+" - "+i[o[r].game_id].score[1],o[r].category=0}}else{const s=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let i=0;i<s.data.seasons[e.season].games.length;i++){const r=Math.floor(Math.random()*s.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games.length);n={category:0,game_id:s.data.seasons[e.season].games[i].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].home_team+".png",player_name:s.data.seasons[e.season].games[i].home_team_acronym+" "+s.data.seasons[e.season].games[i].home_team_score+" : "+s.data.seasons[e.season].games[i].visiting_team_score+" "+s.data.seasons[e.season].games[i].visiting_team_acronym,team_id_b:s.data.seasons[e.season].games[i].home_team,season_id:s.data.seasons[e.season].games[i].season_id,name:"",seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games[i].home_team_score+" : "+s.data.seasons[e.season].games[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games[r],backgroundhome:s.data.seasons[e.season].games[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].visiting_team+".png",total:s.data.seasons[e.season].games[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games[i].home_team+"_"+s.data.seasons[e.season].games[i].season_id+"_r1.jpg"},o.push(n)}}this.printData=o},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){this.setUpResizeObserver()}},v0e={ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function M0e(e,a,o,n,s,i){const r=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),h=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",v0e,[t.createVNode(h,t.mergeProps(i.carouselProps,{items:s.printData,slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:d})=>[o.data.type=="team"||o.data.type=="historic"?(t.openBlock(),t.createBlock(r,{key:0,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,matchday:d.match,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:1}),"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(c,{key:1,type:"player","name-player":d.name,"type-style":"game","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"type-img":"0",background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,"name-category":o.title,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,"logo-home":d.logohome,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway},null,8,["name-player","color-background-home","color-background-away","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)}const H0e=xh(L0e,[["render",M0e]]);let B4=null;const U0e={components:{GSCHighlights:H0e,GSCPlayerTeamGame:Vb,GSCCard:Db},props:{config:{type:Object,default:()=>{}}},computed:{gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[]}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),this.fillData()},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let n={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(n.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",n)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)B4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),B4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=N5.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),o=a.data.games.findIndex(r=>r.game_id===this.config.game);this.gameInfo=a.data.games[o];var n=[],s={},i=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let r=0;r<i.data.games[0].players.length;r++){const c=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),h=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);s={background_color_buttons:i.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[r].info_thumbnails.colors.font_color,font_color_card:i.data.games[0].players[r].info_thumbnails.colors.font_color_card,colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[h]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[h]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[r].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:i.data.games[0].game_id,season_id:i.data.games[0].players[r].season_id,category:0,team_id:i.data.games[0].players[r].team_id},n.push(s)}this.printData=n}}},G0e=e=>(t.pushScopeId("data-v-770825c8"),e=e(),t.popScopeId(),e),W0e={ref:"gamesContainer",class:"container"},q0e={class:"video-partido-container"},J0e={class:"video-partido-higthlights"},X0e=G0e(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),Z0e={class:"video-partido-pltega-games"},Y0e={class:"video-partido-pltega-games-team"};function K0e(e,a,o,n,s,i){const r=t.resolveComponent("GSCHighlights"),c=t.resolveComponent("GSCPlayerTeamGame"),h=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",W0e,[t.createElementVNode("div",q0e,[t.createElementVNode("div",J0e,[t.createVNode(r,{onOpenmedia:i.openmedia,data:{game:o.config.game,season:o.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegaplayersClass)},[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadores (sus mejores jugadas):",data:{season:o.config.season_id,game:o.config.game,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegadatosClass)},[X0e,t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemunoClass)},[s.printData[0]?(t.openBlock(),t.createBlock(h,{key:0,type:1,onOnClickVideos:a[0]||(a[0]=d=>i.onclickPlayVideos({data:s.printData[0],type:3})),onOnClickCard:a[1]||(a[1]=d=>i.onclickPlayVideos({data:s.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:s.printData[0].colorbackgroundhome,"background-img":s.printData[0].background,data:{team_name:s.gameInfo.home_team_name,player_photo:s.printData[0].photoprofile,team_id:s.gameInfo.home_team,background_color_buttons:s.printData[0].background_color_buttons,background_color_cards:s.printData[0].background_color_cards,color_icon_play:s.printData[0].color_icon_play,color_next_back:s.printData[0].color_next_back,font_color:s.printData[0].font_color,font_color_card:s.printData[0].font_color_card}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemdosClass)},[s.printData[1]?(t.openBlock(),t.createBlock(h,{key:0,type:1,onOnClickVideos:a[2]||(a[2]=d=>i.onclickPlayVideos({data:s.printData[1],type:3})),onOnClickCard:a[3]||(a[3]=d=>i.onclickPlayVideos({data:s.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:s.printData[1].colorbackgroundhome,"background-img":s.printData[1].background,data:{team_name:s.gameInfo.visiting_team_name,player_photo:s.printData[1].photoprofile,team_id:s.gameInfo.visiting_team,background_color_buttons:s.printData[1].background_color_buttons,background_color_cards:s.printData[1].background_color_cards,color_icon_play:s.printData[1].color_icon_play,color_next_back:s.printData[1].color_next_back,font_color:s.printData[1].font_color,font_color_card:s.printData[1].font_color_card}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",Z0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+s.gameInfo.home_team_name+":",data:{season:o.config.season_id,team:s.gameInfo.home_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])]),t.createElementVNode("div",Y0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+s.gameInfo.visiting_team_name+":",data:{season:o.config.season_id,team:s.gameInfo.visiting_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])])])],512)}const Q0e={components:{GSCVideoGamePreMatch:Gr(U0e,[["render",K0e],["__scopeId","data-v-770825c8"]]),GSCVideoGamePostMatch:Cge},props:{type:{type:String,default:"Prematch"},config:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{openmedia(e){this.$emit("openmedia",e)}}},eue={style:{margin:"0 auto"}};function tue(e,a,o,n,s,i){const r=t.resolveComponent("GSCVideoGamePreMatch"),c=t.resolveComponent("GSCVideoGamePostMatch");return t.openBlock(),t.createElementBlock("div",eue,[o.type==="Prematch"?(t.openBlock(),t.createBlock(r,{key:0,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0),o.type==="Postmatch"?(t.openBlock(),t.createBlock(c,{key:1,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0)])}const $4=Gr(Q0e,[["render",tue],["__scopeId","data-v-1ea9f5c1"]]),wHe="",CHe="",aue={class:"datagame-container"},oue=ze({__name:"GSCVideoGame",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"}})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,n=t.ref(0);t.watch(()=>o.game,i=>{n.value=i.gameId},{deep:!0,immediate:!0});function s(i){a("openmedia",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",aue,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref($4),{onOpenmedia:s,key:n.value,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref($4),{onOpenmedia:s,key:n.value,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-fe6f377f"]]),nue=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Vh={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},V4=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},I4=Vh.setup;Vh.setup=I4?(e,a)=>(V4(),I4(e,a)):V4;const sue={ref:"gscScrollableContainer",class:"scrollable-container"},iue={class:"scrollable-arrows"},rue=["width","height","viewBox"],lue=["stroke"],cue={class:"scrollable-wrapper"},due={class:"scrollable-arrows"},mue=["width","height","viewBox"],pue=["stroke"];function hue(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",sue,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",iue,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,lue)],8,rue))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",cue,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",due,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,pue)],8,mue))])],2)):t.createCommentVNode("",!0)],512)}const gue=nue(Vh,[["render",hue],["__scopeId","data-v-b548a08d"]]);function A4(e,a){return function(){return e.apply(a,arguments)}}const{toString:yue}=Object.prototype,{getPrototypeOf:Ih}=Object,_l=(e=>a=>{const o=yue.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ga=e=>(e=e.toLowerCase(),a=>_l(a)===e),bl=e=>a=>typeof a===e,{isArray:en}=Array,Es=bl("undefined");function uue(e){return e!==null&&!Es(e)&&e.constructor!==null&&!Es(e.constructor)&&Ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O4=ga("ArrayBuffer");function fue(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&O4(e.buffer),a}const _ue=bl("string"),Ft=bl("function"),T4=bl("number"),wl=e=>e!==null&&typeof e=="object",bue=e=>e===!0||e===!1,Cl=e=>{if(_l(e)!=="object")return!1;const a=Ih(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wue=ga("Date"),Cue=ga("File"),kue=ga("Blob"),Sue=ga("FileList"),Eue=e=>wl(e)&&Ft(e.pipe),Nue=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Ft(e.append)&&((a=_l(e))==="formdata"||a==="object"&&Ft(e.toString)&&e.toString()==="[object FormData]"))},xue=ga("URLSearchParams"),Bue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),en(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function F4(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const z4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),P4=e=>!Es(e)&&e!==z4;function Ah(){const{caseless:e}=P4(this)&&this||{},a={},o=(n,s)=>{const i=e&&F4(a,s)||s;Cl(a[i])&&Cl(n)?a[i]=Ah(a[i],n):Cl(n)?a[i]=Ah({},n):en(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ns(arguments[n],o);return a}const $ue=(e,a,o,{allOwnKeys:n}={})=>(Ns(a,(s,i)=>{o&&Ft(s)?e[i]=A4(s,o):e[i]=s},{allOwnKeys:n}),e),Vue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Iue=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Aue=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Ih(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Oue=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Tue=e=>{if(!e)return null;if(en(e))return e;let a=e.length;if(!T4(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Fue=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),zue=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Pue=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Rue=ga("HTMLFormElement"),Due=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),R4=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),jue=ga("RegExp"),D4=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};Ns(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Lue=e=>{D4(e,(a,o)=>{if(Ft(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(Ft(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},vue=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return en(e)?n(e):n(String(e).split(a)),o},Mue=()=>{},Hue=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Oh="abcdefghijklmnopqrstuvwxyz",j4="0123456789",L4={DIGIT:j4,ALPHA:Oh,ALPHA_DIGIT:Oh+Oh.toUpperCase()+j4},Uue=(e=16,a=L4.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Gue(e){return!!(e&&Ft(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Wue=e=>{const a=new Array(10),o=(n,s)=>{if(wl(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=en(n)?[]:{};return Ns(n,(r,c)=>{const h=o(r,s+1);!Es(h)&&(i[c]=h)}),a[s]=void 0,i}}return n};return o(e,0)},que=ga("AsyncFunction"),Jue=e=>e&&(wl(e)||Ft(e))&&Ft(e.then)&&Ft(e.catch),W={isArray:en,isArrayBuffer:O4,isBuffer:uue,isFormData:Nue,isArrayBufferView:fue,isString:_ue,isNumber:T4,isBoolean:bue,isObject:wl,isPlainObject:Cl,isUndefined:Es,isDate:wue,isFile:Cue,isBlob:kue,isRegExp:jue,isFunction:Ft,isStream:Eue,isURLSearchParams:xue,isTypedArray:Fue,isFileList:Sue,forEach:Ns,merge:Ah,extend:$ue,trim:Bue,stripBOM:Vue,inherits:Iue,toFlatObject:Aue,kindOf:_l,kindOfTest:ga,endsWith:Oue,toArray:Tue,forEachEntry:zue,matchAll:Pue,isHTMLForm:Rue,hasOwnProperty:R4,hasOwnProp:R4,reduceDescriptors:D4,freezeMethods:Lue,toObjectSet:vue,toCamelCase:Due,noop:Mue,toFiniteNumber:Hue,findKey:F4,global:z4,isContextDefined:P4,ALPHABET:L4,generateString:Uue,isSpecCompliantForm:Gue,toJSONObject:Wue,isAsyncFn:que,isThenable:Jue};function ke(e,a,o,n,s){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),n&&(this.request=n),s&&(this.response=s)}W.inherits(ke,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:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const v4=ke.prototype,M4={};["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=>{M4[e]={value:e}}),Object.defineProperties(ke,M4),Object.defineProperty(v4,"isAxiosError",{value:!0}),ke.from=(e,a,o,n,s,i)=>{const r=Object.create(v4);return W.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),ke.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Xue=null;function Th(e){return W.isPlainObject(e)||W.isArray(e)}function H4(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function U4(e,a,o){return e?e.concat(a).map(function(n,s){return n=H4(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function Zue(e){return W.isArray(e)&&!e.some(Th)}const Yue=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function kl(e,a,o){if(!W.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=W.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!W.isUndefined(g[m])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(a);if(!W.isFunction(s))throw new TypeError("visitor must be a function");function h(m){if(m===null)return"";if(W.isDate(m))return m.toISOString();if(!c&&W.isBlob(m))throw new ke("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(m)||W.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,u){let f=m;if(m&&!u&&typeof m=="object"){if(W.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(W.isArray(m)&&Zue(m)||(W.isFileList(m)||W.endsWith(g,"[]"))&&(f=W.toArray(m)))return g=H4(g),f.forEach(function(_,k){!(W.isUndefined(_)||_===null)&&a.append(r===!0?U4([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Th(m)?!0:(a.append(U4(u,g,i),h(m)),!1)}const l=[],p=Object.assign(Yue,{defaultVisitor:d,convertValue:h,isVisitable:Th});function y(m,g){if(!W.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(m),W.forEach(m,function(u,f){(!(W.isUndefined(u)||u===null)&&s.call(a,u,W.isString(f)?f.trim():f,g,p))===!0&&y(u,g?g.concat(f):[f])}),l.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return y(e),a}function G4(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Fh(e,a){this._pairs=[],e&&kl(e,this,a)}const W4=Fh.prototype;W4.append=function(e,a){this._pairs.push([e,a])},W4.toString=function(e){const a=e?function(o){return e.call(this,o,G4)}:G4;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Kue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q4(e,a,o){if(!a)return e;const n=o&&o.encode||Kue,s=o&&o.serialize;let i;if(s?i=s(a,o):i=W.isURLSearchParams(a)?a.toString():new Fh(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const J4=class{constructor(){this.handlers=[]}use(e,a,o){return this.handlers.push({fulfilled:e,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(a){a!==null&&e(a)})}},X4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Que=typeof URLSearchParams<"u"?URLSearchParams:Fh,e1e=typeof FormData<"u"?FormData:null,t1e=typeof Blob<"u"?Blob:null,a1e={isBrowser:!0,classes:{URLSearchParams:Que,FormData:e1e,Blob:t1e},protocols:["http","https","file","blob","url","data"]},Z4=typeof window<"u"&&typeof document<"u",o1e=(e=>Z4&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),n1e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),s1e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z4,hasStandardBrowserEnv:o1e,hasStandardBrowserWebWorkerEnv:n1e},Symbol.toStringTag,{value:"Module"})),ya={...s1e,...a1e};function i1e(e,a){return kl(e,new ya.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return ya.isNode&&W.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function r1e(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function l1e(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function Y4(e){function a(o,n,s,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&W.isArray(s)?s.length:r,h?(W.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!W.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&W.isArray(s[r])&&(s[r]=l1e(s[r])),!c)}if(W.isFormData(e)&&W.isFunction(e.entries)){const o={};return W.forEachEntry(e,(n,s)=>{a(r1e(n),s,o,0)}),o}return null}function c1e(e,a,o){if(W.isString(e))try{return(a||JSON.parse)(e),W.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const zh={transitional:X4,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=W.isObject(e);if(s&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return n?JSON.stringify(Y4(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return i1e(e,this.formSerializer).toString();if((i=W.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return kl(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),c1e(e)):e}],transformResponse:[function(e){const a=this.transitional||zh.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&W.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?ke.from(i,ke.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:ya.classes.FormData,Blob:ya.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{zh.headers[e]={}});const Ph=zh,d1e=W.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"]),m1e=e=>{const a={};let o,n,s;return e&&e.split(`
|
|
74
|
+
*/const mt={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"}},_4={itemsToShow:{default:mt.itemsToShow,type:Number},itemsToScroll:{default:mt.itemsToScroll,type:Number},wrapAround:{default:mt.wrapAround,type:Boolean},throttle:{default:mt.throttle,type:Number},snapAlign:{default:mt.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:mt.transition,type:Number},breakpoints:{default:mt.breakpoints,type:Object},autoplay:{default:mt.autoplay,type:Number},pauseAutoplayOnHover:{default:mt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:mt.mouseDrag,type:Boolean},touchDrag:{default:mt.touchDrag,type:Boolean},dir:{default:mt.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:mt.i18n,type:Object},settings:{default(){return{}},type:Object}};function jye({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(o){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function Lye({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(o||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function Eh({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function vye({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){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 s?r:Eh({val:r,max:o-i,min:0})}function b4(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...b4(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function Nh({val:e,max:a,min:o=0}){return e>a?Nh({val:e-(a+1),max:a,min:o}):e<o?Nh({val:e+(a+1),max:a,min:o}):e}function Mye(e,a){let o;return a?function(...n){const s=this;o||(e.apply(s,n),o=!0,setTimeout(()=>o=!1,a))}:e}function Hye(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function Uye(e="",a={}){return Object.entries(a).reduce((o,[n,s])=>o.replace(`{${n}}`,String(s)),e)}var Gye=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},mt))),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"},Uye(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),Wye=t.defineComponent({name:"Carousel",props:_4,setup(e,{slots:a,emit:o,expose:n}){var s;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},mt));let l=Object.assign({},mt),p;const y=t.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=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",y),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){p=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(!p||!Object.keys(p).length)return;const S=Object.keys(p).map(T=>Number(T)).sort((T,oe)=>+oe-+T);let F=Object.assign({},l);S.some(T=>{const oe=window.matchMedia(`(min-width: ${T}px)`).matches;return oe&&(F=Object.assign(Object.assign({},F),p[T])),oe}),E(F)}function E(S){Object.entries(S).forEach(([F,T])=>d[F]=T)}const B=Hye(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function x(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=jye({config:d,slidesCount:h.value}),f.value=Lye({config:d,slidesCount:h.value}),d.wrapAround||(y.value=Eh({val:y.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),je(),window.addEventListener("resize",B,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",B,{passive:!0})});let $=!1;const O={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),z=t.ref(!1),ee=t.ref(!1),re=()=>{z.value=!0},Q=()=>{z.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||R.value)&&(O.x=$?S.touches[0].clientX:S.clientX,O.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",P,!0)))}const N=Mye(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const F=A.x-O.x,T=A.y-O.y;I.y=T,I.x=F},d.throttle);function P(){const S=d.dir==="rtl"?-1:1,F=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+F)*S;if(T&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(y.value-T),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",P,!0)}function je(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&z.value||te()},d.autoplay))}function ne(){_&&(clearInterval(_),_=null),je()}const R=t.ref(!1);function K(S){const F=d.wrapAround?S:Eh({val:S,max:u.value,min:f.value});y.value===F||R.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!0,m.value=y.value,y.value=F,k=setTimeout(()=>{if(d.wrapAround){const T=Nh({val:F,max:u.value,min:0});T!==y.value&&(y.value=T,o("loop",{currentSlideIndex:y.value,slidingToIndex:S}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!1,ne()},d.transition))}function te(){K(y.value+d.itemsToScroll)}function ae(){K(y.value-d.itemsToScroll)}const se={slideTo:K,next:te,prev:ae};t.provide("nav",se),t.provide("isSliding",R);const ie=t.computed(()=>vye({config:d,currentSlide:y.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,F=ie.value*c.value*S;return{transform:`translateX(${I.x-F}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),x(),V(),ne()}Object.keys(_4).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==y.value&&K(Number(S))}),t.watch(h,x),o("before-init"),w();const $e={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:y,maxSlide:u,minSlide:f,middleSlide:g};n({updateBreakpointsConfigs:b,updateSlidesData:x,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:se,data:$e});const Pe=a.default||a.slides,Re=a.addons,ve=t.reactive($e);return()=>{const S=b4(Pe==null?void 0:Pe(ve)),F=(Re==null?void 0:Re(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let T=S;if(d.wrapAround){const Oe=S.map((Fe,le)=>t.cloneVNode(Fe,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((Fe,le)=>t.cloneVNode(Fe,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));T=[...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},T),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ee.value,"is-hover":z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,F,t.h(Gye)])}}}),w4;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(w4||(w4={}));var qye=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({},mt))),n=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===n.value,c=()=>e.index===n.value-1,h=()=>e.index===n.value+1,d=()=>{const l=Math.floor(s.value),p=Math.ceil(s.value+o.itemsToShow-1);return e.index>=l&&e.index<=p};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 Jye=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Xye=e=>(t.pushScopeId("data-v-dd3cbf69"),e=e(),t.popScopeId(),e),Zye={class:"gsc-carousel"},Yye={key:0},Kye=Xye(()=>t.createElementVNode("div",null,"no hay",-1)),Qye=[Kye],e0e={class:"gsc-carousel__2d__slides"},t0e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a0e=["fill"],o0e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n0e=["fill"],s0e={class:"gsc-carousel__2d__navigation"},i0e={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},r0e=["stroke"],l0e={key:1,class:"gsc-carousel__2d__navigation__pagination"},c0e=["onClick"],d0e={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m0e=["stroke"],p0e={__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 n=e;t.useCssVars(u=>({"0d808f0f":e.slideLeftArrowBackgroundImage,"1e0ef2e5":e.slidesArrowsLeftAndRight,"66d12b5c":e.slideRightArrowBackgroundImage,"2b22a85a":e.marginTop,"1a842b02":e.secondarySlidesOpacity}));const s=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(s,u=>{u&&c.value?(c.value=!1,h(n.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,u=>{r.value!==u&&y(u)}),t.watch(()=>n.items,u=>{s.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&s.value){if(n.defaultItemByProp){const f=n.items.findIndex(_=>_[n.defaultItemByProp.propName]===n.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=n.defaultItemByIndex,i.value=u[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){s.value&&s.value.next()}function l(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function y(u){s.value&&s.value.slideTo(u)}function m(u){s.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?n.items.length-1:u.slidingToIndex===n.items.length?0:u.slidingToIndex;r.value=f,i.value=n.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:p,slideTo:y}),(u,f)=>(t.openBlock(),t.createElementBlock("div",Zye,[n.is3d?(t.openBlock(),t.createElementBlock("div",Yye,Qye)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",e0e,[t.createVNode(t.unref(Wye),{ref_key:"carousel2d",ref:s,"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(qye),{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]=_=>s.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",t0e,[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,a0e)]))],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",o0e,[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,n0e)]))],2)])):t.createCommentVNode("",!0),t.createElementVNode("div",s0e,[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",i0e,[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:n.arrowsColor},null,8,r0e)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",l0e,[(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:`${n.navigationHeight}px`,width:`${r.value===k?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===k?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>m(k)},null,12,c0e))),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]=_=>s.value.next())},[(t.openBlock(),t.createElementBlock("svg",d0e,[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:n.arrowsColor},null,8,m0e)]))])):t.createCommentVNode("",!0)])],2))]))}},h0e=Jye(p0e,[["__scopeId","data-v-dd3cbf69"]]),xh=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o};let C4=null;const Bh={components:{},props:{titleCategory:{type:String,default:"RESUMEN"},dateGame:{type:String,default:""},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},logoHome:{type:String,default:""},matchday:{type:String,default:""},seasonName:{type:String,default:""},logoAway:{type:String,default:""},score:{type:String,default:""},background:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{date(){const e=this.gamesContainerWidth;return e<=400?"date400":e<=540?"date540":e<=650?"date650":"date"},seasoncontainer(){const e=this.gamesContainerWidth;return e<=400?"season-container400":e<=540?"season-container540":e<=650?"season-container650":"season-container"},matchcontainer(){const e=this.gamesContainerWidth;return e<=400?"match-container400":e<=540?"match-container540":e<=650?"match-container650":"match-container"},containerinfogame(){const e=this.gamesContainerWidth;return e<=400?"container-info-game400":e<=540?"container-info-game540":e<=650?"container-info-game650":"container-info-game"},playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},baselogo(){const e=this.gamesContainerWidth;return e<=400?"base-logo400":e<=540?"base-logo540":e<=650?"base-logo650":"base-logo"},baselogoright(){const e=this.gamesContainerWidth;return e<=400?"base-logo-right400":e<=540?"base-logo-right540":e<=650?"base-logo-right650":"base-logo-right"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},logoright(){const e=this.gamesContainerWidth;return e<=400?"logo-right400":e<=540?"logo-right540":e<=650?"logo-right650":"logo-right"},secondline(){const e=this.gamesContainerWidth;return e<=400?"second-line400":e<=540?"second-line540":e<=650?"second-line650":"second-line"},titlename(){const e=this.gamesContainerWidth;return e<=400?"title-name400":e<=540?"title-name540":e<=650?"title-name650":"title-name"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)C4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),C4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},k4=()=>{t.useCssVars(e=>({"30c6a434":e.colorBackgroundHome+"45","7fc59d92":e.colorBackgroundAway+"45","21945b84":e.colorBackgroundHome,21914993:e.colorBackgroundAway}))},S4=Bh.setup;Bh.setup=S4?(e,a)=>(k4(),S4(e,a)):k4;const ul=e=>(t.pushScopeId("data-v-947163bf"),e=e(),t.popScopeId(),e),g0e=ul(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),y0e=[g0e],u0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),f0e=["src"],_0e=ul(()=>t.createElementVNode("div",{class:"gradient-back position-image"},null,-1)),b0e=ul(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),w0e=["src"],C0e=["src"],k0e={class:"text-container"};function S0e(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},y0e,2),o.dateGame!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.date)},t.toDisplayString(o.dateGame),3)):t.createCommentVNode("",!0),o.matchday!=""&&o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerinfogame)},[o.matchday!=""?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.matchcontainer)},t.toDisplayString(o.matchday),3)):t.createCommentVNode("",!0),o.seasonName!=""?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.seasoncontainer)},t.toDisplayString(o.seasonName),3)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),u0e,t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,f0e),t.createElementVNode("div",{class:t.normalizeClass([i.baselogo,"position-image"])},null,2),t.createElementVNode("div",{class:t.normalizeClass(i.baselogoright)},null,2),_0e,b0e,t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,w0e),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.logoright)},null,10,C0e),t.createElementVNode("div",k0e,[t.createElementVNode("span",{class:t.normalizeClass(i.secondline)},t.toDisplayString(o.score),3),t.createElementVNode("div",{class:t.normalizeClass(i.titlename)},t.toDisplayString(o.titleCategory),3)])],2)}const E0e=xh(Bh,[["render",S0e],["__scopeId","data-v-947163bf"]]);let E4=null;const $h={components:{},props:{type:{type:Number,default:0},colorBackgroundHome:{type:String,default:"#000000"},colorBackgroundAway:{type:String,default:"#FFFFFF"},nameCategory:{type:String,default:""},photoProfile:{type:String,default:""},logoHome:{type:String,default:""},logoAway:{type:String,default:""},scoreHome:{type:String,default:""},scoreAway:{type:String,default:""},background:{type:String,default:""},typeImg:{type:Number,default:0},nameHomeTeam:{type:String,default:""},nameAwayTeam:{type:String,default:""},namePlayer:{type:String,default:""}},data(){return{gamesContainerWidth:0}},computed:{playbutton(){const e=this.gamesContainerWidth;return e<=400?"play-button400":e<=540?"play-button540":e<=650?"play-button650":"play-button"},points(){const e=this.gamesContainerWidth;return e<=400?"points400":e<=540?"points540":e<=650?"points650":"points"},teamname(){const e=this.gamesContainerWidth;return e<=400?"team-name400":e<=540?"team-name540":e<=650?"team-name650":"team-name"},teamscore(){const e=this.gamesContainerWidth;return e<=400?"team-score400":e<=540?"team-score540":e<=650?"team-score650":"team-score"},teamlogo(){const e=this.gamesContainerWidth;return e<=400?"team-logo400":e<=540?"team-logo540":e<=650?"team-logo650":"team-logo"},hometeam(){const e=this.gamesContainerWidth;return e<=400?"home-team400":e<=540?"home-team540":e<=650?"home-team650":"home-team"},awayteam(){const e=this.gamesContainerWidth;return e<=400?"away-team400":e<=540?"away-team540":e<=650?"away-team650":"away-team"},texttitle(){const e=this.gamesContainerWidth;return e<=400?"text-title400":e<=540?"text-title540":e<=650?"text-title650":"text-title"},texttitle2(){const e=this.gamesContainerWidth;return e<=300?"text-title2400":e<=540?"text-title2540":e<=650?"text-title2650":"text-title2"},playerimage(){const e=this.gamesContainerWidth;return e<=400?"player-image400":e<=540?"player-image540":e<=650?"player-image650":"player-image"},thumbnailhighlights(){const e=this.gamesContainerWidth;return e<=400?"thumbnail-highlights400":e<=540?"thumbnail-highlights540":e<=650?"thumbnail-highlights650":"thumbnail-highlights"}},methods:{onclickPlayVideos(){this.$emit("onclickPlayVideos")},setUpResizeObserver(){if(window.ResizeObserver)E4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),E4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")}},mounted(){setTimeout(()=>{this.setUpResizeObserver()},100)}},N4=()=>{t.useCssVars(e=>({a66b3a58:e.colorBackgroundHome,a6715e3a:e.colorBackgroundAway,"4117430c":e.colorBackgroundAway+"62","6896b4f4":e.colorBackgroundHome+"36"}))},x4=$h.setup;$h.setup=x4?(e,a)=>(N4(),x4(e,a)):N4;const fl=e=>(t.pushScopeId("data-v-cab435d8"),e=e(),t.popScopeId(),e),N0e=fl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/paper-texture.png",alt:"",class:"paper-texture position-image"},null,-1)),x0e=fl(()=>t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})],-1)),B0e=[x0e],$0e={class:"player-container"},V0e=["src"],I0e=["src"],A0e=["src"],O0e={class:"container-score"},T0e=["src"],F0e=["src"],z0e=["src"],P0e=fl(()=>t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/halftone-texture.png",alt:"",class:"halftone-texture position-image"},null,-1)),R0e=fl(()=>t.createElementVNode("div",{class:"gradient-color"},null,-1));function D0e(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",{ref:"gamesContainer",class:t.normalizeClass(i.thumbnailhighlights)},[N0e,t.createElementVNode("div",{class:t.normalizeClass(i.playbutton),onClick:a[0]||(a[0]=(...r)=>i.onclickPlayVideos&&i.onclickPlayVideos(...r))},B0e,2),t.createElementVNode("div",$0e,[o.type==0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(i.texttitle)},t.toDisplayString(o.nameCategory),3)):(t.openBlock(),t.createElementBlock("span",{key:1,class:t.normalizeClass(i.texttitle2)},t.toDisplayString(o.nameCategory),3)),o.typeImg==0?(t.openBlock(),t.createElementBlock("img",{key:2,src:o.photoProfile,class:t.normalizeClass(i.playerimage)},null,10,V0e)):t.createCommentVNode("",!0),o.typeImg==1?(t.openBlock(),t.createElementBlock("img",{key:3,src:o.photoProfile,alt:""},null,8,I0e)):t.createCommentVNode("",!0),o.typeImg==2?(t.openBlock(),t.createElementBlock("img",{key:4,src:o.photoProfile,class:"img-number"},null,8,A0e)):t.createCommentVNode("",!0),t.createElementVNode("div",O0e,[t.createElementVNode("div",{class:t.normalizeClass(i.hometeam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameHomeTeam),3),t.createElementVNode("img",{src:o.logoHome,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,T0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreHome),3)],2),t.createElementVNode("span",{class:t.normalizeClass(i.points)},":",2),t.createElementVNode("div",{class:t.normalizeClass(i.awayteam)},[t.createElementVNode("span",{class:t.normalizeClass(i.teamscore)},t.toDisplayString(o.scoreAway),3),t.createElementVNode("img",{src:o.logoAway,alt:"",class:t.normalizeClass(i.teamlogo)},null,10,F0e),t.createElementVNode("span",{class:t.normalizeClass(i.teamname)},t.toDisplayString(o.nameAwayTeam),3)],2)])]),t.createElementVNode("img",{src:o.background,alt:"",class:"bkg-blackwhite position-image"},null,8,z0e),P0e,R0e],2)}const j0e=xh($h,[["render",D0e],["__scopeId","data-v-cab435d8"]]),L0e={components:{GSCCarousel:h0e,GSCThumbnailHighlightGameHistoric:E0e,GSCThumbnailHighlightGamePlayer:j0e},props:{items:{type:Array,default:()=>[1,2,3]},data:{type:Object,default:()=>{}},title:{type:String,default:"TODAS SUS JUGADAS"}},data(){return{highlightsWidth:0,printData:[],resizeObserverGSCH:null,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{data:{immediate:!0,handler(e){this.getData(e)}}},computed:{isMobile(){return this.highlightsWidth<580},carouselProps(){return this.isMobile?{wrapAround:!0,itemsToShow:1.2,isMainSlidePriority:!0,areSlidesArrowsVisible:!1,areSlidesArrowsRounded:!1,areNavigationArrowsVisible:!1,isPaginationVisible:!0}:{wrapAround:!0,itemsToShow:1.8,isMainSlidePriority:!0,areSlidesArrowsVisible:!0,areSlidesArrowsRounded:!0,areNavigationArrowsVisible:!1}}},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let n={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:e.data.game_id?[e.data.game_id]:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[e.data.matchResult]:o,advancedFilter:{playListTitle:""}};e.data.category!==0&&(n.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",n)},play(e){this.$emit("play",e)},async getData(e){const a=Dye.create({headers:{Authorization:`${this.token}`}});var o=[],n={};if(e.type=="player"){const s=await a.get("https://uof4tt5l46.execute-api.us-west-2.amazonaws.com/prod/v3/playerInfo/"+e.season+"/"+e.player);for(let i=0;i<s.data.seasons[e.season].games_played.length;i++)n={category:0,player_id:s.data.player_id,position_id:s.data.position_id,color:s.data.info_thumbnails.colors.background_color,photo_profile:s.data.info_thumbnails.images.player_in_action[0]?"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.player_in_action[0]:"https://az755631.vo.msecnd.net/players-profile/"+s.data.player_id+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",player_name:s.data.seasons[e.season].games_played[i].home_team_acronym+" "+s.data.seasons[e.season].games_played[i].home_team_score+" : "+s.data.seasons[e.season].games_played[i].visiting_team_score+" "+s.data.seasons[e.season].games_played[i].visiting_team_acronym,team_id:s.data.team_id,team_id_b:s.data.seasons[e.season].games_played[i].home_team,season_id:s.data.seasons[e.season].games_played[i].season_id,name:s.data.seasons[e.season].games_played[i].player_name,seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games_played[i].matchday_name.replace("Matchday","Jor"),game_id:s.data.seasons[e.season].games_played[i].game_id,scorehome:s.data.seasons[e.season].games_played[i].home_team_score,scoreaway:s.data.seasons[e.season].games_played[i].visiting_team_score,hometeamacronym:s.data.seasons[e.season].games_played[i].home_team_acronym,visitingteamacronym:s.data.seasons[e.season].games_played[i].visiting_team_acronym,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.info_thumbnails.images.background_player_in_action[0],backgroundhome:s.data.seasons[e.season].games_played[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games_played[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games_played[i].visiting_team+".png",total:s.data.seasons[e.season].games_played[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games_played[i].home_team+"_"+s.data.seasons[e.season].games_played[i].season_id+"_r1.jpg"},o.push(n)}else if(e.type=="historic"){const s=await a.get("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/games/"+e.game);for(let r=0;r<s.data.plays.length;r++)n={player:"Jornada "+s.data.plays[r][6],player_name:s.data.plays[r][4],season_id:s.data.plays[r][31],game_id:s.data.plays[r][3],img:"https://img1.wallspic.com/previews/0/9/1/0/20190/20190-football_player-football-fun-player-sports-x750.jpg"},o.length>0?!o.filter(c=>c.game_id===s.data.plays[r][3]).length>0&&o.push(n):o.push(n);const i=s.data.thumbnails;for(let r=0;r<o.length;r++){const c=Math.floor(Math.random()*i[o[r].game_id].info_thumbnails.images.background_default_games.length);o[r].background="https://golstatsimages.blob.core.windows.net/images-library/"+i[o[r].game_id].info_thumbnails.images.background_default_games[c],o[r].backgroundhome=i[o[r].game_id].info_thumbnails.home_colors.background_color,o[r].backgroundaway=i[o[r].game_id].info_thumbnails.away_colors.background_color,o[r].logoaway="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.away_colors.team_id+".png",o[r].logohome="https://az755631.vo.msecnd.net/teams-150/"+i[o[r].game_id].info_thumbnails.home_colors.team_id+".png",o[r].match=i[o[r].game_id].matchday_name.replace("Matchday","Jor"),o[r].seasonname=i[o[r].game_id].season_name,o[r].score=i[o[r].game_id].score[0]+" - "+i[o[r].game_id].score[1],o[r].category=0}}else{const s=await a.get("https://ws8d8ye2ii.execute-api.us-west-2.amazonaws.com/prod/v4/seasonsByTeam/"+e.team);for(let i=0;i<s.data.seasons[e.season].games.length;i++){const r=Math.floor(Math.random()*s.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games.length);n={category:0,game_id:s.data.seasons[e.season].games[i].game_id,photo_profile:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].visiting_team+".png",team_logo:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].home_team+".png",player_name:s.data.seasons[e.season].games[i].home_team_acronym+" "+s.data.seasons[e.season].games[i].home_team_score+" : "+s.data.seasons[e.season].games[i].visiting_team_score+" "+s.data.seasons[e.season].games[i].visiting_team_acronym,team_id_b:s.data.seasons[e.season].games[i].home_team,season_id:s.data.seasons[e.season].games[i].season_id,name:"",seasonname:s.data.seasons[e.season].name,match:s.data.seasons[e.season].games[i].matchday_name.replace("Matchday","Jor"),score:s.data.seasons[e.season].games[i].home_team_score+" : "+s.data.seasons[e.season].games[i].visiting_team_score,background:"https://golstatsimages.blob.core.windows.net/images-library/"+s.data.seasons[e.season].games[i].info_thumbnails.images.background_default_games[r],backgroundhome:s.data.seasons[e.season].games[i].info_thumbnails.home_colors.background_color,backgroundaway:s.data.seasons[e.season].games[i].info_thumbnails.away_colors.background_color,logohome:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].home_team+".png",logoaway:"https://az755631.vo.msecnd.net/teams-150/"+s.data.seasons[e.season].games[i].visiting_team+".png",total:s.data.seasons[e.season].games[i].matchday_abbreviation.replace("M","Jor "),background_card:"https://az755631.vo.msecnd.net/golstats2-teams/"+s.data.seasons[e.season].games[i].home_team+"_"+s.data.seasons[e.season].games[i].season_id+"_r1.jpg"},o.push(n)}}this.printData=o},setUpResizeObserver(){this.resizeObserverGSCH=new ResizeObserver(e=>{for(const a of e)this.highlightsWidth=a.contentRect.width}),this.resizeObserverGSCH.observe(this.$refs.highlights)}},mounted(){this.setUpResizeObserver()}},v0e={ref:"highlights",class:"carousel-high-lights",id:"carousel-high-lights"};function M0e(e,a,o,n,s,i){const r=t.resolveComponent("GSCThumbnailHighlightGameHistoric"),c=t.resolveComponent("GSCThumbnailHighlightGamePlayer"),h=t.resolveComponent("GSCCarousel");return t.openBlock(),t.createElementBlock("div",v0e,[t.createVNode(h,t.mergeProps(i.carouselProps,{items:s.printData,slideLeftArrowBackgroundImage:"linear-gradient(to right, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",slideRightArrowBackgroundImage:"linear-gradient(to left, rgba(22, 37, 49, 1), rgba(0, 0, 0, 0))",secondarySlidesOpacity:"0.2"}),{default:t.withCtx(({item:d})=>[o.data.type=="team"||o.data.type=="historic"?(t.openBlock(),t.createBlock(r,{key:0,items:d,"color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"logo-home":d.logohome,"logo-away":d.logoaway,background:d.background,matchday:d.match,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:1}),"season-name":d.seasonname,score:d.score},null,8,["items","color-background-home","color-background-away","logo-home","logo-away","background","matchday","onOnclickPlayVideos","season-name","score"])):(t.openBlock(),t.createBlock(c,{key:1,type:"player","name-player":d.name,"type-style":"game","color-background-home":d.backgroundhome,"color-background-away":d.backgroundaway,"type-img":"0",background:d.background,"name-home-team":d.hometeamacronym,"name-away-team":d.visitingteamacronym,"name-category":o.title,onOnclickPlayVideos:l=>i.onclickPlayVideos({data:d,type:2}),"logo-away":d.logoaway,"logo-home":d.logohome,"score-home":d.scorehome,"photo-profile":d.photo_profile,"score-away":d.scoreaway},null,8,["name-player","color-background-home","color-background-away","background","name-home-team","name-away-team","name-category","onOnclickPlayVideos","logo-away","logo-home","score-home","photo-profile","score-away"]))]),_:1},16,["items"])],512)}const H0e=xh(L0e,[["render",M0e]]);let B4=null;const U0e={components:{GSCHighlights:H0e,GSCPlayerTeamGame:Vb,GSCCard:Db},props:{config:{type:Object,default:()=>{}}},computed:{gridcarrouselesitemsClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items900":"grid-carrouseles-items"},gridcarrouselesitemsitemunoClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemuno900":"grid-carrouseles-items-itemuno"},gridcarrouselesitemsitemdosClass(){return this.gamesContainerWidth<=900?"grid-carrouseles-items-itemdos900":"grid-carrouseles-items-itemdos"},videopartidopltegadatosClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-datos900":"video-partido-pltega-datos"},videopartidopltegaplayersClass(){return this.gamesContainerWidth<=900?"video-partido-pltega-players620":"video-partido-pltega-players"}},data(){return{gamesContainerWidth:0,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",gameInfo:{},printData:[]}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},100),this.fillData()},methods:{onclickPlayVideos(e){var a=[];e.type==2?e.data.position_id==1?e.data.category==0?a=[55,324,323,608,39,774,802,52,53,40,54]:a=e.data.category:e.data.category==0?a=[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257]:a=e.data.category:e.type==3?e.data.category==0?a=[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39]:a=e.data.category:e.data.category!=0?a=e.data.category:a=[607,608,12,55,54,35,14,52,15,53,466,477];const o=[1,2,3];let n={seasonId:e.data.season_id,mainSectionType:1,playListType:e.type,categoryIds:a,gameIds:null,playerIds:e.data.position_id!=1?e.data.player_id?[e.data.player_id]:[]:[],goalkeeperIds:e.data.position_id==1?e.data.player_id?[e.data.player_id]:[]:[],teamId:e.data.team_id?e.data.team_id:0,matchResult:e.data.matchResult?[data.matchResult]:o,playData:{},advancedFilter:{playListTitle:""}};e.data.category!==0&&(n.advancedFilter.mainCategoryId=e.data.category),this.$emit("openmedia",n)},openmedia(e){this.$emit("openmedia",e)},setUpResizeObserver(){if(window.ResizeObserver)B4=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),B4.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async fillData(){const e=N5.create({headers:{Authorization:`${this.token}`}}),a=await e.get("https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/"+this.config.season_id),o=a.data.games.findIndex(r=>r.game_id===this.config.game);this.gameInfo=a.data.games[o];var n=[],s={},i=await e.get("https://wlduw4woy3.execute-api.us-east-2.amazonaws.com/prod/best-plays/seasons/"+this.config.season_id+"/games/"+this.config.game);for(let r=0;r<i.data.games[0].players.length;r++){const c=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.background_player_in_action.length),h=Math.floor(Math.random()*i.data.games[0].players[r].info_thumbnails.images.player_in_action.length);s={background_color_buttons:i.data.games[0].players[r].info_thumbnails.colors.background_color_buttons,background_color_cards:i.data.games[0].players[r].info_thumbnails.colors.background_color_cards,color_icon_play:i.data.games[0].players[r].info_thumbnails.colors.color_icon_play,color_next_back:i.data.games[0].players[r].info_thumbnails.colors.color_next_back,font_color:i.data.games[0].players[r].info_thumbnails.colors.font_color,font_color_card:i.data.games[0].players[r].info_thumbnails.colors.font_color_cards,colorbackgroundhome:i.data.games[0].players[r].info_thumbnails.colors.background_color,colorbackgroundaway:"",nameplayer:i.data.games[0].players[r].player_name,background:i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_player_in_action[c]:"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.background_default_players[0],namecategory:"RESUMEN",namehometeam:"",nameawayteam:"",logohome:i.data.games[0].players[r].team_logo,photoprofile:i.data.games[0].players[r].info_thumbnails.images.player_in_action[h]?"https://golstatsimages.blob.core.windows.net/images-library/"+i.data.games[0].players[r].info_thumbnails.images.player_in_action[h]:`https://az755631.vo.msecnd.net/players-profile/${i.data.games[0].players[r].player_id}.png`,logoaway:"",scoreaway:"",scorehome:"",game_id:i.data.games[0].game_id,season_id:i.data.games[0].players[r].season_id,category:0,team_id:i.data.games[0].players[r].team_id},n.push(s)}this.printData=n}}},G0e=e=>(t.pushScopeId("data-v-3e3e58f8"),e=e(),t.popScopeId(),e),W0e={ref:"gamesContainer",class:"container"},q0e={class:"video-partido-container"},J0e={class:"video-partido-higthlights"},X0e=G0e(()=>t.createElementVNode("div",{class:"title-video-datos"},"Este torneo:",-1)),Z0e={class:"video-partido-pltega-games"},Y0e={class:"video-partido-pltega-games-team"};function K0e(e,a,o,n,s,i){const r=t.resolveComponent("GSCHighlights"),c=t.resolveComponent("GSCPlayerTeamGame"),h=t.resolveComponent("GSCCard");return t.openBlock(),t.createElementBlock("div",W0e,[t.createElementVNode("div",q0e,[t.createElementVNode("div",J0e,[t.createVNode(r,{onOpenmedia:i.openmedia,data:{game:o.config.game,season:o.config.season_id,type:"historic"}},null,8,["onOpenmedia","data"])]),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegaplayersClass)},[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:3,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadores (sus mejores jugadas):",data:{season:o.config.season_id,game:o.config.game,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","data","onOnClickVideos","onOnClickCard"])],2),t.createElementVNode("div",{class:t.normalizeClass(i.videopartidopltegadatosClass)},[X0e,t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsClass)},[t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemunoClass)},[s.printData[0]?(t.openBlock(),t.createBlock(h,{key:0,type:1,onOnClickVideos:a[0]||(a[0]=d=>i.onclickPlayVideos({data:s.printData[0],type:3})),onOnClickCard:a[1]||(a[1]=d=>i.onclickPlayVideos({data:s.printData[0],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:s.printData[0].colorbackgroundhome,"background-img":s.printData[0].background,data:{team_name:s.gameInfo.home_team_name,player_photo:s.printData[0].photoprofile,team_id:s.gameInfo.home_team,background_color_buttons:s.printData[0].background_color_buttons,background_color_cards:s.printData[0].background_color_cards,color_icon_play:s.printData[0].color_icon_play,color_next_back:s.printData[0].color_next_back,font_color:s.printData[0].font_color,font_color_card:s.printData[0].font_color_card}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(i.gridcarrouselesitemsitemdosClass)},[s.printData[1]?(t.openBlock(),t.createBlock(h,{key:0,type:1,onOnClickVideos:a[2]||(a[2]=d=>i.onclickPlayVideos({data:s.printData[1],type:3})),onOnClickCard:a[3]||(a[3]=d=>i.onclickPlayVideos({data:s.printData[1],type:3})),"click-card":!1,borderColor:"rgba(255, 255, 255, 0.16)",backgroundColor:s.printData[1].colorbackgroundhome,"background-img":s.printData[1].background,data:{team_name:s.gameInfo.visiting_team_name,player_photo:s.printData[1].photoprofile,team_id:s.gameInfo.visiting_team,background_color_buttons:s.printData[1].background_color_buttons,background_color_cards:s.printData[1].background_color_cards,color_icon_play:s.printData[1].color_icon_play,color_next_back:s.printData[1].color_next_back,font_color:s.printData[1].font_color,font_color_card:s.printData[1].font_color_card}},null,8,["backgroundColor","background-img","data"])):t.createCommentVNode("",!0)],2)],2)],2),t.createElementVNode("div",Z0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+s.gameInfo.home_team_name+":",data:{season:o.config.season_id,team:s.gameInfo.home_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])]),t.createElementVNode("div",Y0e,[t.createVNode(c,{onOpenmedia:i.openmedia,style:{"margin-top":"0px"},"background-color":"#172531",type:1,"px-scroll":338,"scroll-color":"none","arrows-position":"absolute","arrows-scroll-hide":!0,arrowsBackground:"rgba(255,255,255,.16)",arrowsContainerBgL:"linear-gradient(270deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsContainerBgR:"linear-gradient(90deg, rgba(22,37,50,0) 0%, rgba(22,37,50,1) 70%)",arrowsMargin:0,arrowsRadius:"50%",arrowsBorder:"#ddd",title:"Jugadas específicas "+s.gameInfo.visiting_team_name+":",data:{season:o.config.season_id,team:s.gameInfo.visiting_team,isPrematch:1},onOnClickVideos:e.onClickVideos,onOnClickCard:e.onClickCard},null,8,["onOpenmedia","title","data","onOnClickVideos","onOnClickCard"])])])],512)}const Q0e={components:{GSCVideoGamePreMatch:Gr(U0e,[["render",K0e],["__scopeId","data-v-3e3e58f8"]]),GSCVideoGamePostMatch:Cge},props:{type:{type:String,default:"Prematch"},config:{type:Object,default:()=>{}}},data(){return{}},computed:{},methods:{openmedia(e){this.$emit("openmedia",e)}}},eue={style:{margin:"0 auto"}};function tue(e,a,o,n,s,i){const r=t.resolveComponent("GSCVideoGamePreMatch"),c=t.resolveComponent("GSCVideoGamePostMatch");return t.openBlock(),t.createElementBlock("div",eue,[o.type==="Prematch"?(t.openBlock(),t.createBlock(r,{key:0,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0),o.type==="Postmatch"?(t.openBlock(),t.createBlock(c,{key:1,config:o.config,onOpenmedia:i.openmedia},null,8,["config","onOpenmedia"])):t.createCommentVNode("",!0)])}const $4=Gr(Q0e,[["render",tue],["__scopeId","data-v-1ea9f5c1"]]),wHe="",CHe="",aue={class:"datagame-container"},oue=ze({__name:"GSCVideoGame",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"}})}},emits:["openmedia"],setup(e,{emit:a}){const o=e,n=t.ref(0);t.watch(()=>o.game,i=>{n.value=i.gameId},{deep:!0,immediate:!0});function s(i){a("openmedia",i)}return(i,r)=>(t.openBlock(),t.createElementBlock("div",aue,[e.game.game_status==4?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref($4),{onOpenmedia:s,key:n.value,type:"Prematch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.game).length>0?(t.openBlock(),t.createBlock(t.unref($4),{onOpenmedia:s,key:n.value,type:"Postmatch",config:{season_id:e.game.seasonId,game:e.game.gameId}},null,8,["config"])):t.createCommentVNode("",!0)],64))]))}},[["__scopeId","data-v-fe6f377f"]]),nue=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},Vh={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,a=this.$refs.content.scrollWidth;a>0&&e>0&&(a>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},V4=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},I4=Vh.setup;Vh.setup=I4?(e,a)=>(V4(),I4(e,a)):V4;const sue={ref:"gscScrollableContainer",class:"scrollable-container"},iue={class:"scrollable-arrows"},rue=["width","height","viewBox"],lue=["stroke"],cue={class:"scrollable-wrapper"},due={class:"scrollable-arrows"},mue=["width","height","viewBox"],pue=["stroke"];function hue(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",sue,[o.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",i.hideShowLeftArrow]),onClick:a[0]||(a[0]=(...r)=>i.scrollLeft&&i.scrollLeft(...r))},[t.createElementVNode("div",iue,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:o.arrowsColor},null,8,lue)],8,rue))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:a[1]||(a[1]=(...r)=>i.getScroll&&i.getScroll(...r))},[t.createElementVNode("div",cue,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),o.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",i.hideShowRightArrow]),onClick:a[2]||(a[2]=(...r)=>i.scrollRight&&i.scrollRight(...r))},[t.createElementVNode("div",due,[(t.openBlock(),t.createElementBlock("svg",{width:o.arrowsWidth,height:o.arrowsHeight,viewBox:i.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:o.arrowsColor},null,8,pue)],8,mue))])],2)):t.createCommentVNode("",!0)],512)}const gue=nue(Vh,[["render",hue],["__scopeId","data-v-b548a08d"]]);function A4(e,a){return function(){return e.apply(a,arguments)}}const{toString:yue}=Object.prototype,{getPrototypeOf:Ih}=Object,_l=(e=>a=>{const o=yue.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),ga=e=>(e=e.toLowerCase(),a=>_l(a)===e),bl=e=>a=>typeof a===e,{isArray:en}=Array,Es=bl("undefined");function uue(e){return e!==null&&!Es(e)&&e.constructor!==null&&!Es(e.constructor)&&Ft(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O4=ga("ArrayBuffer");function fue(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&O4(e.buffer),a}const _ue=bl("string"),Ft=bl("function"),T4=bl("number"),wl=e=>e!==null&&typeof e=="object",bue=e=>e===!0||e===!1,Cl=e=>{if(_l(e)!=="object")return!1;const a=Ih(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},wue=ga("Date"),Cue=ga("File"),kue=ga("Blob"),Sue=ga("FileList"),Eue=e=>wl(e)&&Ft(e.pipe),Nue=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||Ft(e.append)&&((a=_l(e))==="formdata"||a==="object"&&Ft(e.toString)&&e.toString()==="[object FormData]"))},xue=ga("URLSearchParams"),Bue=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ns(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),en(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function F4(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const z4=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),P4=e=>!Es(e)&&e!==z4;function Ah(){const{caseless:e}=P4(this)&&this||{},a={},o=(n,s)=>{const i=e&&F4(a,s)||s;Cl(a[i])&&Cl(n)?a[i]=Ah(a[i],n):Cl(n)?a[i]=Ah({},n):en(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ns(arguments[n],o);return a}const $ue=(e,a,o,{allOwnKeys:n}={})=>(Ns(a,(s,i)=>{o&&Ft(s)?e[i]=A4(s,o):e[i]=s},{allOwnKeys:n}),e),Vue=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Iue=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},Aue=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&Ih(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},Oue=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},Tue=e=>{if(!e)return null;if(en(e))return e;let a=e.length;if(!T4(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},Fue=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&Ih(Uint8Array)),zue=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},Pue=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},Rue=ga("HTMLFormElement"),Due=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),R4=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),jue=ga("RegExp"),D4=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};Ns(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},Lue=e=>{D4(e,(a,o)=>{if(Ft(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(Ft(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},vue=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return en(e)?n(e):n(String(e).split(a)),o},Mue=()=>{},Hue=(e,a)=>(e=+e,Number.isFinite(e)?e:a),Oh="abcdefghijklmnopqrstuvwxyz",j4="0123456789",L4={DIGIT:j4,ALPHA:Oh,ALPHA_DIGIT:Oh+Oh.toUpperCase()+j4},Uue=(e=16,a=L4.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function Gue(e){return!!(e&&Ft(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Wue=e=>{const a=new Array(10),o=(n,s)=>{if(wl(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=en(n)?[]:{};return Ns(n,(r,c)=>{const h=o(r,s+1);!Es(h)&&(i[c]=h)}),a[s]=void 0,i}}return n};return o(e,0)},que=ga("AsyncFunction"),Jue=e=>e&&(wl(e)||Ft(e))&&Ft(e.then)&&Ft(e.catch),W={isArray:en,isArrayBuffer:O4,isBuffer:uue,isFormData:Nue,isArrayBufferView:fue,isString:_ue,isNumber:T4,isBoolean:bue,isObject:wl,isPlainObject:Cl,isUndefined:Es,isDate:wue,isFile:Cue,isBlob:kue,isRegExp:jue,isFunction:Ft,isStream:Eue,isURLSearchParams:xue,isTypedArray:Fue,isFileList:Sue,forEach:Ns,merge:Ah,extend:$ue,trim:Bue,stripBOM:Vue,inherits:Iue,toFlatObject:Aue,kindOf:_l,kindOfTest:ga,endsWith:Oue,toArray:Tue,forEachEntry:zue,matchAll:Pue,isHTMLForm:Rue,hasOwnProperty:R4,hasOwnProp:R4,reduceDescriptors:D4,freezeMethods:Lue,toObjectSet:vue,toCamelCase:Due,noop:Mue,toFiniteNumber:Hue,findKey:F4,global:z4,isContextDefined:P4,ALPHABET:L4,generateString:Uue,isSpecCompliantForm:Gue,toJSONObject:Wue,isAsyncFn:que,isThenable:Jue};function ke(e,a,o,n,s){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),n&&(this.request=n),s&&(this.response=s)}W.inherits(ke,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:W.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const v4=ke.prototype,M4={};["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=>{M4[e]={value:e}}),Object.defineProperties(ke,M4),Object.defineProperty(v4,"isAxiosError",{value:!0}),ke.from=(e,a,o,n,s,i)=>{const r=Object.create(v4);return W.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),ke.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const Xue=null;function Th(e){return W.isPlainObject(e)||W.isArray(e)}function H4(e){return W.endsWith(e,"[]")?e.slice(0,-2):e}function U4(e,a,o){return e?e.concat(a).map(function(n,s){return n=H4(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function Zue(e){return W.isArray(e)&&!e.some(Th)}const Yue=W.toFlatObject(W,{},null,function(e){return/^is[A-Z]/.test(e)});function kl(e,a,o){if(!W.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=W.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!W.isUndefined(g[m])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&W.isSpecCompliantForm(a);if(!W.isFunction(s))throw new TypeError("visitor must be a function");function h(m){if(m===null)return"";if(W.isDate(m))return m.toISOString();if(!c&&W.isBlob(m))throw new ke("Blob is not supported. Use a Buffer instead.");return W.isArrayBuffer(m)||W.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,u){let f=m;if(m&&!u&&typeof m=="object"){if(W.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(W.isArray(m)&&Zue(m)||(W.isFileList(m)||W.endsWith(g,"[]"))&&(f=W.toArray(m)))return g=H4(g),f.forEach(function(_,k){!(W.isUndefined(_)||_===null)&&a.append(r===!0?U4([g],k,i):r===null?g:g+"[]",h(_))}),!1}return Th(m)?!0:(a.append(U4(u,g,i),h(m)),!1)}const l=[],p=Object.assign(Yue,{defaultVisitor:d,convertValue:h,isVisitable:Th});function y(m,g){if(!W.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(m),W.forEach(m,function(u,f){(!(W.isUndefined(u)||u===null)&&s.call(a,u,W.isString(f)?f.trim():f,g,p))===!0&&y(u,g?g.concat(f):[f])}),l.pop()}}if(!W.isObject(e))throw new TypeError("data must be an object");return y(e),a}function G4(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function Fh(e,a){this._pairs=[],e&&kl(e,this,a)}const W4=Fh.prototype;W4.append=function(e,a){this._pairs.push([e,a])},W4.toString=function(e){const a=e?function(o){return e.call(this,o,G4)}:G4;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function Kue(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function q4(e,a,o){if(!a)return e;const n=o&&o.encode||Kue,s=o&&o.serialize;let i;if(s?i=s(a,o):i=W.isURLSearchParams(a)?a.toString():new Fh(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}const J4=class{constructor(){this.handlers=[]}use(e,a,o){return this.handlers.push({fulfilled:e,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){W.forEach(this.handlers,function(a){a!==null&&e(a)})}},X4={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Que=typeof URLSearchParams<"u"?URLSearchParams:Fh,e1e=typeof FormData<"u"?FormData:null,t1e=typeof Blob<"u"?Blob:null,a1e={isBrowser:!0,classes:{URLSearchParams:Que,FormData:e1e,Blob:t1e},protocols:["http","https","file","blob","url","data"]},Z4=typeof window<"u"&&typeof document<"u",o1e=(e=>Z4&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),n1e=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),s1e=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Z4,hasStandardBrowserEnv:o1e,hasStandardBrowserWebWorkerEnv:n1e},Symbol.toStringTag,{value:"Module"})),ya={...s1e,...a1e};function i1e(e,a){return kl(e,new ya.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return ya.isNode&&W.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function r1e(e){return W.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function l1e(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function Y4(e){function a(o,n,s,i){let r=o[i++];if(r==="__proto__")return!0;const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&W.isArray(s)?s.length:r,h?(W.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!W.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&W.isArray(s[r])&&(s[r]=l1e(s[r])),!c)}if(W.isFormData(e)&&W.isFunction(e.entries)){const o={};return W.forEachEntry(e,(n,s)=>{a(r1e(n),s,o,0)}),o}return null}function c1e(e,a,o){if(W.isString(e))try{return(a||JSON.parse)(e),W.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const zh={transitional:X4,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=W.isObject(e);if(s&&W.isHTMLForm(e)&&(e=new FormData(e)),W.isFormData(e))return n?JSON.stringify(Y4(e)):e;if(W.isArrayBuffer(e)||W.isBuffer(e)||W.isStream(e)||W.isFile(e)||W.isBlob(e))return e;if(W.isArrayBufferView(e))return e.buffer;if(W.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return i1e(e,this.formSerializer).toString();if((i=W.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return kl(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),c1e(e)):e}],transformResponse:[function(e){const a=this.transitional||zh.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&W.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?ke.from(i,ke.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:ya.classes.FormData,Blob:ya.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};W.forEach(["delete","get","head","post","put","patch"],e=>{zh.headers[e]={}});const Ph=zh,d1e=W.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"]),m1e=e=>{const a={};let o,n,s;return e&&e.split(`
|
|
75
75
|
`).forEach(function(i){s=i.indexOf(":"),o=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!o||a[o]&&d1e[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},K4=Symbol("internals");function xs(e){return e&&String(e).trim().toLowerCase()}function Sl(e){return e===!1||e==null?e:W.isArray(e)?e.map(Sl):String(e)}function p1e(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const h1e=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Rh(e,a,o,n,s){if(W.isFunction(n))return n.call(this,a,o);if(s&&(a=o),!!W.isString(a)){if(W.isString(n))return a.indexOf(n)!==-1;if(W.isRegExp(n))return n.test(a)}}function g1e(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function y1e(e,a){const o=W.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let El=class{constructor(e){e&&this.set(e)}set(e,a,o){const n=this;function s(r,c,h){const d=xs(c);if(!d)throw new Error("header name must be a non-empty string");const l=W.findKey(n,d);(!l||n[l]===void 0||h===!0||h===void 0&&n[l]!==!1)&&(n[l||c]=Sl(r))}const i=(r,c)=>W.forEach(r,(h,d)=>s(h,d,c));return W.isPlainObject(e)||e instanceof this.constructor?i(e,a):W.isString(e)&&(e=e.trim())&&!h1e(e)?i(m1e(e),a):e!=null&&s(a,e,o),this}get(e,a){if(e=xs(e),e){const o=W.findKey(this,e);if(o){const n=this[o];if(!a)return n;if(a===!0)return p1e(n);if(W.isFunction(a))return a.call(this,n,o);if(W.isRegExp(a))return a.exec(n);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,a){if(e=xs(e),e){const o=W.findKey(this,e);return!!(o&&this[o]!==void 0&&(!a||Rh(this,this[o],o,a)))}return!1}delete(e,a){const o=this;let n=!1;function s(i){if(i=xs(i),i){const r=W.findKey(o,i);r&&(!a||Rh(o,o[r],r,a))&&(delete o[r],n=!0)}}return W.isArray(e)?e.forEach(s):s(e),n}clear(e){const a=Object.keys(this);let o=a.length,n=!1;for(;o--;){const s=a[o];(!e||Rh(this,this[s],s,e,!0))&&(delete this[s],n=!0)}return n}normalize(e){const a=this,o={};return W.forEach(this,(n,s)=>{const i=W.findKey(o,s);if(i){a[i]=Sl(n),delete a[s];return}const r=e?g1e(s):String(s).trim();r!==s&&delete a[s],a[r]=Sl(n),o[r]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const a=Object.create(null);return W.forEach(this,(o,n)=>{o!=null&&o!==!1&&(a[n]=e&&W.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,a])=>e+": "+a).join(`
|
|
76
76
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...a){const o=new this(e);return a.forEach(n=>o.set(n)),o}static accessor(e){const a=(this[K4]=this[K4]={accessors:{}}).accessors,o=this.prototype;function n(s){const i=xs(s);a[i]||(y1e(o,s),a[i]=!0)}return W.isArray(e)?e.forEach(n):n(e),this}};El.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),W.reduceDescriptors(El.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),W.freezeMethods(El);const Ra=El;function Dh(e,a){const o=this||Ph,n=a||o,s=Ra.from(n.headers);let i=n.data;return W.forEach(e,function(r){i=r.call(o,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function Q4(e){return!!(e&&e.__CANCEL__)}function Bs(e,a,o){ke.call(this,e??"canceled",ke.ERR_CANCELED,a,o),this.name="CanceledError"}W.inherits(Bs,ke,{__CANCEL__:!0});function u1e(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new ke("Request failed with status code "+o.status,[ke.ERR_BAD_REQUEST,ke.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const f1e=ya.hasStandardBrowserEnv?{write(e,a,o,n,s,i){const r=[e+"="+encodeURIComponent(a)];W.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),W.isString(n)&&r.push("path="+n),W.isString(s)&&r.push("domain="+s),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 _1e(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function b1e(e,a){return a?e.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):e}function ew(e,a){return e&&!_1e(a)?b1e(e,a):a}const w1e=ya.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(s){let i=s;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=n(window.location.href),function(s){const i=W.isString(s)?n(s):s;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function C1e(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function k1e(e,a){e=e||10;const o=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const h=Date.now(),d=n[i];r||(r=h),o[s]=c,n[s]=h;let l=i,p=0;for(;l!==s;)p+=o[l++],l=l%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),h-r<a)return;const y=d&&h-d;return y?Math.round(p*1e3/y):void 0}}function tw(e,a){let o=0;const n=k1e(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,c=i-o,h=n(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:s};l[a?"download":"upload"]=!0,e(l)}}const S1e=typeof XMLHttpRequest<"u",E1e=S1e&&function(e){return new Promise(function(a,o){let n=e.data;const s=Ra.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(W.isFormData(n)){if(ya.hasStandardBrowserEnv||ya.hasStandardBrowserWebWorkerEnv)s.setContentType(!1);else if((d=s.getContentType())!==!1){const[g,...u]=d?d.split(";").map(f=>f.trim()).filter(Boolean):[];s.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)):"";s.set("Authorization","Basic "+btoa(g+":"+u))}const p=ew(e.baseURL,e.url);l.open(e.method.toUpperCase(),q4(p,e.params,e.paramsSerializer),!0),l.timeout=e.timeout;function y(){if(!l)return;const g=Ra.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};u1e(function(f){a(f),h()},function(f){o(f),h()},u),l=null}if("onloadend"in l?l.onloadend=y:l.onreadystatechange=function(){!l||l.readyState!==4||l.status===0&&!(l.responseURL&&l.responseURL.indexOf("file:")===0)||setTimeout(y)},l.onabort=function(){l&&(o(new ke("Request aborted",ke.ECONNABORTED,e,l)),l=null)},l.onerror=function(){o(new ke("Network Error",ke.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||X4;e.timeoutErrorMessage&&(g=e.timeoutErrorMessage),o(new ke(g,u.clarifyTimeoutError?ke.ETIMEDOUT:ke.ECONNABORTED,e,l)),l=null},ya.hasStandardBrowserEnv&&(r&&W.isFunction(r)&&(r=r(e)),r||r!==!1&&w1e(p))){const g=e.xsrfHeaderName&&e.xsrfCookieName&&f1e.read(e.xsrfCookieName);g&&s.set(e.xsrfHeaderName,g)}n===void 0&&s.setContentType(null),"setRequestHeader"in l&&W.forEach(s.toJSON(),function(g,u){l.setRequestHeader(u,g)}),W.isUndefined(e.withCredentials)||(l.withCredentials=!!e.withCredentials),i&&i!=="json"&&(l.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&l.addEventListener("progress",tw(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&l.upload&&l.upload.addEventListener("progress",tw(e.onUploadProgress)),(e.cancelToken||e.signal)&&(c=g=>{l&&(o(!g||g.type?new Bs(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 m=C1e(p);if(m&&ya.protocols.indexOf(m)===-1){o(new ke("Unsupported protocol "+m+":",ke.ERR_BAD_REQUEST,e));return}l.send(n||null)})},jh={http:Xue,xhr:E1e};W.forEach(jh,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const aw=e=>`- ${e}`,N1e=e=>W.isFunction(e)||e===null||e===!1,ow={getAdapter:e=>{e=W.isArray(e)?e:[e];const{length:a}=e;let o,n;const s={};for(let i=0;i<a;i++){o=e[i];let r;if(n=o,!N1e(o)&&(n=jh[(r=String(o)).toLowerCase()],n===void 0))throw new ke(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).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 :
|
|
77
77
|
`+i.map(aw).join(`
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
* Vue 3 Carousel 0.3.1
|
|
100
100
|
* (c) 2023
|
|
101
101
|
* @license MIT
|
|
102
|
-
*/const gt={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"}},BC={itemsToShow:{default:gt.itemsToShow,type:Number},itemsToScroll:{default:gt.itemsToScroll,type:Number},wrapAround:{default:gt.wrapAround,type:Boolean},throttle:{default:gt.throttle,type:Number},snapAlign:{default:gt.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:gt.transition,type:Number},breakpoints:{default:gt.breakpoints,type:Object},autoplay:{default:gt.autoplay,type:Number},pauseAutoplayOnHover:{default:gt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:gt.mouseDrag,type:Boolean},touchDrag:{default:gt.touchDrag,type:Boolean},dir:{default:gt.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:gt.i18n,type:Object},settings:{default(){return{}},type:Object}};function I6e({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(o){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function A6e({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(o||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function oy({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function O6e({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){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 s?r:oy({val:r,max:o-i,min:0})}function $C(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...$C(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ny({val:e,max:a,min:o=0}){return e>a?ny({val:e-(a+1),max:a,min:o}):e<o?ny({val:e+(a+1),max:a,min:o}):e}function T6e(e,a){let o;return a?function(...n){const s=this;o||(e.apply(s,n),o=!0,setTimeout(()=>o=!1,a))}:e}function F6e(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function z6e(e="",a={}){return Object.entries(a).reduce((o,[n,s])=>o.replace(`{${n}}`,String(s)),e)}var P6e=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},gt))),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"},z6e(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),R6e=t.defineComponent({name:"Carousel",props:BC,setup(e,{slots:a,emit:o,expose:n}){var s;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},gt));let l=Object.assign({},gt),p;const y=t.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=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",y),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){p=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(!p||!Object.keys(p).length)return;const S=Object.keys(p).map(T=>Number(T)).sort((T,oe)=>+oe-+T);let F=Object.assign({},l);S.some(T=>{const oe=window.matchMedia(`(min-width: ${T}px)`).matches;return oe&&(F=Object.assign(Object.assign({},F),p[T])),oe}),E(F)}function E(S){Object.entries(S).forEach(([F,T])=>d[F]=T)}const B=F6e(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function x(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=I6e({config:d,slidesCount:h.value}),f.value=A6e({config:d,slidesCount:h.value}),d.wrapAround||(y.value=oy({val:y.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),je(),window.addEventListener("resize",B,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",B,{passive:!0})});let $=!1;const O={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),z=t.ref(!1),ee=t.ref(!1),re=()=>{z.value=!0},Q=()=>{z.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||R.value)&&(O.x=$?S.touches[0].clientX:S.clientX,O.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",P,!0)))}const N=T6e(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const F=A.x-O.x,T=A.y-O.y;I.y=T,I.x=F},d.throttle);function P(){const S=d.dir==="rtl"?-1:1,F=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+F)*S;if(T&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(y.value-T),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",P,!0)}function je(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&z.value||te()},d.autoplay))}function ne(){_&&(clearInterval(_),_=null),je()}const R=t.ref(!1);function K(S){const F=d.wrapAround?S:oy({val:S,max:u.value,min:f.value});y.value===F||R.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!0,m.value=y.value,y.value=F,k=setTimeout(()=>{if(d.wrapAround){const T=ny({val:F,max:u.value,min:0});T!==y.value&&(y.value=T,o("loop",{currentSlideIndex:y.value,slidingToIndex:S}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!1,ne()},d.transition))}function te(){K(y.value+d.itemsToScroll)}function ae(){K(y.value-d.itemsToScroll)}const se={slideTo:K,next:te,prev:ae};t.provide("nav",se),t.provide("isSliding",R);const ie=t.computed(()=>O6e({config:d,currentSlide:y.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,F=ie.value*c.value*S;return{transform:`translateX(${I.x-F}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),x(),V(),ne()}Object.keys(BC).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==y.value&&K(Number(S))}),t.watch(h,x),o("before-init"),w();const $e={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:y,maxSlide:u,minSlide:f,middleSlide:g};n({updateBreakpointsConfigs:b,updateSlidesData:x,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:se,data:$e});const Pe=a.default||a.slides,Re=a.addons,ve=t.reactive($e);return()=>{const S=$C(Pe==null?void 0:Pe(ve)),F=(Re==null?void 0:Re(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let T=S;if(d.wrapAround){const Oe=S.map((Fe,le)=>t.cloneVNode(Fe,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((Fe,le)=>t.cloneVNode(Fe,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));T=[...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},T),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ee.value,"is-hover":z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,F,t.h(P6e)])}}}),VC;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(VC||(VC={}));var D6e=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({},gt))),n=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===n.value,c=()=>e.index===n.value-1,h=()=>e.index===n.value+1,d=()=>{const l=Math.floor(s.value),p=Math.ceil(s.value+o.itemsToShow-1);return e.index>=l&&e.index<=p};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 j6e=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},L6e=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),v6e={class:"gsc-carousel"},M6e={key:0},H6e=L6e(()=>t.createElementVNode("div",null,"no hay",-1)),U6e=[H6e],G6e={class:"gsc-carousel__2d__slides"},W6e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q6e=["fill"],J6e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X6e=["fill"],Z6e={class:"gsc-carousel__2d__navigation"},Y6e={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K6e=["stroke"],Q6e={key:1,class:"gsc-carousel__2d__navigation__pagination"},e8e=["onClick"],t8e={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a8e=["stroke"],o8e={__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"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(u=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const s=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(s,u=>{u&&c.value?(c.value=!1,h(n.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,u=>{r.value!==u&&y(u)}),t.watch(()=>n.items,u=>{s.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&s.value){if(n.defaultItemByProp){const f=n.items.findIndex(_=>_[n.defaultItemByProp.propName]===n.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=n.defaultItemByIndex,i.value=u[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){s.value&&s.value.next()}function l(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function y(u){s.value&&s.value.slideTo(u)}function m(u){s.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?n.items.length-1:u.slidingToIndex===n.items.length?0:u.slidingToIndex;r.value=f,i.value=n.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:p,slideTo:y}),(u,f)=>(t.openBlock(),t.createElementBlock("div",v6e,[n.is3d?(t.openBlock(),t.createElementBlock("div",M6e,U6e)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",G6e,[t.createVNode(t.unref(R6e),{ref_key:"carousel2d",ref:s,"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(D6e),{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",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:f[0]||(f[0]=_=>s.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",W6e,[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,q6e)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),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",J6e,[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,X6e)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Z6e,[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",Y6e,[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:n.arrowsColor},null,8,K6e)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Q6e,[(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:`${n.navigationHeight}px`,width:`${r.value===k?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===k?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>m(k)},null,12,e8e))),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]=_=>s.value.next())},[(t.openBlock(),t.createElementBlock("svg",t8e,[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:n.arrowsColor},null,8,a8e)]))])):t.createCommentVNode("",!0)])],2))]))}},mc=j6e(o8e,[["__scopeId","data-v-cf3e4ab5"]]),n8e=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},sy={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))}}},IC=()=>{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}))},AC=sy.setup;sy.setup=AC?(e,a)=>(IC(),AC(e,a)):IC;const s8e=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),i8e=["src"],r8e={key:1,class:"text"},l8e=["src"],c8e={class:"stats"},d8e=s8e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m8e={class:"numstats"},p8e={class:"leyend"};function h8e(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.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,i8e)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",r8e,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,l8e)):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",c8e,[d8e,t.createElementVNode("div",m8e,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",p8e,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const g8e=n8e(sy,[["render",h8e],["__scopeId","data-v-fb269a1e"]]),y8e={class:"gsc-dropdown__main-container__item-selected"},u8e=["height","width"],f8e=["stroke"],_8e={class:"gsc-dropdown__items-container"},b8e=["onClick"],w8e={key:0,class:"gsc-dropdown__items-footer"},iy={__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,n=t.ref({}),s=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(m,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&m&&m.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,n.value=m[u]):(i.value=0,n.value=m[0])}else n.value=m[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,m=>{if(m){const g=o.items.findIndex(u=>typeof m=="object"?JSON.stringify(u)===JSON.stringify(m):u===m);g!==-1&&(i.value=g,n.value=o.items[g],a("update:modelValue",n.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(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function p(m,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function y(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(m,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,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",y8e,[t.renderSlot(m.$slots,"default",{selectedItem:n.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,f8e)],8,u8e))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_8e,[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:_=>p(u,f)},[t.renderSlot(m.$slots,"availableItem",{item:u})],10,b8e))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",w8e,[t.createVNode(t.unref(g8e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let OC=null;const C8e={components:{LineupField:W3e,LineupRecentItem:nCe,LineupMainHeader:BCe,LineupFilter:XCe,MatchDetails:kC,GscSwitchComponent:Js,GSCCarousel:mc,GSCDropdown:iy},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:P3e},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 Rt.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 Rt.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(n=>n.game_id===Number(n.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(){yn("lineups.game."+this.game.game_id),yn("mxm.game."+this.game.game_id),yn("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)OC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=await Rt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},async getLineupDataProbablesAway(e){try{const h=await Rt.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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 Rt.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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.home_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[p].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[p].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[p].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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.away_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[p].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[p].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(uC(),!this.playersHome.length)try{const C=await Rt.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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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+". "+s,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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},Xs=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),k8e={class:"lineup__header",ref:"gamesContainer"},S8e=Xs(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),E8e={key:0,style:{width:"325px"}},N8e={class:"lineup__card"},x8e={key:0},B8e={key:1},$8e={key:2},V8e={key:3,class:"lineup__card-body"},I8e={key:0,class:"lineup__selector",style:{margin:"auto"}},A8e={class:"lineup__selector-item"},O8e={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},T8e={class:"lineup__filters"},F8e={class:"selector-tournaments"},z8e={class:"lineup__items-carousel"},P8e=Xs(()=>t.createElementVNode("div",null,null,-1)),R8e={class:"lineup__items-center"},D8e={class:"lineup__selector-recientes"},j8e={key:1,class:"containernofoundsearchrecientes"},L8e=Xs(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),v8e={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},M8e={key:5,class:"lineup__card-body space-between"},H8e={class:"lineup__card-body__probables"},U8e={class:"selector-tournaments"},G8e=Xs(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),W8e=["src"],q8e={class:"lineup__card-body__probables"},J8e=["src"],X8e=Xs(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Z8e={class:"selector-tournaments"},Y8e={key:6,class:"lineup__card-body space-between"},K8e={class:"postmatch__matchday"};function Q8e(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),p=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),m=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",k8e,[S8e,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",E8e,[(s.gameInfoheader.game_status==0||s.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",N8e,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",x8e,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",B8e,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",$8e,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(s.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:s.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.headerInfoHistoricItemGame.score[0]+" - "+s.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(s.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.home_team+".png"},visitTeam:{acronym:s.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.gameInfoheader.score[0]+" - "+s.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",V8e,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",I8e,[s.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:s.updatehistoricos,onInput:i.changeCarouselItemH,items:s.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",A8e,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",O8e,[t.createElementVNode("div",T8e,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:s.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",F8e,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=>s.showDetails=!s.showDetails)},t.toDisplayString(s.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",z8e,[P8e,t.createElementVNode("div",R8e,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",D8e,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",j8e,[L8e,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),s.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",v8e,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),s.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",M8e,[t.createElementVNode("div",H8e,[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",U8e,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),G8e,t.createElementVNode("img",{src:s.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,W8e)]),t.createElementVNode("div",q8e,[t.createElementVNode("img",{src:s.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,J8e),X8e,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",Z8e,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",Y8e,[t.createElementVNode("div",K8e,t.toDisplayString(s.gameInfoheader.season_name!==void 0?s.gameInfoheader.season_name+" | "+i.remplazarMxJor(s.gameInfoheader.matchday_abbreviation)+" | "+s.gameInfoheader.home_team_abbreviation+" - "+s.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(m,{class:"lineup__field",players:s.players},null,8,["players"])])],2)}const eke=wt(C8e,[["render",Q8e],["__scopeId","data-v-3e8dc5c2"]]),tke={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){this.$emit("onOpenProfile",e)}},mounted(){}},pc=e=>(t.pushScopeId("data-v-89ae6362"),e=e(),t.popScopeId(),e),ake={key:0,class:"gsc-item-player"},oke={class:"gsc-num-player"},nke={class:"gsc-cont-info-by-player"},ske={class:"gsc-cont-info-by-player-row1"},ike={class:"shield-player-cont"},rke=["src"],lke={class:"gsc-cont-info-by-player-row2"},cke={class:"gsc-cont-info-by-player-row2-line-data"},dke={class:"cont-display-gsc"},mke=["src"],pke={class:"gsc-cont-cards"},hke={key:0,class:"gsc-yellow_card_div"},gke={key:1,class:"gsc-red_card_div"},yke={key:2,class:"gsc-yellowred_card_div"},uke=pc(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),fke={key:5,class:"gsc-goal_card_div_wrapper"},_ke=pc(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),bke={key:1,class:"gsc-item-player"},wke={class:"gsc-num-player2"},Cke={class:"gsc-cont-info-by-player2"},kke={class:"gsc-cont-info-by-player-row2"},Ske={class:"gsc-cont-info-by-player-row2-line-data"},Eke={class:"gsc-cont-cards2"},Nke={key:0,class:"gsc-yellow_card_div"},xke={key:1,class:"gsc-red_card_div"},Bke={key:2,class:"gsc-yellowred_card_div"},$ke=pc(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Vke={key:5,class:"gsc-goal_card_div_wrapper"},Ike=pc(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Ake={class:"cont-display-gsc"},Oke=["src"],Tke={class:"gsc-cont-info-by-player-row1"},Fke={class:"shield-player-cont"},zke=["src"];function Pke(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",ake,[t.createElementVNode("div",oke,[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",nke,[t.createElementVNode("div",ske,[t.createElementVNode("div",ike,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,rke)])]),t.createElementVNode("div",lke,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",onClick:a[0]||(a[0]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season}))},t.toDisplayString(o.data.name),1),t.createElementVNode("div",cke,[t.createElementVNode("div",dke,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,mke),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",pke,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",hke)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",gke)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",yke)):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},[uke,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",fke,[_ke,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",bke,[t.createElementVNode("div",wke,[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",Cke,[t.createElementVNode("div",kke,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",onClick:a[1]||(a[1]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season}))},t.toDisplayString(o.data.name),1),t.createElementVNode("div",Ske,[t.createElementVNode("div",Eke,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Nke)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",xke)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Bke)):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},[$ke,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Vke,[Ike,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ake,[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,Oke)])])]),t.createElementVNode("div",Tke,[t.createElementVNode("div",Fke,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,zke)])])])])):t.createCommentVNode("",!0)],64)}const Rke=wt(tke,[["render",Pke],["__scopeId","data-v-89ae6362"]]),ry="/icn-filter.svg",Zs="/icn-expand-arrow.svg",TC="/backarrow.svg",FC="/nextarrow.svg",Dke="_selectoritem_1dafy_137",jke="_selectoritem2_1dafy_157",Lke="_gscheaderlineup_1dafy_177",vke="_anNoEstn_1dafy_191",Mke="_groupsLeague_1dafy_197",Hke="_jugadores_1dafy_209",Uke="_switchOption_1dafy_219",Gke="_jugadores1_1dafy_239",Wke="_switchOption1_1dafy_249",qke="_switchStatesBig_1dafy_265",Jke="_groupsLeagueParent_1dafy_283",Xke="_imgHomeTeamIcon_1dafy_301",Zke="_imgHomeTeamWrapper_1dafy_313",Yke="_teamContainer_1dafy_337",Kke="_name_1dafy_361",Qke="_homeTeamContainer_1dafy_373",e7e="_div_1dafy_393",t7e="_scoreContainer_1dafy_401",a7e="_scoreContainerWrapper_1dafy_421",o7e="_teamContainer1_1dafy_447",n7e="_awayTeamContainer_1dafy_471",s7e="_matchContainer_1dafy_491",i7e="_sliderMatchesChild_1dafy_509",r7e="_manchesterUnited_1dafy_521",l7e="_sliderMatchesItem_1dafy_533",c7e="_sliderMatches_1dafy_509",d7e="_sortIcon_1dafy_569",m7e="_filtros_1dafy_583",p7e="_sortParent_1dafy_599",h7e="_shapeIcon_1dafy_613",g7e="_btnFilter_1dafy_623",y7e="_btnFilter1_1dafy_651",u7e="_btnFilterParent_1dafy_679",f7e="_backArrowIcon_1dafy_695",_7e="_teamContainer2_1dafy_707",b7e="_homeTeam_1dafy_373",w7e="_div4_1dafy_735",C7e="_finalScore_1dafy_745",k7e="_manchesterUnited1_1dafy_771",S7e="_scoreContainer1_1dafy_785",E7e="_match_1dafy_491",N7e="_manchesterUnited2_1dafy_821",x7e="_btnDetails_1dafy_831",B7e="_matchContainer1_1dafy_851",$7e="_goalChild_1dafy_867",V7e="_goal_1dafy_867",I7e="_manchesterUnited3_1dafy_893",A7e="_minuteEvent_1dafy_907",O7e="_yellowCard_1dafy_921",T7e="_awayTeamEvents_1dafy_935",F7e="_rectangle_1dafy_949",z7e="_homeTeamEvents_1dafy_963",P7e="_totalEvents_1dafy_979",R7e="_headerSeccionAlineaciones1_1dafy_995",D7e="_switchOption3_1dafy_1017",j7e="_switchOption4_1dafy_1041",L7e="_switchStatesBig1_1dafy_1061",v7e="_manchesterUnited13_1dafy_1075",M7e="_homeTeamContainer1_1dafy_1085",H7e="_scoreContainer2_1dafy_1099",U7e="_matchContainer2_1dafy_1127",G7e="_manchesterUnited14_1dafy_1147",W7e="_sliderMatchesInner_1dafy_1161",q7e="_rectangleIcon_1dafy_1181",J7e="_sliderMatches1_1dafy_1201",X7e="_containerData_1dafy_1217",Z7e="_headerSeccionAlineaciones2_1dafy_1245",Y7e="_headerSeccionAlineaciones_1dafy_995",K7e="_headerSeccionAlineaciones21200_1dafy_1293",Q7e="_headerSeccionAlineaciones1540_1dafy_1299",e9e="_headerSeccionAlineaciones2540_1dafy_1307",t9e={selectoritem:Dke,selectoritem2:jke,gscheaderlineup:Lke,anNoEstn:vke,groupsLeague:Mke,jugadores:Hke,switchOption:Uke,jugadores1:Gke,switchOption1:Wke,switchStatesBig:qke,groupsLeagueParent:Jke,imgHomeTeamIcon:Xke,imgHomeTeamWrapper:Zke,teamContainer:Yke,name:Kke,homeTeamContainer:Qke,div:e7e,scoreContainer:t7e,scoreContainerWrapper:a7e,teamContainer1:o7e,awayTeamContainer:n7e,matchContainer:s7e,sliderMatchesChild:i7e,manchesterUnited:r7e,sliderMatchesItem:l7e,sliderMatches:c7e,sortIcon:d7e,filtros:m7e,sortParent:p7e,shapeIcon:h7e,btnFilter:g7e,btnFilter1:y7e,btnFilterParent:u7e,backArrowIcon:f7e,teamContainer2:_7e,homeTeam:b7e,div4:w7e,finalScore:C7e,manchesterUnited1:k7e,scoreContainer1:S7e,match:E7e,manchesterUnited2:N7e,btnDetails:x7e,matchContainer1:B7e,goalChild:$7e,goal:V7e,manchesterUnited3:I7e,minuteEvent:A7e,yellowCard:O7e,awayTeamEvents:T7e,rectangle:F7e,homeTeamEvents:z7e,totalEvents:P7e,headerSeccionAlineaciones1:R7e,switchOption3:D7e,switchOption4:j7e,switchStatesBig1:L7e,manchesterUnited13:v7e,homeTeamContainer1:M7e,scoreContainer2:H7e,matchContainer2:U7e,manchesterUnited14:G7e,sliderMatchesInner:W7e,rectangleIcon:q7e,sliderMatches1:J7e,containerData:X7e,headerSeccionAlineaciones2:Z7e,headerSeccionAlineaciones:Y7e,headerSeccionAlineaciones21200:K7e,headerSeccionAlineaciones1540:Q7e,headerSeccionAlineaciones2540:e9e},a9e={components:{GSCCarousel:mc,GscSwitchComponent:Js},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)}}},o9e=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),n9e=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),s9e=["src"],i9e=["src"],r9e=["src"],l9e=["src"],c9e=["src"],d9e=["src"];function m9e(e,a,o,n,s,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)},[o9e,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),n9e],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[s.selectedOption].objgame.home_team+".png"},null,10,s9e)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,i9e)):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":s.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:ry},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:Zs},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:Zs},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:TC},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[s.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[s.selectedOption].objgame.home_team+".png"},null,10,r9e)):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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,l9e)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[s.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:FC},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[s.selectedOption].objgame.home_team+".png"},null,10,c9e)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,d9e)):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":s.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 p9e={$style:t9e},h9e=wt(a9e,[["render",m9e],["__cssModules",p9e]]),hc=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),g9e=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),y9e=["value"],u9e=hc(()=>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)),f9e={class:"filter-modal__padding"},_9e={class:"filter-modal__content-header"},b9e=hc(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),w9e={class:"filter-modal__content-options"},C9e=["onClick"],k9e={class:"filter-modal__content-header"},S9e=hc(()=>t.createElementVNode("h3",null,"Resultados:",-1)),E9e={class:"filter-modal__content-options"},N9e=["onClick"],x9e=hc(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),B9e={__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 n=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],s=[{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),p=t.ref(!0),y=t.ref(["local","visit"]),m=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(y.value)),c.value=JSON.parse(JSON.stringify(m.value)),h.value=l.value,d.value=p.value};t.watch(()=>o.itemSelect,w=>{w&&(y.value=w.selectedFilterTeam,m.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=y.value:E=m.value;const B=E.findIndex(V=>V===w);B==-1?E.push(w):b=="team"&&y.value.length==2?E.splice(B,1):(b=="team"&&E.push(w),m.value.length>1&&E.splice(B,1)),l.value=y.value.length==2,p.value=m.value.length==3},f=()=>{y.value=["local","visit"],m.value=["win","draw","lose"],l.value=!0,p.value=!0,a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},_=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},k=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.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},[g9e,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,y9e),u9e])):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",f9e,[t.createElementVNode("div",_9e,[b9e,t.createVNode(cc,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",w9e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"team"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,C9e)),64))]),t.createElementVNode("div",k9e,[S9e,t.createVNode(cc,{modelValue:p.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>p.value=E),b[3]||(b[3]=E=>E&&(m.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",E9e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"player"),class:t.normalizeClass({active:m.value.includes(E.id)})},t.toDisplayString(E.name),11,N9e)),64))])]),x9e,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))}},$9e=wt(B9e,[["__scopeId","data-v-2118a6cd"]]),V9e="/icn-filter1.svg",I9e="/icn-expand-arrow1.svg",A9e="/icn-filter2.svg",O9e="/icn-arrow-expand.svg",T9e="_containernofoundsearchrecientes_1gxk5_159",F9e="_btndeletefilters_1gxk5_215",z9e="_leyenddeleteshow_1gxk5_247",P9e="_selectoritem_1gxk5_261",R9e="_anNoEstn_1gxk5_279",D9e="_groupsLeague_1gxk5_287",j9e="_historicas_1gxk5_297",L9e="_switchOption_1gxk5_309",v9e="_recientes_1gxk5_331",M9e="_switchOption1_1gxk5_343",H9e="_switchOption2_1gxk5_369",U9e="_switchStatesBig_1gxk5_387",G9e="_groupsLeagueParent_1gxk5_407",W9e="_imgHomeTeamIcon_1gxk5_427",q9e="_imgHomeTeamWrapper_1gxk5_441",J9e="_teamContainer_1gxk5_467",X9e="_name_1gxk5_493",Z9e="_homeTeamContainer_1gxk5_507",Y9e="_div_1gxk5_529",K9e="_scoreContainer_1gxk5_539",Q9e="_scoreContainerWrapper_1gxk5_561",eSe="_teamContainer1_1gxk5_587",tSe="_awayTeamContainer_1gxk5_613",aSe="_matchContainer_1gxk5_635",oSe="_sliderMatchesChild_1gxk5_655",nSe="_manchesterUnited_1gxk5_669",sSe="_sliderMatchesItem_1gxk5_683",iSe="_sliderMatches_1gxk5_655",rSe="_sortIcon_1gxk5_719",lSe="_filtros_1gxk5_735",cSe="_sortParent_1gxk5_753",dSe="_shapeIcon_1gxk5_769",mSe="_btnFilter_1gxk5_781",pSe="_btnFilter1_1gxk5_813",hSe="_btnFilterParent_1gxk5_843",gSe="_backArrowIcon_1gxk5_861",ySe="_teamContainer2_1gxk5_875",uSe="_homeTeam_1gxk5_507",fSe="_div4_1gxk5_907",_Se="_finalScore_1gxk5_919",bSe="_manchesterUnited1_1gxk5_947",wSe="_scoreContainer1_1gxk5_963",CSe="_match_1gxk5_635",kSe="_manchesterUnited2_1gxk5_997",SSe="_btnDetails_1gxk5_1023",ESe="_matchContainer1_1gxk5_1047",NSe="_goalChild_1gxk5_1065",xSe="_goal_1gxk5_1065",BSe="_manchesterUnited3_1gxk5_1095",$Se="_minuteEvent_1gxk5_1111",VSe="_yellowCard_1gxk5_1127",ISe="_awayTeamEvents_1gxk5_1143",ASe="_rectangle_1gxk5_1159",OSe="_homeTeamEvents_1gxk5_1175",TSe="_totalEvents_1gxk5_1193",FSe="_headerSeccionAlineaciones1_1gxk5_1211",zSe="_sliderMatchesInner_1gxk5_1233",PSe="_btnFilter2_1gxk5_1247",RSe="_btnDetails1_1gxk5_1281",DSe="_matchContainer3_1gxk5_1299",jSe="_backArrowIcon1_1gxk5_1321",LSe="_match1_1gxk5_1335",vSe="_headerSeccionAlineaciones2_1gxk5_1347",MSe="_jugadores2_1gxk5_1369",HSe="_switchOption6_1gxk5_1383",USe="_switchOption7_1gxk5_1405",GSe="_switchStatesBig2_1gxk5_1431",WSe="_manchesterUnited26_1gxk5_1447",qSe="_homeTeamContainer2_1gxk5_1459",JSe="_vectorIcon_1gxk5_1475",XSe="_teamSwitch_1gxk5_1487",ZSe="_matchContainer5_1gxk5_1513",YSe="_manchesterUnited27_1gxk5_1535",KSe="_sliderMatchesChild1_1gxk5_1551",QSe="_sliderMatchesChild2_1gxk5_1573",eEe="_sliderMatches2_1gxk5_1595",tEe="_filtros2_1gxk5_1615",aEe="_btnFilter4_1gxk5_1635",oEe="_jornada2_1gxk5_1667",nEe="_filterMatchday_1gxk5_1681",sEe="_btnDetails2_1gxk5_1703",iEe="_filtersContainer_1gxk5_1725",rEe="_matchContainer6_1gxk5_1745",lEe="_matchDetailContainer_1gxk5_1763",cEe="_containerData_1gxk5_1783",dEe="_headerSeccionAlineaciones3_1gxk5_1813",mEe="_headerSeccionAlineaciones_1gxk5_1211",pEe="_headerSeccionAlineaciones31200_1gxk5_1865",hEe="_headerSeccionAlineaciones3420_1gxk5_1891",gEe="_headerSeccionAlineaciones3880_1gxk5_1917",yEe="_headerSeccionAlineaciones3540_1gxk5_1941",uEe="_headerSeccionAlineaciones11200_1gxk5_1967",fEe="_headerSeccionAlineaciones1420_1gxk5_1995",_Ee="_headerSeccionAlineaciones1880_1gxk5_2017",bEe="_headerSeccionAlineaciones21200_1gxk5_2039",wEe="_headerSeccionAlineaciones2420_1gxk5_2067",CEe="_headerSeccionAlineaciones2880_1gxk5_2091",kEe="_headerSeccionAlineaciones2540_1gxk5_2113",SEe={containernofoundsearchrecientes:T9e,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:F9e,leyenddeleteshow:z9e,selectoritem:P9e,anNoEstn:R9e,groupsLeague:D9e,historicas:j9e,switchOption:L9e,recientes:v9e,switchOption1:M9e,switchOption2:H9e,switchStatesBig:U9e,groupsLeagueParent:G9e,imgHomeTeamIcon:W9e,imgHomeTeamWrapper:q9e,teamContainer:J9e,name:X9e,homeTeamContainer:Z9e,div:Y9e,scoreContainer:K9e,scoreContainerWrapper:Q9e,teamContainer1:eSe,awayTeamContainer:tSe,matchContainer:aSe,sliderMatchesChild:oSe,manchesterUnited:nSe,sliderMatchesItem:sSe,sliderMatches:iSe,sortIcon:rSe,filtros:lSe,sortParent:cSe,shapeIcon:dSe,btnFilter:mSe,btnFilter1:pSe,btnFilterParent:hSe,backArrowIcon:gSe,teamContainer2:ySe,homeTeam:uSe,div4:fSe,finalScore:_Se,manchesterUnited1:bSe,scoreContainer1:wSe,match:CSe,manchesterUnited2:kSe,btnDetails:SSe,matchContainer1:ESe,goalChild:NSe,goal:xSe,manchesterUnited3:BSe,minuteEvent:$Se,yellowCard:VSe,awayTeamEvents:ISe,rectangle:ASe,homeTeamEvents:OSe,totalEvents:TSe,headerSeccionAlineaciones1:FSe,sliderMatchesInner:zSe,btnFilter2:PSe,btnDetails1:RSe,matchContainer3:DSe,backArrowIcon1:jSe,match1:LSe,headerSeccionAlineaciones2:vSe,jugadores2:MSe,switchOption6:HSe,switchOption7:USe,switchStatesBig2:GSe,manchesterUnited26:WSe,homeTeamContainer2:qSe,vectorIcon:JSe,teamSwitch:XSe,matchContainer5:ZSe,manchesterUnited27:YSe,sliderMatchesChild1:KSe,sliderMatchesChild2:QSe,sliderMatches2:eEe,filtros2:tEe,btnFilter4:aEe,jornada2:oEe,filterMatchday:nEe,btnDetails2:sEe,filtersContainer:iEe,matchContainer6:rEe,matchDetailContainer:lEe,containerData:cEe,headerSeccionAlineaciones3:dEe,headerSeccionAlineaciones:mEe,headerSeccionAlineaciones31200:pEe,headerSeccionAlineaciones3420:hEe,headerSeccionAlineaciones3880:gEe,headerSeccionAlineaciones3540:yEe,headerSeccionAlineaciones11200:uEe,headerSeccionAlineaciones1420:fEe,headerSeccionAlineaciones1880:_Ee,headerSeccionAlineaciones21200:bEe,headerSeccionAlineaciones2420:wEe,headerSeccionAlineaciones2880:CEe,headerSeccionAlineaciones2540:kEe},EEe={components:{GSCCarousel:mc,GscSwitchComponent:Js,GSCDropdown:iy,GSCFilter:$9e,GSCSwitchRadio:bC,GSCMatchDetails:kC},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)}}},NEe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),xEe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BEe=["src"],$Ee=["src"],VEe={class:"selector-tournaments"},IEe=["src"],AEe=["src"],OEe={key:1},TEe=t.createElementVNode("br",null,null,-1),FEe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),zEe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),PEe=["src"],REe=["src"],DEe={class:"selector-tournaments"},jEe=["src"],LEe=["src"],vEe={key:1},MEe=t.createElementVNode("br",null,null,-1),HEe=["src"],UEe=["src"],GEe={class:"selector-tournaments"},WEe=["src"],qEe=["src"],JEe={key:1},XEe=t.createElementVNode("br",null,null,-1);function ZEe(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),p=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)},[NEe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),xEe],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,BEe)],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":s.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,$Ee)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:ry},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:Zs},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.openfiltervalue,onChange:i.changeFiltersModal,reset:s.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",VEe,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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:s.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,IEe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,AEe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",OEe,[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"),TEe,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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)},[FEe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),zEe],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,PEe)],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":s.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,REe)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:V9e},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:I9e},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",DEe,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,jEe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,LEe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",vEe,[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"),MEe,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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,HEe)],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":s.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,UEe)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:A9e},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:O9e},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",GEe,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,WEe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,qEe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",JEe,[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"),XEe,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const YEe={$style:SEe},KEe=wt(EEe,[["render",ZEe],["__cssModules",YEe]]),QEe="_selectoritem_16hc8_179",eNe="_selectoritem2_16hc8_199",tNe="_gscheaderlineup_16hc8_219",aNe="_anNoEstn_16hc8_233",oNe="_groupsLeague_16hc8_239",nNe="_jugadores_16hc8_249",sNe="_switchOption_16hc8_259",iNe="_jugadores1_16hc8_279",rNe="_switchOption1_16hc8_289",lNe="_switchStatesBig_16hc8_305",cNe="_groupsLeagueParent_16hc8_323",dNe="_imgHomeTeamIcon_16hc8_341",mNe="_imgHomeTeamWrapper_16hc8_353",pNe="_teamContainer_16hc8_377",hNe="_name_16hc8_401",gNe="_homeTeamContainer_16hc8_413",yNe="_div_16hc8_433",uNe="_titleSession_16hc8_441",fNe="_scoreContainer_16hc8_461",_Ne="_scoreContainerWrapper_16hc8_481",bNe="_teamContainer1_16hc8_505",wNe="_awayTeamContainer_16hc8_529",CNe="_matchContainer_16hc8_549",kNe="_sliderMatchesChild_16hc8_567",SNe="_manchesterUnited_16hc8_579",ENe="_sliderMatchesItem_16hc8_591",NNe="_sliderMatches_16hc8_567",xNe="_sortIcon_16hc8_627",BNe="_filtros_16hc8_641",$Ne="_sortParent_16hc8_657",VNe="_shapeIcon_16hc8_671",INe="_btnFilter_16hc8_681",ANe="_btnFilter1_16hc8_709",ONe="_btnFilterParent_16hc8_737",TNe="_backArrowIcon_16hc8_753",FNe="_teamContainer2_16hc8_765",zNe="_homeTeam_16hc8_413",PNe="_div4_16hc8_793",RNe="_finalScore_16hc8_803",DNe="_manchesterUnited1_16hc8_829",jNe="_scoreContainer1_16hc8_843",LNe="_match_16hc8_549",vNe="_manchesterUnited2_16hc8_879",MNe="_btnDetails_16hc8_889",HNe="_matchContainer1_16hc8_909",UNe="_goalChild_16hc8_925",GNe="_goal_16hc8_925",WNe="_manchesterUnited3_16hc8_951",qNe="_minuteEvent_16hc8_965",JNe="_yellowCard_16hc8_979",XNe="_awayTeamEvents_16hc8_993",ZNe="_rectangle_16hc8_1007",YNe="_homeTeamEvents_16hc8_1021",KNe="_totalEvents_16hc8_1037",QNe="_headerSeccionAlineaciones1_16hc8_1053",exe="_switchOption3_16hc8_1075",txe="_switchOption4_16hc8_1099",axe="_switchStatesBig1_16hc8_1119",oxe="_manchesterUnited13_16hc8_1133",nxe="_homeTeamContainer1_16hc8_1143",sxe="_scoreContainer2_16hc8_1157",ixe="_matchContainer2_16hc8_1185",rxe="_manchesterUnited14_16hc8_1205",lxe="_sliderMatchesInner_16hc8_1219",cxe="_rectangleIcon_16hc8_1239",dxe="_sliderMatches1_16hc8_1259",mxe="_containerData_16hc8_1275",pxe="_headerSeccionAlineaciones2_16hc8_1303",hxe="_headerSeccionAlineaciones_16hc8_1053",gxe="_headerSeccionAlineaciones21200_16hc8_1351",yxe="_headerSeccionAlineaciones1540_16hc8_1357",uxe="_headerSeccionAlineaciones2540_16hc8_1365",fxe={selectoritem:QEe,selectoritem2:eNe,gscheaderlineup:tNe,anNoEstn:aNe,groupsLeague:oNe,jugadores:nNe,switchOption:sNe,jugadores1:iNe,switchOption1:rNe,switchStatesBig:lNe,groupsLeagueParent:cNe,imgHomeTeamIcon:dNe,imgHomeTeamWrapper:mNe,teamContainer:pNe,name:hNe,homeTeamContainer:gNe,div:yNe,titleSession:uNe,scoreContainer:fNe,scoreContainerWrapper:_Ne,teamContainer1:bNe,awayTeamContainer:wNe,matchContainer:CNe,sliderMatchesChild:kNe,manchesterUnited:SNe,sliderMatchesItem:ENe,sliderMatches:NNe,sortIcon:xNe,filtros:BNe,sortParent:$Ne,shapeIcon:VNe,btnFilter:INe,btnFilter1:ANe,btnFilterParent:ONe,backArrowIcon:TNe,teamContainer2:FNe,homeTeam:zNe,div4:PNe,finalScore:RNe,manchesterUnited1:DNe,scoreContainer1:jNe,match:LNe,manchesterUnited2:vNe,btnDetails:MNe,matchContainer1:HNe,goalChild:UNe,goal:GNe,manchesterUnited3:WNe,minuteEvent:qNe,yellowCard:JNe,awayTeamEvents:XNe,rectangle:ZNe,homeTeamEvents:YNe,totalEvents:KNe,headerSeccionAlineaciones1:QNe,switchOption3:exe,switchOption4:txe,switchStatesBig1:axe,manchesterUnited13:oxe,homeTeamContainer1:nxe,scoreContainer2:sxe,matchContainer2:ixe,manchesterUnited14:rxe,sliderMatchesInner:lxe,rectangleIcon:cxe,sliderMatches1:dxe,containerData:mxe,headerSeccionAlineaciones2:pxe,headerSeccionAlineaciones:hxe,headerSeccionAlineaciones21200:gxe,headerSeccionAlineaciones1540:yxe,headerSeccionAlineaciones2540:uxe},_xe={components:{GSCCarousel:mc,GscSwitchComponent:Js},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)}}},bxe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),wxe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Cxe=["src"],kxe=["src"],Sxe=["src"],Exe=["src"],Nxe=["src"],xxe=["src"];function Bxe(e,a,o,n,s,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)},[bxe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),wxe],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,Cxe)],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,kxe)],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:ry},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:Zs},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:Zs},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:TC},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,Sxe)],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,Exe),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:FC},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,Nxe)],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,xxe)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const $xe={$style:fxe},Vxe=wt(_xe,[["render",Bxe],["__cssModules",$xe]]),Ixe="_anNoEstn_j98j7_139",Axe="_groupsLeague_j98j7_145",Oxe="_historicas_j98j7_153",Txe="_switchOption_j98j7_163",Fxe="_switchOption1_j98j7_183",zxe="_probables_j98j7_203",Pxe="_switchOption2_j98j7_213",Rxe="_switchStatesBig_j98j7_237",Dxe="_groupsLeagueParent_j98j7_255",jxe="_imgHomeTeamIcon_j98j7_273",Lxe="_imgHomeTeamWrapper_j98j7_285",vxe="_teamContainer_j98j7_309",Mxe="_name_j98j7_333",Hxe="_jor_j98j7_345",Uxe="_jorParent_j98j7_357",Gxe="_shapeIcon_j98j7_373",Wxe="_frameParent_j98j7_383",qxe="_manchesterUnited_j98j7_413",Jxe="_necaxaIcon_j98j7_435",Xxe="_manchesterUnited1_j98j7_447",Zxe="_team_j98j7_309",Yxe="_homeTeamContainer_j98j7_475",Kxe="_div1_j98j7_495",Qxe="_scoreContainer_j98j7_503",eBe="_scoreContainerWrapper_j98j7_525",tBe="_team1_j98j7_549",aBe="_name1_j98j7_563",oBe="_teamContainer1_j98j7_577",nBe="_awayTeamContainer_j98j7_601",sBe="_matchContainer_j98j7_623",iBe="_goalChild_j98j7_641",rBe="_goal_j98j7_641",lBe="_manchesterUnited4_j98j7_667",cBe="_minuteEvent_j98j7_681",dBe="_yellowCard_j98j7_695",mBe="_awayTeamEvents_j98j7_709",pBe="_rectangle_j98j7_723",hBe="_homeTeamEvents_j98j7_737",gBe="_totalEvents_j98j7_753",yBe="_headerSeccionAlineaciones1_j98j7_769",uBe="_homeTeamContainer1_j98j7_789",fBe="_awayTeamContainer1_j98j7_813",_Be="_headerSeccionAlineaciones2_j98j7_837",bBe="_jugadores_j98j7_857",wBe="_switchOption6_j98j7_869",CBe="_switchOption8_j98j7_889",kBe="_switchStatesBig2_j98j7_913",SBe="_manchesterUnited28_j98j7_927",EBe="_homeTeamContainer2_j98j7_935",NBe="_matchContainer2_j98j7_949",xBe="_manchesterUnited29_j98j7_971",BBe="_sliderMatchesChild_j98j7_985",$Be="_sliderMatchesItem_j98j7_1005",VBe="_sliderMatches_j98j7_985",IBe="_jorParent2_j98j7_1045",ABe="_filterMatchday_j98j7_1059",OBe="_necaxaIcon4_j98j7_1081",TBe="_team4_j98j7_1093",FBe="_filterMatchdayParent_j98j7_1113",zBe="_filterMatchday1_j98j7_1127",PBe="_teamParent_j98j7_1157",RBe="_filtersContainer_j98j7_1177",DBe="_containerData_j98j7_1195",jBe="_headerSeccionAlineaciones3_j98j7_1223",LBe="_headerSeccionAlineaciones_j98j7_769",vBe={anNoEstn:Ixe,groupsLeague:Axe,historicas:Oxe,switchOption:Txe,switchOption1:Fxe,probables:zxe,switchOption2:Pxe,switchStatesBig:Rxe,groupsLeagueParent:Dxe,imgHomeTeamIcon:jxe,imgHomeTeamWrapper:Lxe,teamContainer:vxe,name:Mxe,jor:Hxe,jorParent:Uxe,shapeIcon:Gxe,frameParent:Wxe,manchesterUnited:qxe,necaxaIcon:Jxe,manchesterUnited1:Xxe,team:Zxe,homeTeamContainer:Yxe,div1:Kxe,scoreContainer:Qxe,scoreContainerWrapper:eBe,team1:tBe,name1:aBe,teamContainer1:oBe,awayTeamContainer:nBe,matchContainer:sBe,goalChild:iBe,goal:rBe,manchesterUnited4:lBe,minuteEvent:cBe,yellowCard:dBe,awayTeamEvents:mBe,rectangle:pBe,homeTeamEvents:hBe,totalEvents:gBe,headerSeccionAlineaciones1:yBe,homeTeamContainer1:uBe,awayTeamContainer1:fBe,headerSeccionAlineaciones2:_Be,jugadores:bBe,switchOption6:wBe,switchOption8:CBe,switchStatesBig2:kBe,manchesterUnited28:SBe,homeTeamContainer2:EBe,matchContainer2:NBe,manchesterUnited29:xBe,sliderMatchesChild:BBe,sliderMatchesItem:$Be,sliderMatches:VBe,jorParent2:IBe,filterMatchday:ABe,necaxaIcon4:OBe,team4:TBe,filterMatchdayParent:FBe,filterMatchday1:zBe,teamParent:PBe,filtersContainer:RBe,containerData:DBe,headerSeccionAlineaciones3:jBe,headerSeccionAlineaciones:LBe},MBe={components:{GSCDropdown:iy,GscSwitchComponent:Js},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])}}},HBe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),UBe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),GBe=["src"],WBe={class:"selector-tournaments"},qBe=["src"],JBe=["src"],XBe={class:"selector-tournaments"},ZBe=["src"],YBe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),KBe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),QBe=["src"],e$e={class:"selector-tournaments"},t$e=["src"],a$e=["src"],o$e={class:"selector-tournaments"},n$e=["src"],s$e=["src"],i$e=["src"],r$e={class:"selector-tournaments"},l$e=["src"],c$e=["src"],d$e={class:"selector-tournaments"};function m$e(e,a,o,n,s,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)},[HBe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),UBe],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,GBe)],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",WBe,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:s.rivalHomeImg},null,10,qBe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,JBe),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",XBe,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,ZBe)],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)},[YBe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),KBe],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,QBe)],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",e$e,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:s.rivalHomeImg},null,10,t$e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,a$e),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",o$e,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,n$e)],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,s$e)],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,i$e)],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",r$e,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:s.rivalHomeImg},null,10,l$e)],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:s.rivalVisitImg},null,10,c$e),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",d$e,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 p$e={$style:vBe},h$e=wt(MBe,[["render",m$e],["__cssModules",p$e]]),zC="/line.png";let PC=null;const g$e={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:Rke,HeaderPlayerHistorico:h9e,HeaderPlayerRecientes:KEe,HeaderPlayerProbables:h$e,HeaderPlayerPostmatch:Vxe},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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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(" "),p=o[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var m=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var g=m+". "+y,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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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 p=a.data[b].player_name.split(","),y=p[0].split(" "),m=p[1].trim().split(" "),g="";y.length==2||y.length==1?y[0].length<4?g=y[0]+" "+y[1]:g=y[0]:y.length==3?g=y[0]+" "+y[1]:y.length==4&&(g=y[1]+" "+y[2]+" "+y[3]);var u=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.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,n=-1;if(this.playersHome.length>0){var s=this.playersHome.findIndex(x=>x.idredcards==a.play_id),i=this.playersHome.findIndex(x=>x.idyellowcards==a.play_id),r=this.playersHome.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersHome.length;x++){var c=this.playersHome[x].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,n=x)}s!=-1&&this.resetPlayUpdate("RedCard","Home",s,n),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,n),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,n),o!=-1&&this.resetPlayUpdate("Goals","Home",o,n)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(x=>x.idredcards==a.play_id),d=this.playersAway.findIndex(x=>x.idyellowcards==a.play_id),l=this.playersAway.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersAway.length;x++){var p=this.playersAway[x].idsGoals.findIndex($=>$==a.play_id);p!=-1&&(o=p,n=x)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,n),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,n),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,n),o!=-1&&this.resetPlayUpdate("Goals","Away",o,n)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=a.player_id.split("@"),m=this.playersHome.findIndex(x=>x.playerId==y[0]),g=this.playersHome.findIndex(x=>x.playerId==y[1]);m!=-1&&(this.playersHome[m].idSubstitution=a.play_id,this.playersHome[m].substitutionOut=!0,this.playersHome[m].substitutionMin=a.minute,this.playersHome[m].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(x=>x.playerId==u[0]),_=this.playersAway.findIndex(x=>x.playerId==u[1]);m!=-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(x=>x.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(x=>x.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(x=>x.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(x=>x.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 B=this.playersHome.findIndex(x=>x.playerId==a.player_id);B!=-1&&(this.playersHome[B].redcards+=1,this.playersHome[B].redcardsMin=a.minute,this.playersHome[B].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(x=>x.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 n=this.playersHome[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(n,1),this.playersHome[o].idsGoals.splice(n,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const n=this.playersAway[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(n,1),this.playersAway[o].idsGoals.splice(n,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("@"),n=this.playersHome.findIndex(g=>g.playerId==o[0]),s=this.playersHome.findIndex(g=>g.playerId==o[1]);n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionOut=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id),s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].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]);n!=-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 p=this.playersAway.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=a.minute,this.playersAway[p].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=a.minute,this.playersHome[y].idredcards=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].redcards+=1,this.playersAway[m].redcardsMin=a.minute,this.playersAway[m].idredcards=a.play_id)}}}}},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){try{const w=await Rt.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,_=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(z=>z.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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 Rt.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=_.data.away_team.players.findIndex(O=>O.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 Rt.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 Rt.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(n=>n.game_id===Number(n.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(){yn("lineups.game."+this.game.game_id),yn("mxm.game."+this.game.game_id),yn("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)PC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=await Rt.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<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},async getLineUp(e){if(e!=null&&(uC(),!this.playersHome.length&&!this.playersHome.length))try{const C=await Rt.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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},y$e={class:"size-browser-class"},u$e={class:"lineup-players is-centered"},f$e={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},_$e={class:"modal-substitutions__substitution-container"},b$e={class:"modal-substitutions__substitution-container__header"},w$e={style:{"margin-left":"32px"}},C$e=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),k$e=[C$e],S$e={class:"modal-substitutions__substitution-container__players-container"},E$e={class:"substitution-player-data-container"},N$e={class:"substitution-player-data-container__img-player"},x$e=["src"],B$e={class:"substitution-player-data-container__img-player__team"},$$e=["src"],V$e={class:"substitution-player-data-container__name-player"},I$e={class:"substitution-player-data-container__position-player"},A$e={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},O$e={key:0,class:"substitution-player-data-container__shirt-player__circle"},T$e={key:1},F$e=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),z$e=[F$e],P$e={class:"substitution-player-data-container__substitution-player"},R$e={class:"substitution-indicator nomargin"},D$e=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),j$e={class:"substitution-player-data-container__center"},L$e=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),v$e={class:"substitution-player-data-container__minute"},M$e={class:"substitution-player-data-container"},H$e={class:"substitution-player-data-container__img-player"},U$e=["src"],G$e={class:"substitution-player-data-container__img-player__team"},W$e=["src"],q$e={class:"substitution-player-data-container__name-player"},J$e={class:"substitution-player-data-container__position-player"},X$e={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},Z$e={key:0},Y$e=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),K$e=[Y$e],Q$e={key:1,class:"substitution-player-data-container__shirt-player__circle"},eVe={class:"substitution-player-data-container__substitution-player"},tVe={class:"substitution-indicator nomargin"},aVe=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),oVe=["onClick"],nVe=t.createElementVNode("img",{src:zC},null,-1),sVe=[nVe],iVe=["onClick"],rVe=t.createElementVNode("img",{src:zC},null,-1),lVe=[rVe],cVe={key:0,class:"cont-lineup-gsc-componente"},dVe={class:"shield-team-cont homecolor"},mVe=["src"],pVe={class:"shield-team-cont awaycolor"},hVe=["src"],gVe={key:0,class:"header-lineup-shield-team home"},yVe={class:"shield-team-cont homecolor"},uVe=["src"],fVe={class:"header-lineup-shield-team-wrapper"},_Ve={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},bVe=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),wVe={key:0,class:"header-lineup-shield-team away"},CVe={class:"shield-team-cont awaycolor"},kVe=["src"],SVe={class:"header-lineup-shield-team-wrapper"},EVe={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},NVe=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),xVe=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),BVe=[xVe],$Ve=t.createElementVNode("br",null,null,-1);function VVe(e,a,o,n,s,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",y$e,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",u$e,[t.createElementVNode("div",f$e,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric,"game-recientes":Object.keys(s.gameInfoheader).length>0?s.gamesRecientes[s.gameInfoheader.home_team_abbreviation].length+s.gamesRecientes[s.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),s.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},key:s.keyUpdateRecientes,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,"player-home":s.playersHome,"player-away":s.playersAway,"matchdays-default":s.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":s.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),s.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":s.matchdaysPerTeam,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":s.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:s.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",s.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",_$e,[t.createElementVNode("div",b$e,[t.createElementVNode("span",w$e,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=p=>i.closeChange())},k$e)])]),t.createElementVNode("div",S$e,[t.createElementVNode("div",E$e,[t.createElementVNode("div",N$e,[s.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,x$e)):t.createCommentVNode("",!0),t.createElementVNode("div",B$e,[s.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,$$e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",V$e,t.toDisplayString(s.substitutionModal.in.name),1),t.createElementVNode("div",I$e,t.toDisplayString(s.substitutionModal.in.position),1),t.createElementVNode("div",A$e,[s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",O$e,t.toDisplayString(s.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",T$e,z$e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",P$e,[t.createElementVNode("template",null,[t.createElementVNode("div",R$e,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),D$e])])])]),t.createElementVNode("div",j$e,[L$e,t.createElementVNode("div",v$e,t.toDisplayString(s.substitutionModal.min)+"'",1)]),t.createElementVNode("div",M$e,[t.createElementVNode("div",H$e,[s.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,U$e)):t.createCommentVNode("",!0),t.createElementVNode("div",G$e,[s.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,W$e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",q$e,t.toDisplayString(s.substitutionModal.out.name),1),t.createElementVNode("div",J$e,t.toDisplayString(s.substitutionModal.out.position),1),t.createElementVNode("div",X$e,[s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Z$e,K$e)):t.createCommentVNode("",!0),s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Q$e,t.toDisplayString(s.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",eVe,[t.createElementVNode("template",null,[t.createElementVNode("div",tVe,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),aVe])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="home"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformHome}:{backgroundImage:s.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},sVe,10,oVe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="away"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformAway}:{backgroundImage:s.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},lVe,10,iVe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cVe,[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"},s.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=p=>i.viewLineupTeam("home"))},[t.createElementVNode("div",dVe,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,mVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},s.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=p=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",pVe,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,hVe)):t.createCommentVNode("",!0)])],4)],2),s.teamActive=="home"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",gVe,[t.createElementVNode("div",yVe,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,uVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",fVe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",_Ve,[bVe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),s.teamActive=="away"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wVe,[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",CVe,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kVe)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",SVe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EVe,[NVe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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",s.gamesContainerWidth<740?"movil":""])},BVe,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",s.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",s.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),$Ve,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const IVe=wt(g$e,[["render",VVe]]),AVe={components:{GSCLineups2D:eke,GSCLineups3D:IVe},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function OVe(e,a,o,n,s,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,onOnOpenProfile:i.onOpenProfile,"selected-option":o.selectedOption,game:o.game},null,8,["onOnOpenProfile","selected-option","game"])):t.createCommentVNode("",!0)])}const TVe=wt(AVe,[["render",OVe]]);function RC(e,a){return function(){return e.apply(a,arguments)}}const{toString:FVe}=Object.prototype,{getPrototypeOf:ly}=Object,gc=(e=>a=>{const o=FVe.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ca=e=>(e=e.toLowerCase(),a=>gc(a)===e),yc=e=>a=>typeof a===e,{isArray:un}=Array,Ys=yc("undefined");function zVe(e){return e!==null&&!Ys(e)&&e.constructor!==null&&!Ys(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const DC=Ca("ArrayBuffer");function PVe(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&DC(e.buffer),a}const RVe=yc("string"),jt=yc("function"),jC=yc("number"),uc=e=>e!==null&&typeof e=="object",DVe=e=>e===!0||e===!1,fc=e=>{if(gc(e)!=="object")return!1;const a=ly(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jVe=Ca("Date"),LVe=Ca("File"),vVe=Ca("Blob"),MVe=Ca("FileList"),HVe=e=>uc(e)&&jt(e.pipe),UVe=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||jt(e.append)&&((a=gc(e))==="formdata"||a==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},GVe=Ca("URLSearchParams"),WVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ks(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),un(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function LC(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),MC=e=>!Ys(e)&&e!==vC;function cy(){const{caseless:e}=MC(this)&&this||{},a={},o=(n,s)=>{const i=e&&LC(a,s)||s;fc(a[i])&&fc(n)?a[i]=cy(a[i],n):fc(n)?a[i]=cy({},n):un(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ks(arguments[n],o);return a}const qVe=(e,a,o,{allOwnKeys:n}={})=>(Ks(a,(s,i)=>{o&&jt(s)?e[i]=RC(s,o):e[i]=s},{allOwnKeys:n}),e),JVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XVe=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},ZVe=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&ly(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},YVe=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},KVe=e=>{if(!e)return null;if(un(e))return e;let a=e.length;if(!jC(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},QVe=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ly(Uint8Array)),eIe=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},tIe=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},aIe=Ca("HTMLFormElement"),oIe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),HC=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),nIe=Ca("RegExp"),UC=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};Ks(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},sIe=e=>{UC(e,(a,o)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(jt(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},iIe=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return un(e)?n(e):n(String(e).split(a)),o},rIe=()=>{},lIe=(e,a)=>(e=+e,Number.isFinite(e)?e:a),dy="abcdefghijklmnopqrstuvwxyz",GC="0123456789",WC={DIGIT:GC,ALPHA:dy,ALPHA_DIGIT:dy+dy.toUpperCase()+GC},cIe=(e=16,a=WC.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function dIe(e){return!!(e&&jt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mIe=e=>{const a=new Array(10),o=(n,s)=>{if(uc(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=un(n)?[]:{};return Ks(n,(r,c)=>{const h=o(r,s+1);!Ys(h)&&(i[c]=h)}),a[s]=void 0,i}}return n};return o(e,0)},pIe=Ca("AsyncFunction"),hIe=e=>e&&(uc(e)||jt(e))&&jt(e.then)&&jt(e.catch),X={isArray:un,isArrayBuffer:DC,isBuffer:zVe,isFormData:UVe,isArrayBufferView:PVe,isString:RVe,isNumber:jC,isBoolean:DVe,isObject:uc,isPlainObject:fc,isUndefined:Ys,isDate:jVe,isFile:LVe,isBlob:vVe,isRegExp:nIe,isFunction:jt,isStream:HVe,isURLSearchParams:GVe,isTypedArray:QVe,isFileList:MVe,forEach:Ks,merge:cy,extend:qVe,trim:WVe,stripBOM:JVe,inherits:XVe,toFlatObject:ZVe,kindOf:gc,kindOfTest:Ca,endsWith:YVe,toArray:KVe,forEachEntry:eIe,matchAll:tIe,isHTMLForm:aIe,hasOwnProperty:HC,hasOwnProp:HC,reduceDescriptors:UC,freezeMethods:sIe,toObjectSet:iIe,toCamelCase:oIe,noop:rIe,toFiniteNumber:lIe,findKey:LC,global:vC,isContextDefined:MC,ALPHABET:WC,generateString:cIe,isSpecCompliantForm:dIe,toJSONObject:mIe,isAsyncFn:pIe,isThenable:hIe};function Ne(e,a,o,n,s){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),n&&(this.request=n),s&&(this.response=s)}X.inherits(Ne,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:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qC=Ne.prototype,JC={};["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=>{JC[e]={value:e}}),Object.defineProperties(Ne,JC),Object.defineProperty(qC,"isAxiosError",{value:!0}),Ne.from=(e,a,o,n,s,i)=>{const r=Object.create(qC);return X.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),Ne.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const gIe=null;function my(e){return X.isPlainObject(e)||X.isArray(e)}function XC(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function ZC(e,a,o){return e?e.concat(a).map(function(n,s){return n=XC(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function yIe(e){return X.isArray(e)&&!e.some(my)}const uIe=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function _c(e,a,o){if(!X.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=X.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!X.isUndefined(g[m])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(a);if(!X.isFunction(s))throw new TypeError("visitor must be a function");function h(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(!c&&X.isBlob(m))throw new Ne("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,u){let f=m;if(m&&!u&&typeof m=="object"){if(X.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&yIe(m)||(X.isFileList(m)||X.endsWith(g,"[]"))&&(f=X.toArray(m)))return g=XC(g),f.forEach(function(_,k){!(X.isUndefined(_)||_===null)&&a.append(r===!0?ZC([g],k,i):r===null?g:g+"[]",h(_))}),!1}return my(m)?!0:(a.append(ZC(u,g,i),h(m)),!1)}const l=[],p=Object.assign(uIe,{defaultVisitor:d,convertValue:h,isVisitable:my});function y(m,g){if(!X.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(m),X.forEach(m,function(u,f){(!(X.isUndefined(u)||u===null)&&s.call(a,u,X.isString(f)?f.trim():f,g,p))===!0&&y(u,g?g.concat(f):[f])}),l.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return y(e),a}function YC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function py(e,a){this._pairs=[],e&&_c(e,this,a)}const KC=py.prototype;KC.append=function(e,a){this._pairs.push([e,a])},KC.toString=function(e){const a=e?function(o){return e.call(this,o,YC)}:YC;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function fIe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function QC(e,a,o){if(!a)return e;const n=o&&o.encode||fIe,s=o&&o.serialize;let i;if(s?i=s(a,o):i=X.isURLSearchParams(a)?a.toString():new py(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _Ie{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){X.forEach(this.handlers,function(o){o!==null&&a(o)})}}const e6=_Ie,t6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bIe=typeof URLSearchParams<"u"?URLSearchParams:py,wIe=typeof FormData<"u"?FormData:null,CIe=typeof Blob<"u"?Blob:null,kIe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),SIe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ka={isBrowser:!0,classes:{URLSearchParams:bIe,FormData:wIe,Blob:CIe},isStandardBrowserEnv:kIe,isStandardBrowserWebWorkerEnv:SIe,protocols:["http","https","file","blob","url","data"]};function EIe(e,a){return _c(e,new ka.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return ka.isNode&&X.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function NIe(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xIe(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function a6(e){function a(o,n,s,i){let r=o[i++];const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&X.isArray(s)?s.length:r,h?(X.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!X.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&X.isArray(s[r])&&(s[r]=xIe(s[r])),!c)}if(X.isFormData(e)&&X.isFunction(e.entries)){const o={};return X.forEachEntry(e,(n,s)=>{a(NIe(n),s,o,0)}),o}return null}function BIe(e,a,o){if(X.isString(e))try{return(a||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const hy={transitional:t6,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=X.isObject(e);if(s&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return n&&n?JSON.stringify(a6(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return EIe(e,this.formSerializer).toString();if((i=X.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return _c(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),BIe(e)):e}],transformResponse:[function(e){const a=this.transitional||hy.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&X.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?Ne.from(i,Ne.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:ka.classes.FormData,Blob:ka.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{hy.headers[e]={}});const gy=hy,$Ie=X.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"]),VIe=e=>{const a={};let o,n,s;return e&&e.split(`
|
|
102
|
+
*/const gt={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"}},BC={itemsToShow:{default:gt.itemsToShow,type:Number},itemsToScroll:{default:gt.itemsToScroll,type:Number},wrapAround:{default:gt.wrapAround,type:Boolean},throttle:{default:gt.throttle,type:Number},snapAlign:{default:gt.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:gt.transition,type:Number},breakpoints:{default:gt.breakpoints,type:Object},autoplay:{default:gt.autoplay,type:Number},pauseAutoplayOnHover:{default:gt.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:gt.mouseDrag,type:Boolean},touchDrag:{default:gt.touchDrag,type:Boolean},dir:{default:gt.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:gt.i18n,type:Object},settings:{default(){return{}},type:Object}};function I6e({config:e,slidesCount:a}){const{snapAlign:o,wrapAround:n,itemsToShow:s=1}=e;if(n)return Math.max(a-1,0);let i;switch(o){case"start":i=a-s;break;case"end":i=a-1;break;case"center":case"center-odd":i=a-Math.ceil((s-.5)/2);break;case"center-even":i=a-Math.ceil(s/2);break;default:i=0;break}return Math.max(i,0)}function A6e({config:e,slidesCount:a}){const{wrapAround:o,snapAlign:n,itemsToShow:s=1}=e;let i=0;if(o||s>a)return i;switch(n){case"start":i=0;break;case"end":i=s-1;break;case"center":case"center-odd":i=Math.floor((s-1)/2);break;case"center-even":i=Math.floor((s-2)/2);break;default:i=0;break}return i}function oy({val:e,max:a,min:o}){return a<o?e:Math.min(Math.max(e,o),a)}function O6e({config:e,currentSlide:a,slidesCount:o}){const{snapAlign:n,wrapAround:s,itemsToShow:i=1}=e;let r=a;switch(n){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 s?r:oy({val:r,max:o-i,min:0})}function $C(e){return e?e.reduce((a,o)=>{var n;return o.type===t.Fragment?[...a,...$C(o.children)]:((n=o.type)===null||n===void 0?void 0:n.name)==="CarouselSlide"?[...a,o]:a},[]):[]}function ny({val:e,max:a,min:o=0}){return e>a?ny({val:e-(a+1),max:a,min:o}):e<o?ny({val:e+(a+1),max:a,min:o}):e}function T6e(e,a){let o;return a?function(...n){const s=this;o||(e.apply(s,n),o=!0,setTimeout(()=>o=!1,a))}:e}function F6e(e,a){let o;return function(...n){o&&clearTimeout(o),o=setTimeout(()=>{e(...n),o=null},a)}}function z6e(e="",a={}){return Object.entries(a).reduce((o,[n,s])=>o.replace(`{${n}}`,String(s)),e)}var P6e=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},gt))),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"},z6e(e.i18n.itemXofY,{currentSlide:a.value+1,slidesCount:o.value}))}}),R6e=t.defineComponent({name:"Carousel",props:BC,setup(e,{slots:a,emit:o,expose:n}){var s;const i=t.ref(null),r=t.ref([]),c=t.ref(0),h=t.ref(0),d=t.reactive(Object.assign({},gt));let l=Object.assign({},gt),p;const y=t.ref((s=e.modelValue)!==null&&s!==void 0?s:0),m=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",y),t.provide("maxSlide",u),t.provide("minSlide",f),t.provide("slideWidth",c);function w(){p=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(!p||!Object.keys(p).length)return;const S=Object.keys(p).map(T=>Number(T)).sort((T,oe)=>+oe-+T);let F=Object.assign({},l);S.some(T=>{const oe=window.matchMedia(`(min-width: ${T}px)`).matches;return oe&&(F=Object.assign(Object.assign({},F),p[T])),oe}),E(F)}function E(S){Object.entries(S).forEach(([F,T])=>d[F]=T)}const B=F6e(()=>{b(),V()},16);function V(){if(!i.value)return;const S=i.value.getBoundingClientRect();c.value=S.width/d.itemsToShow}function x(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=I6e({config:d,slidesCount:h.value}),f.value=A6e({config:d,slidesCount:h.value}),d.wrapAround||(y.value=oy({val:y.value,max:u.value,min:f.value})))}t.onMounted(()=>{t.nextTick(()=>V()),setTimeout(()=>V(),1e3),b(),je(),window.addEventListener("resize",B,{passive:!0}),o("init")}),t.onUnmounted(()=>{k&&clearTimeout(k),_&&clearInterval(_),window.removeEventListener("resize",B,{passive:!0})});let $=!1;const O={x:0,y:0},A={x:0,y:0},I=t.reactive({x:0,y:0}),z=t.ref(!1),ee=t.ref(!1),re=()=>{z.value=!0},Q=()=>{z.value=!1};function C(S){["INPUT","TEXTAREA","SELECT"].includes(S.target.tagName)||($=S.type==="touchstart",$||S.preventDefault(),!(!$&&S.button!==0||R.value)&&(O.x=$?S.touches[0].clientX:S.clientX,O.y=$?S.touches[0].clientY:S.clientY,document.addEventListener($?"touchmove":"mousemove",N,!0),document.addEventListener($?"touchend":"mouseup",P,!0)))}const N=T6e(S=>{ee.value=!0,A.x=$?S.touches[0].clientX:S.clientX,A.y=$?S.touches[0].clientY:S.clientY;const F=A.x-O.x,T=A.y-O.y;I.y=T,I.x=F},d.throttle);function P(){const S=d.dir==="rtl"?-1:1,F=Math.sign(I.x)*.4,T=Math.round(I.x/c.value+F)*S;if(T&&!$){const oe=Ae=>{Ae.stopPropagation(),window.removeEventListener("click",oe,!0)};window.addEventListener("click",oe,!0)}K(y.value-T),I.x=0,I.y=0,ee.value=!1,document.removeEventListener($?"touchmove":"mousemove",N,!0),document.removeEventListener($?"touchend":"mouseup",P,!0)}function je(){!d.autoplay||d.autoplay<=0||(_=setInterval(()=>{d.pauseAutoplayOnHover&&z.value||te()},d.autoplay))}function ne(){_&&(clearInterval(_),_=null),je()}const R=t.ref(!1);function K(S){const F=d.wrapAround?S:oy({val:S,max:u.value,min:f.value});y.value===F||R.value||(o("slide-start",{slidingToIndex:S,currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!0,m.value=y.value,y.value=F,k=setTimeout(()=>{if(d.wrapAround){const T=ny({val:F,max:u.value,min:0});T!==y.value&&(y.value=T,o("loop",{currentSlideIndex:y.value,slidingToIndex:S}))}o("update:modelValue",y.value),o("slide-end",{currentSlideIndex:y.value,prevSlideIndex:m.value,slidesCount:h.value}),R.value=!1,ne()},d.transition))}function te(){K(y.value+d.itemsToScroll)}function ae(){K(y.value-d.itemsToScroll)}const se={slideTo:K,next:te,prev:ae};t.provide("nav",se),t.provide("isSliding",R);const ie=t.computed(()=>O6e({config:d,currentSlide:y.value,slidesCount:h.value}));t.provide("slidesToScroll",ie);const ce=t.computed(()=>{const S=d.dir==="rtl"?-1:1,F=ie.value*c.value*S;return{transform:`translateX(${I.x-F}px)`,transition:`${R.value?d.transition:0}ms`,margin:d.wrapAround?`0 -${h.value*c.value}px`:"",width:"100%"}});function me(){w(),b(),x(),V(),ne()}Object.keys(BC).forEach(S=>{["modelValue"].includes(S)||t.watch(()=>e[S],me)}),t.watch(()=>e.modelValue,S=>{S!==y.value&&K(Number(S))}),t.watch(h,x),o("before-init"),w();const $e={config:d,slidesCount:h,slideWidth:c,next:te,prev:ae,slideTo:K,currentSlide:y,maxSlide:u,minSlide:f,middleSlide:g};n({updateBreakpointsConfigs:b,updateSlidesData:x,updateSlideWidth:V,initDefaultConfigs:w,restartCarousel:me,slideTo:K,next:te,prev:ae,nav:se,data:$e});const Pe=a.default||a.slides,Re=a.addons,ve=t.reactive($e);return()=>{const S=$C(Pe==null?void 0:Pe(ve)),F=(Re==null?void 0:Re(ve))||[];S.forEach((Oe,Te)=>Oe.props.index=Te);let T=S;if(d.wrapAround){const Oe=S.map((Fe,le)=>t.cloneVNode(Fe,{index:-S.length+le,isClone:!0,key:`clone-before-${le}`})),Te=S.map((Fe,le)=>t.cloneVNode(Fe,{index:S.length+le,isClone:!0,key:`clone-after-${le}`}));T=[...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},T),Ae=t.h("div",{class:"carousel__viewport"},oe);return t.h("section",{ref:i,class:{carousel:!0,"is-sliding":R.value,"is-dragging":ee.value,"is-hover":z.value,"carousel--rtl":d.dir==="rtl"},dir:d.dir,"aria-label":d.i18n.ariaGallery,tabindex:"0",onMouseenter:re,onMouseleave:Q},[Ae,F,t.h(P6e)])}}}),VC;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(VC||(VC={}));var D6e=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({},gt))),n=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesToScroll",t.ref(0)),i=t.inject("isSliding",t.ref(!1)),r=()=>e.index===n.value,c=()=>e.index===n.value-1,h=()=>e.index===n.value+1,d=()=>{const l=Math.floor(s.value),p=Math.ceil(s.value+o.itemsToShow-1);return e.index>=l&&e.index<=p};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 j6e=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},L6e=e=>(t.pushScopeId("data-v-cf3e4ab5"),e=e(),t.popScopeId(),e),v6e={class:"gsc-carousel"},M6e={key:0},H6e=L6e(()=>t.createElementVNode("div",null,"no hay",-1)),U6e=[H6e],G6e={class:"gsc-carousel__2d__slides"},W6e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},q6e=["fill"],J6e={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},X6e=["fill"],Z6e={class:"gsc-carousel__2d__navigation"},Y6e={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},K6e=["stroke"],Q6e={key:1,class:"gsc-carousel__2d__navigation__pagination"},e8e=["onClick"],t8e={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a8e=["stroke"],o8e={__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"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:a,emit:o}){const n=e;t.useCssVars(u=>({a79d2c9e:e.slideLeftArrowBackgroundImage,"227709fa":e.slidesArrowsLeftAndRight,c388b60c:e.slideRightArrowBackgroundImage,"257da7fc":e.marginTop,"1c9922a0":e.secondarySlidesOpacity}));const s=t.ref(null),i=t.ref({}),r=t.ref(0),c=t.ref(!1);t.watch(s,u=>{u&&c.value?(c.value=!1,h(n.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),t.watch(()=>n.currentItemIndex,u=>{r.value!==u&&y(u)}),t.watch(()=>n.items,u=>{s.value?h(u):c.value=!0},{immediate:!0});function h(u){if(u&&u.length&&s.value){if(n.defaultItemByProp){const f=n.items.findIndex(_=>_[n.defaultItemByProp.propName]===n.defaultItemByProp.value);f!==-1?(r.value=f,i.value=u[f]):(r.value=0,i.value=u[0])}else r.value=n.defaultItemByIndex,i.value=u[n.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}}function d(){s.value&&s.value.next()}function l(){s.value&&s.value.prev()}function p(){s.value&&s.value.updateSlideWidth()}function y(u){s.value&&s.value.slideTo(u)}function m(u){s.value.slideTo(u)}function g(u){const f=u.slidingToIndex<0?n.items.length-1:u.slidingToIndex===n.items.length?0:u.slidingToIndex;r.value=f,i.value=n.items[f],o("update:currentItemIndex",f),o("input",{selectedItem:i.value,selectedItemIndex:r.value})}return a({prev:l,next:d,updateSlideWidth:p,slideTo:y}),(u,f)=>(t.openBlock(),t.createElementBlock("div",v6e,[n.is3d?(t.openBlock(),t.createElementBlock("div",M6e,U6e)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",G6e,[t.createVNode(t.unref(R6e),{ref_key:"carousel2d",ref:s,"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(D6e),{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",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:f[0]||(f[0]=_=>s.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",W6e,[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,q6e)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),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",J6e,[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,X6e)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Z6e,[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",Y6e,[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:n.arrowsColor},null,8,K6e)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Q6e,[(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:`${n.navigationHeight}px`,width:`${r.value===k?n.navigationActiveWidth:n.navigationActiveWidth/2}px`,borderRadius:`${n.navigationBorderRadius}px`,backgroundColor:`${r.value===k?n.navigationActiveColor:n.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:w=>m(k)},null,12,e8e))),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]=_=>s.value.next())},[(t.openBlock(),t.createElementBlock("svg",t8e,[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:n.arrowsColor},null,8,a8e)]))])):t.createCommentVNode("",!0)])],2))]))}},mc=j6e(o8e,[["__scopeId","data-v-cf3e4ab5"]]),n8e=(e,a)=>{const o=e.__vccOpts||e;for(const[n,s]of a)o[n]=s;return o},sy={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))}}},IC=()=>{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}))},AC=sy.setup;sy.setup=AC?(e,a)=>(IC(),AC(e,a)):IC;const s8e=e=>(t.pushScopeId("data-v-fb269a1e"),e=e(),t.popScopeId(),e),i8e=["src"],r8e={key:1,class:"text"},l8e=["src"],c8e={class:"stats"},d8e=s8e(()=>t.createElementVNode("img",{class:"iconstats",src:"https://az755631.vo.msecnd.net/todoelfut/playdes.png"},null,-1)),m8e={class:"numstats"},p8e={class:"leyend"};function h8e(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock("div",null,[o.type==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["button",s.status&&o.typeOnOff&&"button-active"]),style:t.normalizeStyle([i.customStyle,s.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,i8e)):t.createCommentVNode("",!0),o.textValue?(t.openBlock(),t.createElementBlock("div",r8e,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,l8e)):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",c8e,[d8e,t.createElementVNode("div",m8e,t.toDisplayString(o.textStat),1)]),t.createElementVNode("div",p8e,t.toDisplayString(o.textCategory),1)])):t.createCommentVNode("",!0)])}const g8e=n8e(sy,[["render",h8e],["__scopeId","data-v-fb269a1e"]]),y8e={class:"gsc-dropdown__main-container__item-selected"},u8e=["height","width"],f8e=["stroke"],_8e={class:"gsc-dropdown__items-container"},b8e=["onClick"],w8e={key:0,class:"gsc-dropdown__items-footer"},iy={__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,n=t.ref({}),s=t.ref(null),i=t.ref(o.isMultipleOption?-1:0),r=t.ref(!1);t.watch(()=>o.items,(m,g)=>{if(!o.modelValue&&(!o.onlyFirstTime||!g||!g.length)&&m&&m.length){if(o.defaultItemByProp){const u=o.items.findIndex(f=>f[o.defaultItemByProp.propName]===o.defaultItemByProp.value);u!==-1?(i.value=u,n.value=m[u]):(i.value=0,n.value=m[0])}else n.value=m[o.defaultItemByIndex];a("input",n.value)}},{immediate:!0}),t.watch(()=>o.modelValue,m=>{if(m){const g=o.items.findIndex(u=>typeof m=="object"?JSON.stringify(u)===JSON.stringify(m):u===m);g!==-1&&(i.value=g,n.value=o.items[g],a("update:modelValue",n.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(m){s.value&&!s.value.contains(m.target)&&(r.value=!1)}function p(m,g){o.isMultipleOption?i.value=-1:(i.value=g,r.value=!1),n.value=m,a("input",n.value),a("update:modelValue",n.value)}function y(){r.value=!1,a("click-ready")}return t.onMounted(()=>{document.addEventListener("click",l)}),t.onBeforeMount(()=>{document.removeEventListener("click",l)}),(m,g)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"dropDown",ref:s,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",y8e,[t.renderSlot(m.$slots,"default",{selectedItem:n.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,f8e)],8,u8e))],6)],4),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",_8e,[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:_=>p(u,f)},[t.renderSlot(m.$slots,"availableItem",{item:u})],10,b8e))),128))],4),e.isFooterVisible?(t.openBlock(),t.createElementBlock("div",w8e,[t.createVNode(t.unref(g8e),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:y})])):t.createCommentVNode("",!0)])],512),[[t.vShow,r.value]])]),_:3})],4))}};let OC=null;const C8e={components:{LineupField:W3e,LineupRecentItem:nCe,LineupMainHeader:BCe,LineupFilter:XCe,MatchDetails:kC,GscSwitchComponent:Js,GSCCarousel:mc,GSCDropdown:iy},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:P3e},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 Rt.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 Rt.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(n=>n.game_id===Number(n.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(){yn("lineups.game."+this.game.game_id),yn("mxm.game."+this.game.game_id),yn("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)OC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),OC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=await Rt.create({headers:{Authorization:`${this.tokenPremium}`}}).get(this.urlMXM+e);for(let g=0;g<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},async getLineupDataProbablesAway(e){try{const h=await Rt.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.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+". "+s,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 Rt.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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.home_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=l.data.home_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.home_team.starting_lineup[0].lineup[p].player_id+".png",posX:l.data.home_team.starting_lineup[0].lineup[p].x*50/100,posY:l.data.home_team.starting_lineup[0].lineup[p].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((p,y)=>p.position_id>y.position_id?1:y.position_id>p.position_id?-1:0);for(let p=0;p<l.data.away_team.starting_lineup[0].lineup.length;p++){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[p].player_name.split(","),o=a[0].split(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var h=l.data.away_team.starting_lineup[0].lineup[p].x;h=Math.abs(h-100);var c=h*50/100,d=l.data.away_team.starting_lineup[0].lineup[p].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[p].jersey_number,isFirstTeam:!0,name:i+". "+s,photo:"https://az755631.vo.msecnd.net/players-profile/"+l.data.away_team.starting_lineup[0].lineup[p].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(uC(),!this.playersHome.length)try{const C=await Rt.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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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+". "+s,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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},Xs=e=>(t.pushScopeId("data-v-3e8dc5c2"),e=e(),t.popScopeId(),e),k8e={class:"lineup__header",ref:"gamesContainer"},S8e=Xs(()=>t.createElementVNode("h2",null,"Alineaciones",-1)),E8e={key:0,style:{width:"325px"}},N8e={class:"lineup__card"},x8e={key:0},B8e={key:1},$8e={key:2},V8e={key:3,class:"lineup__card-body"},I8e={key:0,class:"lineup__selector",style:{margin:"auto"}},A8e={class:"lineup__selector-item"},O8e={key:4,class:"lineup__card-body",style:{"flex-flow":"column"}},T8e={class:"lineup__filters"},F8e={class:"selector-tournaments"},z8e={class:"lineup__items-carousel"},P8e=Xs(()=>t.createElementVNode("div",null,null,-1)),R8e={class:"lineup__items-center"},D8e={class:"lineup__selector-recientes"},j8e={key:1,class:"containernofoundsearchrecientes"},L8e=Xs(()=>t.createElementVNode("div",{class:"text-containernofoundsearchrecientes"},[t.createTextVNode("No hay resultados con los criterios, "),t.createElementVNode("br"),t.createTextVNode(" de búsqueda aplicados.")],-1)),v8e={key:0,class:"lineup__selector-recientes",style:{margin:"auto",width:"100%"}},M8e={key:5,class:"lineup__card-body space-between"},H8e={class:"lineup__card-body__probables"},U8e={class:"selector-tournaments"},G8e=Xs(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),W8e=["src"],q8e={class:"lineup__card-body__probables"},J8e=["src"],X8e=Xs(()=>t.createElementVNode("div",{class:"lineup__card-body__team-vs"},"vs",-1)),Z8e={class:"selector-tournaments"},Y8e={key:6,class:"lineup__card-body space-between"},K8e={class:"postmatch__matchday"};function Q8e(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("LineupMainHeader"),h=t.resolveComponent("GSCCarousel"),d=t.resolveComponent("LineupFilter"),l=t.resolveComponent("GSCDropdown"),p=t.resolveComponent("LineupRecentItem"),y=t.resolveComponent("MatchDetails"),m=t.resolveComponent("LineupField");return t.openBlock(),t.createElementBlock("section",{class:t.normalizeClass(["lineup",{"break-point-3":i.mobileClass}])},[t.createElementVNode("div",k8e,[S8e,o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",E8e,[(s.gameInfoheader.game_status==0||s.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",N8e,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("h3",x8e,"Alineación utilizada este torneo en:")):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("h3",B8e,"Alineaciones recientes de:")):(t.openBlock(),t.createElementBlock("h3",$8e,"Alineación utilizada en:"))],64)):t.createCommentVNode("",!0),o.selectedOption==="Historicos"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(s.headerInfoHistoricItemGame).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.headerInfoHistoricItemGame.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.home_team+".png"},visitTeam:{acronym:s.headerInfoHistoricItemGame.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.headerInfoHistoricItemGame.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.headerInfoHistoricItemGame.score[0]+" - "+s.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(s.gameInfoheader).length>0?(t.openBlock(),t.createBlock(c,{key:0,localTeam:{acronym:s.gameInfoheader.home_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.home_team+".png"},visitTeam:{acronym:s.gameInfoheader.away_team_abbreviation,img:"https://az755631.vo.msecnd.net/teams-80/"+s.gameInfoheader.away_team+".png"},probablyTeamHome:{acronym:s.rivalHomeAbrev,img:s.rivalHomeImg},probablyTeamAway:{acronym:s.rivalVisitAbrev,img:s.rivalVisitImg},score:s.gameInfoheader.score[0]+" - "+s.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",V8e,[o.selectedOption!=="Postmatch"?(t.openBlock(),t.createElementBlock("div",I8e,[s.gamesHistoric.length>0?(t.openBlock(),t.createBlock(h,{key:s.updatehistoricos,onInput:i.changeCarouselItemH,items:s.gamesHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createElementVNode("div",A8e,t.toDisplayString(g.description),1)]),_:1},8,["onInput","items"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Recientes"?(t.openBlock(),t.createElementBlock("div",O8e,[t.createElementVNode("div",T8e,[t.createVNode(d,{name:"Filtros",onChange:i.changeFiltersModal,reset:s.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",F8e,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=>s.showDetails=!s.showDetails)},t.toDisplayString(s.showDetails?"Ocultar detalles":"Ver detalles"),1)]),t.createElementVNode("div",z8e,[P8e,t.createElementVNode("div",R8e,[i.mobileClass?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",D8e,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):(t.openBlock(),t.createElementBlock("div",j8e,[L8e,t.createElementVNode("div",{class:"btn-delete-filters",onClick:a[3]||(a[3]=(...g)=>i.clickOnDeleteFilter&&i.clickOnDeleteFilter(...g))},"Eliminar filtros aplicados")]))]),s.showDetails?(t.openBlock(),t.createBlock(y,{key:0,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],64))])]),i.mobileClass?(t.openBlock(),t.createElementBlock("div",v8e,[i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(h,{"current-item-index":s.selectedIndexOption,width:"600px",height:"80px",key:s.updateCarouselGames,onInput:i.changeCarouselItem,items:i.gameRecientesFilter,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1},{default:t.withCtx(({item:g})=>[t.createVNode(p,{game:g,teamSelect:s.teamSelect,style:{"max-width":"200px"}},null,8,["game","teamSelect"])]),_:1},8,["current-item-index","onInput","items"])):t.createCommentVNode("",!0),s.showDetails?(t.openBlock(),t.createBlock(y,{key:1,localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])):o.selectedOption==="Probables"?(t.openBlock(),t.createElementBlock("div",M8e,[t.createElementVNode("div",H8e,[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",U8e,t.toDisplayString(g.selectedItem.name),1)]),availableItem:t.withCtx(({item:g})=>[t.createElementVNode("div",null,t.toDisplayString(g.name),1)]),_:1},8,["items","onInput"]),G8e,t.createElementVNode("img",{src:s.rivalHomeImg,class:"lineup__card-body__img-probables"},null,8,W8e)]),t.createElementVNode("div",q8e,[t.createElementVNode("img",{src:s.rivalVisitImg,class:"lineup__card-body__img-probables"},null,8,J8e),X8e,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",Z8e,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",Y8e,[t.createElementVNode("div",K8e,t.toDisplayString(s.gameInfoheader.season_name!==void 0?s.gameInfoheader.season_name+" | "+i.remplazarMxJor(s.gameInfoheader.matchday_abbreviation)+" | "+s.gameInfoheader.home_team_abbreviation+" - "+s.gameInfoheader.away_team_abbreviation:""),1)])):t.createCommentVNode("",!0),t.createVNode(m,{class:"lineup__field",players:s.players},null,8,["players"])])],2)}const eke=wt(C8e,[["render",Q8e],["__scopeId","data-v-3e8dc5c2"]]),tke={components:{},props:{data:{type:Object,default:()=>{}},position:{type:String,default:"gsc-position-player"},type:{type:Number,default:1}},data(){return{}},computed:{},methods:{openProfile(e){e.section!="Historicos"&&this.$emit("onOpenProfile",e)}},mounted(){}},pc=e=>(t.pushScopeId("data-v-59dc0feb"),e=e(),t.popScopeId(),e),ake={key:0,class:"gsc-item-player"},oke={class:"gsc-num-player"},nke={class:"gsc-cont-info-by-player"},ske={class:"gsc-cont-info-by-player-row1"},ike={class:"shield-player-cont"},rke=["src"],lke={class:"gsc-cont-info-by-player-row2"},cke={class:"gsc-cont-info-by-player-row2-line-data"},dke={class:"cont-display-gsc"},mke=["src"],pke={class:"gsc-cont-cards"},hke={key:0,class:"gsc-yellow_card_div"},gke={key:1,class:"gsc-red_card_div"},yke={key:2,class:"gsc-yellowred_card_div"},uke=pc(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),fke={key:5,class:"gsc-goal_card_div_wrapper"},_ke=pc(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),bke={key:1,class:"gsc-item-player"},wke={class:"gsc-num-player2"},Cke={class:"gsc-cont-info-by-player2"},kke={class:"gsc-cont-info-by-player-row2"},Ske={class:"gsc-cont-info-by-player-row2-line-data"},Eke={class:"gsc-cont-cards2"},Nke={key:0,class:"gsc-yellow_card_div"},xke={key:1,class:"gsc-red_card_div"},Bke={key:2,class:"gsc-yellowred_card_div"},$ke=pc(()=>t.createElementVNode("div",{class:"gsc-goal_card_div"},null,-1)),Vke={key:5,class:"gsc-goal_card_div_wrapper"},Ike=pc(()=>t.createElementVNode("div",{class:"gsc-change_card_div"},null,-1)),Ake={class:"cont-display-gsc"},Oke=["src"],Tke={class:"gsc-cont-info-by-player-row1"},Fke={class:"shield-player-cont"},zke=["src"];function Pke(e,a,o,n,s,i){return t.openBlock(),t.createElementBlock(t.Fragment,null,[o.type==1?(t.openBlock(),t.createElementBlock("div",ake,[t.createElementVNode("div",oke,[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",nke,[t.createElementVNode("div",ske,[t.createElementVNode("div",ike,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,rke)])]),t.createElementVNode("div",lke,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name",style:t.normalizeStyle(o.data.section=="Historicos"?"text-decoration: none !important; cursor: default !important":""),onClick:a[0]||(a[0]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",cke,[t.createElementVNode("div",dke,[t.createElementVNode("img",{class:"gsc-img-country",src:o.data.nation},null,8,mke),t.createElementVNode("div",{class:t.normalizeClass(o.position)},t.toDisplayString(o.data.position),3)]),t.createElementVNode("div",pke,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",hke)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",gke)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",yke)):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},[uke,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",fke,[_ke,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)])])])])])):t.createCommentVNode("",!0),o.type==2?(t.openBlock(),t.createElementBlock("div",bke,[t.createElementVNode("div",wke,[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",Cke,[t.createElementVNode("div",kke,[t.createElementVNode("div",{class:"gsc-cont-info-by-player-row2-line-name2",style:t.normalizeStyle(o.data.section=="Historicos"?"text-decoration: none !important; cursor: default !important":""),onClick:a[1]||(a[1]=r=>i.openProfile({playerId:o.data.playerid,teamId:o.data.teamid,seasonId:o.data.season,section:o.data.section}))},t.toDisplayString(o.data.name),5),t.createElementVNode("div",Ske,[t.createElementVNode("div",Eke,[o.data.yellowcard>=1&&o.data.redcard==0?(t.openBlock(),t.createElementBlock("div",Nke)):t.createCommentVNode("",!0),o.data.redcard>=1&&o.data.yellowcard==0?(t.openBlock(),t.createElementBlock("div",xke)):t.createCommentVNode("",!0),o.data.yellowcard>=1&&o.data.redcard>=1?(t.openBlock(),t.createElementBlock("div",Bke)):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},[$ke,t.createElementVNode("div",null,"'"+t.toDisplayString(r),1)]))),128)),o.data.substitutionIn||o.data.substitutionOut?(t.openBlock(),t.createElementBlock("div",Vke,[Ike,t.createElementVNode("div",null,"'"+t.toDisplayString(o.data.substitutionMin),1)])):t.createCommentVNode("",!0)]),t.createElementVNode("div",Ake,[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,Oke)])])]),t.createElementVNode("div",Tke,[t.createElementVNode("div",Fke,[t.createElementVNode("img",{class:"gsc-logo-player",src:o.data.img},null,8,zke)])])])])):t.createCommentVNode("",!0)],64)}const Rke=wt(tke,[["render",Pke],["__scopeId","data-v-59dc0feb"]]),ry="/icn-filter.svg",Zs="/icn-expand-arrow.svg",TC="/backarrow.svg",FC="/nextarrow.svg",Dke="_selectoritem_1dafy_137",jke="_selectoritem2_1dafy_157",Lke="_gscheaderlineup_1dafy_177",vke="_anNoEstn_1dafy_191",Mke="_groupsLeague_1dafy_197",Hke="_jugadores_1dafy_209",Uke="_switchOption_1dafy_219",Gke="_jugadores1_1dafy_239",Wke="_switchOption1_1dafy_249",qke="_switchStatesBig_1dafy_265",Jke="_groupsLeagueParent_1dafy_283",Xke="_imgHomeTeamIcon_1dafy_301",Zke="_imgHomeTeamWrapper_1dafy_313",Yke="_teamContainer_1dafy_337",Kke="_name_1dafy_361",Qke="_homeTeamContainer_1dafy_373",e7e="_div_1dafy_393",t7e="_scoreContainer_1dafy_401",a7e="_scoreContainerWrapper_1dafy_421",o7e="_teamContainer1_1dafy_447",n7e="_awayTeamContainer_1dafy_471",s7e="_matchContainer_1dafy_491",i7e="_sliderMatchesChild_1dafy_509",r7e="_manchesterUnited_1dafy_521",l7e="_sliderMatchesItem_1dafy_533",c7e="_sliderMatches_1dafy_509",d7e="_sortIcon_1dafy_569",m7e="_filtros_1dafy_583",p7e="_sortParent_1dafy_599",h7e="_shapeIcon_1dafy_613",g7e="_btnFilter_1dafy_623",y7e="_btnFilter1_1dafy_651",u7e="_btnFilterParent_1dafy_679",f7e="_backArrowIcon_1dafy_695",_7e="_teamContainer2_1dafy_707",b7e="_homeTeam_1dafy_373",w7e="_div4_1dafy_735",C7e="_finalScore_1dafy_745",k7e="_manchesterUnited1_1dafy_771",S7e="_scoreContainer1_1dafy_785",E7e="_match_1dafy_491",N7e="_manchesterUnited2_1dafy_821",x7e="_btnDetails_1dafy_831",B7e="_matchContainer1_1dafy_851",$7e="_goalChild_1dafy_867",V7e="_goal_1dafy_867",I7e="_manchesterUnited3_1dafy_893",A7e="_minuteEvent_1dafy_907",O7e="_yellowCard_1dafy_921",T7e="_awayTeamEvents_1dafy_935",F7e="_rectangle_1dafy_949",z7e="_homeTeamEvents_1dafy_963",P7e="_totalEvents_1dafy_979",R7e="_headerSeccionAlineaciones1_1dafy_995",D7e="_switchOption3_1dafy_1017",j7e="_switchOption4_1dafy_1041",L7e="_switchStatesBig1_1dafy_1061",v7e="_manchesterUnited13_1dafy_1075",M7e="_homeTeamContainer1_1dafy_1085",H7e="_scoreContainer2_1dafy_1099",U7e="_matchContainer2_1dafy_1127",G7e="_manchesterUnited14_1dafy_1147",W7e="_sliderMatchesInner_1dafy_1161",q7e="_rectangleIcon_1dafy_1181",J7e="_sliderMatches1_1dafy_1201",X7e="_containerData_1dafy_1217",Z7e="_headerSeccionAlineaciones2_1dafy_1245",Y7e="_headerSeccionAlineaciones_1dafy_995",K7e="_headerSeccionAlineaciones21200_1dafy_1293",Q7e="_headerSeccionAlineaciones1540_1dafy_1299",e9e="_headerSeccionAlineaciones2540_1dafy_1307",t9e={selectoritem:Dke,selectoritem2:jke,gscheaderlineup:Lke,anNoEstn:vke,groupsLeague:Mke,jugadores:Hke,switchOption:Uke,jugadores1:Gke,switchOption1:Wke,switchStatesBig:qke,groupsLeagueParent:Jke,imgHomeTeamIcon:Xke,imgHomeTeamWrapper:Zke,teamContainer:Yke,name:Kke,homeTeamContainer:Qke,div:e7e,scoreContainer:t7e,scoreContainerWrapper:a7e,teamContainer1:o7e,awayTeamContainer:n7e,matchContainer:s7e,sliderMatchesChild:i7e,manchesterUnited:r7e,sliderMatchesItem:l7e,sliderMatches:c7e,sortIcon:d7e,filtros:m7e,sortParent:p7e,shapeIcon:h7e,btnFilter:g7e,btnFilter1:y7e,btnFilterParent:u7e,backArrowIcon:f7e,teamContainer2:_7e,homeTeam:b7e,div4:w7e,finalScore:C7e,manchesterUnited1:k7e,scoreContainer1:S7e,match:E7e,manchesterUnited2:N7e,btnDetails:x7e,matchContainer1:B7e,goalChild:$7e,goal:V7e,manchesterUnited3:I7e,minuteEvent:A7e,yellowCard:O7e,awayTeamEvents:T7e,rectangle:F7e,homeTeamEvents:z7e,totalEvents:P7e,headerSeccionAlineaciones1:R7e,switchOption3:D7e,switchOption4:j7e,switchStatesBig1:L7e,manchesterUnited13:v7e,homeTeamContainer1:M7e,scoreContainer2:H7e,matchContainer2:U7e,manchesterUnited14:G7e,sliderMatchesInner:W7e,rectangleIcon:q7e,sliderMatches1:J7e,containerData:X7e,headerSeccionAlineaciones2:Z7e,headerSeccionAlineaciones:Y7e,headerSeccionAlineaciones21200:K7e,headerSeccionAlineaciones1540:Q7e,headerSeccionAlineaciones2540:e9e},a9e={components:{GSCCarousel:mc,GscSwitchComponent:Js},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)}}},o9e=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),n9e=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),s9e=["src"],i9e=["src"],r9e=["src"],l9e=["src"],c9e=["src"],d9e=["src"];function m9e(e,a,o,n,s,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)},[o9e,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),n9e],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[s.selectedOption].objgame.home_team+".png"},null,10,s9e)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,i9e)):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":s.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:ry},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:Zs},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:Zs},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:TC},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[s.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[s.selectedOption].objgame.home_team+".png"},null,10,r9e)):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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,l9e)):t.createCommentVNode("",!0),o.gameHistoric.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(o.gameHistoric[s.selectedOption].objgame.away_team_abbreviation),3)):t.createCommentVNode("",!0)],2),t.createElementVNode("img",{class:t.normalizeClass(e.$style.backArrowIcon),alt:"",src:FC},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[s.selectedOption].objgame.home_team+".png"},null,10,c9e)):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[s.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[s.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[s.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[s.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[s.selectedOption].objgame.away_team+".png"},null,10,d9e)):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":s.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 p9e={$style:t9e},h9e=wt(a9e,[["render",m9e],["__cssModules",p9e]]),hc=e=>(t.pushScopeId("data-v-2118a6cd"),e=e(),t.popScopeId(),e),g9e=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),y9e=["value"],u9e=hc(()=>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)),f9e={class:"filter-modal__padding"},_9e={class:"filter-modal__content-header"},b9e=hc(()=>t.createElementVNode("h3",null,"Jugando como:",-1)),w9e={class:"filter-modal__content-options"},C9e=["onClick"],k9e={class:"filter-modal__content-header"},S9e=hc(()=>t.createElementVNode("h3",null,"Resultados:",-1)),E9e={class:"filter-modal__content-options"},N9e=["onClick"],x9e=hc(()=>t.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),B9e={__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 n=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],s=[{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),p=t.ref(!0),y=t.ref(["local","visit"]),m=t.ref(["win","draw","lose"]),g=()=>{i.value.focus(),r.value=JSON.parse(JSON.stringify(y.value)),c.value=JSON.parse(JSON.stringify(m.value)),h.value=l.value,d.value=p.value};t.watch(()=>o.itemSelect,w=>{w&&(y.value=w.selectedFilterTeam,m.value=w.selectedFilterResults)}),t.watch(()=>o.reset,w=>{w&&f()});const u=(w,b)=>{let E;b==="team"?E=y.value:E=m.value;const B=E.findIndex(V=>V===w);B==-1?E.push(w):b=="team"&&y.value.length==2?E.splice(B,1):(b=="team"&&E.push(w),m.value.length>1&&E.splice(B,1)),l.value=y.value.length==2,p.value=m.value.length==3},f=()=>{y.value=["local","visit"],m.value=["win","draw","lose"],l.value=!0,p.value=!0,a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},_=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.value})},k=()=>{a("change",{selectedFilterTeam:y.value,selectedFilterResults:m.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},[g9e,t.createElementVNode("input",{type:"text",value:e.name,readonly:""},null,8,y9e),u9e])):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",f9e,[t.createElementVNode("div",_9e,[b9e,t.createVNode(cc,{modelValue:l.value,"onUpdate:modelValue":[b[0]||(b[0]=E=>l.value=E),b[1]||(b[1]=E=>E&&(y.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",w9e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(n,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"team"),class:t.normalizeClass({active:y.value.includes(E.id)})},t.toDisplayString(E.name),11,C9e)),64))]),t.createElementVNode("div",k9e,[S9e,t.createVNode(cc,{modelValue:p.value,"onUpdate:modelValue":[b[2]||(b[2]=E=>p.value=E),b[3]||(b[3]=E=>E&&(m.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),t.createElementVNode("ul",E9e,[(t.openBlock(),t.createElementBlock(t.Fragment,null,t.renderList(s,E=>t.createElementVNode("li",{onClick:B=>u(E.id,"player"),class:t.normalizeClass({active:m.value.includes(E.id)})},t.toDisplayString(E.name),11,N9e)),64))])]),x9e,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))}},$9e=wt(B9e,[["__scopeId","data-v-2118a6cd"]]),V9e="/icn-filter1.svg",I9e="/icn-expand-arrow1.svg",A9e="/icn-filter2.svg",O9e="/icn-arrow-expand.svg",T9e="_containernofoundsearchrecientes_1gxk5_159",F9e="_btndeletefilters_1gxk5_215",z9e="_leyenddeleteshow_1gxk5_247",P9e="_selectoritem_1gxk5_261",R9e="_anNoEstn_1gxk5_279",D9e="_groupsLeague_1gxk5_287",j9e="_historicas_1gxk5_297",L9e="_switchOption_1gxk5_309",v9e="_recientes_1gxk5_331",M9e="_switchOption1_1gxk5_343",H9e="_switchOption2_1gxk5_369",U9e="_switchStatesBig_1gxk5_387",G9e="_groupsLeagueParent_1gxk5_407",W9e="_imgHomeTeamIcon_1gxk5_427",q9e="_imgHomeTeamWrapper_1gxk5_441",J9e="_teamContainer_1gxk5_467",X9e="_name_1gxk5_493",Z9e="_homeTeamContainer_1gxk5_507",Y9e="_div_1gxk5_529",K9e="_scoreContainer_1gxk5_539",Q9e="_scoreContainerWrapper_1gxk5_561",eSe="_teamContainer1_1gxk5_587",tSe="_awayTeamContainer_1gxk5_613",aSe="_matchContainer_1gxk5_635",oSe="_sliderMatchesChild_1gxk5_655",nSe="_manchesterUnited_1gxk5_669",sSe="_sliderMatchesItem_1gxk5_683",iSe="_sliderMatches_1gxk5_655",rSe="_sortIcon_1gxk5_719",lSe="_filtros_1gxk5_735",cSe="_sortParent_1gxk5_753",dSe="_shapeIcon_1gxk5_769",mSe="_btnFilter_1gxk5_781",pSe="_btnFilter1_1gxk5_813",hSe="_btnFilterParent_1gxk5_843",gSe="_backArrowIcon_1gxk5_861",ySe="_teamContainer2_1gxk5_875",uSe="_homeTeam_1gxk5_507",fSe="_div4_1gxk5_907",_Se="_finalScore_1gxk5_919",bSe="_manchesterUnited1_1gxk5_947",wSe="_scoreContainer1_1gxk5_963",CSe="_match_1gxk5_635",kSe="_manchesterUnited2_1gxk5_997",SSe="_btnDetails_1gxk5_1023",ESe="_matchContainer1_1gxk5_1047",NSe="_goalChild_1gxk5_1065",xSe="_goal_1gxk5_1065",BSe="_manchesterUnited3_1gxk5_1095",$Se="_minuteEvent_1gxk5_1111",VSe="_yellowCard_1gxk5_1127",ISe="_awayTeamEvents_1gxk5_1143",ASe="_rectangle_1gxk5_1159",OSe="_homeTeamEvents_1gxk5_1175",TSe="_totalEvents_1gxk5_1193",FSe="_headerSeccionAlineaciones1_1gxk5_1211",zSe="_sliderMatchesInner_1gxk5_1233",PSe="_btnFilter2_1gxk5_1247",RSe="_btnDetails1_1gxk5_1281",DSe="_matchContainer3_1gxk5_1299",jSe="_backArrowIcon1_1gxk5_1321",LSe="_match1_1gxk5_1335",vSe="_headerSeccionAlineaciones2_1gxk5_1347",MSe="_jugadores2_1gxk5_1369",HSe="_switchOption6_1gxk5_1383",USe="_switchOption7_1gxk5_1405",GSe="_switchStatesBig2_1gxk5_1431",WSe="_manchesterUnited26_1gxk5_1447",qSe="_homeTeamContainer2_1gxk5_1459",JSe="_vectorIcon_1gxk5_1475",XSe="_teamSwitch_1gxk5_1487",ZSe="_matchContainer5_1gxk5_1513",YSe="_manchesterUnited27_1gxk5_1535",KSe="_sliderMatchesChild1_1gxk5_1551",QSe="_sliderMatchesChild2_1gxk5_1573",eEe="_sliderMatches2_1gxk5_1595",tEe="_filtros2_1gxk5_1615",aEe="_btnFilter4_1gxk5_1635",oEe="_jornada2_1gxk5_1667",nEe="_filterMatchday_1gxk5_1681",sEe="_btnDetails2_1gxk5_1703",iEe="_filtersContainer_1gxk5_1725",rEe="_matchContainer6_1gxk5_1745",lEe="_matchDetailContainer_1gxk5_1763",cEe="_containerData_1gxk5_1783",dEe="_headerSeccionAlineaciones3_1gxk5_1813",mEe="_headerSeccionAlineaciones_1gxk5_1211",pEe="_headerSeccionAlineaciones31200_1gxk5_1865",hEe="_headerSeccionAlineaciones3420_1gxk5_1891",gEe="_headerSeccionAlineaciones3880_1gxk5_1917",yEe="_headerSeccionAlineaciones3540_1gxk5_1941",uEe="_headerSeccionAlineaciones11200_1gxk5_1967",fEe="_headerSeccionAlineaciones1420_1gxk5_1995",_Ee="_headerSeccionAlineaciones1880_1gxk5_2017",bEe="_headerSeccionAlineaciones21200_1gxk5_2039",wEe="_headerSeccionAlineaciones2420_1gxk5_2067",CEe="_headerSeccionAlineaciones2880_1gxk5_2091",kEe="_headerSeccionAlineaciones2540_1gxk5_2113",SEe={containernofoundsearchrecientes:T9e,"text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_1gxk5_171","btn-delete-filters":"_btn-delete-filters_1gxk5_183",btndeletefilters:F9e,leyenddeleteshow:z9e,selectoritem:P9e,anNoEstn:R9e,groupsLeague:D9e,historicas:j9e,switchOption:L9e,recientes:v9e,switchOption1:M9e,switchOption2:H9e,switchStatesBig:U9e,groupsLeagueParent:G9e,imgHomeTeamIcon:W9e,imgHomeTeamWrapper:q9e,teamContainer:J9e,name:X9e,homeTeamContainer:Z9e,div:Y9e,scoreContainer:K9e,scoreContainerWrapper:Q9e,teamContainer1:eSe,awayTeamContainer:tSe,matchContainer:aSe,sliderMatchesChild:oSe,manchesterUnited:nSe,sliderMatchesItem:sSe,sliderMatches:iSe,sortIcon:rSe,filtros:lSe,sortParent:cSe,shapeIcon:dSe,btnFilter:mSe,btnFilter1:pSe,btnFilterParent:hSe,backArrowIcon:gSe,teamContainer2:ySe,homeTeam:uSe,div4:fSe,finalScore:_Se,manchesterUnited1:bSe,scoreContainer1:wSe,match:CSe,manchesterUnited2:kSe,btnDetails:SSe,matchContainer1:ESe,goalChild:NSe,goal:xSe,manchesterUnited3:BSe,minuteEvent:$Se,yellowCard:VSe,awayTeamEvents:ISe,rectangle:ASe,homeTeamEvents:OSe,totalEvents:TSe,headerSeccionAlineaciones1:FSe,sliderMatchesInner:zSe,btnFilter2:PSe,btnDetails1:RSe,matchContainer3:DSe,backArrowIcon1:jSe,match1:LSe,headerSeccionAlineaciones2:vSe,jugadores2:MSe,switchOption6:HSe,switchOption7:USe,switchStatesBig2:GSe,manchesterUnited26:WSe,homeTeamContainer2:qSe,vectorIcon:JSe,teamSwitch:XSe,matchContainer5:ZSe,manchesterUnited27:YSe,sliderMatchesChild1:KSe,sliderMatchesChild2:QSe,sliderMatches2:eEe,filtros2:tEe,btnFilter4:aEe,jornada2:oEe,filterMatchday:nEe,btnDetails2:sEe,filtersContainer:iEe,matchContainer6:rEe,matchDetailContainer:lEe,containerData:cEe,headerSeccionAlineaciones3:dEe,headerSeccionAlineaciones:mEe,headerSeccionAlineaciones31200:pEe,headerSeccionAlineaciones3420:hEe,headerSeccionAlineaciones3880:gEe,headerSeccionAlineaciones3540:yEe,headerSeccionAlineaciones11200:uEe,headerSeccionAlineaciones1420:fEe,headerSeccionAlineaciones1880:_Ee,headerSeccionAlineaciones21200:bEe,headerSeccionAlineaciones2420:wEe,headerSeccionAlineaciones2880:CEe,headerSeccionAlineaciones2540:kEe},EEe={components:{GSCCarousel:mc,GscSwitchComponent:Js,GSCDropdown:iy,GSCFilter:$9e,GSCSwitchRadio:bC,GSCMatchDetails:kC},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)}}},NEe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),xEe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),BEe=["src"],$Ee=["src"],VEe={class:"selector-tournaments"},IEe=["src"],AEe=["src"],OEe={key:1},TEe=t.createElementVNode("br",null,null,-1),FEe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),zEe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),PEe=["src"],REe=["src"],DEe={class:"selector-tournaments"},jEe=["src"],LEe=["src"],vEe={key:1},MEe=t.createElementVNode("br",null,null,-1),HEe=["src"],UEe=["src"],GEe={class:"selector-tournaments"},WEe=["src"],qEe=["src"],JEe={key:1},XEe=t.createElementVNode("br",null,null,-1);function ZEe(e,a,o,n,s,i){const r=t.resolveComponent("GscSwitchComponent"),c=t.resolveComponent("GSCSwitchRadio"),h=t.resolveComponent("GSCFilter"),d=t.resolveComponent("GSCDropdown"),l=t.resolveComponent("GSCCarousel"),p=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)},[NEe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),xEe],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,BEe)],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":s.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,$Ee)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:ry},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:Zs},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.openfiltervalue,onChange:i.changeFiltersModal,reset:s.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),i.gameRecientesFilter.length>0?(t.openBlock(),t.createBlock(d,{key:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",VEe,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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:s.updateCarouselGames,items:i.gameRecientesFilter,"current-item-index":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,IEe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,AEe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",OEe,[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"),TEe,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[1]||(a[1]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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)},[FEe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),zEe],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,PEe)],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":s.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,REe)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:V9e},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:I9e},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",DEe,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,jEe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,LEe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",vEe,[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"),MEe,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[5]||(a[5]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.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,HEe)],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":s.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,UEe)],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]=(...y)=>i.openFilter&&i.openFilter(...y))},[t.createElementVNode("img",{class:t.normalizeClass(e.$style.sortIcon),alt:"",src:A9e},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:O9e},null,2),t.createVNode(h,{"item-select":s.filterObject,"is-open":s.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:s.keyUpdate,"default-item-by-prop":s.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(y=>[t.createElementVNode("div",GEe,t.toDisplayString(y.selectedItem.name),1)]),availableItem:t.withCtx(({item:y})=>[t.createElementVNode("div",null,t.toDisplayString(y.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]=(...y)=>i.clickShowDetails&&i.clickShowDetails(...y))},[s.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":s.selectedIndexOption,onInput:i.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:t.withCtx(({item:y})=>[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(y.home_team_abbreviation),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.imgHomeTeamIcon),alt:"",src:"https://az755631.vo.msecnd.net/teams-80/"+y.home_team+".png"},null,10,WEe)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.scoreContainer1)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.finalScore)},[Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.div4)},t.toDisplayString(y.score[0]),3)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.div4)},"-",2),Object.keys(y).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.div4)},[Array.isArray(y.score)?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(y.score[1]),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(y.score[4]),1)],64))],2)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},[y.home_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.home_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.home_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.home_match_result==3?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[t.createTextVNode("Empatado")],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),y.away_team_abbreviation==s.teamSelect?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.visiting_match_result==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Ganado")],64)):t.createCommentVNode("",!0),y.visiting_match_result==2?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Perdido")],64)):t.createCommentVNode("",!0),y.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/"+y.away_team+".png"},null,10,qEe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited)},t.toDisplayString(y.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","current-item-index","onInput"])):(t.openBlock(),t.createElementBlock("div",JEe,[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"),XEe,t.createTextVNode("de búsqueda aplicados.")],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.btndeletefilters),onClick:a[8]||(a[8]=(...y)=>i.deleteFilters&&i.deleteFilters(...y))},"Eliminar filtros aplicados",2)],2)])),s.showDetails?(t.openBlock(),t.createBlock(p,{key:2,style:{"margin-top":"30px"},localDetails:s.localDetails,foreignDetails:s.foreignDetails},null,8,["localDetails","foreignDetails"])):t.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const YEe={$style:SEe},KEe=wt(EEe,[["render",ZEe],["__cssModules",YEe]]),QEe="_selectoritem_16hc8_179",eNe="_selectoritem2_16hc8_199",tNe="_gscheaderlineup_16hc8_219",aNe="_anNoEstn_16hc8_233",oNe="_groupsLeague_16hc8_239",nNe="_jugadores_16hc8_249",sNe="_switchOption_16hc8_259",iNe="_jugadores1_16hc8_279",rNe="_switchOption1_16hc8_289",lNe="_switchStatesBig_16hc8_305",cNe="_groupsLeagueParent_16hc8_323",dNe="_imgHomeTeamIcon_16hc8_341",mNe="_imgHomeTeamWrapper_16hc8_353",pNe="_teamContainer_16hc8_377",hNe="_name_16hc8_401",gNe="_homeTeamContainer_16hc8_413",yNe="_div_16hc8_433",uNe="_titleSession_16hc8_441",fNe="_scoreContainer_16hc8_461",_Ne="_scoreContainerWrapper_16hc8_481",bNe="_teamContainer1_16hc8_505",wNe="_awayTeamContainer_16hc8_529",CNe="_matchContainer_16hc8_549",kNe="_sliderMatchesChild_16hc8_567",SNe="_manchesterUnited_16hc8_579",ENe="_sliderMatchesItem_16hc8_591",NNe="_sliderMatches_16hc8_567",xNe="_sortIcon_16hc8_627",BNe="_filtros_16hc8_641",$Ne="_sortParent_16hc8_657",VNe="_shapeIcon_16hc8_671",INe="_btnFilter_16hc8_681",ANe="_btnFilter1_16hc8_709",ONe="_btnFilterParent_16hc8_737",TNe="_backArrowIcon_16hc8_753",FNe="_teamContainer2_16hc8_765",zNe="_homeTeam_16hc8_413",PNe="_div4_16hc8_793",RNe="_finalScore_16hc8_803",DNe="_manchesterUnited1_16hc8_829",jNe="_scoreContainer1_16hc8_843",LNe="_match_16hc8_549",vNe="_manchesterUnited2_16hc8_879",MNe="_btnDetails_16hc8_889",HNe="_matchContainer1_16hc8_909",UNe="_goalChild_16hc8_925",GNe="_goal_16hc8_925",WNe="_manchesterUnited3_16hc8_951",qNe="_minuteEvent_16hc8_965",JNe="_yellowCard_16hc8_979",XNe="_awayTeamEvents_16hc8_993",ZNe="_rectangle_16hc8_1007",YNe="_homeTeamEvents_16hc8_1021",KNe="_totalEvents_16hc8_1037",QNe="_headerSeccionAlineaciones1_16hc8_1053",exe="_switchOption3_16hc8_1075",txe="_switchOption4_16hc8_1099",axe="_switchStatesBig1_16hc8_1119",oxe="_manchesterUnited13_16hc8_1133",nxe="_homeTeamContainer1_16hc8_1143",sxe="_scoreContainer2_16hc8_1157",ixe="_matchContainer2_16hc8_1185",rxe="_manchesterUnited14_16hc8_1205",lxe="_sliderMatchesInner_16hc8_1219",cxe="_rectangleIcon_16hc8_1239",dxe="_sliderMatches1_16hc8_1259",mxe="_containerData_16hc8_1275",pxe="_headerSeccionAlineaciones2_16hc8_1303",hxe="_headerSeccionAlineaciones_16hc8_1053",gxe="_headerSeccionAlineaciones21200_16hc8_1351",yxe="_headerSeccionAlineaciones1540_16hc8_1357",uxe="_headerSeccionAlineaciones2540_16hc8_1365",fxe={selectoritem:QEe,selectoritem2:eNe,gscheaderlineup:tNe,anNoEstn:aNe,groupsLeague:oNe,jugadores:nNe,switchOption:sNe,jugadores1:iNe,switchOption1:rNe,switchStatesBig:lNe,groupsLeagueParent:cNe,imgHomeTeamIcon:dNe,imgHomeTeamWrapper:mNe,teamContainer:pNe,name:hNe,homeTeamContainer:gNe,div:yNe,titleSession:uNe,scoreContainer:fNe,scoreContainerWrapper:_Ne,teamContainer1:bNe,awayTeamContainer:wNe,matchContainer:CNe,sliderMatchesChild:kNe,manchesterUnited:SNe,sliderMatchesItem:ENe,sliderMatches:NNe,sortIcon:xNe,filtros:BNe,sortParent:$Ne,shapeIcon:VNe,btnFilter:INe,btnFilter1:ANe,btnFilterParent:ONe,backArrowIcon:TNe,teamContainer2:FNe,homeTeam:zNe,div4:PNe,finalScore:RNe,manchesterUnited1:DNe,scoreContainer1:jNe,match:LNe,manchesterUnited2:vNe,btnDetails:MNe,matchContainer1:HNe,goalChild:UNe,goal:GNe,manchesterUnited3:WNe,minuteEvent:qNe,yellowCard:JNe,awayTeamEvents:XNe,rectangle:ZNe,homeTeamEvents:YNe,totalEvents:KNe,headerSeccionAlineaciones1:QNe,switchOption3:exe,switchOption4:txe,switchStatesBig1:axe,manchesterUnited13:oxe,homeTeamContainer1:nxe,scoreContainer2:sxe,matchContainer2:ixe,manchesterUnited14:rxe,sliderMatchesInner:lxe,rectangleIcon:cxe,sliderMatches1:dxe,containerData:mxe,headerSeccionAlineaciones2:pxe,headerSeccionAlineaciones:hxe,headerSeccionAlineaciones21200:gxe,headerSeccionAlineaciones1540:yxe,headerSeccionAlineaciones2540:uxe},_xe={components:{GSCCarousel:mc,GscSwitchComponent:Js},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)}}},bxe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),wxe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),Cxe=["src"],kxe=["src"],Sxe=["src"],Exe=["src"],Nxe=["src"],xxe=["src"];function Bxe(e,a,o,n,s,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)},[bxe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),wxe],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,Cxe)],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,kxe)],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:ry},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:Zs},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:Zs},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:TC},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,Sxe)],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,Exe),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:FC},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,Nxe)],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,xxe)],2)],2)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const $xe={$style:fxe},Vxe=wt(_xe,[["render",Bxe],["__cssModules",$xe]]),Ixe="_anNoEstn_j98j7_139",Axe="_groupsLeague_j98j7_145",Oxe="_historicas_j98j7_153",Txe="_switchOption_j98j7_163",Fxe="_switchOption1_j98j7_183",zxe="_probables_j98j7_203",Pxe="_switchOption2_j98j7_213",Rxe="_switchStatesBig_j98j7_237",Dxe="_groupsLeagueParent_j98j7_255",jxe="_imgHomeTeamIcon_j98j7_273",Lxe="_imgHomeTeamWrapper_j98j7_285",vxe="_teamContainer_j98j7_309",Mxe="_name_j98j7_333",Hxe="_jor_j98j7_345",Uxe="_jorParent_j98j7_357",Gxe="_shapeIcon_j98j7_373",Wxe="_frameParent_j98j7_383",qxe="_manchesterUnited_j98j7_413",Jxe="_necaxaIcon_j98j7_435",Xxe="_manchesterUnited1_j98j7_447",Zxe="_team_j98j7_309",Yxe="_homeTeamContainer_j98j7_475",Kxe="_div1_j98j7_495",Qxe="_scoreContainer_j98j7_503",eBe="_scoreContainerWrapper_j98j7_525",tBe="_team1_j98j7_549",aBe="_name1_j98j7_563",oBe="_teamContainer1_j98j7_577",nBe="_awayTeamContainer_j98j7_601",sBe="_matchContainer_j98j7_623",iBe="_goalChild_j98j7_641",rBe="_goal_j98j7_641",lBe="_manchesterUnited4_j98j7_667",cBe="_minuteEvent_j98j7_681",dBe="_yellowCard_j98j7_695",mBe="_awayTeamEvents_j98j7_709",pBe="_rectangle_j98j7_723",hBe="_homeTeamEvents_j98j7_737",gBe="_totalEvents_j98j7_753",yBe="_headerSeccionAlineaciones1_j98j7_769",uBe="_homeTeamContainer1_j98j7_789",fBe="_awayTeamContainer1_j98j7_813",_Be="_headerSeccionAlineaciones2_j98j7_837",bBe="_jugadores_j98j7_857",wBe="_switchOption6_j98j7_869",CBe="_switchOption8_j98j7_889",kBe="_switchStatesBig2_j98j7_913",SBe="_manchesterUnited28_j98j7_927",EBe="_homeTeamContainer2_j98j7_935",NBe="_matchContainer2_j98j7_949",xBe="_manchesterUnited29_j98j7_971",BBe="_sliderMatchesChild_j98j7_985",$Be="_sliderMatchesItem_j98j7_1005",VBe="_sliderMatches_j98j7_985",IBe="_jorParent2_j98j7_1045",ABe="_filterMatchday_j98j7_1059",OBe="_necaxaIcon4_j98j7_1081",TBe="_team4_j98j7_1093",FBe="_filterMatchdayParent_j98j7_1113",zBe="_filterMatchday1_j98j7_1127",PBe="_teamParent_j98j7_1157",RBe="_filtersContainer_j98j7_1177",DBe="_containerData_j98j7_1195",jBe="_headerSeccionAlineaciones3_j98j7_1223",LBe="_headerSeccionAlineaciones_j98j7_769",vBe={anNoEstn:Ixe,groupsLeague:Axe,historicas:Oxe,switchOption:Txe,switchOption1:Fxe,probables:zxe,switchOption2:Pxe,switchStatesBig:Rxe,groupsLeagueParent:Dxe,imgHomeTeamIcon:jxe,imgHomeTeamWrapper:Lxe,teamContainer:vxe,name:Mxe,jor:Hxe,jorParent:Uxe,shapeIcon:Gxe,frameParent:Wxe,manchesterUnited:qxe,necaxaIcon:Jxe,manchesterUnited1:Xxe,team:Zxe,homeTeamContainer:Yxe,div1:Kxe,scoreContainer:Qxe,scoreContainerWrapper:eBe,team1:tBe,name1:aBe,teamContainer1:oBe,awayTeamContainer:nBe,matchContainer:sBe,goalChild:iBe,goal:rBe,manchesterUnited4:lBe,minuteEvent:cBe,yellowCard:dBe,awayTeamEvents:mBe,rectangle:pBe,homeTeamEvents:hBe,totalEvents:gBe,headerSeccionAlineaciones1:yBe,homeTeamContainer1:uBe,awayTeamContainer1:fBe,headerSeccionAlineaciones2:_Be,jugadores:bBe,switchOption6:wBe,switchOption8:CBe,switchStatesBig2:kBe,manchesterUnited28:SBe,homeTeamContainer2:EBe,matchContainer2:NBe,manchesterUnited29:xBe,sliderMatchesChild:BBe,sliderMatchesItem:$Be,sliderMatches:VBe,jorParent2:IBe,filterMatchday:ABe,necaxaIcon4:OBe,team4:TBe,filterMatchdayParent:FBe,filterMatchday1:zBe,teamParent:PBe,filtersContainer:RBe,containerData:DBe,headerSeccionAlineaciones3:jBe,headerSeccionAlineaciones:LBe},MBe={components:{GSCDropdown:iy,GscSwitchComponent:Js},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])}}},HBe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),UBe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1),GBe=["src"],WBe={class:"selector-tournaments"},qBe=["src"],JBe=["src"],XBe={class:"selector-tournaments"},ZBe=["src"],YBe=t.createElementVNode("span",null,"Las alineaciones de este partido ",-1),KBe=t.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1),QBe=["src"],e$e={class:"selector-tournaments"},t$e=["src"],a$e=["src"],o$e={class:"selector-tournaments"},n$e=["src"],s$e=["src"],i$e=["src"],r$e={class:"selector-tournaments"},l$e=["src"],c$e=["src"],d$e={class:"selector-tournaments"};function m$e(e,a,o,n,s,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)},[HBe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),UBe],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,GBe)],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",WBe,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:s.rivalHomeImg},null,10,qBe),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,JBe),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",XBe,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,ZBe)],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)},[YBe,t.createElementVNode("span",{class:t.normalizeClass(e.$style.anNoEstn)},"aún no están disponibles",2),KBe],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,QBe)],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",e$e,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:s.rivalHomeImg},null,10,t$e),t.createElementVNode("div",{class:t.normalizeClass(e.$style.manchesterUnited1)},t.toDisplayString(s.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(s.rivalVisitAbrev),3),t.createElementVNode("img",{class:t.normalizeClass(e.$style.necaxaIcon),alt:"",src:s.rivalVisitImg},null,10,a$e),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",o$e,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,n$e)],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,s$e)],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,i$e)],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",r$e,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:s.rivalHomeImg},null,10,l$e)],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:s.rivalVisitImg},null,10,c$e),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",d$e,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 p$e={$style:vBe},h$e=wt(MBe,[["render",m$e],["__cssModules",p$e]]),zC="/line.png";let PC=null;const g$e={name:"lineupPlayers",props:{game:{type:Object,default:()=>{}},selectedOption:{type:Boolean,default:"Prematch"}},components:{CardPlayer:Rke,HeaderPlayerHistorico:h9e,HeaderPlayerRecientes:KEe,HeaderPlayerProbables:h$e,HeaderPlayerPostmatch:Vxe},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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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(" "),p=o[1].trim().split(" "),y="";l.length==2||l.length==1?l[0].length<4?y=l[0]+" "+l[1]:y=l[0]:l.length==3?y=l[0]+" "+l[1]:l.length==4&&(y=l[1]+" "+l[2]+" "+l[3]);var m=p[p.length-1]!=""?p[p.length-1].charAt(0):p[p.length-2]?p[p.length-2].charAt(0):"";y=y.replace(",","");var g=m+". "+y,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(","),n=o[0].split(" "),s=o[1].trim().split(" "),i="";n.length==2||n.length==1?n[0].length<4?i=n[0]+" "+n[1]:i=n[0]:n.length==3?i=n[0]+" "+n[1]:n.length==4&&(i=n[1]+" "+n[2]+" "+n[3]);var r=s[s.length-1]!=""?s[s.length-1].charAt(0):s[s.length-2]?s[s.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 p=a.data[b].player_name.split(","),y=p[0].split(" "),m=p[1].trim().split(" "),g="";y.length==2||y.length==1?y[0].length<4?g=y[0]+" "+y[1]:g=y[0]:y.length==3?g=y[0]+" "+y[1]:y.length==4&&(g=y[1]+" "+y[2]+" "+y[3]);var u=m[m.length-1]!=""?m[m.length-1].charAt(0):m[m.length-2]?m[m.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,n=-1;if(this.playersHome.length>0){var s=this.playersHome.findIndex(x=>x.idredcards==a.play_id),i=this.playersHome.findIndex(x=>x.idyellowcards==a.play_id),r=this.playersHome.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersHome.length;x++){var c=this.playersHome[x].idsGoals.findIndex($=>$==a.play_id);c!=-1&&(o=c,n=x)}s!=-1&&this.resetPlayUpdate("RedCard","Home",s,n),i!=-1&&this.resetPlayUpdate("YellowCard","Home",i,n),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,n),o!=-1&&this.resetPlayUpdate("Goals","Home",o,n)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(x=>x.idredcards==a.play_id),d=this.playersAway.findIndex(x=>x.idyellowcards==a.play_id),l=this.playersAway.findIndex(x=>x.idSubstitution==a.play_id);for(let x=0;x<this.playersAway.length;x++){var p=this.playersAway[x].idsGoals.findIndex($=>$==a.play_id);p!=-1&&(o=p,n=x)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,n),d!=-1&&this.resetPlayUpdate("YellowCard","Away",d,n),l!=-1&&this.resetPlayUpdate("Substitution","Away",l,n),o!=-1&&this.resetPlayUpdate("Goals","Away",o,n)}if(a.event_type_id==3){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=a.player_id.split("@"),m=this.playersHome.findIndex(x=>x.playerId==y[0]),g=this.playersHome.findIndex(x=>x.playerId==y[1]);m!=-1&&(this.playersHome[m].idSubstitution=a.play_id,this.playersHome[m].substitutionOut=!0,this.playersHome[m].substitutionMin=a.minute,this.playersHome[m].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(x=>x.playerId==u[0]),_=this.playersAway.findIndex(x=>x.playerId==u[1]);m!=-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(x=>x.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(x=>x.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(x=>x.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(x=>x.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 B=this.playersHome.findIndex(x=>x.playerId==a.player_id);B!=-1&&(this.playersHome[B].redcards+=1,this.playersHome[B].redcardsMin=a.minute,this.playersHome[B].idredcards=a.play_id)}}else if(this.playersAway.length>0){var V=this.playersAway.findIndex(x=>x.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 n=this.playersHome[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersHome[o].goals=this.playersHome[o].goals-1,this.playersHome[o].goalsMin.splice(n,1),this.playersHome[o].idsGoals.splice(n,1))}if(this.playersAway.length>0)for(let o=0;o<this.playersAway.length;o++){const n=this.playersAway[o].idsGoals.findIndex(s=>s==a.play_id);n!=-1&&(this.playersAway[o].goals=this.playersAway[o].goals-1,this.playersAway[o].goalsMin.splice(n,1),this.playersAway[o].idsGoals.splice(n,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("@"),n=this.playersHome.findIndex(g=>g.playerId==o[0]),s=this.playersHome.findIndex(g=>g.playerId==o[1]);n!=-1&&(this.playersHome[n].idSubstitution=a.play_id,this.playersHome[n].substitutionOut=!0,this.playersHome[n].substitutionMin=a.minute,this.playersHome[n].substitutionDataID=a.team_id+"@"+a.player_id),s!=-1&&(this.playersHome[s].idSubstitution=a.play_id,this.playersHome[s].substitutionIn=!0,this.playersHome[s].substitutionMin=a.minute,this.playersHome[s].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]);n!=-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 p=this.playersAway.findIndex(g=>g.playerId==a.player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=a.minute,this.playersAway[p].idyellowcards=a.play_id)}}if(a.category_id==9){if(a.team_id==this.home_team_id){if(this.playersHome.length>0){var y=this.playersHome.findIndex(g=>g.playerId==a.player_id);y!=-1&&(this.playersHome[y].redcards+=1,this.playersHome[y].redcardsMin=a.minute,this.playersHome[y].idredcards=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].redcards+=1,this.playersAway[m].redcardsMin=a.minute,this.playersAway[m].idredcards=a.play_id)}}}}},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)},async getLineUpProbablesHome3D(e){try{const w=await Rt.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,_=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(z=>z.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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 Rt.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=_.data.away_team.players.findIndex(O=>O.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 Rt.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 Rt.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(n=>n.game_id===Number(n.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(){yn("lineups.game."+this.game.game_id),yn("mxm.game."+this.game.game_id),yn("lineups.bench.game."+this.game.game_id)},resetPlayUpdate(e,a,o,n){if(e=="Substitution")if(a=="Home"){var s=this.playersHome[o].substitutionDataID.split("@"),i=this.playersHome.findIndex(l=>l.playerId==s[1]),r=this.playersHome.findIndex(l=>l.playerId==s[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[n].goals=this.playersHome[n].goals-1,this.playersHome[n].goalsMin.splice(o,1),this.playersHome[n].idsGoals.splice(o,1)):(this.playersAway[n].goals=this.playersAway[n].goals-1,this.playersAway[n].goalsMin.splice(o,1),this.playersAway[n].idsGoals.splice(o,1)))},setUpResizeObserver(){if(window.ResizeObserver)PC=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),PC.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(e){try{const m=await Rt.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<m.data.plays.length;g++){if(m.data.plays[g].event_type_id==3){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var a=m.data.plays[g].player_id.split("@"),o=this.playersHome.findIndex(u=>u.playerId==a[0]),n=this.playersHome.findIndex(u=>u.playerId==a[1]);o!=-1&&(this.playersHome[o].idSubstitution=m.data.plays[g].play_id,this.playersHome[o].substitutionOut=!0,this.playersHome[o].substitutionMin=m.data.plays[g].minute,this.playersHome[o].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),n!=-1&&(this.playersHome[n].idSubstitution=m.data.plays[g].play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=m.data.plays[g].minute,this.playersHome[n].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}else if(this.playersAway.length>0){var s=m.data.plays[g].player_id.split("@"),i=this.playersAway.findIndex(u=>u.playerId==s[0]),r=this.playersAway.findIndex(u=>u.playerId==s[1]);i!=-1&&(this.playersAway[i].idSubstitution=m.data.plays[g].play_id,this.playersAway[i].substitutionOut=!0,this.playersAway[i].substitutionMin=m.data.plays[g].minute,this.playersAway[i].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id),r!=-1&&(this.playersAway[r].idSubstitution=m.data.plays[g].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=m.data.plays[g].minute,this.playersAway[r].substitutionDataID=m.data.plays[g].team_id+"@"+m.data.plays[g].player_id)}}if(m.data.plays[g].event_type_id==1){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);c!=-1&&(this.playersHome[c].goals+=1,this.playersHome[c].goalsMin.push(m.data.plays[g].minute),this.playersHome[c].idsGoals.push(m.data.plays[g].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(m.data.plays[g].minute),this.playersAway[h].idsGoals.push(m.data.plays[g].play_id))}}if(m.data.plays[g].event_type_id==2){if(m.data.plays[g].category_id==8){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=m.data.plays[g].minute,this.playersHome[d].idyellowcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var l=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);l!=-1&&(this.playersAway[l].yellowcards+=1,this.playersAway[l].yellowcardsMin=m.data.plays[g].minute,this.playersAway[l].idyellowcards=m.data.plays[g].play_id)}}if(m.data.plays[g].category_id==9){if(m.data.plays[g].team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(u=>u.playerId==m.data.plays[g].player_id);p!=-1&&(this.playersHome[p].redcards+=1,this.playersHome[p].redcardsMin=m.data.plays[g].minute,this.playersHome[p].idredcards=m.data.plays[g].play_id)}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(u=>u.playerId==m.data.plays[g].player_id);y!=-1&&(this.playersAway[y].redcards+=1,this.playersAway[y].redcardsMin=m.data.plays[g].minute,this.playersAway[y].idredcards=m.data.plays[g].play_id)}}}}}catch(m){return Promise.reject(m)}},async getLineUp(e){if(e!=null&&(uC(),!this.playersHome.length&&!this.playersHome.length))try{const C=await Rt.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,P)=>N.position_id>P.position_id?1:P.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(" "),n=a[1].trim().split(" "),s="";o.length==2||o.length==1?o[0].length<4?s=o[0]+" "+o[1]:s=o[0]:o.length==3?s=o[0]+" "+o[1]:o.length==4&&(s=o[1]+" "+o[2]+" "+o[3]);var i=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";s=s.replace(",","");var r=i+". "+s,c=C.data.home_team.starting_lineup[0].lineup[N].x,h=c*50/100,d=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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(","),p=l[0].split(" "),y=l[1].trim().split(" "),m="";p.length==2||p.length==1?p[0].length<4?m=p[0]+" "+p[1]:m=p[0]:p.length==3?m=p[0]+" "+p[1]:p.length==4&&(m=p[1]+" "+p[2]+" "+p[3]);var g=y[y.length-1]!=""?y[y.length-1].charAt(0):y[y.length-2]?y[y.length-2].charAt(0):"";m=m.replace(",","");var u=g+". "+m,f=C.data.home_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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[n.length-1]!=""?w[w.length-1].charAt(0):w[w.length-2]?w[w.length-2].charAt(0):"";b=b.replace(",","");var B=E+". "+b,V=C.data.away_team.starting_lineup[0].lineup[N].x,x=100-(100-V)*50/100;x=x*.9;var $=C.data.away_team.players.findIndex(P=>P.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:B,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:x,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,P)=>N.position_id>P.position_id?1:P.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 O=C.data.away_team.bench[N].playerName.split(","),A=O[0].split(" "),I=O[1].trim().split(" "),z="";A.length==2||A.length==1?A[0].length<4?z=A[0]+" "+A[1]:z=A[0]:A.length==3?z=A[0]+" "+A[1]:A.length==4&&(z=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):"";z=z.replace(",","");var re=ee+". "+z,Q=C.data.away_team.players.findIndex(P=>P.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,P)=>N.position_id>P.position_id?1:P.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 n=new XMLHttpRequest,s=0;a=="away"?o==1?this.uniformAway==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformAwayG==""&&(n.open("HEAD",e,!1),n.send(),s=1):o==1?this.uniformHome==""&&(n.open("HEAD",e,!1),n.send(),s=1):this.uniformHomeG==""&&(n.open("HEAD",e,!1),n.send(),s=1),s==1&&(n.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]),n=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=""),n!=-1?(this.substitutionModal.out.name=this.playersHome[n].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[n].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[n].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[n].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[n].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 s=this.playersAway.findIndex(r=>r.playerId==a[1]),i=this.playersAway.findIndex(r=>r.playerId==a[2]);s!=-1?(this.substitutionModal.min=this.playersAway[s].substitutionMin,this.substitutionModal.in.name=this.playersAway[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[s].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[s].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[s].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}}},y$e={class:"size-browser-class"},u$e={class:"lineup-players is-centered"},f$e={style:{width:"92%",margin:"0 auto","margin-top":"10px"}},_$e={class:"modal-substitutions__substitution-container"},b$e={class:"modal-substitutions__substitution-container__header"},w$e={style:{"margin-left":"32px"}},C$e=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn-close.png"},null,-1),k$e=[C$e],S$e={class:"modal-substitutions__substitution-container__players-container"},E$e={class:"substitution-player-data-container"},N$e={class:"substitution-player-data-container__img-player"},x$e=["src"],B$e={class:"substitution-player-data-container__img-player__team"},$$e=["src"],V$e={class:"substitution-player-data-container__name-player"},I$e={class:"substitution-player-data-container__position-player"},A$e={class:"substitution-player-data-container__shirt-player",style:{"padding-left":"30px"}},O$e={key:0,class:"substitution-player-data-container__shirt-player__circle"},T$e={key:1},F$e=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"},null,-1),z$e=[F$e],P$e={class:"substitution-player-data-container__substitution-player"},R$e={class:"substitution-indicator nomargin"},D$e=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_salio.png"})],-1),j$e={class:"substitution-player-data-container__center"},L$e=t.createElementVNode("div",{class:"substitution-player-data-container__border"},null,-1),v$e={class:"substitution-player-data-container__minute"},M$e={class:"substitution-player-data-container"},H$e={class:"substitution-player-data-container__img-player"},U$e=["src"],G$e={class:"substitution-player-data-container__img-player__team"},W$e=["src"],q$e={class:"substitution-player-data-container__name-player"},J$e={class:"substitution-player-data-container__position-player"},X$e={class:"substitution-player-data-container__shirt-player",style:{"padding-right":"20px"}},Z$e={key:0},Y$e=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"},null,-1),K$e=[Y$e],Q$e={key:1,class:"substitution-player-data-container__shirt-player__circle"},eVe={class:"substitution-player-data-container__substitution-player"},tVe={class:"substitution-indicator nomargin"},aVe=t.createElementVNode("div",null,[t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/icn_ingreso.png"})],-1),oVe=["onClick"],nVe=t.createElementVNode("img",{src:zC},null,-1),sVe=[nVe],iVe=["onClick"],rVe=t.createElementVNode("img",{src:zC},null,-1),lVe=[rVe],cVe={key:0,class:"cont-lineup-gsc-componente"},dVe={class:"shield-team-cont homecolor"},mVe=["src"],pVe={class:"shield-team-cont awaycolor"},hVe=["src"],gVe={key:0,class:"header-lineup-shield-team home"},yVe={class:"shield-team-cont homecolor"},uVe=["src"],fVe={class:"header-lineup-shield-team-wrapper"},_Ve={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},bVe=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),wVe={key:0,class:"header-lineup-shield-team away"},CVe={class:"shield-team-cont awaycolor"},kVe=["src"],SVe={class:"header-lineup-shield-team-wrapper"},EVe={class:"header-lineup-shield-team-wrapper header-lineup-shield-team-wrapper-spacer"},NVe=t.createElementVNode("div",{class:"line-substitutions"},"SUPLENTES",-1),xVe=t.createElementVNode("img",{src:"https://az755631.vo.msecnd.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1),BVe=[xVe],$Ve=t.createElementVNode("br",null,null,-1);function VVe(e,a,o,n,s,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",y$e,t.toDisplayString(i.sizeBrowser),1),t.createElementVNode("div",u$e,[t.createElementVNode("div",f$e,[o.selectedOption=="Postmatch"?(t.openBlock(),t.createBlock(r,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","onInput","matchdays-default","game-historic"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.selectOptMenuheader=="Historicos"?(t.openBlock(),t.createBlock(c,{key:0,onClickOnSelectOption:i.clickOnSelectOption,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onInput:i.changeCarouselItem,"matchdays-default":s.matchdaysPerTeam,"game-historic":s.gamesHistoric,"game-recientes":Object.keys(s.gameInfoheader).length>0?s.gamesRecientes[s.gameInfoheader.home_team_abbreviation].length+s.gamesRecientes[s.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),s.selectOptMenuheader=="Recientes"?(t.openBlock(),t.createBlock(h,{onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"100px"},key:s.keyUpdateRecientes,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,"player-home":s.playersHome,"player-away":s.playersAway,"matchdays-default":s.matchdaysPerTeam,onInput:i.changeCarouselItemRecent,"game-recientes":s.gamesRecientes},null,8,["onClickOnSelectOption","option-selected","width-size","game-info","player-home","player-away","matchdays-default","onInput","game-recientes"])):t.createCommentVNode("",!0),s.selectOptMenuheader=="Probables"?(t.openBlock(),t.createBlock(d,{key:2,onClickOnSelectOption:i.clickOnSelectOption,style:{"margin-bottom":"80px"},"matchdays-default":s.matchdaysPerTeam,"option-selected":s.selectOptMenuheader,"width-size":s.gamesContainerWidth,"game-info":s.gameInfoheader,onChangehome:i.getLineupProbablesHome,onChangeaway:i.getLineupProbablesAway,"game-recientes":s.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:s.gamesContainerWidth===0}]),ref:"gamesContainer"},[t.createElementVNode("div",{class:t.normalizeClass(i.fieldcontainerClass)},[t.createElementVNode("div",{class:t.normalizeClass(["modal-substitutions",s.subsActive?"activeSub":"deactiveSub"])},[t.createElementVNode("div",_$e,[t.createElementVNode("div",b$e,[t.createElementVNode("span",w$e,[t.createTextVNode("Cambio "),t.createElementVNode("span",{class:"close-susbtitutions",onClick:a[0]||(a[0]=p=>i.closeChange())},k$e)])]),t.createElementVNode("div",S$e,[t.createElementVNode("div",E$e,[t.createElementVNode("div",N$e,[s.substitutionModal.in.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.playerImg,width:"72",alt:"Jugador"},null,8,x$e)):t.createCommentVNode("",!0),t.createElementVNode("div",B$e,[s.substitutionModal.in.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.in.teamImg,width:"28",alt:"team"},null,8,$$e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.in.nationalityimg+")"})},null,4)]),t.createElementVNode("div",V$e,t.toDisplayString(s.substitutionModal.in.name),1),t.createElementVNode("div",I$e,t.toDisplayString(s.substitutionModal.in.position),1),t.createElementVNode("div",A$e,[s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",O$e,t.toDisplayString(s.substitutionModal.in.shirt_number),1)):t.createCommentVNode("",!0),s.substitutionModal.in.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",T$e,z$e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",P$e,[t.createElementVNode("template",null,[t.createElementVNode("div",R$e,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),D$e])])])]),t.createElementVNode("div",j$e,[L$e,t.createElementVNode("div",v$e,t.toDisplayString(s.substitutionModal.min)+"'",1)]),t.createElementVNode("div",M$e,[t.createElementVNode("div",H$e,[s.substitutionModal.out.playerImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.playerImg,width:"72",alt:"Jugador"},null,8,U$e)):t.createCommentVNode("",!0),t.createElementVNode("div",G$e,[s.substitutionModal.out.teamImg!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.substitutionModal.out.teamImg,width:"28",alt:"team"},null,8,W$e)):t.createCommentVNode("",!0)]),t.createElementVNode("div",{class:"substitution-player-data-container__img-player__img-cont",style:t.normalizeStyle({backgroundImage:"url("+s.substitutionModal.out.nationalityimg+")"})},null,4)]),t.createElementVNode("div",q$e,t.toDisplayString(s.substitutionModal.out.name),1),t.createElementVNode("div",J$e,t.toDisplayString(s.substitutionModal.out.position),1),t.createElementVNode("div",X$e,[s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Z$e,K$e)):t.createCommentVNode("",!0),s.substitutionModal.out.shirt_number!=""?(t.openBlock(),t.createElementBlock("div",Q$e,t.toDisplayString(s.substitutionModal.out.shirt_number),1)):t.createCommentVNode("",!0)]),t.createElementVNode("div",eVe,[t.createElementVNode("template",null,[t.createElementVNode("div",tVe,[t.createElementVNode("div",null,t.toDisplayString(s.substitutionModal.min)+"'",1),aVe])])])])])])],2),t.createElementVNode("div",{class:t.normalizeClass(i.canchacontainerClass)},[(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_home"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="home"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+2+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformHome}:{backgroundImage:s.uniformHomeG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},sVe,10,oVe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"jersey_away"},[p.played?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass([i.itemplayerfieldClass,s.gamesContainerWidth<740?s.teamActive=="away"?"active":"disabled":"",s.gamesContainerWidth<740?"movil":""]),style:t.normalizeStyle(s.movil?{top:p.positionXOrigin+"%",left:p.positionYOrigin+"%"}:{top:p.positionX+"%",left:p.positionY+"%"})},[t.createElementVNode("div",{class:t.normalizeClass(i.jerseyitemplayerClass),style:t.normalizeStyle(p.position!="Portero"?{backgroundImage:s.uniformAway}:{backgroundImage:s.uniformAwayG})},[t.createElementVNode("div",{class:t.normalizeClass([i.yellowcarddivclass,p.yellowcards>0&&p.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.redcarddivClass,p.yellowcards==0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.yellowredcarddivClass,p.yellowcards>0&&p.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),t.createElementVNode("div",{class:t.normalizeClass([i.goalcarddivClass,p.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",[s.gamesContainerWidth<740?"movil":""]])},t.toDisplayString(p.shirt_number),3),t.createTextVNode(" "+t.toDisplayString(p.abrevNamePlayer),1)],2),p.substitutionIn||p.substitutionOut?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.infochangeplayeritemClass),onClick:m=>i.viewChange(p.substitutionDataID)},lVe,10,iVe)):t.createCommentVNode("",!0)],2)],6)):t.createCommentVNode("",!0)],64))),128))],2)],2),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.gameForAnalysis.is_live==0&&i.numPlayer==0?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",cVe,[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"},s.teamActive=="home"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[1]||(a[1]=p=>i.viewLineupTeam("home"))},[t.createElementVNode("div",dVe,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,mVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)],4),t.createElementVNode("div",{class:"header-lineup-shield-team away",style:t.normalizeStyle([{cursor:"pointer"},s.teamActive=="away"?"background-color: #214e67; border-radius: 10px;":""]),onClick:a[2]||(a[2]=p=>i.viewLineupTeam("away"))},[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",pVe,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,hVe)):t.createCommentVNode("",!0)])],4)],2),s.teamActive=="home"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(i.containerClassHome)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",gVe,[t.createElementVNode("div",yVe,[s.homeTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.homeTeamLogo,class:"gsc-logo-team",width:"28"},null,8,uVe)):t.createCommentVNode("",!0)]),t.createElementVNode("div",null,t.toDisplayString(s.homeTeam.acronym),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",fVe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",_Ve,[bVe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersHome,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,type:1,onOnOpenProfile:i.onOpenProfile,position:i.positionClass,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,img:p.imgPlayer,playerid:p.playerId,teamid:p.id_team,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0),s.teamActive=="away"||s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(i.containerClassAway)},[s.gamesContainerWidth>740?(t.openBlock(),t.createElementBlock("div",wVe,[t.createElementVNode("div",null,t.toDisplayString(s.visitingTeam.acronym),1),t.createElementVNode("div",CVe,[s.awayTeamLogo!=""?(t.openBlock(),t.createElementBlock("img",{key:0,src:s.awayTeamLogo,class:"gsc-logo-team",width:"28"},null,8,kVe)):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("div",SVe,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"])):t.createCommentVNode("",!0)],64))),128))]),t.createElementVNode("div",EVe,[NVe,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.playersAway,(p,y)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:y+"line_away"},[p.played?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,onOnOpenProfile:i.onOpenProfile,type:2,position:i.positionClass2,data:{color:y%2==0?"#0d1d29":"#172531",season:o.game.season_id,playerid:p.playerId,teamid:p.id_team,img:p.imgPlayer,name:p.name,position:p.position,nation:p.imgNationality,shirt:p.shirt_number,yellowcard:p.yellowcards,redcard:p.redcards,yellowcardmin:p.yellowcardsMin,redcardmin:p.redcardsMin,goalsMin:p.goalsMin,substitutionIn:p.substitutionIn,substitutionOut:p.substitutionOut,substitutionMin:p.substitutionMin,section:s.selectOptMenuheader}},null,8,["onOnOpenProfile","position","data"]))],64))),128))])],2)):t.createCommentVNode("",!0)],2)])),(s.gameForAnalysis.game_status==4||s.gameForAnalysis.game_status==1)&&s.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",s.gamesContainerWidth<740?"movil":""])},BVe,2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__title-info",s.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),t.createElementVNode("div",{class:t.normalizeClass([i.containernolineups+"__subtitle-info",s.gamesContainerWidth<740?"movil":""])},[t.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas "),$Ve,t.createTextVNode("serán dadas minutos antes del inicio del partido. ")],2)],2)):t.createCommentVNode("",!0)],2)])])])}const IVe=wt(g$e,[["render",VVe]]),AVe={components:{GSCLineups2D:eke,GSCLineups3D:IVe},props:{selectedOption:{type:String,default:"Historicos"},game:{type:Object,default:()=>{}},type:{type:String,default:"2D"}},watch:{},data(){return{}},computed:{},methods:{onOpenProfile(e){this.$emit("onOpenProfile",e)}}};function OVe(e,a,o,n,s,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,onOnOpenProfile:i.onOpenProfile,"selected-option":o.selectedOption,game:o.game},null,8,["onOnOpenProfile","selected-option","game"])):t.createCommentVNode("",!0)])}const TVe=wt(AVe,[["render",OVe]]);function RC(e,a){return function(){return e.apply(a,arguments)}}const{toString:FVe}=Object.prototype,{getPrototypeOf:ly}=Object,gc=(e=>a=>{const o=FVe.call(a);return e[o]||(e[o]=o.slice(8,-1).toLowerCase())})(Object.create(null)),Ca=e=>(e=e.toLowerCase(),a=>gc(a)===e),yc=e=>a=>typeof a===e,{isArray:un}=Array,Ys=yc("undefined");function zVe(e){return e!==null&&!Ys(e)&&e.constructor!==null&&!Ys(e.constructor)&&jt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const DC=Ca("ArrayBuffer");function PVe(e){let a;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?a=ArrayBuffer.isView(e):a=e&&e.buffer&&DC(e.buffer),a}const RVe=yc("string"),jt=yc("function"),jC=yc("number"),uc=e=>e!==null&&typeof e=="object",DVe=e=>e===!0||e===!1,fc=e=>{if(gc(e)!=="object")return!1;const a=ly(e);return(a===null||a===Object.prototype||Object.getPrototypeOf(a)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jVe=Ca("Date"),LVe=Ca("File"),vVe=Ca("Blob"),MVe=Ca("FileList"),HVe=e=>uc(e)&&jt(e.pipe),UVe=e=>{let a;return e&&(typeof FormData=="function"&&e instanceof FormData||jt(e.append)&&((a=gc(e))==="formdata"||a==="object"&&jt(e.toString)&&e.toString()==="[object FormData]"))},GVe=Ca("URLSearchParams"),WVe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ks(e,a,{allOwnKeys:o=!1}={}){if(e===null||typeof e>"u")return;let n,s;if(typeof e!="object"&&(e=[e]),un(e))for(n=0,s=e.length;n<s;n++)a.call(null,e[n],n,e);else{const i=o?Object.getOwnPropertyNames(e):Object.keys(e),r=i.length;let c;for(n=0;n<r;n++)c=i[n],a.call(null,e[c],c,e)}}function LC(e,a){a=a.toLowerCase();const o=Object.keys(e);let n=o.length,s;for(;n-- >0;)if(s=o[n],a===s.toLowerCase())return s;return null}const vC=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global)(),MC=e=>!Ys(e)&&e!==vC;function cy(){const{caseless:e}=MC(this)&&this||{},a={},o=(n,s)=>{const i=e&&LC(a,s)||s;fc(a[i])&&fc(n)?a[i]=cy(a[i],n):fc(n)?a[i]=cy({},n):un(n)?a[i]=n.slice():a[i]=n};for(let n=0,s=arguments.length;n<s;n++)arguments[n]&&Ks(arguments[n],o);return a}const qVe=(e,a,o,{allOwnKeys:n}={})=>(Ks(a,(s,i)=>{o&&jt(s)?e[i]=RC(s,o):e[i]=s},{allOwnKeys:n}),e),JVe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),XVe=(e,a,o,n)=>{e.prototype=Object.create(a.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:a.prototype}),o&&Object.assign(e.prototype,o)},ZVe=(e,a,o,n)=>{let s,i,r;const c={};if(a=a||{},e==null)return a;do{for(s=Object.getOwnPropertyNames(e),i=s.length;i-- >0;)r=s[i],(!n||n(r,e,a))&&!c[r]&&(a[r]=e[r],c[r]=!0);e=o!==!1&&ly(e)}while(e&&(!o||o(e,a))&&e!==Object.prototype);return a},YVe=(e,a,o)=>{e=String(e),(o===void 0||o>e.length)&&(o=e.length),o-=a.length;const n=e.indexOf(a,o);return n!==-1&&n===o},KVe=e=>{if(!e)return null;if(un(e))return e;let a=e.length;if(!jC(a))return null;const o=new Array(a);for(;a-- >0;)o[a]=e[a];return o},QVe=(e=>a=>e&&a instanceof e)(typeof Uint8Array<"u"&&ly(Uint8Array)),eIe=(e,a)=>{const o=(e&&e[Symbol.iterator]).call(e);let n;for(;(n=o.next())&&!n.done;){const s=n.value;a.call(e,s[0],s[1])}},tIe=(e,a)=>{let o;const n=[];for(;(o=e.exec(a))!==null;)n.push(o);return n},aIe=Ca("HTMLFormElement"),oIe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,o,n){return o.toUpperCase()+n}),HC=(({hasOwnProperty:e})=>(a,o)=>e.call(a,o))(Object.prototype),nIe=Ca("RegExp"),UC=(e,a)=>{const o=Object.getOwnPropertyDescriptors(e),n={};Ks(o,(s,i)=>{let r;(r=a(s,i,e))!==!1&&(n[i]=r||s)}),Object.defineProperties(e,n)},sIe=e=>{UC(e,(a,o)=>{if(jt(e)&&["arguments","caller","callee"].indexOf(o)!==-1)return!1;const n=e[o];if(jt(n)){if(a.enumerable=!1,"writable"in a){a.writable=!1;return}a.set||(a.set=()=>{throw Error("Can not rewrite read-only method '"+o+"'")})}})},iIe=(e,a)=>{const o={},n=s=>{s.forEach(i=>{o[i]=!0})};return un(e)?n(e):n(String(e).split(a)),o},rIe=()=>{},lIe=(e,a)=>(e=+e,Number.isFinite(e)?e:a),dy="abcdefghijklmnopqrstuvwxyz",GC="0123456789",WC={DIGIT:GC,ALPHA:dy,ALPHA_DIGIT:dy+dy.toUpperCase()+GC},cIe=(e=16,a=WC.ALPHA_DIGIT)=>{let o="";const{length:n}=a;for(;e--;)o+=a[Math.random()*n|0];return o};function dIe(e){return!!(e&&jt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const mIe=e=>{const a=new Array(10),o=(n,s)=>{if(uc(n)){if(a.indexOf(n)>=0)return;if(!("toJSON"in n)){a[s]=n;const i=un(n)?[]:{};return Ks(n,(r,c)=>{const h=o(r,s+1);!Ys(h)&&(i[c]=h)}),a[s]=void 0,i}}return n};return o(e,0)},pIe=Ca("AsyncFunction"),hIe=e=>e&&(uc(e)||jt(e))&&jt(e.then)&&jt(e.catch),X={isArray:un,isArrayBuffer:DC,isBuffer:zVe,isFormData:UVe,isArrayBufferView:PVe,isString:RVe,isNumber:jC,isBoolean:DVe,isObject:uc,isPlainObject:fc,isUndefined:Ys,isDate:jVe,isFile:LVe,isBlob:vVe,isRegExp:nIe,isFunction:jt,isStream:HVe,isURLSearchParams:GVe,isTypedArray:QVe,isFileList:MVe,forEach:Ks,merge:cy,extend:qVe,trim:WVe,stripBOM:JVe,inherits:XVe,toFlatObject:ZVe,kindOf:gc,kindOfTest:Ca,endsWith:YVe,toArray:KVe,forEachEntry:eIe,matchAll:tIe,isHTMLForm:aIe,hasOwnProperty:HC,hasOwnProp:HC,reduceDescriptors:UC,freezeMethods:sIe,toObjectSet:iIe,toCamelCase:oIe,noop:rIe,toFiniteNumber:lIe,findKey:LC,global:vC,isContextDefined:MC,ALPHABET:WC,generateString:cIe,isSpecCompliantForm:dIe,toJSONObject:mIe,isAsyncFn:pIe,isThenable:hIe};function Ne(e,a,o,n,s){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),n&&(this.request=n),s&&(this.response=s)}X.inherits(Ne,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:X.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const qC=Ne.prototype,JC={};["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=>{JC[e]={value:e}}),Object.defineProperties(Ne,JC),Object.defineProperty(qC,"isAxiosError",{value:!0}),Ne.from=(e,a,o,n,s,i)=>{const r=Object.create(qC);return X.toFlatObject(e,r,function(c){return c!==Error.prototype},c=>c!=="isAxiosError"),Ne.call(r,e.message,a,o,n,s),r.cause=e,r.name=e.name,i&&Object.assign(r,i),r};const gIe=null;function my(e){return X.isPlainObject(e)||X.isArray(e)}function XC(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function ZC(e,a,o){return e?e.concat(a).map(function(n,s){return n=XC(n),!o&&s?"["+n+"]":n}).join(o?".":""):a}function yIe(e){return X.isArray(e)&&!e.some(my)}const uIe=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});function _c(e,a,o){if(!X.isObject(e))throw new TypeError("target must be an object");a=a||new FormData,o=X.toFlatObject(o,{metaTokens:!0,dots:!1,indexes:!1},!1,function(m,g){return!X.isUndefined(g[m])});const n=o.metaTokens,s=o.visitor||d,i=o.dots,r=o.indexes,c=(o.Blob||typeof Blob<"u"&&Blob)&&X.isSpecCompliantForm(a);if(!X.isFunction(s))throw new TypeError("visitor must be a function");function h(m){if(m===null)return"";if(X.isDate(m))return m.toISOString();if(!c&&X.isBlob(m))throw new Ne("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(m)||X.isTypedArray(m)?c&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function d(m,g,u){let f=m;if(m&&!u&&typeof m=="object"){if(X.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(X.isArray(m)&&yIe(m)||(X.isFileList(m)||X.endsWith(g,"[]"))&&(f=X.toArray(m)))return g=XC(g),f.forEach(function(_,k){!(X.isUndefined(_)||_===null)&&a.append(r===!0?ZC([g],k,i):r===null?g:g+"[]",h(_))}),!1}return my(m)?!0:(a.append(ZC(u,g,i),h(m)),!1)}const l=[],p=Object.assign(uIe,{defaultVisitor:d,convertValue:h,isVisitable:my});function y(m,g){if(!X.isUndefined(m)){if(l.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));l.push(m),X.forEach(m,function(u,f){(!(X.isUndefined(u)||u===null)&&s.call(a,u,X.isString(f)?f.trim():f,g,p))===!0&&y(u,g?g.concat(f):[f])}),l.pop()}}if(!X.isObject(e))throw new TypeError("data must be an object");return y(e),a}function YC(e){const a={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(o){return a[o]})}function py(e,a){this._pairs=[],e&&_c(e,this,a)}const KC=py.prototype;KC.append=function(e,a){this._pairs.push([e,a])},KC.toString=function(e){const a=e?function(o){return e.call(this,o,YC)}:YC;return this._pairs.map(function(o){return a(o[0])+"="+a(o[1])},"").join("&")};function fIe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function QC(e,a,o){if(!a)return e;const n=o&&o.encode||fIe,s=o&&o.serialize;let i;if(s?i=s(a,o):i=X.isURLSearchParams(a)?a.toString():new py(a,o).toString(n),i){const r=e.indexOf("#");r!==-1&&(e=e.slice(0,r)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class _Ie{constructor(){this.handlers=[]}use(a,o,n){return this.handlers.push({fulfilled:a,rejected:o,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(a){this.handlers[a]&&(this.handlers[a]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(a){X.forEach(this.handlers,function(o){o!==null&&a(o)})}}const e6=_Ie,t6={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},bIe=typeof URLSearchParams<"u"?URLSearchParams:py,wIe=typeof FormData<"u"?FormData:null,CIe=typeof Blob<"u"?Blob:null,kIe=(()=>{let e;return typeof navigator<"u"&&((e=navigator.product)==="ReactNative"||e==="NativeScript"||e==="NS")?!1:typeof window<"u"&&typeof document<"u"})(),SIe=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),ka={isBrowser:!0,classes:{URLSearchParams:bIe,FormData:wIe,Blob:CIe},isStandardBrowserEnv:kIe,isStandardBrowserWebWorkerEnv:SIe,protocols:["http","https","file","blob","url","data"]};function EIe(e,a){return _c(e,new ka.classes.URLSearchParams,Object.assign({visitor:function(o,n,s,i){return ka.isNode&&X.isBuffer(o)?(this.append(n,o.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)}},a))}function NIe(e){return X.matchAll(/\w+|\[(\w*)]/g,e).map(a=>a[0]==="[]"?"":a[1]||a[0])}function xIe(e){const a={},o=Object.keys(e);let n;const s=o.length;let i;for(n=0;n<s;n++)i=o[n],a[i]=e[i];return a}function a6(e){function a(o,n,s,i){let r=o[i++];const c=Number.isFinite(+r),h=i>=o.length;return r=!r&&X.isArray(s)?s.length:r,h?(X.hasOwnProp(s,r)?s[r]=[s[r],n]:s[r]=n,!c):((!s[r]||!X.isObject(s[r]))&&(s[r]=[]),a(o,n,s[r],i)&&X.isArray(s[r])&&(s[r]=xIe(s[r])),!c)}if(X.isFormData(e)&&X.isFunction(e.entries)){const o={};return X.forEachEntry(e,(n,s)=>{a(NIe(n),s,o,0)}),o}return null}function BIe(e,a,o){if(X.isString(e))try{return(a||JSON.parse)(e),X.trim(e)}catch(n){if(n.name!=="SyntaxError")throw n}return(o||JSON.stringify)(e)}const hy={transitional:t6,adapter:["xhr","http"],transformRequest:[function(e,a){const o=a.getContentType()||"",n=o.indexOf("application/json")>-1,s=X.isObject(e);if(s&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return n&&n?JSON.stringify(a6(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let i;if(s){if(o.indexOf("application/x-www-form-urlencoded")>-1)return EIe(e,this.formSerializer).toString();if((i=X.isFileList(e))||o.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return _c(i?{"files[]":e}:e,r&&new r,this.formSerializer)}}return s||n?(a.setContentType("application/json",!1),BIe(e)):e}],transformResponse:[function(e){const a=this.transitional||hy.transitional,o=a&&a.forcedJSONParsing,n=this.responseType==="json";if(e&&X.isString(e)&&(o&&!this.responseType||n)){const s=!(a&&a.silentJSONParsing)&&n;try{return JSON.parse(e)}catch(i){if(s)throw i.name==="SyntaxError"?Ne.from(i,Ne.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:ka.classes.FormData,Blob:ka.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{hy.headers[e]={}});const gy=hy,$Ie=X.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"]),VIe=e=>{const a={};let o,n,s;return e&&e.split(`
|
|
103
103
|
`).forEach(function(i){s=i.indexOf(":"),o=i.substring(0,s).trim().toLowerCase(),n=i.substring(s+1).trim(),!(!o||a[o]&&$Ie[o])&&(o==="set-cookie"?a[o]?a[o].push(n):a[o]=[n]:a[o]=a[o]?a[o]+", "+n:n)}),a},o6=Symbol("internals");function Qs(e){return e&&String(e).trim().toLowerCase()}function bc(e){return e===!1||e==null?e:X.isArray(e)?e.map(bc):String(e)}function IIe(e){const a=Object.create(null),o=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=o.exec(e);)a[n[1]]=n[2];return a}const AIe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function yy(e,a,o,n,s){if(X.isFunction(n))return n.call(this,a,o);if(s&&(a=o),!!X.isString(a)){if(X.isString(n))return a.indexOf(n)!==-1;if(X.isRegExp(n))return n.test(a)}}function OIe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,o,n)=>o.toUpperCase()+n)}function TIe(e,a){const o=X.toCamelCase(" "+a);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+o,{value:function(s,i,r){return this[n].call(this,a,s,i,r)},configurable:!0})})}let wc=class{constructor(a){a&&this.set(a)}set(a,o,n){const s=this;function i(c,h,d){const l=Qs(h);if(!l)throw new Error("header name must be a non-empty string");const p=X.findKey(s,l);(!p||s[p]===void 0||d===!0||d===void 0&&s[p]!==!1)&&(s[p||h]=bc(c))}const r=(c,h)=>X.forEach(c,(d,l)=>i(d,l,h));return X.isPlainObject(a)||a instanceof this.constructor?r(a,o):X.isString(a)&&(a=a.trim())&&!AIe(a)?r(VIe(a),o):a!=null&&i(o,a,n),this}get(a,o){if(a=Qs(a),a){const n=X.findKey(this,a);if(n){const s=this[n];if(!o)return s;if(o===!0)return IIe(s);if(X.isFunction(o))return o.call(this,s,n);if(X.isRegExp(o))return o.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,o){if(a=Qs(a),a){const n=X.findKey(this,a);return!!(n&&this[n]!==void 0&&(!o||yy(this,this[n],n,o)))}return!1}delete(a,o){const n=this;let s=!1;function i(r){if(r=Qs(r),r){const c=X.findKey(n,r);c&&(!o||yy(n,n[c],c,o))&&(delete n[c],s=!0)}}return X.isArray(a)?a.forEach(i):i(a),s}clear(a){const o=Object.keys(this);let n=o.length,s=!1;for(;n--;){const i=o[n];(!a||yy(this,this[i],i,a,!0))&&(delete this[i],s=!0)}return s}normalize(a){const o=this,n={};return X.forEach(this,(s,i)=>{const r=X.findKey(n,i);if(r){o[r]=bc(s),delete o[i];return}const c=a?OIe(i):String(i).trim();c!==i&&delete o[i],o[c]=bc(s),n[c]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const o=Object.create(null);return X.forEach(this,(n,s)=>{n!=null&&n!==!1&&(o[s]=a&&X.isArray(n)?n.join(", "):n)}),o}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,o])=>a+": "+o).join(`
|
|
104
104
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...o){const n=new this(a);return o.forEach(s=>n.set(s)),n}static accessor(a){const o=(this[o6]=this[o6]={accessors:{}}).accessors,n=this.prototype;function s(i){const r=Qs(i);o[r]||(TIe(n,i),o[r]=!0)}return X.isArray(a)?a.forEach(s):s(a),this}};wc.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(wc.prototype,({value:e},a)=>{let o=a[0].toUpperCase()+a.slice(1);return{get:()=>e,set(n){this[o]=n}}}),X.freezeMethods(wc);const La=wc;function uy(e,a){const o=this||gy,n=a||o,s=La.from(n.headers);let i=n.data;return X.forEach(e,function(r){i=r.call(o,i,s.normalize(),a?a.status:void 0)}),s.normalize(),i}function n6(e){return!!(e&&e.__CANCEL__)}function ei(e,a,o){Ne.call(this,e??"canceled",Ne.ERR_CANCELED,a,o),this.name="CanceledError"}X.inherits(ei,Ne,{__CANCEL__:!0});function FIe(e,a,o){const n=o.config.validateStatus;!o.status||!n||n(o.status)?e(o):a(new Ne("Request failed with status code "+o.status,[Ne.ERR_BAD_REQUEST,Ne.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))}const zIe=ka.isStandardBrowserEnv?function(){return{write:function(e,a,o,n,s,i){const r=[];r.push(e+"="+encodeURIComponent(a)),X.isNumber(o)&&r.push("expires="+new Date(o).toGMTString()),X.isString(n)&&r.push("path="+n),X.isString(s)&&r.push("domain="+s),i===!0&&r.push("secure"),document.cookie=r.join("; ")},read:function(e){const a=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}();function PIe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function RIe(e,a){return a?e.replace(/\/+$/,"")+"/"+a.replace(/^\/+/,""):e}function s6(e,a){return e&&!PIe(a)?RIe(e,a):a}const DIe=ka.isStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),a=document.createElement("a");let o;function n(s){let i=s;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=n(window.location.href),function(s){const i=X.isString(s)?n(s):s;return i.protocol===o.protocol&&i.host===o.host}}():function(){return function(){return!0}}();function jIe(e){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return a&&a[1]||""}function LIe(e,a){e=e||10;const o=new Array(e),n=new Array(e);let s=0,i=0,r;return a=a!==void 0?a:1e3,function(c){const h=Date.now(),d=n[i];r||(r=h),o[s]=c,n[s]=h;let l=i,p=0;for(;l!==s;)p+=o[l++],l=l%e;if(s=(s+1)%e,s===i&&(i=(i+1)%e),h-r<a)return;const y=d&&h-d;return y?Math.round(p*1e3/y):void 0}}function i6(e,a){let o=0;const n=LIe(50,250);return s=>{const i=s.loaded,r=s.lengthComputable?s.total:void 0,c=i-o,h=n(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:s};l[a?"download":"upload"]=!0,e(l)}}const vIe=typeof XMLHttpRequest<"u",MIe=vIe&&function(e){return new Promise(function(a,o){let n=e.data;const s=La.from(e.headers).normalize(),i=e.responseType;let r;function c(){e.cancelToken&&e.cancelToken.unsubscribe(r),e.signal&&e.signal.removeEventListener("abort",r)}let h;X.isFormData(n)&&(ka.isStandardBrowserEnv||ka.isStandardBrowserWebWorkerEnv?s.setContentType(!1):s.getContentType(/^\s*multipart\/form-data/)?X.isString(h=s.getContentType())&&s.setContentType(h.replace(/^\s*(multipart\/form-data);+/,"$1")):s.setContentType("multipart/form-data"));let d=new XMLHttpRequest;if(e.auth){const m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";s.set("Authorization","Basic "+btoa(m+":"+g))}const l=s6(e.baseURL,e.url);d.open(e.method.toUpperCase(),QC(l,e.params,e.paramsSerializer),!0),d.timeout=e.timeout;function p(){if(!d)return;const m=La.from("getAllResponseHeaders"in d&&d.getAllResponseHeaders()),g={data:!i||i==="text"||i==="json"?d.responseText:d.response,status:d.status,statusText:d.statusText,headers:m,config:e,request:d};FIe(function(u){a(u),c()},function(u){o(u),c()},g),d=null}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){d&&(o(new Ne("Request aborted",Ne.ECONNABORTED,e,d)),d=null)},d.onerror=function(){o(new Ne("Network Error",Ne.ERR_NETWORK,e,d)),d=null},d.ontimeout=function(){let m=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const g=e.transitional||t6;e.timeoutErrorMessage&&(m=e.timeoutErrorMessage),o(new Ne(m,g.clarifyTimeoutError?Ne.ETIMEDOUT:Ne.ECONNABORTED,e,d)),d=null},ka.isStandardBrowserEnv){const m=(e.withCredentials||DIe(l))&&e.xsrfCookieName&&zIe.read(e.xsrfCookieName);m&&s.set(e.xsrfHeaderName,m)}n===void 0&&s.setContentType(null),"setRequestHeader"in d&&X.forEach(s.toJSON(),function(m,g){d.setRequestHeader(g,m)}),X.isUndefined(e.withCredentials)||(d.withCredentials=!!e.withCredentials),i&&i!=="json"&&(d.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&d.addEventListener("progress",i6(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",i6(e.onUploadProgress)),(e.cancelToken||e.signal)&&(r=m=>{d&&(o(!m||m.type?new ei(null,e,d):m),d.abort(),d=null)},e.cancelToken&&e.cancelToken.subscribe(r),e.signal&&(e.signal.aborted?r():e.signal.addEventListener("abort",r)));const y=jIe(l);if(y&&ka.protocols.indexOf(y)===-1){o(new Ne("Unsupported protocol "+y+":",Ne.ERR_BAD_REQUEST,e));return}d.send(n||null)})},fy={http:gIe,xhr:MIe};X.forEach(fy,(e,a)=>{if(e){try{Object.defineProperty(e,"name",{value:a})}catch{}Object.defineProperty(e,"adapterName",{value:a})}});const r6=e=>`- ${e}`,HIe=e=>X.isFunction(e)||e===null||e===!1,l6={getAdapter:e=>{e=X.isArray(e)?e:[e];const{length:a}=e;let o,n;const s={};for(let i=0;i<a;i++){o=e[i];let r;if(n=o,!HIe(o)&&(n=fy[(r=String(o)).toLowerCase()],n===void 0))throw new Ne(`Unknown adapter '${r}'`);if(n)break;s[r||"#"+i]=n}if(!n){const i=Object.entries(s).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 :
|
|
105
105
|
`+i.map(r6).join(`
|