@golstats/gsc-lineups-reports 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
* Vue 3 Carousel 0.3.1
|
|
11
11
|
* (c) 2023
|
|
12
12
|
* @license MIT
|
|
13
|
-
*/const H={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},zi={itemsToShow:{default:H.itemsToShow,type:Number},itemsToScroll:{default:H.itemsToScroll,type:Number},wrapAround:{default:H.wrapAround,type:Boolean},throttle:{default:H.throttle,type:Number},snapAlign:{default:H.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:H.transition,type:Number},breakpoints:{default:H.breakpoints,type:Object},autoplay:{default:H.autoplay,type:Number},pauseAutoplayOnHover:{default:H.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:H.mouseDrag,type:Boolean},touchDrag:{default:H.touchDrag,type:Boolean},dir:{default:H.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:H.i18n,type:Object},settings:{default(){return{}},type:Object}};function ro({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function lo({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function Ct({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function co({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:Ct({val:r,max:s-o,min:0})}function Di(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Di(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function kt({val:t,max:i,min:s=0}){return t>i?kt({val:t-(i+1),max:i,min:s}):t<s?kt({val:t+(i+1),max:i,min:s}):t}function mo(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function ho(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function po(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var fo=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},H))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},po(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),go=e.defineComponent({name:"Carousel",props:zi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),l=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},H));let p=Object.assign({},H),_;const c=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),g=e.ref(0),u=e.ref(0),m=e.ref(0);let k,T;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",c),e.provide("maxSlide",u),e.provide("minSlide",m),e.provide("slideWidth",l);function y(){_=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),w(p)}function d(){if(!_||!Object.keys(_).length)return;const O=Object.keys(_).map(L=>Number(L)).sort((L,re)=>+re-+L);let x=Object.assign({},p);O.some(L=>{const re=window.matchMedia(`(min-width: ${L}px)`).matches;return re&&(x=Object.assign(Object.assign({},x),_[L])),re}),w(x)}function w(O){Object.entries(O).forEach(([x,L])=>f[x]=L)}const E=ho(()=>{d(),R()},16);function R(){if(!o.value)return;const O=o.value.getBoundingClientRect();l.value=O.width/f.itemsToShow}function V(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=ro({config:f,slidesCount:h.value}),m.value=lo({config:f,slidesCount:h.value}),f.wrapAround||(c.value=Ct({val:c.value,max:u.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>R()),setTimeout(()=>R(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{T&&clearTimeout(T),k&&clearInterval(k),window.removeEventListener("resize",E,{passive:!0})});let A=!1;const Y={x:0,y:0},ae={x:0,y:0},D=e.reactive({x:0,y:0}),U=e.ref(!1),M=e.ref(!1),ye=()=>{U.value=!0},j=()=>{U.value=!1};function G(O){["INPUT","TEXTAREA","SELECT"].includes(O.target.tagName)||(A=O.type==="touchstart",A||O.preventDefault(),!(!A&&O.button!==0||K.value)&&(Y.x=A?O.touches[0].clientX:O.clientX,Y.y=A?O.touches[0].clientY:O.clientY,document.addEventListener(A?"touchmove":"mousemove",q,!0),document.addEventListener(A?"touchend":"mouseup",S,!0)))}const q=mo(O=>{M.value=!0,ae.x=A?O.touches[0].clientX:O.clientX,ae.y=A?O.touches[0].clientY:O.clientY;const x=ae.x-Y.x,L=ae.y-Y.y;D.y=L,D.x=x},f.throttle);function S(){const O=f.dir==="rtl"?-1:1,x=Math.sign(D.x)*.4,L=Math.round(D.x/l.value+x)*O;if(L&&!A){const re=Tt=>{Tt.stopPropagation(),window.removeEventListener("click",re,!0)};window.addEventListener("click",re,!0)}te(c.value-L),D.x=0,D.y=0,M.value=!1,document.removeEventListener(A?"touchmove":"mousemove",q,!0),document.removeEventListener(A?"touchend":"mouseup",S,!0)}function I(){!f.autoplay||f.autoplay<=0||(k=setInterval(()=>{f.pauseAutoplayOnHover&&U.value||oe()},f.autoplay))}function F(){k&&(clearInterval(k),k=null),I()}const K=e.ref(!1);function te(O){const x=f.wrapAround?O:Ct({val:O,max:u.value,min:m.value});c.value===x||K.value||(s("slide-start",{slidingToIndex:O,currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:h.value}),K.value=!0,C.value=c.value,c.value=x,T=setTimeout(()=>{if(f.wrapAround){const L=kt({val:x,max:u.value,min:0});L!==c.value&&(c.value=L,s("loop",{currentSlideIndex:c.value,slidingToIndex:O}))}s("update:modelValue",c.value),s("slide-end",{currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:h.value}),K.value=!1,F()},f.transition))}function oe(){te(c.value+f.itemsToScroll)}function _e(){te(c.value-f.itemsToScroll)}const Yi={slideTo:te,next:oe,prev:_e};e.provide("nav",Yi),e.provide("isSliding",K);const Ki=e.computed(()=>co({config:f,currentSlide:c.value,slidesCount:h.value}));e.provide("slidesToScroll",Ki);const bc=e.computed(()=>{const O=f.dir==="rtl"?-1:1,x=Ki.value*l.value*O;return{transform:`translateX(${D.x-x}px)`,transition:`${K.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*l.value}px`:"",width:"100%"}});function Zi(){y(),d(),V(),R(),F()}Object.keys(zi).forEach(O=>{["modelValue"].includes(O)||e.watch(()=>t[O],Zi)}),e.watch(()=>t.modelValue,O=>{O!==c.value&&te(Number(O))}),e.watch(h,V),s("before-init"),y();const Qi={config:f,slidesCount:h,slideWidth:l,next:oe,prev:_e,slideTo:te,currentSlide:c,maxSlide:u,minSlide:m,middleSlide:g};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:R,initDefaultConfigs:y,restartCarousel:Zi,slideTo:te,next:oe,prev:_e,nav:Yi,data:Qi});const vi=i.default||i.slides,es=i.addons,ts=e.reactive(Qi);return()=>{const O=Di(vi==null?void 0:vi(ts)),x=(es==null?void 0:es(ts))||[];O.forEach((Ot,$t)=>Ot.props.index=$t);let L=O;if(f.wrapAround){const Ot=O.map((Ft,Ne)=>e.cloneVNode(Ft,{index:-O.length+Ne,isClone:!0,key:`clone-before-${Ne}`})),$t=O.map((Ft,Ne)=>e.cloneVNode(Ft,{index:O.length+Ne,isClone:!0,key:`clone-after-${Ne}`}));L=[...Ot,...O,...$t]}r.value=O,h.value=Math.max(O.length,1);const re=e.h("ol",{class:"carousel__track",style:bc.value,onMousedownCapture:f.mouseDrag?G:null,onTouchstartPassiveCapture:f.touchDrag?G:null},L),Tt=e.h("div",{class:"carousel__viewport"},re);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":K.value,"is-dragging":M.value,"is-hover":U.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:ye,onMouseleave:j},[Tt,x,e.h(fo)])}}}),Ai;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Ai||(Ai={}));var uo=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},H))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,l=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),_=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=_};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const yo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},_o=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),bo={class:"gsc-carousel"},wo={key:0},Co=_o(()=>e.createElementVNode("div",null,"no hay",-1)),ko=[Co],So={class:"gsc-carousel__2d__slides"},Eo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Io=["fill"],Vo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},No=["fill"],To={class:"gsc-carousel__2d__navigation"},Oo={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o=["stroke"],Fo={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bo=["onClick"],Ro={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zo=["stroke"],Do={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:s}){const a=t;e.useCssVars(u=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),l=e.ref(!1);e.watch(n,u=>{u&&l.value?(l.value=!1,h(a.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,u=>{r.value!==u&&c(u)}),e.watch(()=>a.defaultItemByIndex,u=>{r.value!==u&&c(u)}),e.watch(()=>a.items,u=>{n.value?h(u):l.value=!0},{immediate:!0});function h(u){u&&u.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(k=>k[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=u[m]):(r.value=0,o.value=u[0])}else r.value=a.defaultItemByIndex,o.value=u[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function _(){n.value&&n.value.updateSlideWidth()}function c(u){n.value&&n.value.slideTo(u)}function C(u){n.value.slideTo(u)}function g(u){const m=u.slidingToIndex<0?a.items.length-1:u.slidingToIndex===a.items.length?0:u.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:_,slideTo:c}),(u,m)=>(e.openBlock(),e.createElementBlock("div",bo,[a.is3d?(e.openBlock(),e.createElementBlock("div",wo,ko)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",So,[e.createVNode(e.unref(go),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,T)=>(e.openBlock(),e.createBlock(e.unref(uo),{key:T},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{item:k},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=k=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Eo,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:t.arrowsColor},null,8,Io)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=k=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Vo,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:t.arrowsColor},null,8,No)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",To,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=k=>p())},[(e.openBlock(),e.createElementBlock("svg",Oo,[e.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:a.arrowsColor},null,8,$o)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,T)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${T}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===T?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===T?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:y=>C(T)},null,12,Bo))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=k=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Ro,[e.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:a.arrowsColor},null,8,zo)]))])):e.createCommentVNode("",!0)])],2))]))}},St=yo(Do,[["__scopeId","data-v-54620d25"]]);function Ao(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const Mo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Et={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Mi=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Ui=Et.setup;Et.setup=Ui?(t,i)=>(Mi(),Ui(t,i)):Mi;const Uo={ref:"gscScrollableContainer",class:"scrollable-container"},Po={class:"scrollable-arrows"},Lo=["width","height","viewBox"],jo=["stroke"],Ho={class:"scrollable-wrapper"},xo={class:"scrollable-arrows"},Wo=["width","height","viewBox"],qo=["stroke"];function Go(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Uo,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",Po,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,jo)],8,Lo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",Ho,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",xo,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,qo)],8,Wo))])],2)):e.createCommentVNode("",!0)],512)}const Xo=Mo(Et,[["render",Go],["__scopeId","data-v-b548a08d"]]),Jo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},It={components:{GSCSlider:Xo},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Ao(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Pi=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},Li=It.setup;It.setup=Li?(t,i)=>(Pi(),Li(t,i)):Pi;const Yo={ref:"myDivRef"},Ko={key:0,class:"gs-switch-container"},Zo=["onClick"],Qo={key:1,class:"gs-switch-container-type"},vo=["onClick"],er={key:2,class:"gs-switch-container-carousel"},tr=["onClick"];function ir(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",Yo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,Zo))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,vo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",er,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,tr))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):e.createCommentVNode("",!0)],512)}const Ge=Jo(It,[["render",ir],["__scopeId","data-v-8a86dfaf"]]),sr={selectoritem:"_selectoritem_1nisl_69",selectoritem2:"_selectoritem2_1nisl_79",gscheaderlineup:"_gscheaderlineup_1nisl_89",anNoEstn:"_anNoEstn_1nisl_96",groupsLeague:"_groupsLeague_1nisl_99",jugadores:"_jugadores_1nisl_105",switchOption:"_switchOption_1nisl_110",jugadores1:"_jugadores1_1nisl_120",switchOption1:"_switchOption1_1nisl_125",switchStatesBig:"_switchStatesBig_1nisl_133",groupsLeagueParent:"_groupsLeagueParent_1nisl_142",imgHomeTeamIcon:"_imgHomeTeamIcon_1nisl_151",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1nisl_157",teamContainer:"_teamContainer_1nisl_169",name:"_name_1nisl_181",homeTeamContainer:"_homeTeamContainer_1nisl_187",div:"_div_1nisl_197",scoreContainer:"_scoreContainer_1nisl_201",scoreContainerWrapper:"_scoreContainerWrapper_1nisl_211",teamContainer1:"_teamContainer1_1nisl_224",awayTeamContainer:"_awayTeamContainer_1nisl_236",matchContainer:"_matchContainer_1nisl_246",sliderMatchesChild:"_sliderMatchesChild_1nisl_255",manchesterUnited:"_manchesterUnited_1nisl_261",sliderMatchesItem:"_sliderMatchesItem_1nisl_267",sliderMatches:"_sliderMatches_1nisl_255",sortIcon:"_sortIcon_1nisl_285",filtros:"_filtros_1nisl_292",sortParent:"_sortParent_1nisl_300",shapeIcon:"_shapeIcon_1nisl_307",btnFilter:"_btnFilter_1nisl_312",btnFilter1:"_btnFilter1_1nisl_326",btnFilterParent:"_btnFilterParent_1nisl_340",backArrowIcon:"_backArrowIcon_1nisl_348",teamContainer2:"_teamContainer2_1nisl_354",homeTeam:"_homeTeam_1nisl_187",div4:"_div4_1nisl_368",finalScore:"_finalScore_1nisl_373",manchesterUnited1:"_manchesterUnited1_1nisl_386",scoreContainer1:"_scoreContainer1_1nisl_393",match:"_match_1nisl_246",manchesterUnited2:"_manchesterUnited2_1nisl_411",btnDetails:"_btnDetails_1nisl_416",matchContainer1:"_matchContainer1_1nisl_426",goalChild:"_goalChild_1nisl_434",goal:"_goal_1nisl_434",manchesterUnited3:"_manchesterUnited3_1nisl_447",minuteEvent:"_minuteEvent_1nisl_454",yellowCard:"_yellowCard_1nisl_461",awayTeamEvents:"_awayTeamEvents_1nisl_468",rectangle:"_rectangle_1nisl_475",homeTeamEvents:"_homeTeamEvents_1nisl_482",totalEvents:"_totalEvents_1nisl_490",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1nisl_498",switchOption3:"_switchOption3_1nisl_509",switchOption4:"_switchOption4_1nisl_521",switchStatesBig1:"_switchStatesBig1_1nisl_531",manchesterUnited13:"_manchesterUnited13_1nisl_538",homeTeamContainer1:"_homeTeamContainer1_1nisl_543",scoreContainer2:"_scoreContainer2_1nisl_550",matchContainer2:"_matchContainer2_1nisl_564",manchesterUnited14:"_manchesterUnited14_1nisl_574",sliderMatchesInner:"_sliderMatchesInner_1nisl_581",rectangleIcon:"_rectangleIcon_1nisl_591",sliderMatches1:"_sliderMatches1_1nisl_601",containerData:"_containerData_1nisl_609",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1nisl_623",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1nisl_498",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1nisl_647",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1nisl_650",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1nisl_654"},ar={components:{GSCCarousel:St,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:B,changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},nr=["src"],or=["src"],rr=["src"],lr=["src"],cr=["src"],dr=["src"];function mr(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,nr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,or)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,rr)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,lr)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,cr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,dr)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const hr=ne(ar,[["render",mr],["__cssModules",{$style:sr}]]),pr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Vt={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ji=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hi=Vt.setup;Vt.setup=Hi?(t,i)=>(ji(),Hi(t,i)):ji;const fr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),gr=["src"],ur={key:1,class:"text"},yr=["src"],_r={class:"stats"},br=fr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),wr={class:"numstats"},Cr={class:"leyend"};function kr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,gr)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",ur,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,yr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",_r,[br,e.createElementVNode("div",wr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",Cr,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const Sr=pr(Vt,[["render",kr],["__scopeId","data-v-f3ee6b2b"]]),Er={class:"gsc-dropdown__main-container__item-selected"},Ir=["height","width"],Vr=["stroke"],Nr={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tr=["fill"],Or={class:"gsc-dropdown__items-container"},$r=["onClick"],Fr={key:0,class:"gsc-dropdown__items-footer"},xi={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,g)=>{if(!s.modelValue&&(!s.onlyFirstTime||!g||!g.length)&&C&&C.length){if(s.defaultItemByProp){const u=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);u!==-1?(o.value=u,a.value=C[u]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const g=s.items.findIndex(u=>typeof C=="object"?JSON.stringify(u)===JSON.stringify(C):u===C);g!==-1&&(o.value=g,a.value=s.items[g],i("update:modelValue",a.value))}},{immediate:!0});const l=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function _(C,g){s.isMultipleOption?o.value=-1:(o.value=g,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function c(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",Er,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,Vr)],8,Ir)):(e.openBlock(),e.createElementBlock("svg",Nr,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,Tr)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Or,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(u,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:k=>_(u,m)},[e.renderSlot(C.$slots,"availableItem",{item:u})],10,$r)),[[e.vShow,!u.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(e.unref(Sr),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:c})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},Br=["for"],Rr=["name"],zr={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,Br)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)])],8,Rr)):(e.openBlock(),e.createElementBlock("svg",zr,[...n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))]))}},Dr=["value"],Ar={class:"filter-modal__padding"},Mr={class:"filter-modal__content-header"},Ur={class:"filter-modal__content-options"},Pr=["onClick"],Lr={class:"filter-modal__content-header"},jr={class:"filter-modal__content-options"},Hr=["onClick"],xr=ne({__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({v62819590:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,l=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),_=e.ref(!0),c=e.ref(!0),C=e.ref(["local","visit"]),g=e.ref(["win","draw","lose"]),u=()=>{o.value.focus(),l.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(g.value)),f.value=_.value,p.value=c.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,g.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&k()});const m=(d,w)=>{let E;w==="team"?E=C.value:E=g.value;const R=E.findIndex(V=>V===d);R==-1?E.push(d):w=="team"&&C.value.length==2?E.splice(R,1):(w=="team"&&E.push(d),g.value.length>1&&E.splice(R,1)),_.value=C.value.length==2,c.value=g.value.length==3},k=()=>{C.value=["local","visit"],g.value=["win","draw","lose"],_.value=!0,c.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})},T=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})},y=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})};return(d,w)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:u},[w[5]||(w[5]=e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-54105a29><g id="vuesax/outline/sort" data-v-54105a29><g id="sort" data-v-54105a29><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-54105a29></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-54105a29></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-54105a29></path></g></g></svg>',1)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Dr),w[6]||(w[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:w[4]||(w[4]=E=>{t.isOpen=!1,y()})},[e.createElementVNode("div",Ar,[e.createElementVNode("div",Mr,[w[7]||(w[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(Wi,{modelValue:_.value,"onUpdate:modelValue":[w[0]||(w[0]=E=>_.value=E),w[1]||(w[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Ur,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:R=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,Pr)),64))]),e.createElementVNode("div",Lr,[w[8]||(w[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(Wi,{modelValue:c.value,"onUpdate:modelValue":[w[2]||(w[2]=E=>c.value=E),w[3]||(w[3]=E=>E&&(g.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",jr,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:R=>m(E.id,"player"),class:e.normalizeClass({active:g.value.includes(E.id)})},e.toDisplayString(E.name),11,Hr)),64))])]),w[9]||(w[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:k},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:T},"Listo")])],34)],4))}},[["__scopeId","data-v-54105a29"]]),Wr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},qr={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gr={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Wr,[...s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)])])):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",qr,[...s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)])])):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Gr,[...s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)])])):e.createCommentVNode("",!0)}},Xr={class:"match-details"},Jr={class:"match-details__list"},Yr={class:"match-details__list right"},Kr=ne({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",Xr,[e.createElementVNode("ul",Jr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(qi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",Yr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(qi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-de53a54c"]]),Zr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Nt={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Gi=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Xi=Nt.setup;Nt.setup=Xi?(t,i)=>(Gi(),Xi(t,i)):Gi;const Qr={key:0,class:"text-left"},vr=["width","src"],el=["checked"],tl=["width","src"],il={key:3,class:"text-right"};function sl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Qr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,vr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,el),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,tl)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",il,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const al=Zr(Nt,[["render",sl],["__scopeId","data-v-e2a20444"]]),nl={containernofoundsearchrecientes:"_containernofoundsearchrecientes_90ydj_80","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_90ydj_86","btn-delete-filters":"_btn-delete-filters_90ydj_92",btndeletefilters:"_btndeletefilters_90ydj_108",leyenddeleteshow:"_leyenddeleteshow_90ydj_124",selectoritem:"_selectoritem_90ydj_131",anNoEstn:"_anNoEstn_90ydj_140",groupsLeague:"_groupsLeague_90ydj_144",historicas:"_historicas_90ydj_149",switchOption:"_switchOption_90ydj_155",recientes:"_recientes_90ydj_166",switchOption1:"_switchOption1_90ydj_172",switchOption2:"_switchOption2_90ydj_185",switchStatesBig:"_switchStatesBig_90ydj_194",groupsLeagueParent:"_groupsLeagueParent_90ydj_204",imgHomeTeamIcon:"_imgHomeTeamIcon_90ydj_214",imgHomeTeamWrapper:"_imgHomeTeamWrapper_90ydj_221",teamContainer:"_teamContainer_90ydj_234",name:"_name_90ydj_247",homeTeamContainer:"_homeTeamContainer_90ydj_254",div:"_div_90ydj_265",scoreContainer:"_scoreContainer_90ydj_270",scoreContainerWrapper:"_scoreContainerWrapper_90ydj_281",teamContainer1:"_teamContainer1_90ydj_294",awayTeamContainer:"_awayTeamContainer_90ydj_307",matchContainer:"_matchContainer_90ydj_318",sliderMatchesChild:"_sliderMatchesChild_90ydj_328",manchesterUnited:"_manchesterUnited_90ydj_335",sliderMatchesItem:"_sliderMatchesItem_90ydj_342",sliderMatches:"_sliderMatches_90ydj_328",sortIcon:"_sortIcon_90ydj_360",filtros:"_filtros_90ydj_368",sortParent:"_sortParent_90ydj_377",shapeIcon:"_shapeIcon_90ydj_385",btnFilter:"_btnFilter_90ydj_391",btnFilter1:"_btnFilter1_90ydj_407",btnFilterParent:"_btnFilterParent_90ydj_422",backArrowIcon:"_backArrowIcon_90ydj_431",teamContainer2:"_teamContainer2_90ydj_438",homeTeam:"_homeTeam_90ydj_254",div4:"_div4_90ydj_454",finalScore:"_finalScore_90ydj_460",manchesterUnited1:"_manchesterUnited1_90ydj_474",scoreContainer1:"_scoreContainer1_90ydj_482",match:"_match_90ydj_318",manchesterUnited2:"_manchesterUnited2_90ydj_499",btnDetails:"_btnDetails_90ydj_512",matchContainer1:"_matchContainer1_90ydj_523",goalChild:"_goalChild_90ydj_532",goal:"_goal_90ydj_532",manchesterUnited3:"_manchesterUnited3_90ydj_547",minuteEvent:"_minuteEvent_90ydj_555",yellowCard:"_yellowCard_90ydj_563",awayTeamEvents:"_awayTeamEvents_90ydj_571",rectangle:"_rectangle_90ydj_579",homeTeamEvents:"_homeTeamEvents_90ydj_587",totalEvents:"_totalEvents_90ydj_596",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_90ydj_605",sliderMatchesInner:"_sliderMatchesInner_90ydj_616",btnFilter2:"_btnFilter2_90ydj_623",btnDetails1:"_btnDetails1_90ydj_640",matchContainer3:"_matchContainer3_90ydj_649",backArrowIcon1:"_backArrowIcon1_90ydj_660",match1:"_match1_90ydj_667",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_90ydj_673",jugadores2:"_jugadores2_90ydj_684",switchOption6:"_switchOption6_90ydj_691",switchOption7:"_switchOption7_90ydj_702",switchStatesBig2:"_switchStatesBig2_90ydj_715",manchesterUnited26:"_manchesterUnited26_90ydj_723",homeTeamContainer2:"_homeTeamContainer2_90ydj_729",vectorIcon:"_vectorIcon_90ydj_737",teamSwitch:"_teamSwitch_90ydj_743",matchContainer5:"_matchContainer5_90ydj_756",manchesterUnited27:"_manchesterUnited27_90ydj_767",sliderMatchesChild1:"_sliderMatchesChild1_90ydj_775",sliderMatchesChild2:"_sliderMatchesChild2_90ydj_786",sliderMatches2:"_sliderMatches2_90ydj_797",filtros2:"_filtros2_90ydj_807",btnFilter4:"_btnFilter4_90ydj_817",jornada2:"_jornada2_90ydj_833",filterMatchday:"_filterMatchday_90ydj_840",btnDetails2:"_btnDetails2_90ydj_851",filtersContainer:"_filtersContainer_90ydj_862",matchContainer6:"_matchContainer6_90ydj_872",matchDetailContainer:"_matchDetailContainer_90ydj_881",containerData:"_containerData_90ydj_891",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_90ydj_906",headerSeccionAlineaciones:"_headerSeccionAlineaciones_90ydj_605",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_90ydj_932",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_90ydj_945",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_90ydj_958",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_90ydj_970",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_90ydj_983",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_90ydj_997",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_90ydj_1008",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_90ydj_1019",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_90ydj_1033",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_90ydj_1045",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_90ydj_1056"},ol={components:{GSCCarousel:St,GscSwitchComponent:Ge,GSCDropdown:xi,GSCFilter:xr,GSCSwitchRadio:al,GSCMatchDetails:Kr},props:{provider:{type:Number,default:1},widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{getImageUrl:B,clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},rl=["src"],ll=["src"],cl={class:"selector-tournaments"},dl=["src"],ml=["src"],hl={key:1},pl=["src"],fl=["src"],gl={class:"selector-tournaments"},ul=["src"],yl=["src"],_l={key:1},bl=["src"],wl=["src"],Cl={class:"selector-tournaments"},kl=["src"],Sl=["src"],El={key:1};function Il(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),_=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,ll)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",cl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,ml),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[11]||(i[11]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,fl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter1.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow1.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",gl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,ul)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,yl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[14]||(i[14]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,bl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,wl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter2.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-arrow-expand.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",Cl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,kl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,Sl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[15]||(i[15]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const Vl=ne(ol,[["render",Il],["__cssModules",{$style:nl}]]),Nl={selectoritem:"_selectoritem_1f2kb_90",selectoritem2:"_selectoritem2_1f2kb_100",gscheaderlineup:"_gscheaderlineup_1f2kb_110",anNoEstn:"_anNoEstn_1f2kb_117",groupsLeague:"_groupsLeague_1f2kb_120",jugadores:"_jugadores_1f2kb_125",switchOption:"_switchOption_1f2kb_130",jugadores1:"_jugadores1_1f2kb_140",switchOption1:"_switchOption1_1f2kb_145",switchStatesBig:"_switchStatesBig_1f2kb_153",groupsLeagueParent:"_groupsLeagueParent_1f2kb_162",imgHomeTeamIcon:"_imgHomeTeamIcon_1f2kb_171",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1f2kb_177",teamContainer:"_teamContainer_1f2kb_189",name:"_name_1f2kb_201",homeTeamContainer:"_homeTeamContainer_1f2kb_207",div:"_div_1f2kb_217",titleSession:"_titleSession_1f2kb_221",scoreContainer:"_scoreContainer_1f2kb_231",scoreContainerWrapper:"_scoreContainerWrapper_1f2kb_241",teamContainer1:"_teamContainer1_1f2kb_253",awayTeamContainer:"_awayTeamContainer_1f2kb_265",matchContainer:"_matchContainer_1f2kb_275",sliderMatchesChild:"_sliderMatchesChild_1f2kb_284",manchesterUnited:"_manchesterUnited_1f2kb_290",sliderMatchesItem:"_sliderMatchesItem_1f2kb_296",sliderMatches:"_sliderMatches_1f2kb_284",sortIcon:"_sortIcon_1f2kb_314",filtros:"_filtros_1f2kb_321",sortParent:"_sortParent_1f2kb_329",shapeIcon:"_shapeIcon_1f2kb_336",btnFilter:"_btnFilter_1f2kb_341",btnFilter1:"_btnFilter1_1f2kb_355",btnFilterParent:"_btnFilterParent_1f2kb_369",backArrowIcon:"_backArrowIcon_1f2kb_377",teamContainer2:"_teamContainer2_1f2kb_383",homeTeam:"_homeTeam_1f2kb_207",div4:"_div4_1f2kb_397",finalScore:"_finalScore_1f2kb_402",manchesterUnited1:"_manchesterUnited1_1f2kb_415",scoreContainer1:"_scoreContainer1_1f2kb_422",match:"_match_1f2kb_275",manchesterUnited2:"_manchesterUnited2_1f2kb_440",btnDetails:"_btnDetails_1f2kb_445",matchContainer1:"_matchContainer1_1f2kb_455",goalChild:"_goalChild_1f2kb_463",goal:"_goal_1f2kb_463",manchesterUnited3:"_manchesterUnited3_1f2kb_476",minuteEvent:"_minuteEvent_1f2kb_483",yellowCard:"_yellowCard_1f2kb_490",awayTeamEvents:"_awayTeamEvents_1f2kb_497",rectangle:"_rectangle_1f2kb_504",homeTeamEvents:"_homeTeamEvents_1f2kb_511",totalEvents:"_totalEvents_1f2kb_519",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1f2kb_527",switchOption3:"_switchOption3_1f2kb_538",switchOption4:"_switchOption4_1f2kb_550",switchStatesBig1:"_switchStatesBig1_1f2kb_560",manchesterUnited13:"_manchesterUnited13_1f2kb_567",homeTeamContainer1:"_homeTeamContainer1_1f2kb_572",scoreContainer2:"_scoreContainer2_1f2kb_579",matchContainer2:"_matchContainer2_1f2kb_593",manchesterUnited14:"_manchesterUnited14_1f2kb_603",sliderMatchesInner:"_sliderMatchesInner_1f2kb_610",rectangleIcon:"_rectangleIcon_1f2kb_620",sliderMatches1:"_sliderMatches1_1f2kb_630",containerData:"_containerData_1f2kb_638",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1f2kb_652",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1f2kb_527",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1f2kb_676",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1f2kb_679",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1f2kb_683"},Tl={components:{GSCCarousel:St,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:B,remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ol=["src"],$l=["src"],Fl=["src"],Bl=["src"],Rl=["src"],zl=["src"];function Dl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Ol)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+" | "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+" | "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,$l)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Fl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,zl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Al=ne(Tl,[["render",Dl],["__cssModules",{$style:Nl}]]),Ml={anNoEstn:"_anNoEstn_1k66p_70",groupsLeague:"_groupsLeague_1k66p_73",historicas:"_historicas_1k66p_77",switchOption:"_switchOption_1k66p_82",switchOption1:"_switchOption1_1k66p_92",probables:"_probables_1k66p_102",switchOption2:"_switchOption2_1k66p_107",switchStatesBig:"_switchStatesBig_1k66p_119",groupsLeagueParent:"_groupsLeagueParent_1k66p_128",imgHomeTeamIcon:"_imgHomeTeamIcon_1k66p_137",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1k66p_143",teamContainer:"_teamContainer_1k66p_155",name:"_name_1k66p_167",jor:"_jor_1k66p_173",jorParent:"_jorParent_1k66p_179",shapeIcon:"_shapeIcon_1k66p_187",frameParent:"_frameParent_1k66p_192",manchesterUnited:"_manchesterUnited_1k66p_207",necaxaIcon:"_necaxaIcon_1k66p_218",manchesterUnited1:"_manchesterUnited1_1k66p_224",team:"_team_1k66p_155",homeTeamContainer:"_homeTeamContainer_1k66p_238",div1:"_div1_1k66p_248",scoreContainer:"_scoreContainer_1k66p_252",scoreContainerWrapper:"_scoreContainerWrapper_1k66p_263",team1:"_team1_1k66p_275",name1:"_name1_1k66p_282",teamContainer1:"_teamContainer1_1k66p_289",awayTeamContainer:"_awayTeamContainer_1k66p_301",matchContainer:"_matchContainer_1k66p_312",goalChild:"_goalChild_1k66p_321",goal:"_goal_1k66p_321",manchesterUnited4:"_manchesterUnited4_1k66p_334",minuteEvent:"_minuteEvent_1k66p_341",yellowCard:"_yellowCard_1k66p_348",awayTeamEvents:"_awayTeamEvents_1k66p_355",rectangle:"_rectangle_1k66p_362",homeTeamEvents:"_homeTeamEvents_1k66p_369",totalEvents:"_totalEvents_1k66p_377",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1k66p_385",homeTeamContainer1:"_homeTeamContainer1_1k66p_395",awayTeamContainer1:"_awayTeamContainer1_1k66p_407",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1k66p_419",jugadores:"_jugadores_1k66p_429",switchOption6:"_switchOption6_1k66p_435",switchOption8:"_switchOption8_1k66p_445",switchStatesBig2:"_switchStatesBig2_1k66p_457",manchesterUnited28:"_manchesterUnited28_1k66p_464",homeTeamContainer2:"_homeTeamContainer2_1k66p_468",matchContainer2:"_matchContainer2_1k66p_475",manchesterUnited29:"_manchesterUnited29_1k66p_486",sliderMatchesChild:"_sliderMatchesChild_1k66p_493",sliderMatchesItem:"_sliderMatchesItem_1k66p_503",sliderMatches:"_sliderMatches_1k66p_493",jorParent2:"_jorParent2_1k66p_523",filterMatchday:"_filterMatchday_1k66p_530",necaxaIcon4:"_necaxaIcon4_1k66p_541",team4:"_team4_1k66p_547",filterMatchdayParent:"_filterMatchdayParent_1k66p_557",filterMatchday1:"_filterMatchday1_1k66p_564",teamParent:"_teamParent_1k66p_579",filtersContainer:"_filtersContainer_1k66p_589",containerData:"_containerData_1k66p_598",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_1k66p_612",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1k66p_385"},Ul={components:{GSCDropdown:xi,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{getImageUrl:B,clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png",this.provider):B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.provider),this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png",this.provider):B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.provider),this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},Pl=["src"],Ll={class:"selector-tournaments"},jl=["src"],Hl=["src"],xl={class:"selector-tournaments"},Wl=["src"],ql=["src"],Gl={class:"selector-tournaments"},Xl=["src"],Jl=["src"],Yl={class:"selector-tournaments"},Kl=["src"],Zl=["src"],Ql=["src"],vl={class:"selector-tournaments"},ec=["src"],tc=["src"],ic={class:"selector-tournaments"};function sc(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(l,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Ll,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Hl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(l,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",xl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Wl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Gl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Xl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Yl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Kl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Ql)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",vl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ec)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,tc),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",ic,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const ac=ne(Ul,[["render",sc],["__cssModules",{$style:Ml}]]);let Ji=null;const nc={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},components:{CardPlayer:oo,HeaderPlayerHistorico:hr,HeaderPlayerRecientes:Vl,HeaderPlayerProbables:ac,HeaderPlayerPostmatch:Al},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],lineupLoadingLocks:{general:!1,home:!1,away:!1,probables:!1},pendingRequests:new Set,debounceTimer:null,probablesDebounceTimer:null,matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},shouldShowNoLineupsMessage(){const t=(this.gameForAnalysis.game_status==4||this.gameForAnalysis.game_status==1)&&this.gameForAnalysis.is_live==0&&this.numPlayer==0;return console.log(`🔍 Condición mensaje: status=${this.gameForAnalysis.game_status}, is_live=${this.gameForAnalysis.is_live}, numPlayer=${this.numPlayer} -> ${t}`),t},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(t){throw new Error(t)}},beforeUnmount(){this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.debounceTimer&&clearTimeout(this.debounceTimer)},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&(this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.probablesDebounceTimer=setTimeout(async()=>{var s,a;if(this.gamehome&&this.gamehome.game_id&&this.gamehome.game_id!==0&&this.gameaway&&this.gameaway.game_id&&this.gameaway.game_id!==0){const n=this.areProbablesAlreadyLoaded(this.gamehome.game_id,this.gameaway.game_id);if(this.areProbablesRequestsPending(this.gamehome.game_id,this.gameaway.game_id)){console.log("⏳ Peticiones de alineaciones probables ya en curso, saltando...");return}if(n)console.log("⏭️ Alineaciones probables ya cargadas para estos game_ids - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id);else{console.log("✅ Cargando alineaciones probables - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id),this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,console.log("🧹 Limpiando datos antes de cargar nuevas alineaciones..."),this.cleaneDataAway(),this.cleaneDataHome(),console.log("📊 Estado después de limpiar - Home:",this.playersHome.length,"Away:",this.playersAway.length),console.log("📋 Obteniendo información del header para probables...");try{if(!this.game||!this.game.game_id){console.warn("❌ Prop game no disponible para obtener header info");return}await this.getHeaderInfo(this.game),console.log("✅ Header info obtenido para el partido principal:",this.game.game_id)}catch(r){console.error("❌ Error obteniendo header info:",r)}this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),setTimeout(()=>{console.log(`📊 Estado después de iniciar peticiones - Home: ${this.playersHome.length}, Away: ${this.playersAway.length}, numPlayer: ${this.numPlayer}`)},100)}}else console.warn("❌ No se pueden cargar alineaciones probables - game_id inválidos:",{home:(s=this.gamehome)==null?void 0:s.game_id,away:(a=this.gameaway)==null?void 0:a.game_id});this.lastSection=t},1e3)),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},numPlayer:{handler(t,i){t!==i&&console.log(`👥 numPlayer cambió de ${i} a ${t} (Home: ${this.playersHome.length}, Away: ${this.playersAway.length})`)}},"gameForAnalysis.game_status":{handler(t){console.log(`🎮 game_status cambió a: ${t}`)}},"gameForAnalysis.is_live":{handler(t){console.log(`📡 is_live cambió a: ${t}`)}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[z.get(ce(this.urlGames+t.season_id+"/games/"+t.game_id,this.provider,this.isDevApis),s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==0&&r!==this.lastGetLineUpGameId?(console.log("✅ Haciendo petición de alineaciones para game_id:",r),o=z.get(ce(this.url+r,this.provider,this.isDevApis),s),n.push(o)):r===0&&console.warn("❌ Se evitó petición con game_id = 0");const[l,h]=await Promise.all(n);await this.gameDataInfo(t,l),r&&r!==0&&await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=this.dataPlayersHome.findIndex(k=>k.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),_=s[1].trim().split(" "),c="";p.length==2||p.length==1?p[0].length<4?c=p[0]+" "+p[1]:c=p[0]:p.length==3?c=p[0]+" "+p[1]:p.length==4&&(c=p[1]+" "+p[2]+" "+p[3]);var C=_[_.length-1]!=""?_[_.length-1].charAt(0):_[_.length-2]?_[_.length-2].charAt(0):"";c=c.replace(",","");var g=C+". "+c,u=this.dataPlayersAway.findIndex(k=>k.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:u!=-1?this.isFemale?this.positions[this.dataPlayersAway[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].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:B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(w=>w.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersHome.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var _=i.data[d].player_name.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=i.data[d].x,T=100-(100-k)*50/100;T=T*.9;var y=i.away_team.players.findIndex(w=>w.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:y!=-1?this.isFemale?this.positions[i.away_team.players[y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[y].position_id-1].name:"",position_id:i.away_team.players[y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:y!=-1&&i.away_team.players[y].nationality?i.away_team.players[y].nationality.substring(0,3):"",imgNationality:y!=-1?i.away_team.players[y].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:T+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var l=this.playersHome[V].idsGoals.findIndex(A=>A==i.play_id);l!=-1&&(s=l,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var _=this.playersAway[V].idsGoals.findIndex(A=>A==i.play_id);_!=-1&&(s=_,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==c[0]),g=this.playersHome.findIndex(V=>V.playerId==c[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),g!=-1&&(this.playersHome[g].idSubstitution=i.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=i.minute,this.playersHome[g].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var u=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==u[0]),k=this.playersAway.findIndex(V=>V.playerId==u[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),k!=-1&&(this.playersAway[k].idSubstitution=i.play_id,this.playersAway[k].substitutionIn=!0,this.playersAway[k].substitutionMin=i.minute,this.playersAway[k].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(V=>V.playerId==i.player_id);T!=-1&&(this.playersHome[T].goals+=1,this.playersHome[T].goalsMin.push(i.minute),this.playersHome[T].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(V=>V.playerId==i.player_id);y!=-1&&(this.playersAway[y].goals+=1,this.playersAway[y].goalsMin.push(i.minute),this.playersAway[y].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(V=>V.playerId==i.player_id);w!=-1&&(this.playersAway[w].yellowcards+=1,this.playersAway[w].yellowcardsMin=i.minute,this.playersAway[w].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var R=this.playersAway.findIndex(V=>V.playerId==i.player_id);R!=-1&&(this.playersAway[R].redcards+=1,this.playersAway[R].redcardsMin=i.minute,this.playersAway[R].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(g=>g.playerId==s[0]),n=this.playersHome.findIndex(g=>g.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==o[0]),l=this.playersAway.findIndex(g=>g.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),l!=-1&&(this.playersAway[l].idSubstitution=i.play_id,this.playersAway[l].substitutionIn=!0,this.playersAway[l].substitutionMin=i.minute,this.playersAway[l].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(g=>g.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(g=>g.playerId==i.player_id);_!=-1&&(this.playersAway[_].yellowcards+=1,this.playersAway[_].yellowcardsMin=i.minute,this.playersAway[_].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(g=>g.playerId==i.player_id);c!=-1&&(this.playersHome[c].redcards+=1,this.playersHome[c].redcardsMin=i.minute,this.playersHome[c].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(g=>g.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{isRequestPending(t,i="general"){const s=`${i}_${t}`;return this.pendingRequests.has(s)},markRequestPending(t,i="general"){const s=`${i}_${t}`;this.pendingRequests.add(s),console.log(`🔒 Marcando petición como pendiente: ${s}`)},removeRequestPending(t,i="general"){const s=`${i}_${t}`;this.pendingRequests.delete(s),console.log(`🔓 Removiendo petición pendiente: ${s}`)},areProbablesAlreadyLoaded(t,i){return this.auxProbablesIDGameHome===t&&this.auxProbablesIDGameAway===i},areProbablesRequestsPending(t,i){return this.isRequestPending(t,"home")||this.isRequestPending(i,"away")},calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){if(console.log("🏠 Iniciando petición de alineaciones probables HOME para game_id:",t),t==null||t===0){console.warn("❌ getLineUpProbablesHome3D: Se intentó hacer petición con game_id inválido:",t);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesHome3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesHome3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(t,"home")){console.warn(`🔒 getLineUpProbablesHome3D: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"home");try{const d=await z.create({headers:{Authorization:`${this.tokenPremium}`}}).get(ce(this.url+t,this.provider,this.isDevApis));if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0);for(let w=0;w<d.data.home_team.starting_lineup[0].lineup.length;w++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=d.data.home_team.starting_lineup[0].lineup[w].x,h=l*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[w].player_id);console.log(`🏠 Agregando jugador HOME: ${d.data.home_team.starting_lineup[0].lineup[w].player_name}`),this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[w].player_id+".png",nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[w].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[w].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[w].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0),d.data.home_team.bench){for(let w=0;w<d.data.home_team.bench.length;w++){this.subsTitle=!0;var p=d.data.home_team.bench[w].playerName.split(","),_=p[0].split(" "),c=p[1].trim().split(" "),C="";_.length==2||_.length==1?_[0].length<4?C=_[0]+" "+_[1]:C=_[0]:_.length==3?C=_[0]+" "+_[1]:_.length==4&&(C=_[1]+" "+_[2]+" "+_[3]);var g=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var u=g+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[w].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[w].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[w].playerID+".png",nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0);for(let w=0;w<d.data.away_team.starting_lineup[0].lineup.length;w++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,k=d.data.away_team.starting_lineup[0].lineup[w].x;k=Math.abs(k-100);var h=k*50/100,T=d.data.away_team.starting_lineup[0].lineup[w].y;T=Math.abs(T-100);var f=d.data.away_team.players.findIndex(M=>M.player_id==d.data.away_team.starting_lineup[0].lineup[w].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[w].player_id+".png",nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[w].jersey_number,positionX:T-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[w].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0),d.data.away_team.bench){for(let w=0;w<d.data.away_team.bench.length;w++){this.subsTitle=!0;var p=d.data.away_team.bench[w].playerName.split(","),_=p[0].split(" "),c=p[1].trim().split(" "),C="";_.length==2||_.length==1?_[0].length<4?C=_[0]+" "+_[1]:C=_[0]:_.length==3?C=_[0]+" "+_[1]:_.length==4&&(C=_[1]+" "+_[2]+" "+_[3]);var g=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var u=g+". "+C,m=d.data.away_team.players.findIndex(U=>U.player_id==d.data.away_team.bench[w].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[w].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[w].playerID+".png",nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0)}}await this.getMXM(t),this.removeRequestPending(t,"home"),console.log(`✅ getLineUpProbablesHome3D: Petición completada exitosamente para game_id: ${t}`),console.log(`📊 Jugadores HOME cargados: ${this.playersHome.length}`)}catch(y){return this.removeRequestPending(t,"home"),console.error(`❌ getLineUpProbablesHome3D: Error en petición para game_id: ${t}`,y),Promise.reject(y)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(t){if(console.log("✈️ Iniciando petición de alineaciones probables AWAY para game_id:",t),t==null||t===0){console.warn("❌ getLineUpProbablesAway3D: Se intentó hacer petición con game_id inválido:",t);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesAway3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesAway3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(t,"away")){console.warn(`🔒 getLineUpProbablesAway3D: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"away");try{const y=await z.create({headers:{Authorization:`${this.tokenPremium}`}}).get(ce(this.url+t,this.provider,this.isDevApis));if(!y||!y.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,y.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=y.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<y.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=y.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.home_team.team_id+"_g.svg","away",0);var i=y.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=y.data.home_team.starting_lineup[0].lineup[d].x;l=Math.abs(l-100);var h=y.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-l)*50/100;f=f*.9;var p=y.data.home_team.players.findIndex(w=>w.player_id==y.data.home_team.starting_lineup[0].lineup[d].player_id);console.log(`✈️ Agregando jugador AWAY: ${y.data.home_team.starting_lineup[0].lineup[d].player_name}`),this.playersAway.push({played:!0,name:y.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[y.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.home_team.players[p].position_id-1].name,position_id:y.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:y.data.home_team.players[p].nationality?y.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:y.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:y.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:y.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:y.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:y.data.home_team.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider)}if(this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0),y.data.home_team.bench){for(let d=0;d<y.data.home_team.bench.length;d++){this.subsTitle=!0;var _=y.data.home_team.bench[d].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=y.data.home_team.players.findIndex(w=>w.player_id==y.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:y.data.home_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[y.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.home_team.players[k].position_id-1].name:"",position_id:y.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.home_team.bench[d].playerID+".png",nationality:k!=-1&&y.data.home_team.players[k].nationality?y.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?y.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:y.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:y.data.home_team.team_id})}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}if(y.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=y.data.away_team.players;for(let d=0;d<y.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=y.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.away_team.team_id+"_g.svg","away",0);var i=y.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=y.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-l)*50/100;f=f*.9;var p=y.data.away_team.players.findIndex(M=>M.player_id==y.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:y.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[y.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.away_team.players[p].position_id-1].name,position_id:y.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:y.data.away_team.players[p].nationality?y.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:y.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:y.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:y.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:y.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:y.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:y.data.away_team.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider)}if(this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0),y.data.away_team.bench){for(let d=0;d<y.data.away_team.bench.length;d++){this.subsTitle=!0;var _=y.data.away_team.bench[d].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=y.data.away_team.players.findIndex(D=>D.player_id==y.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:y.data.away_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[y.data.away_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.away_team.players[k].position_id-1].name:"",position_id:y.data.away_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.away_team.bench[d].playerID+".png",nationality:k!=-1&&y.data.away_team.players[k].nationality?y.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?y.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:y.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:y.data.away_team.team_id})}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}await this.getMXM(t),this.removeRequestPending(t,"away"),console.log(`✅ getLineUpProbablesAway3D: Petición completada exitosamente para game_id: ${t}`),console.log(`📊 Jugadores AWAY cargados: ${this.playersAway.length}`)}catch(T){return this.removeRequestPending(t,"away"),console.error(`❌ getLineUpProbablesAway3D: Error en petición para game_id: ${t}`,T),Promise.reject(T)}},async getLineupProbablesHome(t){t&&t.id&&t.id!==0?this.auxProbablesIDGameHome!=t.id&&(console.log("✅ getLineupProbablesHome: Cargando alineaciones para game_id:",t.id),this.auxProbablesIDGameHome=t.id):console.warn("❌ getLineupProbablesHome: game_id inválido:",t==null?void 0:t.id)},async getLineupProbablesAway(t){t&&t.id&&t.id!==0?this.auxProbablesIDGameAway!=t.id&&(console.log("✅ getLineupProbablesAway: Cargando alineaciones para game_id:",t.id),this.auxProbablesIDGameAway=t.id):console.warn("❌ getLineupProbablesAway: game_id inválido:",t==null?void 0:t.id)},async getLineupProbables(t){if(t&&t.id&&t.id!==0){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(console.log("✅ getLineupProbables: Cargando alineaciones para game_id:",t.id),this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id}else console.warn("❌ getLineupProbables: game_id inválido:",t==null?void 0:t.id)},async changeCarouselItem(t){t&&t.game_id&&t.game_id!==0&&typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id?this.auxHistoricGameID!=t.game_id&&(console.log("✅ changeCarouselItem: Cargando alineaciones para game_id:",t.game_id),this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id)):console.warn("❌ changeCarouselItem: game_id inválido:",t==null?void 0:t.game_id)},async changeCarouselItemRecent(t){var s;if(t.selectedItem&&t.selectedItem.id&&t.selectedItem.id!==0){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};console.log("✅ changeCarouselItemRecent: Cargando alineaciones para game_id:",t.selectedItem.id),this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}else console.warn("❌ changeCarouselItemRecent: game_id inválido:",(s=t.selectedItem)==null?void 0:s.id)},async getHeaderInfo(t,i=null){const s=z.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(ce("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups",this.provider,this.isDevApis));if(console.log("GAME INFO HEADER --------------------------------------------------------> ",t.game_id),this.gameInfoheader=a.data.game,console.log("📋 gameInfoheader establecido para game_id:",this.gameInfoheader.id,"del partido:",t.game_id),this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=z.create({headers:{Authorization:`${this.tokenPremium}`}}),a=i||await s.get(ce(this.urlGames+t.season_id+"/games/"+t.game_id,this.provider,this.isDevApis));this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.pendingRequests.clear(),console.log("🧹 cleaneData: Limpiando todas las peticiones pendientes"),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(){wt("lineups.game."+this.game.game_id,this.socket),wt("mxm.game."+this.game.game_id,this.socket),wt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var l=this.playersAway[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==l[1]),f=this.playersAway.findIndex(p=>p.playerId==l[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)Ji=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ji.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=ce(this.urlMXM+t,this.provider,this.isDevApis);if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const u=await z.create({headers:{Authorization:`${this.tokenPremium}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<u.data.plays.length;m++){if(u.data.plays[m].event_type_id==3){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=u.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(k=>k.playerId==i[0]),a=this.playersHome.findIndex(k=>k.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=u.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=u.data.plays[m].minute,this.playersHome[s].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=u.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=u.data.plays[m].minute,this.playersHome[a].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=u.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(k=>k.playerId==n[0]),r=this.playersAway.findIndex(k=>k.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=u.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=u.data.plays[m].minute,this.playersAway[o].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=u.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=u.data.plays[m].minute,this.playersAway[r].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id)}}if(u.data.plays[m].event_type_id==1){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(u.data.plays[m].minute),this.playersHome[l].idsGoals.push(u.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(u.data.plays[m].minute),this.playersAway[h].idsGoals.push(u.data.plays[m].play_id))}}if(u.data.plays[m].event_type_id==2){if(u.data.plays[m].category_id==8){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=u.data.plays[m].minute,this.playersHome[f].idyellowcards=u.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=u.data.plays[m].minute,this.playersAway[p].idyellowcards=u.data.plays[m].play_id)}}if(u.data.plays[m].category_id==9){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);_!=-1&&(this.playersHome[_].redcards+=1,this.playersHome[_].redcardsMin=u.data.plays[m].minute,this.playersHome[_].idredcards=u.data.plays[m].play_id)}}else if(this.playersAway.length>0){var c=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);c!=-1&&(this.playersAway[c].redcards+=1,this.playersAway[c].redcardsMin=u.data.plays[m].minute,this.playersAway[c].idredcards=u.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t==null||t===0){console.warn("❌ getLineUp: Se intentó hacer petición con game_id inválido:",t);return}if(console.log("------------------------------------------------> SE HIZO LA PETICION ----> DEL PARTIDO ID: ",t),this.isRequestPending(t,"general")){console.warn(`🔒 getLineUp: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"general");try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const q=z.create({headers:{Authorization:`${this.tokenPremium}`}}),S=i||await q.get(ce(this.url+t,this.provider,this.isDevApis));if(!S||!S.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=S.data.home_team.players,this.dataPlayersAway=S.data.away_team.players,S.data.home_team.starting_lineup[0].lineup.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0);for(let I=0;I<S.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=S.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+"_g.svg","home",0);var s=S.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=S.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=S.data.home_team.players.findIndex(F=>F.player_id==S.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:S.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[p].position_id-1].name,position_id:S.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.home_team.players[p].nationality?S.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:S.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:S.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:S.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.home_team.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),S.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0),S.data.home_team.bench){for(let I=0;I<S.data.home_team.bench.length;I++){this.subsTitle=!0;var _=S.data.home_team.bench[I].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=S.data.home_team.players.findIndex(F=>F.player_id==S.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:S.data.home_team.bench[I].playerName,position:k!=-1?this.isFemale?this.positions[S.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[k].position_id-1].name:"",position_id:S.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.bench[I].playerID+".png",nationality:k!=-1&&S.data.home_team.players[k].nationality?S.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?S.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.home_team.team_id})}this.playersHome.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0)}for(let I=0;I<S.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=S.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+"_g.svg","away",0);var T=S.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),y=T[0].split(" "),d=T[1].trim().split(" "),w="";y.length==2||y.length==1?y[0].length<4?w=y[0]+" "+y[1]:w=y[0]:y.length==3?w=y[0]+" "+y[1]:y.length==4&&(w=y[1]+" "+y[2]+" "+y[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";w=w.replace(",","");var R=E+". "+w,V=S.data.away_team.starting_lineup[0].lineup[I].x,A=100-(100-V)*50/100;A=A*.9;var Y=S.data.away_team.players.findIndex(F=>F.player_id==S.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:S.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[Y].position_id-1].name,position_id:S.data.away_team.players[Y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.away_team.players[Y].nationality?S.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:S.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:R,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:A,positionXOrigin:S.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:S.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.away_team.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),S.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0),S.data.away_team.bench){for(let I=0;I<S.data.away_team.bench.length;I++){this.subsTitle=!0;var ae=S.data.away_team.bench[I].playerName.split(","),D=ae[0].split(" "),U=ae[1].trim().split(" "),M="";D.length==2||D.length==1?D[0].length<4?M=D[0]+" "+D[1]:M=D[0]:D.length==3?M=D[0]+" "+D[1]:D.length==4&&(M=D[1]+" "+D[2]+" "+D[3]);var ye=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";M=M.replace(",","");var j=ye+". "+M,G=S.data.away_team.players.findIndex(F=>F.player_id==S.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:S.data.away_team.bench[I].playerName,position:G!=-1?this.isFemale?this.positions[S.data.away_team.players[G].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[G].position_id-1].name:"",position_id:S.data.away_team.players[G].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.bench[I].playerID+".png",nationality:G!=-1&&S.data.away_team.players[G].nationality?S.data.away_team.players[G].nationality.substring(0,3):"",imgNationality:G!=-1?S.data.away_team.players[G].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:j,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.away_team.team_id})}this.playersAway.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500),this.removeRequestPending(t,"general"),console.log(`✅ getLineUp: Petición completada exitosamente para game_id: ${t}`)}catch(q){return this.removeRequestPending(t,"general"),console.error(`❌ getLineUp: Error en petición para game_id: ${t}`,q),Promise.reject(q)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(t){this.teamActive=t}}},oc={style:{background:"#1d2a35"}},rc={class:"size-browser-class"},lc={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},cc={class:"team-shield-left",style:{"margin-left":"16%"}},dc=["src"],mc={class:"team-shield-right",style:{"margin-right":"16%"}},hc=["src"],pc={class:"lineup-players is-centered"},fc=["onClick"],gc=["onClick"];function uc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",oc,[e.createElementVNode("div",rc,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",lc,[e.createElementVNode("div",cc,[e.createElementVNode("img",{src:n.homeTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,dc)]),e.createElementVNode("div",mc,[e.createElementVNode("img",{src:n.awayTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,hc)])]),e.createElementVNode("div",pc,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},[...i[0]||(i[0]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,fc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},[...i[1]||(i[1]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,gc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},[...i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)])],2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[...i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas ",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ",-1)])],2)],2)):e.createCommentVNode("",!0)],2)])])}const yc=ne(nc,[["render",uc]]),_c=ne({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameNumber:{type:Number,default:0},lastGames:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},setup(t){const i=t,s=o=>o?{game_id:o.game_id||null,season_id:o.season_id||null,prematch:o.prematch!==void 0?o.prematch:!0}:{game_id:null,season_id:null,prematch:!0},a=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_home_games){const o=i.gameNumber-1,r=i.lastGames.last_home_games[o];return s(r)}return s(null)}),n=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_visiting_games){const o=i.gameNumber-1,r=i.lastGames.last_visiting_games[o];return s(r)}return s(null)});return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(yc,{game:t.game,gamehome:a.value,gameaway:n.value,"selected-option":t.selectedOption,provider:t.provider,"is-dev-apis":t.isDevApis},null,8,["game","gamehome","gameaway","selected-option","provider","is-dev-apis"])]))}},[["__scopeId","data-v-12d1fcd5"]]);de.GSCLineupsReports=_c,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})}));
|
|
13
|
+
*/const H={itemsToShow:1,itemsToScroll:1,modelValue:0,transition:300,autoplay:0,snapAlign:"center",wrapAround:!1,throttle:16,pauseAutoplayOnHover:!1,mouseDrag:!0,touchDrag:!0,dir:"ltr",breakpoints:void 0,i18n:{ariaNextSlide:"Navigate to next slide",ariaPreviousSlide:"Navigate to previous slide",ariaNavigateToSlide:"Navigate to slide {slideNumber}",ariaGallery:"Gallery",itemXofY:"Item {currentSlide} of {slidesCount}",iconArrowUp:"Arrow pointing upwards",iconArrowDown:"Arrow pointing downwards",iconArrowRight:"Arrow pointing to the right",iconArrowLeft:"Arrow pointing to the left"}},zi={itemsToShow:{default:H.itemsToShow,type:Number},itemsToScroll:{default:H.itemsToScroll,type:Number},wrapAround:{default:H.wrapAround,type:Boolean},throttle:{default:H.throttle,type:Number},snapAlign:{default:H.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:H.transition,type:Number},breakpoints:{default:H.breakpoints,type:Object},autoplay:{default:H.autoplay,type:Number},pauseAutoplayOnHover:{default:H.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:H.mouseDrag,type:Boolean},touchDrag:{default:H.touchDrag,type:Boolean},dir:{default:H.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:H.i18n,type:Object},settings:{default(){return{}},type:Object}};function ro({config:t,slidesCount:i}){const{snapAlign:s,wrapAround:a,itemsToShow:n=1}=t;if(a)return Math.max(i-1,0);let o;switch(s){case"start":o=i-n;break;case"end":o=i-1;break;case"center":case"center-odd":o=i-Math.ceil((n-.5)/2);break;case"center-even":o=i-Math.ceil(n/2);break;default:o=0;break}return Math.max(o,0)}function lo({config:t,slidesCount:i}){const{wrapAround:s,snapAlign:a,itemsToShow:n=1}=t;let o=0;if(s||n>i)return o;switch(a){case"start":o=0;break;case"end":o=n-1;break;case"center":case"center-odd":o=Math.floor((n-1)/2);break;case"center-even":o=Math.floor((n-2)/2);break;default:o=0;break}return o}function Ct({val:t,max:i,min:s}){return i<s?t:Math.min(Math.max(t,s),i)}function co({config:t,currentSlide:i,slidesCount:s}){const{snapAlign:a,wrapAround:n,itemsToShow:o=1}=t;let r=i;switch(a){case"center":case"center-odd":r-=(o-1)/2;break;case"center-even":r-=(o-2)/2;break;case"end":r-=o-1;break}return n?r:Ct({val:r,max:s-o,min:0})}function Di(t){return t?t.reduce((i,s)=>{var a;return s.type===e.Fragment?[...i,...Di(s.children)]:((a=s.type)===null||a===void 0?void 0:a.name)==="CarouselSlide"?[...i,s]:i},[]):[]}function kt({val:t,max:i,min:s=0}){return t>i?kt({val:t-(i+1),max:i,min:s}):t<s?kt({val:t+(i+1),max:i,min:s}):t}function mo(t,i){let s;return i?function(...a){const n=this;s||(t.apply(n,a),s=!0,setTimeout(()=>s=!1,i))}:t}function ho(t,i){let s;return function(...a){s&&clearTimeout(s),s=setTimeout(()=>{t(...a),s=null},i)}}function po(t="",i={}){return Object.entries(i).reduce((s,[a,n])=>s.replace(`{${a}}`,String(n)),t)}var fo=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},H))),i=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},po(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:s.value}))}}),go=e.defineComponent({name:"Carousel",props:zi,setup(t,{slots:i,emit:s,expose:a}){var n;const o=e.ref(null),r=e.ref([]),l=e.ref(0),h=e.ref(0),f=e.reactive(Object.assign({},H));let p=Object.assign({},H),_;const c=e.ref((n=t.modelValue)!==null&&n!==void 0?n:0),C=e.ref(0),g=e.ref(0),u=e.ref(0),m=e.ref(0);let k,T;e.provide("config",f),e.provide("slidesCount",h),e.provide("currentSlide",c),e.provide("maxSlide",u),e.provide("minSlide",m),e.provide("slideWidth",l);function y(){_=Object.assign({},t.breakpoints),p=Object.assign(Object.assign(Object.assign({},p),t),{i18n:Object.assign(Object.assign({},p.i18n),t.i18n),breakpoints:void 0}),w(p)}function d(){if(!_||!Object.keys(_).length)return;const O=Object.keys(_).map(L=>Number(L)).sort((L,re)=>+re-+L);let x=Object.assign({},p);O.some(L=>{const re=window.matchMedia(`(min-width: ${L}px)`).matches;return re&&(x=Object.assign(Object.assign({},x),_[L])),re}),w(x)}function w(O){Object.entries(O).forEach(([x,L])=>f[x]=L)}const E=ho(()=>{d(),R()},16);function R(){if(!o.value)return;const O=o.value.getBoundingClientRect();l.value=O.width/f.itemsToShow}function V(){h.value<=0||(g.value=Math.ceil((h.value-1)/2),u.value=ro({config:f,slidesCount:h.value}),m.value=lo({config:f,slidesCount:h.value}),f.wrapAround||(c.value=Ct({val:c.value,max:u.value,min:m.value})))}e.onMounted(()=>{e.nextTick(()=>R()),setTimeout(()=>R(),1e3),d(),I(),window.addEventListener("resize",E,{passive:!0}),s("init")}),e.onUnmounted(()=>{T&&clearTimeout(T),k&&clearInterval(k),window.removeEventListener("resize",E,{passive:!0})});let A=!1;const Y={x:0,y:0},ae={x:0,y:0},D=e.reactive({x:0,y:0}),U=e.ref(!1),M=e.ref(!1),ye=()=>{U.value=!0},j=()=>{U.value=!1};function G(O){["INPUT","TEXTAREA","SELECT"].includes(O.target.tagName)||(A=O.type==="touchstart",A||O.preventDefault(),!(!A&&O.button!==0||K.value)&&(Y.x=A?O.touches[0].clientX:O.clientX,Y.y=A?O.touches[0].clientY:O.clientY,document.addEventListener(A?"touchmove":"mousemove",q,!0),document.addEventListener(A?"touchend":"mouseup",S,!0)))}const q=mo(O=>{M.value=!0,ae.x=A?O.touches[0].clientX:O.clientX,ae.y=A?O.touches[0].clientY:O.clientY;const x=ae.x-Y.x,L=ae.y-Y.y;D.y=L,D.x=x},f.throttle);function S(){const O=f.dir==="rtl"?-1:1,x=Math.sign(D.x)*.4,L=Math.round(D.x/l.value+x)*O;if(L&&!A){const re=Tt=>{Tt.stopPropagation(),window.removeEventListener("click",re,!0)};window.addEventListener("click",re,!0)}te(c.value-L),D.x=0,D.y=0,M.value=!1,document.removeEventListener(A?"touchmove":"mousemove",q,!0),document.removeEventListener(A?"touchend":"mouseup",S,!0)}function I(){!f.autoplay||f.autoplay<=0||(k=setInterval(()=>{f.pauseAutoplayOnHover&&U.value||oe()},f.autoplay))}function F(){k&&(clearInterval(k),k=null),I()}const K=e.ref(!1);function te(O){const x=f.wrapAround?O:Ct({val:O,max:u.value,min:m.value});c.value===x||K.value||(s("slide-start",{slidingToIndex:O,currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:h.value}),K.value=!0,C.value=c.value,c.value=x,T=setTimeout(()=>{if(f.wrapAround){const L=kt({val:x,max:u.value,min:0});L!==c.value&&(c.value=L,s("loop",{currentSlideIndex:c.value,slidingToIndex:O}))}s("update:modelValue",c.value),s("slide-end",{currentSlideIndex:c.value,prevSlideIndex:C.value,slidesCount:h.value}),K.value=!1,F()},f.transition))}function oe(){te(c.value+f.itemsToScroll)}function _e(){te(c.value-f.itemsToScroll)}const Yi={slideTo:te,next:oe,prev:_e};e.provide("nav",Yi),e.provide("isSliding",K);const Ki=e.computed(()=>co({config:f,currentSlide:c.value,slidesCount:h.value}));e.provide("slidesToScroll",Ki);const bc=e.computed(()=>{const O=f.dir==="rtl"?-1:1,x=Ki.value*l.value*O;return{transform:`translateX(${D.x-x}px)`,transition:`${K.value?f.transition:0}ms`,margin:f.wrapAround?`0 -${h.value*l.value}px`:"",width:"100%"}});function Zi(){y(),d(),V(),R(),F()}Object.keys(zi).forEach(O=>{["modelValue"].includes(O)||e.watch(()=>t[O],Zi)}),e.watch(()=>t.modelValue,O=>{O!==c.value&&te(Number(O))}),e.watch(h,V),s("before-init"),y();const Qi={config:f,slidesCount:h,slideWidth:l,next:oe,prev:_e,slideTo:te,currentSlide:c,maxSlide:u,minSlide:m,middleSlide:g};a({updateBreakpointsConfigs:d,updateSlidesData:V,updateSlideWidth:R,initDefaultConfigs:y,restartCarousel:Zi,slideTo:te,next:oe,prev:_e,nav:Yi,data:Qi});const vi=i.default||i.slides,es=i.addons,ts=e.reactive(Qi);return()=>{const O=Di(vi==null?void 0:vi(ts)),x=(es==null?void 0:es(ts))||[];O.forEach((Ot,$t)=>Ot.props.index=$t);let L=O;if(f.wrapAround){const Ot=O.map((Ft,Ne)=>e.cloneVNode(Ft,{index:-O.length+Ne,isClone:!0,key:`clone-before-${Ne}`})),$t=O.map((Ft,Ne)=>e.cloneVNode(Ft,{index:O.length+Ne,isClone:!0,key:`clone-after-${Ne}`}));L=[...Ot,...O,...$t]}r.value=O,h.value=Math.max(O.length,1);const re=e.h("ol",{class:"carousel__track",style:bc.value,onMousedownCapture:f.mouseDrag?G:null,onTouchstartPassiveCapture:f.touchDrag?G:null},L),Tt=e.h("div",{class:"carousel__viewport"},re);return e.h("section",{ref:o,class:{carousel:!0,"is-sliding":K.value,"is-dragging":M.value,"is-hover":U.value,"carousel--rtl":f.dir==="rtl"},dir:f.dir,"aria-label":f.i18n.ariaGallery,tabindex:"0",onMouseenter:ye,onMouseleave:j},[Tt,x,e.h(fo)])}}}),Ai;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Ai||(Ai={}));var uo=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const s=e.inject("config",e.reactive(Object.assign({},H))),a=e.inject("currentSlide",e.ref(0)),n=e.inject("slidesToScroll",e.ref(0)),o=e.inject("isSliding",e.ref(!1)),r=()=>t.index===a.value,l=()=>t.index===a.value-1,h=()=>t.index===a.value+1,f=()=>{const p=Math.floor(n.value),_=Math.ceil(n.value+s.itemsToShow-1);return t.index>=p&&t.index<=_};return()=>{var p;return e.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":f(),"carousel__slide--active":r(),"carousel__slide--prev":l(),"carousel__slide--next":h(),"carousel__slide--sliding":o.value},"aria-hidden":!f()},(p=i.default)===null||p===void 0?void 0:p.call(i))}}});const yo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},_o=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),bo={class:"gsc-carousel"},wo={key:0},Co=_o(()=>e.createElementVNode("div",null,"no hay",-1)),ko=[Co],So={class:"gsc-carousel__2d__slides"},Eo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Io=["fill"],Vo={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},No=["fill"],To={class:"gsc-carousel__2d__navigation"},Oo={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},$o=["stroke"],Fo={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bo=["onClick"],Ro={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zo=["stroke"],Do={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:s}){const a=t;e.useCssVars(u=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const n=e.ref(null),o=e.ref({}),r=e.ref(0),l=e.ref(!1);e.watch(n,u=>{u&&l.value?(l.value=!1,h(a.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),e.watch(()=>a.currentItemIndex,u=>{r.value!==u&&c(u)}),e.watch(()=>a.defaultItemByIndex,u=>{r.value!==u&&c(u)}),e.watch(()=>a.items,u=>{n.value?h(u):l.value=!0},{immediate:!0});function h(u){u&&u.length&&n.value&&setTimeout(()=>{if(a.defaultItemByProp){const m=a.items.findIndex(k=>k[a.defaultItemByProp.propName]===a.defaultItemByProp.value);m!==-1?(r.value=m,o.value=u[m]):(r.value=0,o.value=u[0])}else r.value=a.defaultItemByIndex,o.value=u[a.defaultItemByIndex];n.value.slideTo&&n.value.slideTo(r.value),o.value&&r.value===0&&s("input",{selectedItem:o.value,selectedItemIndex:r.value})},500)}function f(){n.value&&n.value.next()}function p(){n.value&&n.value.prev()}function _(){n.value&&n.value.updateSlideWidth()}function c(u){n.value&&n.value.slideTo(u)}function C(u){n.value.slideTo(u)}function g(u){const m=u.slidingToIndex<0?a.items.length-1:u.slidingToIndex===a.items.length?0:u.slidingToIndex;r.value=m,o.value=a.items[m],s("update:currentItemIndex",m),s("input",{selectedItem:o.value,selectedItemIndex:r.value})}return i({prev:p,next:f,updateSlideWidth:_,slideTo:c}),(u,m)=>(e.openBlock(),e.createElementBlock("div",bo,[a.is3d?(e.openBlock(),e.createElementBlock("div",wo,ko)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",So,[e.createVNode(e.unref(go),{ref_key:"carousel2d",ref:n,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:g},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,T)=>(e.openBlock(),e.createBlock(e.unref(uo),{key:T},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{item:k},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[0]||(m[0]=k=>n.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Eo,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:t.arrowsColor},null,8,Io)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:m[1]||(m[1]=k=>f())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Vo,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:t.arrowsColor},null,8,No)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",To,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:m[2]||(m[2]=k=>p())},[(e.openBlock(),e.createElementBlock("svg",Oo,[e.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:a.arrowsColor},null,8,$o)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",Fo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(k,T)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${T}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${a.navigationHeight}px`,width:`${r.value===T?a.navigationActiveWidth:a.navigationActiveWidth/2}px`,borderRadius:`${a.navigationBorderRadius}px`,backgroundColor:`${r.value===T?a.navigationActiveColor:a.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:y=>C(T)},null,12,Bo))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:m[3]||(m[3]=k=>n.value.next())},[(e.openBlock(),e.createElementBlock("svg",Ro,[e.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:a.arrowsColor},null,8,zo)]))])):e.createCommentVNode("",!0)])],2))]))}},St=yo(Do,[["__scopeId","data-v-54620d25"]]);function Ao(t){const i=e.ref({width:0,height:0});function s(){const a=t.value.getBoundingClientRect();i.value.width=a.width,i.value.height=a.height}return e.onMounted(()=>{s(),window.addEventListener("resize",s)}),e.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:i}}const Mo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Et={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Mi=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Ui=Et.setup;Et.setup=Ui?(t,i)=>(Mi(),Ui(t,i)):Mi;const Uo={ref:"gscScrollableContainer",class:"scrollable-container"},Po={class:"scrollable-arrows"},Lo=["width","height","viewBox"],jo=["stroke"],Ho={class:"scrollable-wrapper"},xo={class:"scrollable-arrows"},Wo=["width","height","viewBox"],qo=["stroke"];function Go(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",Uo,[s.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",o.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>o.scrollLeft&&o.scrollLeft(...r))},[e.createElementVNode("div",Po,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,jo)],8,Lo))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>o.getScroll&&o.getScroll(...r))},[e.createElementVNode("div",Ho,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),s.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",o.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>o.scrollRight&&o.scrollRight(...r))},[e.createElementVNode("div",xo,[(e.openBlock(),e.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:o.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,qo)],8,Wo))])],2)):e.createCommentVNode("",!0)],512)}const Xo=Mo(Et,[["render",Go],["__scopeId","data-v-b548a08d"]]),Jo=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},It={components:{GSCSlider:Xo},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Ao(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Pi=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},Li=It.setup;It.setup=Li?(t,i)=>(Pi(),Li(t,i)):Pi;const Yo={ref:"myDivRef"},Ko={key:0,class:"gs-switch-container"},Zo=["onClick"],Qo={key:1,class:"gs-switch-container-type"},vo=["onClick"],er={key:2,class:"gs-switch-container-carousel"},tr=["onClick"];function ir(t,i,s,a,n,o){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",Yo,[s.type==0?(e.openBlock(),e.createElementBlock("div",Ko,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,Zo))),128))],4),e.renderSlot(t.$slots,s.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([o.customGrid(a.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:s.backgroundOptionDisable}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,vo))),128))],4)])):e.createCommentVNode("",!0),s.type==2?(e.openBlock(),e.createElementBlock("div",er,[e.createVNode(r,{arrows:s.arrow,"background-color":s.background,"px-scroll":s.pxScroll,"scroll-color":s.scrollColor,"arrows-position":s.arrowsPosition,arrowsScrollHide:s.arrowsScrollHide,"arrows-background":s.arrowsBackground,"arrows-container-bg-l":s.arrowsContainerBgL,"arrows-container-bg-r":s.arrowsContainerBgR,"arrows-margin":s.arrowsMargin,"arrows-radius":s.arrowsRadius,"arrows-border":s.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.buttons,(l,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:s.height},s.selectedOption==l?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:h,onClick:f=>(s.selectedOption=l,o.clickEmitEvent(l))},e.toDisplayString(l),13,tr))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):e.createCommentVNode("",!0)],512)}const Ge=Jo(It,[["render",ir],["__scopeId","data-v-8a86dfaf"]]),sr={selectoritem:"_selectoritem_1nisl_69",selectoritem2:"_selectoritem2_1nisl_79",gscheaderlineup:"_gscheaderlineup_1nisl_89",anNoEstn:"_anNoEstn_1nisl_96",groupsLeague:"_groupsLeague_1nisl_99",jugadores:"_jugadores_1nisl_105",switchOption:"_switchOption_1nisl_110",jugadores1:"_jugadores1_1nisl_120",switchOption1:"_switchOption1_1nisl_125",switchStatesBig:"_switchStatesBig_1nisl_133",groupsLeagueParent:"_groupsLeagueParent_1nisl_142",imgHomeTeamIcon:"_imgHomeTeamIcon_1nisl_151",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1nisl_157",teamContainer:"_teamContainer_1nisl_169",name:"_name_1nisl_181",homeTeamContainer:"_homeTeamContainer_1nisl_187",div:"_div_1nisl_197",scoreContainer:"_scoreContainer_1nisl_201",scoreContainerWrapper:"_scoreContainerWrapper_1nisl_211",teamContainer1:"_teamContainer1_1nisl_224",awayTeamContainer:"_awayTeamContainer_1nisl_236",matchContainer:"_matchContainer_1nisl_246",sliderMatchesChild:"_sliderMatchesChild_1nisl_255",manchesterUnited:"_manchesterUnited_1nisl_261",sliderMatchesItem:"_sliderMatchesItem_1nisl_267",sliderMatches:"_sliderMatches_1nisl_255",sortIcon:"_sortIcon_1nisl_285",filtros:"_filtros_1nisl_292",sortParent:"_sortParent_1nisl_300",shapeIcon:"_shapeIcon_1nisl_307",btnFilter:"_btnFilter_1nisl_312",btnFilter1:"_btnFilter1_1nisl_326",btnFilterParent:"_btnFilterParent_1nisl_340",backArrowIcon:"_backArrowIcon_1nisl_348",teamContainer2:"_teamContainer2_1nisl_354",homeTeam:"_homeTeam_1nisl_187",div4:"_div4_1nisl_368",finalScore:"_finalScore_1nisl_373",manchesterUnited1:"_manchesterUnited1_1nisl_386",scoreContainer1:"_scoreContainer1_1nisl_393",match:"_match_1nisl_246",manchesterUnited2:"_manchesterUnited2_1nisl_411",btnDetails:"_btnDetails_1nisl_416",matchContainer1:"_matchContainer1_1nisl_426",goalChild:"_goalChild_1nisl_434",goal:"_goal_1nisl_434",manchesterUnited3:"_manchesterUnited3_1nisl_447",minuteEvent:"_minuteEvent_1nisl_454",yellowCard:"_yellowCard_1nisl_461",awayTeamEvents:"_awayTeamEvents_1nisl_468",rectangle:"_rectangle_1nisl_475",homeTeamEvents:"_homeTeamEvents_1nisl_482",totalEvents:"_totalEvents_1nisl_490",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1nisl_498",switchOption3:"_switchOption3_1nisl_509",switchOption4:"_switchOption4_1nisl_521",switchStatesBig1:"_switchStatesBig1_1nisl_531",manchesterUnited13:"_manchesterUnited13_1nisl_538",homeTeamContainer1:"_homeTeamContainer1_1nisl_543",scoreContainer2:"_scoreContainer2_1nisl_550",matchContainer2:"_matchContainer2_1nisl_564",manchesterUnited14:"_manchesterUnited14_1nisl_574",sliderMatchesInner:"_sliderMatchesInner_1nisl_581",rectangleIcon:"_rectangleIcon_1nisl_591",sliderMatches1:"_sliderMatches1_1nisl_601",containerData:"_containerData_1nisl_609",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1nisl_623",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1nisl_498",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1nisl_647",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1nisl_650",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1nisl_654"},ar={components:{GSCCarousel:St,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},gameRecientes:{type:Number,default:0},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:B,changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},nr=["src"],or=["src"],rr=["src"],lr=["src"],cr=["src"],dr=["src"];function mr(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCCarousel");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,nr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)}," - ",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,or)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:1,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,rr)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,lr)):e.createCommentVNode("",!0),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},[(s.gameInfo.game_status==0||s.gameInfo.game_status==4)&&s.gameRecientes>0?(e.openBlock(),e.createBlock(r,{key:0,buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.home_team+".png",s.provider)},null,10,cr)):e.createCommentVNode("",!0)],2)],2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.home_team_abbreviation),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer2)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.score[1]),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameHistoric[n.selectedOption].objgame.away_team_abbreviation),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[s.gameHistoric.length>0?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameHistoric[n.selectedOption].objgame.away_team+".png",s.provider)},null,10,dr)):e.createCommentVNode("",!0)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},[s.gameHistoric.length>0?(e.openBlock(),e.createBlock(l,{key:0,"current-item-index":n.selectedOption,onInput:o.changeCarouselItem,items:s.gameHistoric,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:h})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem2)},e.toDisplayString(h.description),3)]),_:1},8,["current-item-index","onInput","items"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)}const hr=ne(ar,[["render",mr],["__cssModules",{$style:sr}]]),pr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Vt={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ji=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hi=Vt.setup;Vt.setup=Hi?(t,i)=>(ji(),Hi(t,i)):ji;const fr=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),gr=["src"],ur={key:1,class:"text"},yr=["src"],_r={class:"stats"},br=fr(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),wr={class:"numstats"},Cr={class:"leyend"};function kr(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",null,[s.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",n.status&&s.typeOnOff&&"button-active"]),style:e.normalizeStyle([o.customStyle,n.status&&s.typeOnOff&&o.customActive]),onClick:i[0]||(i[0]=(...r)=>o.btnClick&&o.btnClick(...r))},[s.icon&&s.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,gr)):e.createCommentVNode("",!0),s.textValue?(e.openBlock(),e.createElementBlock("div",ur,e.toDisplayString(s.textValue),1)):e.createCommentVNode("",!0),s.icon&&s.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:s.iconSize}),src:s.icon},null,12,yr)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),s.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>o.btnClick&&o.btnClick(...r))},[e.createElementVNode("div",_r,[br,e.createElementVNode("div",wr,e.toDisplayString(s.textStat),1)]),e.createElementVNode("div",Cr,e.toDisplayString(s.textCategory),1)])):e.createCommentVNode("",!0)])}const Sr=pr(Vt,[["render",kr],["__scopeId","data-v-f3ee6b2b"]]),Er={class:"gsc-dropdown__main-container__item-selected"},Ir=["height","width"],Vr=["stroke"],Nr={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tr=["fill"],Or={class:"gsc-dropdown__items-container"},$r=["onClick"],Fr={key:0,class:"gsc-dropdown__items-footer"},xi={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const s=t,a=e.ref({}),n=e.ref(null),o=e.ref(s.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>s.items,(C,g)=>{if(!s.modelValue&&(!s.onlyFirstTime||!g||!g.length)&&C&&C.length){if(s.defaultItemByProp){const u=s.items.findIndex(m=>m[s.defaultItemByProp.propName]===s.defaultItemByProp.value);u!==-1?(o.value=u,a.value=C[u]):(o.value=0,a.value=C[0])}else a.value=C[s.defaultItemByIndex];i("input",a.value)}},{immediate:!0}),e.watch(()=>s.modelValue,C=>{if(C){const g=s.items.findIndex(u=>typeof C=="object"?JSON.stringify(u)===JSON.stringify(C):u===C);g!==-1&&(o.value=g,a.value=s.items[g],i("update:modelValue",a.value))}},{immediate:!0});const l=e.computed(()=>({height:s.height,width:s.width,backgroundColor:s.backgroundColor,borderRadius:`${s.borderRadius}px`,border:`${s.borderType} ${s.borderWidth}px ${s.borderColor}`,color:s.color,"--hover-background-color":s.hoverBackgroundColor,"--list-container-padding":s.listContainerPadding,"--list-item-padding":s.listItemPadding,"--list-item-margin":s.listItemMargin,"--list-background-color":s.listBackgroundColor,"--list-height":s.listHeight,"--list-item-border-radius":s.listItemBorderRadius,"--list-item-selected-color":s.listItemSelectedColor,"--list-item-selected-background-color":s.listItemSelectedBackgroundColor,"--list-item-color":s.listItemColor,"--list-border-radius":`${s.listBorderRadius}`,"--list-border-color":s.listBorderColor,"--list-width":s.isListSameWidth?s.width:"fit-content","--list-border-width":`${s.listBorderWidth}px`,"--list-margin-top":s.listMarginTop,"--list-left":s.listAlignment==="left"?"0":"auto","--list-right":s.listAlignment==="right"?"0":"auto","--footer-border":`${s.footerBorderWidth}px solid ${s.footerBorderColor}`,"--dropdown-opacity":s.isDisabled?"0.5":"1","--dropdown-cursor":s.isDisabled?"not-allowed":"pointer","--dropdown-font-size":s.fontSize?s.fontSize:"14px"})),h=e.computed(()=>({height:`${s.arrowHeight}px`,width:`${s.arrowWidth}px`}));function f(){s.isDisabled||(r.value=!r.value)}function p(C){n.value&&!n.value.contains(C.target)&&(r.value=!1)}function _(C,g){s.isMultipleOption?o.value=-1:(o.value=g,r.value=!1),a.value=C,i("input",a.value),i("update:modelValue",a.value)}function c(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",p)}),e.onBeforeMount(()=>{document.removeEventListener("click",p)}),(C,g)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:n,class:"gsc-dropdown",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:f},[e.createElementVNode("div",Er,[e.renderSlot(C.$slots,"default",{selectedItem:a.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(h.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,Vr)],8,Ir)):(e.openBlock(),e.createElementBlock("svg",Nr,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,Tr)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",Or,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${s.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(u,m)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:m===o.value}]),key:m,onClick:k=>_(u,m)},[e.renderSlot(C.$slots,"availableItem",{item:u})],10,$r)),[[e.vShow,!u.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",Fr,[e.createVNode(e.unref(Sr),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:c})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},Br=["for"],Rr=["name"],zr={key:2,width:"19",height:"19",viewBox:"0 0 21 22",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Wi={__name:"CheckBox",props:["model-value","label"],emits:["update:model-value"],setup(t,{emit:i}){const s=i;return(a,n)=>(e.openBlock(),e.createElementBlock("div",{onClick:n[0]||(n[0]=o=>s("update:model-value",!a.modelValue)),class:"checkbox"},[t.label?(e.openBlock(),e.createElementBlock("label",{key:0,for:t.label,style:{"margin-right":"6px"},class:"checkbox__label"},e.toDisplayString(t.label),9,Br)):e.createCommentVNode("",!0),a.modelValue?(e.openBlock(),e.createElementBlock("svg",{key:1,name:t.label,width:" 19",height:"19",viewBox:"0 0 19 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[...n[1]||(n[1]=[e.createElementVNode("path",{id:"Vector",fill:"#CBEE6B",d:"M13.4872 0.5H5.52225C2.06253 0.5 0 2.5615 0 6.0195V13.971C0 17.4385 2.06253 19.5 5.52225 19.5H13.4777C16.9374 19.5 19 17.4385 19 13.9805V6.0195C19.0095 2.5615 16.9469 0.5 13.4872 0.5ZM14.048 7.815L8.65881 13.2015C8.52575 13.3345 8.34516 13.4105 8.15506 13.4105C7.96497 13.4105 7.78438 13.3345 7.65131 13.2015L4.96147 10.513C4.68583 10.2375 4.68583 9.7815 4.96147 9.506C5.23711 9.2305 5.69334 9.2305 5.96897 9.506L8.15506 11.691L13.0405 6.808C13.3161 6.5325 13.7724 6.5325 14.048 6.808C14.3236 7.0835 14.3236 7.53 14.048 7.815Z"},null,-1)])],8,Rr)):(e.openBlock(),e.createElementBlock("svg",zr,[...n[2]||(n[2]=[e.createElementVNode("path",{id:"Vector",d:"M7.65 20.5H13.35C18.1 20.5 20 18.6 20 13.85V8.15C20 3.4 18.1 1.5 13.35 1.5H7.65C2.9 1.5 1 3.4 1 8.15V13.85C1 18.6 2.9 20.5 7.65 20.5Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)])]))]))}},Dr=["value"],Ar={class:"filter-modal__padding"},Mr={class:"filter-modal__content-header"},Ur={class:"filter-modal__content-options"},Pr=["onClick"],Lr={class:"filter-modal__content-header"},jr={class:"filter-modal__content-options"},Hr=["onClick"],xr=ne({__name:"gsc-filter",props:{name:{type:String,default:""},zIndex:{type:Number,default:1},showButton:{type:Boolean,default:!1},marginModal:{type:String,default:"0px"},isOpen:{type:Boolean,default:!1},reset:{type:Boolean,default:!1},itemSelect:{type:Object,default:()=>{}},componentWidth:{type:Number,default:768,validator(t){return t>0}}},emits:["update:model-value","change"],setup(t,{emit:i}){e.useCssVars(d=>({v62819590:t.marginModal}));const s=t,a=[{id:"local",name:"Local"},{id:"visit",name:"Visitante"}],n=[{id:"win",name:"Ganado"},{id:"draw",name:"Empatados"},{id:"lose",name:"Perdidos"}],o=e.ref(null),r=i,l=e.ref(["local","visit"]),h=e.ref(["win","draw","lose"]),f=e.ref(!0),p=e.ref(!0),_=e.ref(!0),c=e.ref(!0),C=e.ref(["local","visit"]),g=e.ref(["win","draw","lose"]),u=()=>{o.value.focus(),l.value=JSON.parse(JSON.stringify(C.value)),h.value=JSON.parse(JSON.stringify(g.value)),f.value=_.value,p.value=c.value};e.watch(()=>s.itemSelect,d=>{d&&(C.value=d.selectedFilterTeam,g.value=d.selectedFilterResults)}),e.watch(()=>s.reset,d=>{d&&k()});const m=(d,w)=>{let E;w==="team"?E=C.value:E=g.value;const R=E.findIndex(V=>V===d);R==-1?E.push(d):w=="team"&&C.value.length==2?E.splice(R,1):(w=="team"&&E.push(d),g.value.length>1&&E.splice(R,1)),_.value=C.value.length==2,c.value=g.value.length==3},k=()=>{C.value=["local","visit"],g.value=["win","draw","lose"],_.value=!0,c.value=!0,r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})},T=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})},y=()=>{r("change",{selectedFilterTeam:C.value,selectedFilterResults:g.value})};return(d,w)=>(e.openBlock(),e.createElementBlock("div",{class:"filter-modal",style:e.normalizeStyle({zIndex:t.zIndex})},[t.showButton?(e.openBlock(),e.createElementBlock("div",{key:0,class:"filter-modal__input",onClick:u},[w[5]||(w[5]=e.createStaticVNode('<svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg" data-v-54105a29><g id="vuesax/outline/sort" data-v-54105a29><g id="sort" data-v-54105a29><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-54105a29></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-54105a29></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-54105a29></path></g></g></svg>',1)),e.createElementVNode("input",{type:"text",value:t.name,readonly:""},null,8,Dr),w[6]||(w[6]=e.createElementVNode("svg",{width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:"#92929D"})],-1))])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["filter-modal__content",t.isOpen?"open":"close"]),tabindex:"0",ref_key:"filterElement",ref:o,onFocusout:w[4]||(w[4]=E=>{t.isOpen=!1,y()})},[e.createElementVNode("div",Ar,[e.createElementVNode("div",Mr,[w[7]||(w[7]=e.createElementVNode("h3",null,"Jugando como:",-1)),e.createVNode(Wi,{modelValue:_.value,"onUpdate:modelValue":[w[0]||(w[0]=E=>_.value=E),w[1]||(w[1]=E=>E&&(C.value=["local","visit"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",Ur,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(a,E=>e.createElementVNode("li",{onClick:R=>m(E.id,"team"),class:e.normalizeClass({active:C.value.includes(E.id)})},e.toDisplayString(E.name),11,Pr)),64))]),e.createElementVNode("div",Lr,[w[8]||(w[8]=e.createElementVNode("h3",null,"Resultados:",-1)),e.createVNode(Wi,{modelValue:c.value,"onUpdate:modelValue":[w[2]||(w[2]=E=>c.value=E),w[3]||(w[3]=E=>E&&(g.value=["win","lose","draw"]))],label:"Todos"},null,8,["modelValue"])]),e.createElementVNode("ul",jr,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,E=>e.createElementVNode("li",{onClick:R=>m(E.id,"player"),class:e.normalizeClass({active:g.value.includes(E.id)})},e.toDisplayString(E.name),11,Hr)),64))])]),w[9]||(w[9]=e.createElementVNode("hr",{style:{"border-color":"#FFFFFF33"}},null,-1)),e.createElementVNode("div",{class:"filter-modal__buttons"},[e.createElementVNode("div",{class:"button filter-modal__text-btn",onClick:k},"Quitar filtros"),e.createElementVNode("div",{class:"button filter-modal__outline-btn",onClick:T},"Listo")])],34)],4))}},[["__scopeId","data-v-54105a29"]]),Wr={key:0,xmlns:"http://www.w3.org/2000/svg",width:"9",height:"9",viewBox:"0 0 9 9",fill:"none"},qr={key:1,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Gr={key:2,width:"4",height:"6",viewBox:"0 0 4 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},qi={__name:"Icons",props:{icon:{type:String,default:"goal"}},setup(t){return(i,s)=>t.icon==="goal"?(e.openBlock(),e.createElementBlock("svg",Wr,[...s[0]||(s[0]=[e.createStaticVNode('<path fill-rule="evenodd" clip-rule="evenodd" d="M4.02408 0.891998C2.29589 0.891998 0.894531 2.28984 0.894531 4.01399C0.894531 5.73814 2.29589 7.13598 4.02408 7.13598C5.75227 7.13598 7.15363 5.73814 7.15363 4.01399C7.15363 2.28984 5.75227 0.891998 4.02408 0.891998V0.891998Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path fill-rule="evenodd" clip-rule="evenodd" d="M3.17056 5.33314L2.63867 3.69586L4.02996 2.68407L5.42152 3.69586L4.89018 5.33314H3.17056Z" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.2148 1.13477L4.02938 1.63931L2.84424 1.13477" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.66458 1.99231L1.77847 3.2768L0.932129 4.24869" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.38428 5.63698L2.63977 5.92542L3.30228 7.03115" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.7583 7.03114L5.42027 5.92487L6.67535 5.63643" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M7.1312 4.24842L6.28418 3.27599L6.39793 1.99231" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.03044 1.63925V2.68417" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M5.42432 3.7367L6.28358 3.27614" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M4.8916 5.33328L5.42294 5.92497" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.17029 5.33328L2.63867 5.92551" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path><path d="M1.77881 3.27682L2.63848 3.69599" stroke="white" stroke-width="0.6" stroke-linecap="round" stroke-linejoin="round"></path>',12)])])):t.icon==="yellow-card"?(e.openBlock(),e.createElementBlock("svg",qr,[...s[1]||(s[1]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#F7C330"},null,-1)])])):t.icon==="red-card"?(e.openBlock(),e.createElementBlock("svg",Gr,[...s[2]||(s[2]=[e.createElementVNode("rect",{width:"4",height:"6",rx:"1",fill:"#FF0000"},null,-1)])])):e.createCommentVNode("",!0)}},Xr={class:"match-details"},Jr={class:"match-details__list"},Yr={class:"match-details__list right"},Kr=ne({__name:"MatchDetails",props:{localDetails:{type:Array,default:()=>[]},foreignDetails:{type:Array,default:()=>[]}},setup(t){return(i,s)=>(e.openBlock(),e.createElementBlock("div",Xr,[e.createElementVNode("ul",Jr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.localDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createVNode(qi,{class:"icon",icon:a.icon},null,8,["icon"]),e.createElementVNode("span",null,e.toDisplayString(a.description),1)]))),256))]),e.createElementVNode("ul",Yr,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.foreignDetails,a=>(e.openBlock(),e.createElementBlock("li",null,[e.createElementVNode("span",null,e.toDisplayString(a.description),1),e.createVNode(qi,{class:"icon",icon:a.icon},null,8,["icon"])]))),256))])]))}},[["__scopeId","data-v-de53a54c"]]),Zr=(t,i)=>{const s=t.__vccOpts||t;for(const[a,n]of i)s[a]=n;return s},Nt={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Regular"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Gi=()=>{e.useCssVars(t=>({"1b04779e":t.widthCircle,c974bf22:t.heightCircle}))},Xi=Nt.setup;Nt.setup=Xi?(t,i)=>(Gi(),Xi(t,i)):Gi;const Qr={key:0,class:"text-left"},vr=["width","src"],el=["checked"],tl=["width","src"],il={key:3,class:"text-right"};function sl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(o.customText)},[s.textOptionLeft!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",Qr,e.toDisplayString(s.textOptionLeft),1)):e.createCommentVNode("",!0),s.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:s.widthIcons,src:s.iconA},null,8,vr)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>o.handleSwitchChange&&o.handleSwitchChange(...r)),checked:n.OptionDefault},null,40,el),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([o.customStyle,{"--circle-color":s.circleColorSwitch}])},null,4),s.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:s.widthIcons,src:s.iconB},null,8,tl)):e.createCommentVNode("",!0),s.textOptionRight!=""&&!s.hiddenLabels?(e.openBlock(),e.createElementBlock("span",il,e.toDisplayString(s.textOptionRight),1)):e.createCommentVNode("",!0)],4)}const al=Zr(Nt,[["render",sl],["__scopeId","data-v-e2a20444"]]),nl={containernofoundsearchrecientes:"_containernofoundsearchrecientes_90ydj_80","text-containernofoundsearchrecientes":"_text-containernofoundsearchrecientes_90ydj_86","btn-delete-filters":"_btn-delete-filters_90ydj_92",btndeletefilters:"_btndeletefilters_90ydj_108",leyenddeleteshow:"_leyenddeleteshow_90ydj_124",selectoritem:"_selectoritem_90ydj_131",anNoEstn:"_anNoEstn_90ydj_140",groupsLeague:"_groupsLeague_90ydj_144",historicas:"_historicas_90ydj_149",switchOption:"_switchOption_90ydj_155",recientes:"_recientes_90ydj_166",switchOption1:"_switchOption1_90ydj_172",switchOption2:"_switchOption2_90ydj_185",switchStatesBig:"_switchStatesBig_90ydj_194",groupsLeagueParent:"_groupsLeagueParent_90ydj_204",imgHomeTeamIcon:"_imgHomeTeamIcon_90ydj_214",imgHomeTeamWrapper:"_imgHomeTeamWrapper_90ydj_221",teamContainer:"_teamContainer_90ydj_234",name:"_name_90ydj_247",homeTeamContainer:"_homeTeamContainer_90ydj_254",div:"_div_90ydj_265",scoreContainer:"_scoreContainer_90ydj_270",scoreContainerWrapper:"_scoreContainerWrapper_90ydj_281",teamContainer1:"_teamContainer1_90ydj_294",awayTeamContainer:"_awayTeamContainer_90ydj_307",matchContainer:"_matchContainer_90ydj_318",sliderMatchesChild:"_sliderMatchesChild_90ydj_328",manchesterUnited:"_manchesterUnited_90ydj_335",sliderMatchesItem:"_sliderMatchesItem_90ydj_342",sliderMatches:"_sliderMatches_90ydj_328",sortIcon:"_sortIcon_90ydj_360",filtros:"_filtros_90ydj_368",sortParent:"_sortParent_90ydj_377",shapeIcon:"_shapeIcon_90ydj_385",btnFilter:"_btnFilter_90ydj_391",btnFilter1:"_btnFilter1_90ydj_407",btnFilterParent:"_btnFilterParent_90ydj_422",backArrowIcon:"_backArrowIcon_90ydj_431",teamContainer2:"_teamContainer2_90ydj_438",homeTeam:"_homeTeam_90ydj_254",div4:"_div4_90ydj_454",finalScore:"_finalScore_90ydj_460",manchesterUnited1:"_manchesterUnited1_90ydj_474",scoreContainer1:"_scoreContainer1_90ydj_482",match:"_match_90ydj_318",manchesterUnited2:"_manchesterUnited2_90ydj_499",btnDetails:"_btnDetails_90ydj_512",matchContainer1:"_matchContainer1_90ydj_523",goalChild:"_goalChild_90ydj_532",goal:"_goal_90ydj_532",manchesterUnited3:"_manchesterUnited3_90ydj_547",minuteEvent:"_minuteEvent_90ydj_555",yellowCard:"_yellowCard_90ydj_563",awayTeamEvents:"_awayTeamEvents_90ydj_571",rectangle:"_rectangle_90ydj_579",homeTeamEvents:"_homeTeamEvents_90ydj_587",totalEvents:"_totalEvents_90ydj_596",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_90ydj_605",sliderMatchesInner:"_sliderMatchesInner_90ydj_616",btnFilter2:"_btnFilter2_90ydj_623",btnDetails1:"_btnDetails1_90ydj_640",matchContainer3:"_matchContainer3_90ydj_649",backArrowIcon1:"_backArrowIcon1_90ydj_660",match1:"_match1_90ydj_667",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_90ydj_673",jugadores2:"_jugadores2_90ydj_684",switchOption6:"_switchOption6_90ydj_691",switchOption7:"_switchOption7_90ydj_702",switchStatesBig2:"_switchStatesBig2_90ydj_715",manchesterUnited26:"_manchesterUnited26_90ydj_723",homeTeamContainer2:"_homeTeamContainer2_90ydj_729",vectorIcon:"_vectorIcon_90ydj_737",teamSwitch:"_teamSwitch_90ydj_743",matchContainer5:"_matchContainer5_90ydj_756",manchesterUnited27:"_manchesterUnited27_90ydj_767",sliderMatchesChild1:"_sliderMatchesChild1_90ydj_775",sliderMatchesChild2:"_sliderMatchesChild2_90ydj_786",sliderMatches2:"_sliderMatches2_90ydj_797",filtros2:"_filtros2_90ydj_807",btnFilter4:"_btnFilter4_90ydj_817",jornada2:"_jornada2_90ydj_833",filterMatchday:"_filterMatchday_90ydj_840",btnDetails2:"_btnDetails2_90ydj_851",filtersContainer:"_filtersContainer_90ydj_862",matchContainer6:"_matchContainer6_90ydj_872",matchDetailContainer:"_matchDetailContainer_90ydj_881",containerData:"_containerData_90ydj_891",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_90ydj_906",headerSeccionAlineaciones:"_headerSeccionAlineaciones_90ydj_605",headerSeccionAlineaciones31200:"_headerSeccionAlineaciones31200_90ydj_932",headerSeccionAlineaciones3420:"_headerSeccionAlineaciones3420_90ydj_945",headerSeccionAlineaciones3880:"_headerSeccionAlineaciones3880_90ydj_958",headerSeccionAlineaciones3540:"_headerSeccionAlineaciones3540_90ydj_970",headerSeccionAlineaciones11200:"_headerSeccionAlineaciones11200_90ydj_983",headerSeccionAlineaciones1420:"_headerSeccionAlineaciones1420_90ydj_997",headerSeccionAlineaciones1880:"_headerSeccionAlineaciones1880_90ydj_1008",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_90ydj_1019",headerSeccionAlineaciones2420:"_headerSeccionAlineaciones2420_90ydj_1033",headerSeccionAlineaciones2880:"_headerSeccionAlineaciones2880_90ydj_1045",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_90ydj_1056"},ol={components:{GSCCarousel:St,GscSwitchComponent:Ge,GSCDropdown:xi,GSCFilter:xr,GSCSwitchRadio:al,GSCMatchDetails:Kr},props:{provider:{type:Number,default:1},widthSize:{type:Number,default:0},optionSelected:{type:String,default:"Historicos"},selectedOption:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},watch:{optionSelected:{immediate:!0,handler:async function(t){t=="Recientes"&&(this.auxISsection=1)}},gameInfo:{immediate:!0,handler:async function(t){try{this.teamSelect=t.home_team_abbreviation,this.matchFilter()}catch(i){throw new Error(i)}}},gameRecientes:{immediate:!0,handler:async function(t){this.matchFilter()}}},data(){return{playminutes:[],showDetails:!1,teamSelect:"",defaultDropItem:{},updateCarouselGames:0,valLast:{},selectedIndexOption:0,openfiltervalue:!1,vDeleteFilter:!1,filterObject:{},coutChange:0,auxISsection:0,matchdaysFiltersUpdate:[],gamesFiltersUpdate:[],localDetails:[],keyUpdate:0,foreignDetails:[]}},computed:{matchdaysFinal(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i]);for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==1&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==2&&t.push(this.matchdaysFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)this.matchdaysFiltersUpdate[i].match_result==3&&t.push(this.matchdaysFiltersUpdate[i])}else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);else for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)t.push(this.matchdaysFiltersUpdate[i]);return t.sort((i,s)=>s.id-i.id),t},gameRecientesFilter(){var t=[];if(typeof this.filterObject.selectedFilterResults<"u")if(Object.keys(this.filterObject.selectedFilterResults).length!=3)if(Object.keys(this.filterObject.selectedFilterResults).length==2){if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("win")&&Object.values(this.filterObject.selectedFilterResults).includes("lose")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}if(Object.values(this.filterObject.selectedFilterResults).includes("lose")&&Object.values(this.filterObject.selectedFilterResults).includes("draw")){for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i]);for(let i=0;i<this.gamesFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i])}}else{if(this.filterObject.selectedFilterResults[0]=="win")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==1||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==1)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="lose")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==2||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==2)&&t.push(this.gamesFiltersUpdate[i]);if(this.filterObject.selectedFilterResults[0]=="draw")for(let i=0;i<this.matchdaysFiltersUpdate.length;i++)(this.gamesFiltersUpdate[i].away_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].visiting_match_result==3||this.gamesFiltersUpdate[i].home_team_abbreviation==this.teamSelect&&this.gamesFiltersUpdate[i].home_match_result==3)&&t.push(this.gamesFiltersUpdate[i])}else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);else for(let i=0;i<this.gamesFiltersUpdate.length;i++)t.push(this.gamesFiltersUpdate[i]);return t.sort((i,s)=>i.matchday_id-s.matchday_id),t},headerSeccionAlineaciones1Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones1420:t<=880?this.$style.headerSeccionAlineaciones1880:t<=1200?this.$style.headerSeccionAlineaciones11200:this.$style.headerSeccionAlineaciones1},headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones2420:t<=540?this.$style.headerSeccionAlineaciones2540:t<=880?this.$style.headerSeccionAlineaciones2880:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones3Class(){const t=this.widthSize;return t<=420?this.$style.headerSeccionAlineaciones3420:t<=540?this.$style.headerSeccionAlineaciones3540:t<=880?this.$style.headerSeccionAlineaciones3880:t<=1200?this.$style.headerSeccionAlineaciones31200:this.$style.headerSeccionAlineaciones3}},methods:{getImageUrl:B,clickOnValueFilter(){this.auxISsection=0},clickOnValueCarrousel(){this.auxISsection=0},deleteFilters(){this.vDeleteFilter=!0,setTimeout(()=>{this.vDeleteFilter=!1},200)},clickShowDetails(){this.showDetails=!this.showDetails},matchFilter(){var t=[],i=[];if(Object.keys(this.filterObject).length>0){if(Object.keys(this.filterObject.selectedFilterTeam).length!=2)for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)this.filterObject.selectedFilterTeam[0]=="local"?this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_match_result}),i.push(this.gameRecientes[this.teamSelect][s])):this.gameRecientes[this.teamSelect][s].away_team_abbreviation==this.teamSelect&&(t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]));else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.gameRecientes[this.teamSelect][s].matchday_abbreviation.replace("M","Jornada "),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s])}else if(this.gameRecientes[this.teamSelect])for(let s=0;s<this.gameRecientes[this.teamSelect].length;s++)t.push({name:this.getRound(this.gameRecientes[this.teamSelect][s].matchday_abbreviation),id:this.gameRecientes[this.teamSelect][s].matchday_id,match_result:this.gameRecientes[this.teamSelect][s].home_team_abbreviation==this.teamSelect?this.gameRecientes[this.teamSelect][s].home_match_result:this.gameRecientes[this.teamSelect][s].visiting_match_result}),i.push(this.gameRecientes[this.teamSelect][s]);this.gamesFiltersUpdate=i,this.matchdaysFiltersUpdate=t},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},changeFiltersModal(t){this.auxISsection=1,this.filterObject=t,this.openfiltervalue=!1,this.matchFilter(),setTimeout(()=>{this.keyUpdate+=1,this.updateCarouselGames+=1},600)},openFilter(){this.openfiltervalue=!0},getMinutesData(t){this.localDetails=[],this.foreignDetails=[];for(let i=0;i<t.home_goals_minutes.length;i++)this.localDetails.push({description:t.home_goals_minutes[i],icon:"goal"});for(let i=0;i<t.visiting_goals_minutes.length;i++)this.foreignDetails.push({description:t.visiting_goals_minutes[i],icon:"goal"});for(let i=0;i<t.home_yellow_cards_minutes.length;i++)this.localDetails.push({description:t.home_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.away_yellow_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_yellow_cards_minutes[i],icon:"yellow-card"});for(let i=0;i<t.home_red_cards_minutes.length;i++)this.localDetails.push({description:t.home_red_cards_minutes[i],icon:"red-card"});for(let i=0;i<t.away_red_cards_minutes.length;i++)this.foreignDetails.push({description:t.away_red_cards_minutes[i],icon:"red-card"})},changeCarouselItem(t){setTimeout(()=>{JSON.stringify(t)!==JSON.stringify(this.valLast)&&this.gameRecientesFilter&&this.gameRecientesFilter.length>0&&t&&(t.selectedItem===void 0&&(t.selectedItem=this.gameRecientesFilter[this.gameRecientesFilter.length-1],t.selectedItemIndex=this.gameRecientesFilter.length-1),this.valLast=t,this.auxISsection==1?(this.$emit("input",{selectedItem:this.gameRecientesFilter[this.gameRecientesFilter.length-1],selectedItemIndex:this.gameRecientesFilter.length-1}),this.getMinutesData(this.gameRecientesFilter[this.gameRecientesFilter.length-1].minutes),this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id}):(this.$emit("input",t),this.getMinutesData(t.selectedItem.minutes),this.selectedIndexOption=t.selectedItemIndex,this.defaultDropItem={propName:"id",value:t.selectedItem.matchday_id}),this.keyUpdate+=1)},200)},changeDropdown(t){if(this.gameRecientesFilter&&this.gameRecientesFilter.length>0)if(this.auxISsection==1)this.selectedIndexOption=this.gameRecientesFilter.length-1,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[this.gameRecientesFilter.length-1].matchday_id};else{const i=this.gameRecientesFilter.findIndex(s=>s.matchday_id==t.id);i!=-1&&(this.selectedIndexOption=i,this.defaultDropItem={propName:"id",value:this.gameRecientesFilter[i].matchday_id})}},changeSwitchRadio(t){this.auxISsection=1,typeof t!="object"&&(this.teamSelect=t,this.$emit("changeTeam",this.teamSelect),this.updateCarouselGames+=1,this.matchFilter())},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},rl=["src"],ll=["src"],cl={class:"selector-tournaments"},dl=["src"],ml=["src"],hl={key:1},pl=["src"],fl=["src"],gl={class:"selector-tournaments"},ul=["src"],yl=["src"],_l={key:1},bl=["src"],wl=["src"],Cl={class:"selector-tournaments"},kl=["src"],Sl=["src"],El={key:1};function Il(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCSwitchRadio"),h=e.resolveComponent("GSCFilter"),f=e.resolveComponent("GSCDropdown"),p=e.resolveComponent("GSCCarousel"),_=e.resolveComponent("GSCMatchDetails");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop-full"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[9]||(i[9]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[10]||(i[10]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,ll)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[0]||(i[0]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,reset:n.vDeleteFilter,"margin-modal":"-83px"},null,8,["item-select","is-open","onChange","reset"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",cl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{onClick:o.clickOnValueCarrousel,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,dl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,ml),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["onClick","default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[11]||(i[11]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[1]||(i[1]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[2]||(i[2]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[12]||(i[12]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[13]||(i[13]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,fl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer3)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter2),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[3]||(i[3]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter1.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow1.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-99px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"32px",width:"114px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",gl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[4]||(i[4]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match1)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{items:o.gameRecientesFilter,key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,ul)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,yl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["items","default-item-by-index","onInput"])):(e.openBlock(),e.createElementBlock("div",_l,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[14]||(i[14]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[5]||(i[5]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones3Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,width:"600px",arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0.5px",backgroundOptionDisable:"#162533",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited26)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer5),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,bl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamSwitch),id:"switch-team"},[e.createVNode(l,{width:"41px",height:"20px",heightCircle:"15px",widthCircle:"15px","circle-color-switch":"#cbee6b","text-option-left":s.gameInfo.home_team_abbreviation,onChange:o.changeSwitchRadio,"text-option-right":s.gameInfo.away_team_abbreviation,"font-color":"white","value-default":n.teamSelect,"hidden-labels":!0},null,8,["text-option-left","onChange","text-option-right","value-default"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,wl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter4),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent),onClick:i[6]||(i[6]=(...c)=>o.openFilter&&o.openFilter(...c))},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter2.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros2)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-arrow-expand.svg"},null,2),e.createVNode(h,{"item-select":n.filterObject,"is-open":n.openfiltervalue,onChange:o.changeFiltersModal,"margin-modal":"-75px"},null,8,["item-select","is-open","onChange"])],2),o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(f,{onClick:o.clickOnValueFilter,key:n.keyUpdate,"default-item-by-prop":n.defaultDropItem,class:e.normalizeClass(t.$style.filterMatchday),id:"menu-matchday",items:o.matchdaysFinal,onInput:o.changeDropdown,height:"25px",width:"100px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(c=>[e.createElementVNode("div",Cl,e.toDisplayString(c.selectedItem.name),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c.name),1)]),_:1},8,["onClick","default-item-by-prop","class","items","onInput"])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2),onClick:i[7]||(i[7]=(...c)=>o.clickShowDetails&&o.clickShowDetails(...c))},[n.showDetails?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ocultar detalles")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ver detalles")],64))],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchDetailContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer6),id:"match-info-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[o.gameRecientesFilter.length>0?(e.openBlock(),e.createBlock(p,{key:n.updateCarouselGames,"default-item-by-index":n.selectedIndexOption,items:o.gameRecientesFilter,onInput:o.changeCarouselItem,isMainSlidePriority:"",areSlidesArrowsVisible:"",areNavigationArrowsVisible:!1,slideLeftArrowBackgroundImage:"none",slideRightArrowBackgroundImage:"none"},{default:e.withCtx(({item:c})=>[e.createElementVNode("div",{class:e.normalizeClass(t.$style.selectoritem)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.home_team+".png",s.provider)},null,10,kl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.finalScore)},[Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(c.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(c).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},[Array.isArray(c.score)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(c.score[1]),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(c.score[4]),1)],64))],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[c.home_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[c.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),c.away_team_abbreviation==n.teamSelect?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[c.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ganado")],64)):e.createCommentVNode("",!0),c.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Perdido")],64)):e.createCommentVNode("",!0),c.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Empatado")],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+c.away_team+".png",s.provider)},null,10,Sl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(c.away_team_abbreviation),3)],2)],2)],2)]),_:1},8,["default-item-by-index","items","onInput"])):(e.openBlock(),e.createElementBlock("div",El,[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containernofoundsearchrecientes)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leyenddeleteshow)},[...i[15]||(i[15]=[e.createTextVNode(" No hay resultados con los criterios",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("de búsqueda aplicados. ",-1)])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btndeletefilters),onClick:i[8]||(i[8]=(...c)=>o.deleteFilters&&o.deleteFilters(...c))}," Eliminar filtros aplicados ",2)],2)])),n.showDetails?(e.openBlock(),e.createBlock(_,{key:2,style:{"margin-top":"30px"},localDetails:n.localDetails,foreignDetails:n.foreignDetails},null,8,["localDetails","foreignDetails"])):e.createCommentVNode("",!0)],2)],2)],2)],2)],2)],2)}const Vl=ne(ol,[["render",Il],["__cssModules",{$style:nl}]]),Nl={selectoritem:"_selectoritem_1f2kb_90",selectoritem2:"_selectoritem2_1f2kb_100",gscheaderlineup:"_gscheaderlineup_1f2kb_110",anNoEstn:"_anNoEstn_1f2kb_117",groupsLeague:"_groupsLeague_1f2kb_120",jugadores:"_jugadores_1f2kb_125",switchOption:"_switchOption_1f2kb_130",jugadores1:"_jugadores1_1f2kb_140",switchOption1:"_switchOption1_1f2kb_145",switchStatesBig:"_switchStatesBig_1f2kb_153",groupsLeagueParent:"_groupsLeagueParent_1f2kb_162",imgHomeTeamIcon:"_imgHomeTeamIcon_1f2kb_171",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1f2kb_177",teamContainer:"_teamContainer_1f2kb_189",name:"_name_1f2kb_201",homeTeamContainer:"_homeTeamContainer_1f2kb_207",div:"_div_1f2kb_217",titleSession:"_titleSession_1f2kb_221",scoreContainer:"_scoreContainer_1f2kb_231",scoreContainerWrapper:"_scoreContainerWrapper_1f2kb_241",teamContainer1:"_teamContainer1_1f2kb_253",awayTeamContainer:"_awayTeamContainer_1f2kb_265",matchContainer:"_matchContainer_1f2kb_275",sliderMatchesChild:"_sliderMatchesChild_1f2kb_284",manchesterUnited:"_manchesterUnited_1f2kb_290",sliderMatchesItem:"_sliderMatchesItem_1f2kb_296",sliderMatches:"_sliderMatches_1f2kb_284",sortIcon:"_sortIcon_1f2kb_314",filtros:"_filtros_1f2kb_321",sortParent:"_sortParent_1f2kb_329",shapeIcon:"_shapeIcon_1f2kb_336",btnFilter:"_btnFilter_1f2kb_341",btnFilter1:"_btnFilter1_1f2kb_355",btnFilterParent:"_btnFilterParent_1f2kb_369",backArrowIcon:"_backArrowIcon_1f2kb_377",teamContainer2:"_teamContainer2_1f2kb_383",homeTeam:"_homeTeam_1f2kb_207",div4:"_div4_1f2kb_397",finalScore:"_finalScore_1f2kb_402",manchesterUnited1:"_manchesterUnited1_1f2kb_415",scoreContainer1:"_scoreContainer1_1f2kb_422",match:"_match_1f2kb_275",manchesterUnited2:"_manchesterUnited2_1f2kb_440",btnDetails:"_btnDetails_1f2kb_445",matchContainer1:"_matchContainer1_1f2kb_455",goalChild:"_goalChild_1f2kb_463",goal:"_goal_1f2kb_463",manchesterUnited3:"_manchesterUnited3_1f2kb_476",minuteEvent:"_minuteEvent_1f2kb_483",yellowCard:"_yellowCard_1f2kb_490",awayTeamEvents:"_awayTeamEvents_1f2kb_497",rectangle:"_rectangle_1f2kb_504",homeTeamEvents:"_homeTeamEvents_1f2kb_511",totalEvents:"_totalEvents_1f2kb_519",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1f2kb_527",switchOption3:"_switchOption3_1f2kb_538",switchOption4:"_switchOption4_1f2kb_550",switchStatesBig1:"_switchStatesBig1_1f2kb_560",manchesterUnited13:"_manchesterUnited13_1f2kb_567",homeTeamContainer1:"_homeTeamContainer1_1f2kb_572",scoreContainer2:"_scoreContainer2_1f2kb_579",matchContainer2:"_matchContainer2_1f2kb_593",manchesterUnited14:"_manchesterUnited14_1f2kb_603",sliderMatchesInner:"_sliderMatchesInner_1f2kb_610",rectangleIcon:"_rectangleIcon_1f2kb_620",sliderMatches1:"_sliderMatches1_1f2kb_630",containerData:"_containerData_1f2kb_638",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1f2kb_652",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1f2kb_527",headerSeccionAlineaciones21200:"_headerSeccionAlineaciones21200_1f2kb_676",headerSeccionAlineaciones1540:"_headerSeccionAlineaciones1540_1f2kb_679",headerSeccionAlineaciones2540:"_headerSeccionAlineaciones2540_1f2kb_683"},Tl={components:{GSCCarousel:St,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},widthSize:{type:Number,default:0},isLive:{type:Boolean,default:!1},gameInfo:{type:Object,default:()=>{}},teamActive:{type:String,default:"home"},gameHistoric:{type:Array,default:()=>[]}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",{season_id:t.season_id,game_id:t.id})}catch(i){throw new Error(i)}}}},data(){return{selectedOption:0,updateIndex:0,test:[{description:"Clausura 2018 I JOR 5 I CHI - ATL 12 '",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 73'",icon:"goal"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 53'",icon:"red-card"},{description:"Clausura 2018 I JOR 5 I CHI - ATL 123'",icon:"yellow-card"}]}},computed:{headerSeccionAlineaciones2Class(){const t=this.widthSize;return t<=540?this.$style.headerSeccionAlineaciones2540:t<=1200?this.$style.headerSeccionAlineaciones21200:this.$style.headerSeccionAlineaciones2},headerSeccionAlineaciones1Class(){return this.widthSize<=540?this.$style.headerSeccionAlineaciones1540:this.$style.headerSeccionAlineaciones1}},methods:{getImageUrl:B,remplazarMxJor(t){return t.replace("M","JOR ")},changeCarouselItem(t){this.$emit("input",{season_id:t.selectedItem.season,game_id:t.selectedItem.game,ht_abrev:t.selectedItem.home_team_abbreviation,at_abrev:t.selectedItem.away_team_abbreviation}),this.selectedOption=t.selectedItemIndex,this.updateIndex+=1},clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)}}},Ol=["src"],$l=["src"],Fl=["src"],Bl=["src"],Rl=["src"],zl=["src"];function Dl(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.gscheaderlineup)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones1Class),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},null,2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Ol)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleSession)},e.toDisplayString(s.gameInfo.season_name!==void 0?s.gameInfo.season_name+" | "+o.remplazarMxJor(s.gameInfo.matchday_abbreviation)+" | "+s.gameInfo.home_team_abbreviation+" - "+s.gameInfo.away_team_abbreviation:""),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,$l)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches)},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilterParent)},[e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.sortIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-filter.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2),e.createElementVNode("button",{class:e.normalizeClass(t.$style.btnFilter1),id:"btn-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.sortParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Jornada",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"2",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/icn-expand-arrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.match)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/backarrow.svg"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Fl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer1)},[s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.finalScore)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div4)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div4)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[s.teamActive=="home"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Object.home_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.home_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.home_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Object.visiting_match_result==1?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(" Ganado ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(" Perdido ")],64)):e.createCommentVNode("",!0),Object.visiting_match_result==3?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(" Empatado ")],64)):e.createCommentVNode("",!0)],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer2)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Bl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.backArrowIcon),alt:"",src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/nextarrow.svg"},null,2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDetails)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited2)},"Ver detalles",2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.headerSeccionAlineaciones2Class),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig1),id:"switch-lineup"},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited13)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Rl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),s.isLive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.scoreContainer2)},[Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[0]),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div)},"-",2),Object.keys(s.gameInfo).length>0?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.div)},e.toDisplayString(s.gameInfo.score[1]),3)):e.createCommentVNode("",!0)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,zl)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.sliderMatches1)},null,2)],2)],2)],2)],2)}const Al=ne(Tl,[["render",Dl],["__cssModules",{$style:Nl}]]),Ml={anNoEstn:"_anNoEstn_1k66p_70",groupsLeague:"_groupsLeague_1k66p_73",historicas:"_historicas_1k66p_77",switchOption:"_switchOption_1k66p_82",switchOption1:"_switchOption1_1k66p_92",probables:"_probables_1k66p_102",switchOption2:"_switchOption2_1k66p_107",switchStatesBig:"_switchStatesBig_1k66p_119",groupsLeagueParent:"_groupsLeagueParent_1k66p_128",imgHomeTeamIcon:"_imgHomeTeamIcon_1k66p_137",imgHomeTeamWrapper:"_imgHomeTeamWrapper_1k66p_143",teamContainer:"_teamContainer_1k66p_155",name:"_name_1k66p_167",jor:"_jor_1k66p_173",jorParent:"_jorParent_1k66p_179",shapeIcon:"_shapeIcon_1k66p_187",frameParent:"_frameParent_1k66p_192",manchesterUnited:"_manchesterUnited_1k66p_207",necaxaIcon:"_necaxaIcon_1k66p_218",manchesterUnited1:"_manchesterUnited1_1k66p_224",team:"_team_1k66p_155",homeTeamContainer:"_homeTeamContainer_1k66p_238",div1:"_div1_1k66p_248",scoreContainer:"_scoreContainer_1k66p_252",scoreContainerWrapper:"_scoreContainerWrapper_1k66p_263",team1:"_team1_1k66p_275",name1:"_name1_1k66p_282",teamContainer1:"_teamContainer1_1k66p_289",awayTeamContainer:"_awayTeamContainer_1k66p_301",matchContainer:"_matchContainer_1k66p_312",goalChild:"_goalChild_1k66p_321",goal:"_goal_1k66p_321",manchesterUnited4:"_manchesterUnited4_1k66p_334",minuteEvent:"_minuteEvent_1k66p_341",yellowCard:"_yellowCard_1k66p_348",awayTeamEvents:"_awayTeamEvents_1k66p_355",rectangle:"_rectangle_1k66p_362",homeTeamEvents:"_homeTeamEvents_1k66p_369",totalEvents:"_totalEvents_1k66p_377",headerSeccionAlineaciones1:"_headerSeccionAlineaciones1_1k66p_385",homeTeamContainer1:"_homeTeamContainer1_1k66p_395",awayTeamContainer1:"_awayTeamContainer1_1k66p_407",headerSeccionAlineaciones2:"_headerSeccionAlineaciones2_1k66p_419",jugadores:"_jugadores_1k66p_429",switchOption6:"_switchOption6_1k66p_435",switchOption8:"_switchOption8_1k66p_445",switchStatesBig2:"_switchStatesBig2_1k66p_457",manchesterUnited28:"_manchesterUnited28_1k66p_464",homeTeamContainer2:"_homeTeamContainer2_1k66p_468",matchContainer2:"_matchContainer2_1k66p_475",manchesterUnited29:"_manchesterUnited29_1k66p_486",sliderMatchesChild:"_sliderMatchesChild_1k66p_493",sliderMatchesItem:"_sliderMatchesItem_1k66p_503",sliderMatches:"_sliderMatches_1k66p_493",jorParent2:"_jorParent2_1k66p_523",filterMatchday:"_filterMatchday_1k66p_530",necaxaIcon4:"_necaxaIcon4_1k66p_541",team4:"_team4_1k66p_547",filterMatchdayParent:"_filterMatchdayParent_1k66p_557",filterMatchday1:"_filterMatchday1_1k66p_564",teamParent:"_teamParent_1k66p_579",filtersContainer:"_filtersContainer_1k66p_589",containerData:"_containerData_1k66p_598",headerSeccionAlineaciones3:"_headerSeccionAlineaciones3_1k66p_612",headerSeccionAlineaciones:"_headerSeccionAlineaciones_1k66p_385"},Ul={components:{GSCDropdown:xi,GscSwitchComponent:Ge},props:{provider:{type:Number,default:1},optionSelected:{type:String,default:"Historicos"},gameInfo:{type:Object,default:()=>{}},gameRecientes:{type:Array,default:()=>[]},matchdaysDefault:{type:Array,default:()=>[]}},data(){return{rivalHomeImg:"",rivalVisitImg:"",rivalHomeAbrev:"",rivalVisitAbrev:"",auxVal:0}},watch:{gameInfo:{immediate:!0,handler:async function(t){try{this.$emit("input",t)}catch(i){throw new Error(i)}}}},methods:{getImageUrl:B,clickOnSelectOption(t){this.$emit("clickOnSelectOption",t)},changeDropdownVisit(t){const i=this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalVisitAbrev=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team_abbreviation:this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation,this.rivalVisitImg=this.gameInfo.away_team_abbreviation==this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team_abbreviation?B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].away_team+".png",this.provider):B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.away_team_abbreviation][i].home_team+".png",this.provider),this.$emit("changeaway",this.gameRecientes[this.gameInfo.away_team_abbreviation][i])},changeDropdownLocal(t){const i=this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(s=>s.matchday_id===t.id);this.rivalHomeAbrev=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team_abbreviation:this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation,this.rivalHomeImg=this.gameInfo.home_team_abbreviation==this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team_abbreviation?B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].home_team+".png",this.provider):B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.gameRecientes[this.gameInfo.home_team_abbreviation][i].away_team+".png",this.provider),this.$emit("changehome",this.gameRecientes[this.gameInfo.home_team_abbreviation][i])}}},Pl=["src"],Ll={class:"selector-tournaments"},jl=["src"],Hl=["src"],xl={class:"selector-tournaments"},Wl=["src"],ql=["src"],Gl={class:"selector-tournaments"},Xl=["src"],Jl=["src"],Yl={class:"selector-tournaments"},Kl=["src"],Zl=["src"],Ql=["src"],vl={class:"selector-tournaments"},ec=["src"],tc=["src"],ic={class:"selector-tournaments"};function sc(t,i,s,a,n,o){const r=e.resolveComponent("GscSwitchComponent"),l=e.resolveComponent("GSCDropdown");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones1),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[0]||(i[0]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[1]||(i[1]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones: ",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Pl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createVNode(l,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Ll,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainerWrapper)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.scoreContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"-",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.div1)},"2",2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Hl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createVNode(l,{class:e.normalizeClass(t.$style.frameParent),items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",xl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["class","items","onInput"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name1)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Wl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones2),id:"header-desktop"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeagueParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupsLeague)},[i[2]||(i[2]=e.createElementVNode("span",null,"Las alineaciones de este partido ",-1)),e.createElementVNode("span",{class:e.normalizeClass(t.$style.anNoEstn)},"aún no están disponibles",2),i[3]||(i[3]=e.createElementVNode("span",null,". Por lo pronto puedes ver alineaciones:",-1))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,ql)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Gl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalHomeImg},null,10,Xl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalHomeAbrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.awayTeamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},e.toDisplayString(n.rivalVisitAbrev),3),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon),alt:"",src:n.rivalVisitImg},null,10,Jl),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameParent)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px",width:"92px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"1",borderColor:"rgba(255, 255, 255, 0.2)","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",Yl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Kl)],2)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerSeccionAlineaciones3),id:"header-mobile"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.switchStatesBig2),id:"switch-lineup"},[e.createVNode(r,{buttons:["Historicos","Recientes","Probables"],selectedOption:s.optionSelected,type:1,arrow:!1,borderRadius:"32px",height:"28px",fontSize:"11px;",fontFamily:"Poppins-Regular","border-width":"1px","border-width-container":"0px",backgroundOptionDisable:"#162533",width:"600px",backgroundOptionActive:"transparent",onInput:o.clickOnSelectOption},null,8,["selectedOption","onInput"])],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited28)},"Alineación utilizada en:",2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.matchContainer2),id:"match-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.home_team+".png",s.provider)},null,10,Zl)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.home_team_abbreviation),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.homeTeamContainer2)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(s.gameInfo.away_team_abbreviation),3),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamContainer1)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.imgHomeTeamWrapper)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHomeTeamIcon),alt:"",src:o.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+s.gameInfo.away_team+".png",s.provider)},null,10,Ql)],2)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtersContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchdayParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.home_team_abbreviation],onInput:o.changeDropdownLocal,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",vl,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.team4)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalHomeImg},null,10,ec)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.team1)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.necaxaIcon4),alt:"",src:n.rivalVisitImg},null,10,tc),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},"vs",2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filterMatchday1)},[e.createVNode(l,{items:s.matchdaysDefault[s.gameInfo.away_team_abbreviation],onInput:o.changeDropdownVisit,style:{"align-items":"baseline","z-index":"2"},height:"32px","background-color":"rgba(255, 255, 255, 0.05);",color:"white","border-width":"0",borderColor:"none","border-radius":"0px",fontSize:"10px",arrowHeight:"16",arrowWidth:16,listHeight:"300px",listBackgroundColor:"#243a4c",hoverBackgroundColor:"#0d1d2a",listItemColor:"#FFFFFF",listItemSelectedBackgroundColor:"#0d1d2a",listItemSelectedColor:"#c3e569",listItemPadding:"8px 7px",listBorderColor:"rgba(255, 255, 255, 0.1)",listBorderRadius:"2px"},{default:e.withCtx(h=>[e.createElementVNode("div",ic,e.toDisplayString(h.selectedItem.name),1)]),availableItem:e.withCtx(({item:h})=>[e.createElementVNode("div",null,e.toDisplayString(h.name),1)]),_:1},8,["items","onInput"])],2)],2)],2)],2)],2)],2)}const ac=ne(Ul,[["render",sc],["__cssModules",{$style:Ml}]]);let Ji=null;const nc={name:"LineupPlayers",props:{isFemale:{type:Boolean,default:!1},game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},isLive:{type:Boolean,default:!1},socket:{type:Object,default:()=>{}},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},components:{CardPlayer:oo,HeaderPlayerHistorico:hr,HeaderPlayerRecientes:Vl,HeaderPlayerProbables:ac,HeaderPlayerPostmatch:Al},data(){return{lastGetLineUpGameId:"",lastGetMXMUrl:"",selectOptMenuheader:"Probables",token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",tokenPremium:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g",urlGames:"https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/",url:"https://tj4cepyjc4.execute-api.us-west-2.amazonaws.com/prod/lineups/",urlMXM:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",retries:3,teamActive:"home",subsActive:!1,playersHome:[],gamesContainerWidth:0,keyUpdateRecientes:0,playersAway:[],defaultDropItem:{},subsTitle:!1,uniformHome:"",valueUpdateRecientes:0,uniformHomeG:"",uniformAway:"",uniformAwayG:"",dataPlayersHome:[],dataPlayersAway:[],homeTeamLogo:"",awayTeamLogo:"",homeTeamName:"",awayTeamName:"",homeTeamAbrev:"",awayTeamAbrev:"",home_team_id:0,updateComponentAway:0,away_team_id:0,substitutionModal:{min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},homeTeam:{},visitingTeam:{},gameForAnalysis:{},movil:!1,positions:[{name:"Portero"},{name:"Defensa central"},{name:"Lateral por izquierda"},{name:"Lateral por derecha"},{name:"Volante por izquierda"},{name:"Volante por derecha"},{name:"Volante defensivo"},{name:"Volante ofensivo"},{name:"Delantero"},{name:"Desconocida"}],auxProbablesIDGameHome:0,auxProbablesIDGameAway:0,auxHistoricGameID:0,gameInfoheader:{},gamesHistoric:[],gamesRecientes:[],lineupLoadingLocks:{general:!1,home:!1,away:!1,probables:!1},pendingRequests:new Set,debounceTimer:null,probablesDebounceTimer:null,matchdaysPerTeam:[],lastGetGame:0,lastSection:""}},computed:{goalcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"goal_card_div440":t<=650?"goal_card_div650":t<=820?"goal_card_div820":"goal_card_div"},yellowredcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"yellowred_card_div440":t<=650?"yellowred_card_div650":t<=820?"yellowred_card_div820":"yellowred_card_div"},redcarddivClass(){const t=this.gamesContainerWidth;return t<=440?"red_card_div440":t<=650?"red_card_div650":t<=820?"red_card_div820":"red_card_div"},yellowcarddivclass(){const t=this.gamesContainerWidth;return t<=440?"yellow_card_div440":t<=650?"yellow_card_div650":t<=820?"yellow_card_div820":"yellow_card_div"},infochangeplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-chamge-player-item440":t<=650?"info-chamge-player-item650":t<=740?"info-chamge-player-item740":"info-chamge-player-item"},infonameplayeritemClass(){const t=this.gamesContainerWidth;return t<=440?"info-name-player-item440":t<=600?"info-name-player-item600":t<=650?"info-name-player-item650":t<=740?"info-name-player-item740":"info-name-player-item"},infoplayeritemClass(){const t=this.gamesContainerWidth;return t<=400?"info-player-item400":t<=440?"info-player-item440":t<=600?"info-player-item600":t<=650?"info-player-item650":t<=740?"info-player-item740":"info-player-item"},numPlayerClass(){const t=this.gamesContainerWidth;return t<=440?"num-Player440":t<=540?"num-Player540":t<=740?"num-Player740":"num-Player"},jerseyitemplayerClass(){const t=this.gamesContainerWidth;return t<=440?"jerseyitemplayer440":t<=540?"jerseyitemplayer540":t<=650||t<=700?"jerseyitemplayer700":t<=740?"jerseyitemplayer740":"jerseyitemplayer"},itemplayerfieldClass(){return this.gamesContainerWidth<=740?"itemplayer-field740":"itemplayer-field"},numitemnewhome(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new440":t<=490||t<=540||t<=600?"num-item-new600":t<=650?"num-item-new650":t<=700||t<=740?"num-item-new740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new1040":(t<=1140,"num-item-new")},numitemnewway(){const t=this.gamesContainerWidth;return t<=300||t<=325||t<=350||t<=390||t<=440?"num-item-new-away440":t<=490||t<=540||t<=600?"num-item-new-away600":t<=650?"num-item-new-away650":t<=700||t<=740?"num-item-new-away740":t<=820||t<=840||t<=900||t<=940||t<=1040?"num-item-new-away1040":(t<=1140,"num-item-new-away")},canchacontainerClass(){const t=this.gamesContainerWidth;return t<=300?"cancha-container300":t<=325?"cancha-container325":t<=350?"cancha-container350":t<=390?"cancha-container390":t<=440?"cancha-container440":t<=490?"cancha-container490":t<=540?"cancha-container540":t<=600?"cancha-container600":t<=640?"cancha-container640":t<=700?"cancha-container700":t<=740?"cancha-container740":t<=820?"cancha-container820":t<=840?"cancha-container840":t<=900?"cancha-container900":t<=940?"cancha-container940":t<=1040?"cancha-container1040":t<=1140?"cancha-container1140":"cancha-container"},fieldcontainerClass(){const t=this.gamesContainerWidth;return t<=300?"field-container300":t<=380?"field-container380":t<=440?"field-container440":t<=540?"field-container540":t<=740?"field-container740":"field-container"},notificationnolineupsClass(){const t=this.gamesContainerWidth;return t<=300?"notification-no-lineups300":t<=370?"notification-no-lineups370":t<=400?"notification-no-lineups400":t<=460?"notification-no-lineups460":t<=500?"notification-no-lineups500":t<=530?"notification-no-lineups530":t<=740?"notification-no-lineups740":t<=768?"notification-no-lineups768":t<=830?"notification-no-lineups830":t<=900?"notification-no-lineups900":"notification-no-lineups"},containernolineups(){const t=this.gamesContainerWidth;return t<=300?"container-no-lineups300":t<=350?"container-no-lineups350":t<=768?"container-no-lineups768":"container-no-lineups"},menuTeamsClass(){return this.gamesContainerWidth<=740?"menu-teams-mobile740":"menu-teams-mobile"},positionClass(){return this.gamesContainerWidth<=500?"gsc-position-player500":"gsc-position-player"},positionClass2(){return this.gamesContainerWidth<=500?"gsc-position-player2500":"gsc-position-player2"},containerlineupsClass(){const t=this.gamesContainerWidth;return t<=740?"gsc-lineups-container680":t<=900?"gsc-lineups-container900":"gsc-lineups-container"},containerClassHome(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontainerhome680":t<=768?"gsclineupscontainerhome768":t<=900?"gsclineupscontainerhome900":"gsclineupscontainerhome"},containerClassAway(){const t=this.gamesContainerWidth;return t<=740?"gsclineupscontaineraway680":t<=768?"gsclineupscontaineraway768":t<=900?"gsclineupscontaineraway900":"gsclineupscontaineraway"},sizeBrowser(){return this.gamesContainerWidth},numPlayer(){return Number(this.playersAway.length)+Number(this.playersHome.length)},shouldShowNoLineupsMessage(){const t=(this.gameForAnalysis.game_status==4||this.gameForAnalysis.game_status==1)&&this.gameForAnalysis.is_live==0&&this.numPlayer==0;return console.log(`🔍 Condición mensaje: status=${this.gameForAnalysis.game_status}, is_live=${this.gameForAnalysis.is_live}, numPlayer=${this.numPlayer} -> ${t}`),t},benchFillHome(){return this.playersHome.length<this.playersAway.length?this.playersAway.length-this.playersHome.length:0},benchFillAway(){return this.playersAway.length<this.playersHome.length?this.playersHome.length-this.playersAway.length:0}},async mounted(){if(setTimeout(()=>{this.setUpResizeObserver()},100),this.game||this.$route.params.gameId)try{this.cleaneData()}catch(t){throw new Error(t)}},beforeUnmount(){this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.debounceTimer&&clearTimeout(this.debounceTimer)},watch:{selectOptMenuheader:{immediate:!0,async handler(t,i){t!=i&&this.selectedOption!=="Postmatch"&&(t==="Probables"&&(this.probablesDebounceTimer&&clearTimeout(this.probablesDebounceTimer),this.probablesDebounceTimer=setTimeout(async()=>{var s,a;if(this.gamehome&&this.gamehome.game_id&&this.gamehome.game_id!==0&&this.gameaway&&this.gameaway.game_id&&this.gameaway.game_id!==0){const n=this.areProbablesAlreadyLoaded(this.gamehome.game_id,this.gameaway.game_id);if(this.areProbablesRequestsPending(this.gamehome.game_id,this.gameaway.game_id)){console.log("⏳ Peticiones de alineaciones probables ya en curso, saltando...");return}if(n)console.log("⏭️ Alineaciones probables ya cargadas para estos game_ids - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id);else{console.log("✅ Cargando alineaciones probables - Home:",this.gamehome.game_id,"Away:",this.gameaway.game_id),this.auxProbablesIDGameHome=this.gamehome.game_id,this.auxProbablesIDGameAway=this.gameaway.game_id,console.log("🧹 Limpiando datos antes de cargar nuevas alineaciones..."),this.cleaneDataAway(),this.cleaneDataHome(),console.log("📊 Estado después de limpiar - Home:",this.playersHome.length,"Away:",this.playersAway.length),console.log("📋 Obteniendo información del header para probables...");try{if(!this.game||!this.game.game_id){console.warn("❌ Prop game no disponible para obtener header info");return}await this.getHeaderInfo(this.game),console.log("✅ Header info obtenido para el partido principal:",this.game.game_id)}catch(r){console.error("❌ Error obteniendo header info:",r)}this.getLineUpProbablesHome3D(this.gamehome.game_id),this.getLineUpProbablesAway3D(this.gameaway.game_id),setTimeout(()=>{console.log(`📊 Estado después de iniciar peticiones - Home: ${this.playersHome.length}, Away: ${this.playersAway.length}, numPlayer: ${this.numPlayer}`)},100)}}else console.warn("❌ No se pueden cargar alineaciones probables - game_id inválidos:",{home:(s=this.gamehome)==null?void 0:s.game_id,away:(a=this.gameaway)==null?void 0:a.game_id});this.lastSection=t},1e3)),t==="Historicos"&&this.gamesHistoric[0]&&await this.getLineUp(this.gamesHistoric[0].game))}},numPlayer:{handler(t,i){t!==i&&console.log(`👥 numPlayer cambió de ${i} a ${t} (Home: ${this.playersHome.length}, Away: ${this.playersAway.length})`)}},"gameForAnalysis.game_status":{handler(t){console.log(`🎮 game_status cambió a: ${t}`)}},"gameForAnalysis.is_live":{handler(t){console.log(`📡 is_live cambió a: ${t}`)}},"socket.connected":{immediate:!0,handler(t){t&&this.getDataSocket()}},game:{immediate:!0,handler:async function(t,i){if(t&&(!i||t.game_id!==i.game_id))try{if(t){const s={headers:{Authorization:this.token}};this.cleaneData(),await this.getHeaderInfo(t);const n=[z.get(ce(this.urlGames+t.season_id+"/games/"+t.game_id,this.provider,this.isDevApis),s)];let o=null;const r=this.selectedOption==="Postmatch"?t.game_id:this.selectOptMenuheader==="Historicos"?this.gamesHistoric[0].game:0;r&&r!==0&&r!==this.lastGetLineUpGameId?(console.log("✅ Haciendo petición de alineaciones para game_id:",r),o=z.get(ce(this.url+r,this.provider,this.isDevApis),s),n.push(o)):r===0&&console.warn("❌ Se evitó petición con game_id = 0");const[l,h]=await Promise.all(n);await this.gameDataInfo(t,l),r&&r!==0&&await this.getLineUp(r,h)}}catch(s){throw new Error(s)}}}},sockets:{new_bench([t,i]){if(i[this.home_team_id]){this.playersHome=this.playersHome.filter(function(m){return!m.isbench});for(let m=0;m<i[this.home_team_id].length;m++)if(!i[this.home_team_id][m].isTitular){this.subsTitle=!0;var s=i[this.home_team_id][m].playerName.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=this.dataPlayersHome.findIndex(k=>k.player_id==i[this.home_team_id][m].playerID);this.playersHome.push({played:!1,name:i[this.home_team_id][m].playerName,position:h!=-1?this.isFemale?this.positions[this.dataPlayersHome[h].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersHome[h].position_id-1].name:"",position_id:this.dataPlayersHome[h].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.home_team_id][m].playerID+".png",nationality:h!=-1&&this.dataPlayersHome[h].nationality?this.dataPlayersHome[h].nationality.substring(0,3):"",imgNationality:h!=-1?this.dataPlayersHome[h].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.home_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.home_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.home_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersHome.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}if(i[this.away_team_id]){this.playersAway=this.playersAway.filter(function(m){return!m.isbench});for(let m=0;m<i[this.away_team_id].length;m++)if(!i[this.away_team_id][m].isTitular){this.subsTitle=!0;var f=i[this.away_team_id][m].playerName.split(","),p=f[0].split(" "),_=s[1].trim().split(" "),c="";p.length==2||p.length==1?p[0].length<4?c=p[0]+" "+p[1]:c=p[0]:p.length==3?c=p[0]+" "+p[1]:p.length==4&&(c=p[1]+" "+p[2]+" "+p[3]);var C=_[_.length-1]!=""?_[_.length-1].charAt(0):_[_.length-2]?_[_.length-2].charAt(0):"";c=c.replace(",","");var g=C+". "+c,u=this.dataPlayersAway.findIndex(k=>k.player_id==i[this.away_team_id][m].playerID);this.playersAway.push({played:!1,name:i[this.away_team_id][m].playerName,position:u!=-1?this.isFemale?this.positions[this.dataPlayersAway[u].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[this.dataPlayersAway[u].position_id-1].name:"",position_id:this.dataPlayersAway[u].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[this.away_team_id][m].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:B("https://golstatsimages.blob.core.windows.net/teams-80/"+this.away_team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i[this.away_team_id][m].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:i[this.away_team_id][m].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0})}this.playersAway.sort((m,k)=>m.position_id>k.position_id?1:k.position_id>m.position_id?-1:0)}},new_lineup([t,i]){if(i.team_id==i.home_team.team_id){if(this.playersHome.length==0){this.dataPlayersHome=i.home_team.players;for(let d=0;d<i.data.length;d++){this.home_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","home",0);var s=i.data[d].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=i.data[d].x,f=h*50/100,p=i.home_team.players.findIndex(w=>w.player_id==i.data[d].player_id);this.playersHome.push({played:!0,name:i.data[d].player_name,position:p!=-1?this.isFemale?this.positions[i.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.home_team.players[p].position_id-1].name:"",position_id:i.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:p!=-1&&i.home_team.players[p].nationality?i.home_team.players[p].nationality.substring(0,3):"",imgNationality:p!=-1?i.home_team.players[p].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:f*.9,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-2,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersHome.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}else if(this.playersAway.length==0){this.dataPlayersAway=i.away_team.players;for(let d=0;d<i.data.length;d++){this.away_team_id=i.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+i.team_id+"_g.svg","away",0);var _=i.data[d].player_name.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=i.data[d].x,T=100-(100-k)*50/100;T=T*.9;var y=i.away_team.players.findIndex(w=>w.player_id==i.data[d].player_id);this.playersAway.push({played:!0,name:i.data[d].player_name,position:y!=-1?this.isFemale?this.positions[i.away_team.players[y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[i.away_team.players[y].position_id-1].name:"",position_id:i.away_team.players[y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+i.data[d].player_id+".png",nationality:y!=-1&&i.away_team.players[y].nationality?i.away_team.players[y].nationality.substring(0,3):"",imgNationality:y!=-1?i.away_team.players[y].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:i.data[d].jersey_number,positionX:i.data[d].y-13,positionY:T+2,positionXOrigin:i.data[d].y-17,positionYOrigin:i.data[d].x-7,playerId:i.data[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:i.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+i.team_id+".png",this.provider)}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}},update_mxm([t,i]){var s=-1,a=-1;if(this.playersHome.length>0){var n=this.playersHome.findIndex(V=>V.idredcards==i.play_id),o=this.playersHome.findIndex(V=>V.idyellowcards==i.play_id),r=this.playersHome.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersHome.length;V++){var l=this.playersHome[V].idsGoals.findIndex(A=>A==i.play_id);l!=-1&&(s=l,a=V)}n!=-1&&this.resetPlayUpdate("RedCard","Home",n,a),o!=-1&&this.resetPlayUpdate("YellowCard","Home",o,a),r!=-1&&this.resetPlayUpdate("Substitution","Home",r,a),s!=-1&&this.resetPlayUpdate("Goals","Home",s,a)}if(this.playersAway.length>0){var h=this.playersAway.findIndex(V=>V.idredcards==i.play_id),f=this.playersAway.findIndex(V=>V.idyellowcards==i.play_id),p=this.playersAway.findIndex(V=>V.idSubstitution==i.play_id);for(let V=0;V<this.playersAway.length;V++){var _=this.playersAway[V].idsGoals.findIndex(A=>A==i.play_id);_!=-1&&(s=_,a=V)}h!=-1&&this.resetPlayUpdate("RedCard","Away",h,a),f!=-1&&this.resetPlayUpdate("YellowCard","Away",f,a),p!=-1&&this.resetPlayUpdate("Substitution","Away",p,a),s!=-1&&this.resetPlayUpdate("Goals","Away",s,a)}if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=i.player_id.split("@"),C=this.playersHome.findIndex(V=>V.playerId==c[0]),g=this.playersHome.findIndex(V=>V.playerId==c[1]);C!=-1&&(this.playersHome[C].idSubstitution=i.play_id,this.playersHome[C].substitutionOut=!0,this.playersHome[C].substitutionMin=i.minute,this.playersHome[C].substitutionDataID=i.team_id+"@"+i.player_id),g!=-1&&(this.playersHome[g].idSubstitution=i.play_id,this.playersHome[g].substitutionIn=!0,this.playersHome[g].substitutionMin=i.minute,this.playersHome[g].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var u=i.player_id.split("@"),m=this.playersAway.findIndex(V=>V.playerId==u[0]),k=this.playersAway.findIndex(V=>V.playerId==u[1]);C!=-1&&(this.playersAway[m].idSubstitution=i.play_id,this.playersAway[m].substitutionOut=!0,this.playersAway[m].substitutionMin=i.minute,this.playersAway[m].substitutionDataID=i.team_id+"@"+i.player_id),k!=-1&&(this.playersAway[k].idSubstitution=i.play_id,this.playersAway[k].substitutionIn=!0,this.playersAway[k].substitutionMin=i.minute,this.playersAway[k].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var T=this.playersHome.findIndex(V=>V.playerId==i.player_id);T!=-1&&(this.playersHome[T].goals+=1,this.playersHome[T].goalsMin.push(i.minute),this.playersHome[T].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var y=this.playersAway.findIndex(V=>V.playerId==i.player_id);y!=-1&&(this.playersAway[y].goals+=1,this.playersAway[y].goalsMin.push(i.minute),this.playersAway[y].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var d=this.playersHome.findIndex(V=>V.playerId==i.player_id);d!=-1&&(this.playersHome[d].yellowcards+=1,this.playersHome[d].yellowcardsMin=i.minute,this.playersHome[d].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var w=this.playersAway.findIndex(V=>V.playerId==i.player_id);w!=-1&&(this.playersAway[w].yellowcards+=1,this.playersAway[w].yellowcardsMin=i.minute,this.playersAway[w].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var E=this.playersHome.findIndex(V=>V.playerId==i.player_id);E!=-1&&(this.playersHome[E].redcards+=1,this.playersHome[E].redcardsMin=i.minute,this.playersHome[E].idredcards=i.play_id)}}else if(this.playersAway.length>0){var R=this.playersAway.findIndex(V=>V.playerId==i.player_id);R!=-1&&(this.playersAway[R].redcards+=1,this.playersAway[R].redcardsMin=i.minute,this.playersAway[R].idredcards=i.play_id)}}}},delete_mxm([t,i]){if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++)this.playersHome[s].idSubstitution==i.play_id&&(this.playersHome[s].substitutionOut=!1,this.playersHome[s].substitutionIn=!1,this.playersHome[s].substitutionMin="",this.playersHome[s].substitutionDataID="",this.playersHome[s].idSubstitution=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idSubstitution==i.play_id&&(this.playersAway[s].substitutionOut=!1,this.playersAway[s].substitutionIn=!1,this.playersAway[s].substitutionMin="",this.playersAway[s].substitutionDataID="",this.playersAway[s].idSubstitution=0);if(this.playersHome.length>0)for(let s=0;s<this.playersHome.length;s++){const a=this.playersHome[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersHome[s].goals=this.playersHome[s].goals-1,this.playersHome[s].goalsMin.splice(a,1),this.playersHome[s].idsGoals.splice(a,1))}if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++){const a=this.playersAway[s].idsGoals.findIndex(n=>n==i.play_id);a!=-1&&(this.playersAway[s].goals=this.playersAway[s].goals-1,this.playersAway[s].goalsMin.splice(a,1),this.playersAway[s].idsGoals.splice(a,1))}if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idyellowcards==i.play_id&&(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idyellowcards==i.play_id&&(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0);if(this.playersHome.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersHome[s].idredcards==i.play_id&&(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0);if(this.playersAway.length>0)for(let s=0;s<this.playersAway.length;s++)this.playersAway[s].idredcards==i.play_id&&(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)},new_mxm([t,i]){if(i.event_type_id==3){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var s=i.player_id.split("@"),a=this.playersHome.findIndex(g=>g.playerId==s[0]),n=this.playersHome.findIndex(g=>g.playerId==s[1]);a!=-1&&(this.playersHome[a].idSubstitution=i.play_id,this.playersHome[a].substitutionOut=!0,this.playersHome[a].substitutionMin=i.minute,this.playersHome[a].substitutionDataID=i.team_id+"@"+i.player_id),n!=-1&&(this.playersHome[n].idSubstitution=i.play_id,this.playersHome[n].substitutionIn=!0,this.playersHome[n].substitutionMin=i.minute,this.playersHome[n].substitutionDataID=i.team_id+"@"+i.player_id)}}else if(this.playersAway.length>0){var o=i.player_id.split("@"),r=this.playersAway.findIndex(g=>g.playerId==o[0]),l=this.playersAway.findIndex(g=>g.playerId==o[1]);a!=-1&&(this.playersAway[r].idSubstitution=i.play_id,this.playersAway[r].substitutionOut=!0,this.playersAway[r].substitutionMin=i.minute,this.playersAway[r].substitutionDataID=i.team_id+"@"+i.player_id),l!=-1&&(this.playersAway[l].idSubstitution=i.play_id,this.playersAway[l].substitutionIn=!0,this.playersAway[l].substitutionMin=i.minute,this.playersAway[l].substitutionDataID=i.team_id+"@"+i.player_id)}}if(i.event_type_id==1){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var h=this.playersHome.findIndex(g=>g.playerId==i.player_id);h!=-1&&(this.playersHome[h].goals+=1,this.playersHome[h].goalsMin.push(i.minute),this.playersHome[h].idsGoals.push(i.play_id))}}else if(this.playersAway.length>0){var f=this.playersAway.findIndex(g=>g.playerId==i.player_id);f!=-1&&(this.playersAway[f].goals+=1,this.playersAway[f].goalsMin.push(i.minute),this.playersAway[f].idsGoals.push(i.play_id))}}if(i.event_type_id==2){if(i.category_id==8){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var p=this.playersHome.findIndex(g=>g.playerId==i.player_id);p!=-1&&(this.playersHome[p].yellowcards+=1,this.playersHome[p].yellowcardsMin=i.minute,this.playersHome[p].idyellowcards=i.play_id)}}else if(this.playersAway.length>0){var _=this.playersAway.findIndex(g=>g.playerId==i.player_id);_!=-1&&(this.playersAway[_].yellowcards+=1,this.playersAway[_].yellowcardsMin=i.minute,this.playersAway[_].idyellowcards=i.play_id)}}if(i.category_id==9){if(i.team_id==this.home_team_id){if(this.playersHome.length>0){var c=this.playersHome.findIndex(g=>g.playerId==i.player_id);c!=-1&&(this.playersHome[c].redcards+=1,this.playersHome[c].redcardsMin=i.minute,this.playersHome[c].idredcards=i.play_id)}}else if(this.playersAway.length>0){var C=this.playersAway.findIndex(g=>g.playerId==i.player_id);C!=-1&&(this.playersAway[C].redcards+=1,this.playersAway[C].redcardsMin=i.minute,this.playersAway[C].idredcards=i.play_id)}}}}},methods:{isRequestPending(t,i="general"){const s=`${i}_${t}`;return this.pendingRequests.has(s)},markRequestPending(t,i="general"){const s=`${i}_${t}`;this.pendingRequests.add(s),console.log(`🔒 Marcando petición como pendiente: ${s}`)},removeRequestPending(t,i="general"){const s=`${i}_${t}`;this.pendingRequests.delete(s),console.log(`🔓 Removiendo petición pendiente: ${s}`)},areProbablesAlreadyLoaded(t,i){return this.auxProbablesIDGameHome===t&&this.auxProbablesIDGameAway===i},areProbablesRequestsPending(t,i){return this.isRequestPending(t,"home")||this.isRequestPending(i,"away")},calculatePerspectiveAdjustment(t){const s=Math.max(0,Math.min(100,t)),a=12*(1-Math.pow(s/100,2));return Math.round(a)},calculatePerspectiveAdjustmentAway(t){const s=Math.max(0,Math.min(100,t)),a=12*Math.pow(s/100,2);return Math.round(a)},onOpenProfile(t){this.$emit("onOpenProfile",t)},async getLineUpProbablesHome3D(t){if(console.log("🏠 Iniciando petición de alineaciones probables HOME para game_id:",t),t==null||t===0){console.warn("❌ getLineUpProbablesHome3D: Se intentó hacer petición con game_id inválido:",t);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesHome3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesHome3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(t,"home")){console.warn(`🔒 getLineUpProbablesHome3D: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"home");try{const d=await z.create({headers:{Authorization:`${this.token}`}}).get(ce(this.url+t,this.provider,this.isDevApis));if(!d||!d.data)throw new Error("There is not lineups for this game.");if(this.homeTeamAbrev=this.gameInfoheader.home_team_abbreviation,d.data.home_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.home_team.players,d.data.home_team.starting_lineup[0].lineup.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0);for(let w=0;w<d.data.home_team.starting_lineup[0].lineup.length;w++){this.home_team_id=d.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.home_team.team_id+"_g.svg","home",0);var i=d.data.home_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=d.data.home_team.starting_lineup[0].lineup[w].x,h=l*50/100,f=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.starting_lineup[0].lineup[w].player_id);console.log(`🏠 Agregando jugador HOME: ${d.data.home_team.starting_lineup[0].lineup[w].player_name}`),this.playersHome.push({played:!0,name:d.data.home_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[d.data.home_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[f].position_id-1].name,position_id:d.data.home_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.starting_lineup[0].lineup[w].player_id+".png",nationality:d.data.home_team.players[f].nationality?d.data.home_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.home_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.starting_lineup[0].lineup[w].jersey_number,positionX:d.data.home_team.starting_lineup[0].lineup[w].y-13,positionY:h*.9,positionXOrigin:d.data.home_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:d.data.home_team.starting_lineup[0].lineup[w].x-2,playerId:d.data.home_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.home_team.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0),d.data.home_team.bench){for(let w=0;w<d.data.home_team.bench.length;w++){this.subsTitle=!0;var p=d.data.home_team.bench[w].playerName.split(","),_=p[0].split(" "),c=p[1].trim().split(" "),C="";_.length==2||_.length==1?_[0].length<4?C=_[0]+" "+_[1]:C=_[0]:_.length==3?C=_[0]+" "+_[1]:_.length==4&&(C=_[1]+" "+_[2]+" "+_[3]);var g=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var u=g+". "+C,m=d.data.home_team.players.findIndex(E=>E.player_id==d.data.home_team.bench[w].playerID);this.playersHome.push({played:!1,name:d.data.home_team.bench[w].playerName,position:m!=-1?this.isFemale?this.positions[d.data.home_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.home_team.players[m].position_id-1].name:"",position_id:d.data.home_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.home_team.bench[w].playerID+".png",nationality:m!=-1&&d.data.home_team.players[m].nationality?d.data.home_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.home_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.home_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.home_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.home_team.team_id})}this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0)}}if(d.data.away_team.team_id==this.gameInfoheader.home_team){this.gameInfoheader.home_team==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.home_team==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym),this.dataPlayersHome=d.data.away_team.players,d.data.away_team.starting_lineup[0].lineup.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0);for(let w=0;w<d.data.away_team.starting_lineup[0].lineup.length;w++){this.home_team_id=d.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+d.data.away_team.team_id+"_g.svg","home",0);var i=d.data.away_team.starting_lineup[0].lineup[w].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,k=d.data.away_team.starting_lineup[0].lineup[w].x;k=Math.abs(k-100);var h=k*50/100,T=d.data.away_team.starting_lineup[0].lineup[w].y;T=Math.abs(T-100);var f=d.data.away_team.players.findIndex(M=>M.player_id==d.data.away_team.starting_lineup[0].lineup[w].player_id);this.playersHome.push({played:!0,name:d.data.away_team.starting_lineup[0].lineup[w].player_name,position:this.isFemale?this.positions[d.data.away_team.players[f].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[f].position_id-1].name,position_id:d.data.away_team.players[f].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.starting_lineup[0].lineup[w].player_id+".png",nationality:d.data.away_team.players[f].nationality?d.data.away_team.players[f].nationality.substring(0,3):"",imgNationality:d.data.away_team.players[f].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.starting_lineup[0].lineup[w].jersey_number,positionX:T-20,positionY:h*.9,positionXOrigin:d.data.away_team.starting_lineup[0].lineup[w].y-17,positionYOrigin:d.data.away_team.starting_lineup[0].lineup[w].x-2,playerId:d.data.away_team.starting_lineup[0].lineup[w].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:d.data.away_team.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider)}if(this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0),d.data.away_team.bench){for(let w=0;w<d.data.away_team.bench.length;w++){this.subsTitle=!0;var p=d.data.away_team.bench[w].playerName.split(","),_=p[0].split(" "),c=p[1].trim().split(" "),C="";_.length==2||_.length==1?_[0].length<4?C=_[0]+" "+_[1]:C=_[0]:_.length==3?C=_[0]+" "+_[1]:_.length==4&&(C=_[1]+" "+_[2]+" "+_[3]);var g=c[c.length-1]!=""?c[c.length-1].charAt(0):c[c.length-2]?c[c.length-2].charAt(0):"";C=C.replace(",","");var u=g+". "+C,m=d.data.away_team.players.findIndex(U=>U.player_id==d.data.away_team.bench[w].playerID);this.playersHome.push({played:!1,name:d.data.away_team.bench[w].playerName,position:m!=-1?this.isFemale?this.positions[d.data.away_team.players[m].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[d.data.away_team.players[m].position_id-1].name:"",position_id:d.data.away_team.players[m].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+d.data.away_team.bench[w].playerID+".png",nationality:m!=-1&&d.data.away_team.players[m].nationality?d.data.away_team.players[m].nationality.substring(0,3):"",imgNationality:m!=-1?d.data.away_team.players[m].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:u,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+d.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:d.data.away_team.bench[w].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:d.data.away_team.bench[w].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:d.data.away_team.team_id})}this.playersHome.sort((w,E)=>w.position_id>E.position_id?1:E.position_id>w.position_id?-1:0)}}await this.getMXM(t),this.removeRequestPending(t,"home"),console.log(`✅ getLineUpProbablesHome3D: Petición completada exitosamente para game_id: ${t}`),console.log(`📊 Jugadores HOME cargados: ${this.playersHome.length}`)}catch(y){return this.removeRequestPending(t,"home"),console.error(`❌ getLineUpProbablesHome3D: Error en petición para game_id: ${t}`,y),Promise.reject(y)}},cleaneDataHome(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersHome=[],this.gamesContainerWidth=0,this.subsTitle=!1,this.uniformHome="",this.uniformHomeG="",this.dataPlayersHome=[],this.homeTeamLogo="",this.homeTeamName="",this.home_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},cleaneDataAway(){this.retries=3,this.teamActive="home",this.subsActive=!1,this.playersAway=[],this.subsTitle=!1,this.uniformAway="",this.uniformAwayG="",this.dataPlayersAway=[],this.awayTeamLogo="",this.awayTeamName="",this.updateComponentAway=0,this.away_team_id=0,this.substitutionModal={min:"",in:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""},out:{playerImg:"",teamImg:"",nationalityimg:"",name:"",position:"",shirt_number:""}},this.movil=!1},async getLineUpProbablesAway3D(t){if(console.log("✈️ Iniciando petición de alineaciones probables AWAY para game_id:",t),t==null||t===0){console.warn("❌ getLineUpProbablesAway3D: Se intentó hacer petición con game_id inválido:",t);return}if(!this.gameInfoheader){console.warn("❌ getLineUpProbablesAway3D: gameInfoheader no está disponible");return}if(this.game&&this.gameInfoheader.id!==this.game.game_id){console.warn(`❌ getLineUpProbablesAway3D: gameInfoheader (${this.gameInfoheader.id}) no corresponde al partido actual (${this.game.game_id})`);return}if(this.isRequestPending(t,"away")){console.warn(`🔒 getLineUpProbablesAway3D: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"away");try{const y=await z.create({headers:{Authorization:`${this.token}`}}).get(ce(this.url+t,this.provider,this.isDevApis));if(!y||!y.data)throw new Error("There is not lineups for this game.");if(this.awayTeamAbrev=this.gameInfoheader.away_team_abbreviation,y.data.home_team.team_id==this.gameInfoheader.away_team){this.dataPlayersAway=y.data.home_team.players,this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym);for(let d=0;d<y.data.home_team.starting_lineup[0].lineup.length;d++){this.away_team_id=y.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.home_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.home_team.team_id+"_g.svg","away",0);var i=y.data.home_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=y.data.home_team.starting_lineup[0].lineup[d].x;l=Math.abs(l-100);var h=y.data.home_team.starting_lineup[0].lineup[d].y;h=Math.abs(h-100);var f=100-(100-l)*50/100;f=f*.9;var p=y.data.home_team.players.findIndex(w=>w.player_id==y.data.home_team.starting_lineup[0].lineup[d].player_id);console.log(`✈️ Agregando jugador AWAY: ${y.data.home_team.starting_lineup[0].lineup[d].player_name}`),this.playersAway.push({played:!0,name:y.data.home_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[y.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.home_team.players[p].position_id-1].name,position_id:y.data.home_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.home_team.starting_lineup[0].lineup[d].player_id+".png",nationality:y.data.home_team.players[p].nationality?y.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:y.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.home_team.starting_lineup[0].lineup[d].jersey_number,positionX:h-23,positionY:f,positionXOrigin:y.data.home_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:y.data.home_team.starting_lineup[0].lineup[d].x-7,playerId:y.data.home_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:y.data.home_team.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider)}if(this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0),y.data.home_team.bench){for(let d=0;d<y.data.home_team.bench.length;d++){this.subsTitle=!0;var _=y.data.home_team.bench[d].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=y.data.home_team.players.findIndex(w=>w.player_id==y.data.home_team.bench[d].playerID);this.playersAway.push({played:!1,name:y.data.home_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[y.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.home_team.players[k].position_id-1].name:"",position_id:y.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.home_team.bench[d].playerID+".png",nationality:k!=-1&&y.data.home_team.players[k].nationality?y.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?y.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.home_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:y.data.home_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:y.data.home_team.team_id})}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}if(y.data.away_team.team_id==this.gameInfoheader.away_team){this.gameInfoheader.away_team==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym),this.gameInfoheader.away_team==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),this.dataPlayersAway=y.data.away_team.players;for(let d=0;d<y.data.away_team.starting_lineup[0].lineup.length;d++){this.away_team_id=y.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+y.data.away_team.team_id+"_g.svg","away",0);var i=y.data.away_team.starting_lineup[0].lineup[d].player_name.split(","),s=i[0].split(" "),a=i[1].trim().split(" "),n="";s.length==2||s.length==1?s[0].length<4?n=s[0]+" "+s[1]:n=s[0]:s.length==3?n=s[0]+" "+s[1]:s.length==4&&(n=s[1]+" "+s[2]+" "+s[3]);var o=a[a.length-1]!=""?a[a.length-1].charAt(0):a[a.length-2]?a[a.length-2].charAt(0):"";n=n.replace(",","");var r=o+". "+n,l=y.data.away_team.starting_lineup[0].lineup[d].x,f=100-(100-l)*50/100;f=f*.9;var p=y.data.away_team.players.findIndex(M=>M.player_id==y.data.away_team.starting_lineup[0].lineup[d].player_id);this.playersAway.push({played:!0,name:y.data.away_team.starting_lineup[0].lineup[d].player_name,position:this.isFemale?this.positions[y.data.away_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.away_team.players[p].position_id-1].name,position_id:y.data.away_team.players[p].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.away_team.starting_lineup[0].lineup[d].player_id+".png",nationality:y.data.away_team.players[p].nationality?y.data.away_team.players[p].nationality.substring(0,3):"",imgNationality:y.data.away_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:r,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.away_team.starting_lineup[0].lineup[d].jersey_number,positionX:y.data.away_team.starting_lineup[0].lineup[d].y-13,positionY:f,positionXOrigin:y.data.away_team.starting_lineup[0].lineup[d].y-17,positionYOrigin:y.data.away_team.starting_lineup[0].lineup[d].x-7,playerId:y.data.away_team.starting_lineup[0].lineup[d].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:y.data.away_team.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider)}if(this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0),y.data.away_team.bench){for(let d=0;d<y.data.away_team.bench.length;d++){this.subsTitle=!0;var _=y.data.away_team.bench[d].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=y.data.away_team.players.findIndex(D=>D.player_id==y.data.away_team.bench[d].playerID);this.playersAway.push({played:!1,name:y.data.away_team.bench[d].playerName,position:k!=-1?this.isFemale?this.positions[y.data.away_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[y.data.away_team.players[k].position_id-1].name:"",position_id:y.data.away_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+y.data.away_team.bench[d].playerID+".png",nationality:k!=-1&&y.data.away_team.players[k].nationality?y.data.away_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?y.data.away_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+y.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:y.data.away_team.bench[d].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:y.data.away_team.bench[d].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:y.data.away_team.team_id})}this.playersAway.sort((d,w)=>d.position_id>w.position_id?1:w.position_id>d.position_id?-1:0)}}await this.getMXM(t),this.removeRequestPending(t,"away"),console.log(`✅ getLineUpProbablesAway3D: Petición completada exitosamente para game_id: ${t}`),console.log(`📊 Jugadores AWAY cargados: ${this.playersAway.length}`)}catch(T){return this.removeRequestPending(t,"away"),console.error(`❌ getLineUpProbablesAway3D: Error en petición para game_id: ${t}`,T),Promise.reject(T)}},async getLineupProbablesHome(t){t&&t.id&&t.id!==0?this.auxProbablesIDGameHome!=t.id&&(console.log("✅ getLineupProbablesHome: Cargando alineaciones para game_id:",t.id),this.auxProbablesIDGameHome=t.id):console.warn("❌ getLineupProbablesHome: game_id inválido:",t==null?void 0:t.id)},async getLineupProbablesAway(t){t&&t.id&&t.id!==0?this.auxProbablesIDGameAway!=t.id&&(console.log("✅ getLineupProbablesAway: Cargando alineaciones para game_id:",t.id),this.auxProbablesIDGameAway=t.id):console.warn("❌ getLineupProbablesAway: game_id inválido:",t==null?void 0:t.id)},async getLineupProbables(t){if(t&&t.id&&t.id!==0){var i={season_id:t.season_id,game_id:t.id};this.lastGetGame!=i.game_id&&(console.log("✅ getLineupProbables: Cargando alineaciones para game_id:",t.id),this.cleaneData(),await this.getLineUp(i.game_id)),this.lastGetGame=i.game_id}else console.warn("❌ getLineupProbables: game_id inválido:",t==null?void 0:t.id)},async changeCarouselItem(t){t&&t.game_id&&t.game_id!==0&&typeof t.game_id<"u"&&t.game_id!=this.gameInfoheader.id?this.auxHistoricGameID!=t.game_id&&(console.log("✅ changeCarouselItem: Cargando alineaciones para game_id:",t.game_id),this.auxHistoricGameID=t.game_id,this.cleaneData(),await this.getLineUp(t.game_id)):console.warn("❌ changeCarouselItem: game_id inválido:",t==null?void 0:t.game_id)},async changeCarouselItemRecent(t){var s;if(t.selectedItem&&t.selectedItem.id&&t.selectedItem.id!==0){var i={season_id:t.selectedItem.season_id,game_id:t.selectedItem.id};console.log("✅ changeCarouselItemRecent: Cargando alineaciones para game_id:",t.selectedItem.id),this.homeTeam.acronymrecientes=t.selectedItem.home_team_abbreviation,this.visitingTeam.acronymrecientes=t.selectedItem.away_team_abbreviation,this.cleaneData(),await this.getLineUp(i.game_id),this.lastGetGame=i.game_id}else console.warn("❌ changeCarouselItemRecent: game_id inválido:",(s=t.selectedItem)==null?void 0:s.id)},async getHeaderInfo(t,i=null){const s=z.create({headers:{Authorization:`${this.token}`}}),a=i||await s.get(ce("https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/"+t.season_id+"/games/"+t.game_id+"/lineups",this.provider,this.isDevApis));if(console.log("GAME INFO HEADER --------------------------------------------------------> ",t.game_id),this.gameInfoheader=a.data.game,console.log("📋 gameInfoheader establecido para game_id:",this.gameInfoheader.id,"del partido:",t.game_id),this.selectedOption!="Postmatch"){for(let n=0;n<a.data.games_historic.length;n++)this.gamesHistoric.push({objgame:a.data.games_historic[n],game:a.data.games_historic[n].id,home_team_abbreviation:a.data.games_historic[n].home_team_abbreviation,away_team_abbreviation:a.data.games_historic[n].away_team_abbreviation,season:a.data.games_historic[n].season_id,description:a.data.games_historic[n].season_name+" | "+this.getRoundH(a.data.games_historic[n].matchday_abbreviation)+" | "+a.data.games_historic[n].home_team_abbreviation+" - "+a.data.games_historic[n].away_team_abbreviation});this.gamesRecientes[a.data.game.home_team_abbreviation]=[],this.gamesRecientes[a.data.game.away_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.home_team_abbreviation]=[],this.matchdaysPerTeam[a.data.game.away_team_abbreviation]=[];for(let n=0;n<a.data.home_team_games_recent.length;n++)this.gamesRecientes[a.data.game.home_team_abbreviation].push(a.data.home_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.home_team_abbreviation].push({name:this.getRound(a.data.home_team_games_recent[n].matchday_abbreviation),id:a.data.home_team_games_recent[n].matchday_id});for(let n=0;n<a.data.away_team_games_recent.length;n++)this.gamesRecientes[a.data.game.away_team_abbreviation].push(a.data.away_team_games_recent[n]),this.matchdaysPerTeam[a.data.game.away_team_abbreviation].push({name:this.getRound(a.data.away_team_games_recent[n].matchday_abbreviation),id:a.data.away_team_games_recent[n].matchday_id})}},getRound(t){let i=t.replace("M","Jornada ");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},getRoundH(t){let i=t.replace("M","J");return i=i.replace("PO1","CFI"),i=i.replace("PO2","CFV"),i=i.replace("PO3","SFI"),i=i.replace("PO4","SFV"),i=i.replace("PO5","FI"),i=i.replace("PO6","FV"),i},clickOnSelectOption(t){this.selectOptMenuheader=t,this.cleaneData(),this.auxProbablesIDGameAway=0,this.auxProbablesIDGameHome=0},async gameDataInfo(t,i=null){const s=z.create({headers:{Authorization:`${this.token}`}}),a=i||await s.get(ce(this.urlGames+t.season_id+"/games/"+t.game_id,this.provider,this.isDevApis));this.homeTeam=a.data.teams[0],this.visitingTeam=a.data.teams[1];const n=a.data.games.find(o=>o.game_id===Number(o.game_id));this.gameForAnalysis=n},cleaneData(){this.pendingRequests.clear(),console.log("🧹 cleaneData: Limpiando todas las peticiones pendientes"),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(){wt("lineups.game."+this.game.game_id,this.socket),wt("mxm.game."+this.game.game_id,this.socket),wt("lineups.bench.game."+this.game.game_id,this.socket)},resetPlayUpdate(t,i,s,a){if(t=="Substitution")if(i=="Home"){var n=this.playersHome[s].substitutionDataID.split("@"),o=this.playersHome.findIndex(p=>p.playerId==n[1]),r=this.playersHome.findIndex(p=>p.playerId==n[2]);o!=-1&&(this.playersHome[o].substitutionOut=!1,this.playersHome[o].substitutionMin="",this.playersHome[o].substitutionDataID="",this.playersHome[o].idSubstitution=0),r!=-1&&(this.playersHome[r].substitutionIn=!1,this.playersHome[r].substitutionMin="",this.playersHome[r].substitutionDataID="",this.playersHome[r].idSubstitution=0)}else{var l=this.playersAway[s].substitutionDataID.split("@"),h=this.playersAway.findIndex(p=>p.playerId==l[1]),f=this.playersAway.findIndex(p=>p.playerId==l[2]);o!=-1&&(this.playersAway[h].substitutionOut=!1,this.playersAway[h].substitutionMin="",this.playersAway[h].substitutionDataID="",this.playersAway[h].idSubstitution=0),f!=-1&&(this.playersAway[f].substitutionIn=!1,this.playersAway[f].substitutionMin="",this.playersAway[f].substitutionDataID="",this.playersAway[f].idSubstitution=0)}t=="YellowCard"&&(i=="Home"?(this.playersHome[s].yellowcards=0,this.playersHome[s].yellowcardsMin=0,this.playersHome[s].idyellowcards=0):(this.playersAway[s].yellowcards=0,this.playersAway[s].yellowcardsMin=0,this.playersAway[s].idyellowcards=0)),t=="RedCard"&&(i=="Home"?(this.playersHome[s].redcards=0,this.playersHome[s].redcardsMin=0,this.playersHome[s].idredcards=0):(this.playersAway[s].redcards=0,this.playersAway[s].redcardsMin=0,this.playersAway[s].idredcards=0)),t=="Goals"&&(i=="Home"?(this.playersHome[a].goals=this.playersHome[a].goals-1,this.playersHome[a].goalsMin.splice(s,1),this.playersHome[a].idsGoals.splice(s,1)):(this.playersAway[a].goals=this.playersAway[a].goals-1,this.playersAway[a].goalsMin.splice(s,1),this.playersAway[a].idsGoals.splice(s,1)))},setUpResizeObserver(){if(window.ResizeObserver)Ji=new ResizeObserver(()=>{this.gamesContainerWidth=this.$refs.gamesContainer.clientWidth,this.gamesContainerWidth<740?this.movil=!0:this.movil=!1}),Ji.observe(this.$refs.gamesContainer);else throw new Error("Resize observer not supported!")},async getMXM(t){try{const C=ce(this.urlMXM+t,this.provider,this.isDevApis);if(C===this.lastMXMUrl)return;this.lastMXMUrl=C;const u=await z.create({headers:{Authorization:`${this.token}`}}).get(C);for(let m=0;m<this.playersHome.length;m++)this.playersHome[m].goalsMin=[],this.playersHome[m].idsGoals=[];for(let m=0;m<this.playersAway.length;m++)this.playersAway[m].goalsMin=[],this.playersAway[m].idsGoals=[];for(let m=0;m<u.data.plays.length;m++){if(u.data.plays[m].event_type_id==3){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var i=u.data.plays[m].player_id.split("@"),s=this.playersHome.findIndex(k=>k.playerId==i[0]),a=this.playersHome.findIndex(k=>k.playerId==i[1]);s!=-1&&(this.playersHome[s].idSubstitution=u.data.plays[m].play_id,this.playersHome[s].substitutionOut=!0,this.playersHome[s].substitutionMin=u.data.plays[m].minute,this.playersHome[s].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id),a!=-1&&(this.playersHome[a].idSubstitution=u.data.plays[m].play_id,this.playersHome[a].substitutionIn=!0,this.playersHome[a].substitutionMin=u.data.plays[m].minute,this.playersHome[a].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id)}}else if(this.playersAway.length>0){var n=u.data.plays[m].player_id.split("@"),o=this.playersAway.findIndex(k=>k.playerId==n[0]),r=this.playersAway.findIndex(k=>k.playerId==n[1]);o!=-1&&(this.playersAway[o].idSubstitution=u.data.plays[m].play_id,this.playersAway[o].substitutionOut=!0,this.playersAway[o].substitutionMin=u.data.plays[m].minute,this.playersAway[o].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id),r!=-1&&(this.playersAway[r].idSubstitution=u.data.plays[m].play_id,this.playersAway[r].substitutionIn=!0,this.playersAway[r].substitutionMin=u.data.plays[m].minute,this.playersAway[r].substitutionDataID=u.data.plays[m].team_id+"@"+u.data.plays[m].player_id)}}if(u.data.plays[m].event_type_id==1){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var l=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);l!=-1&&(this.playersHome[l].goals+=1,this.playersHome[l].goalsMin.push(u.data.plays[m].minute),this.playersHome[l].idsGoals.push(u.data.plays[m].play_id))}}else if(this.playersAway.length>0){var h=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);h!=-1&&(this.playersAway[h].goals+=1,this.playersAway[h].goalsMin.push(u.data.plays[m].minute),this.playersAway[h].idsGoals.push(u.data.plays[m].play_id))}}if(u.data.plays[m].event_type_id==2){if(u.data.plays[m].category_id==8){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var f=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);f!=-1&&(this.playersHome[f].yellowcards+=1,this.playersHome[f].yellowcardsMin=u.data.plays[m].minute,this.playersHome[f].idyellowcards=u.data.plays[m].play_id)}}else if(this.playersAway.length>0){var p=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);p!=-1&&(this.playersAway[p].yellowcards+=1,this.playersAway[p].yellowcardsMin=u.data.plays[m].minute,this.playersAway[p].idyellowcards=u.data.plays[m].play_id)}}if(u.data.plays[m].category_id==9){if(u.data.plays[m].team_id==this.home_team_id){if(this.playersHome.length>0){var _=this.playersHome.findIndex(k=>k.playerId==u.data.plays[m].player_id);_!=-1&&(this.playersHome[_].redcards+=1,this.playersHome[_].redcardsMin=u.data.plays[m].minute,this.playersHome[_].idredcards=u.data.plays[m].play_id)}}else if(this.playersAway.length>0){var c=this.playersAway.findIndex(k=>k.playerId==u.data.plays[m].player_id);c!=-1&&(this.playersAway[c].redcards+=1,this.playersAway[c].redcardsMin=u.data.plays[m].minute,this.playersAway[c].idredcards=u.data.plays[m].play_id)}}}}}catch(C){return Promise.reject(C)}},async getLineUp(t,i){if(t==null||t===0){console.warn("❌ getLineUp: Se intentó hacer petición con game_id inválido:",t);return}if(console.log("------------------------------------------------> SE HIZO LA PETICION ----> DEL PARTIDO ID: ",t),this.isRequestPending(t,"general")){console.warn(`🔒 getLineUp: Ya hay una petición en curso para game_id: ${t}`);return}this.markRequestPending(t,"general");try{this.lastGetLineUpGameId=t,this.lastSection=this.selectOptMenuheader;const q=z.create({headers:{Authorization:`${this.token}`}}),S=i||await q.get(ce(this.url+t,this.provider,this.isDevApis));if(!S||!S.data)throw new Error("There is not lineups for this game.");this.dataPlayersHome=S.data.home_team.players,this.dataPlayersAway=S.data.away_team.players,S.data.home_team.starting_lineup[0].lineup.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0);for(let I=0;I<S.data.home_team.starting_lineup[0].lineup.length;I++){this.home_team_id=S.data.home_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+".svg","home",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.home_team.team_id+"_g.svg","home",0);var s=S.data.home_team.starting_lineup[0].lineup[I].player_name.split(","),a=s[0].split(" "),n=s[1].trim().split(" "),o="";a.length==2||a.length==1?a[0].length<4?o=a[0]+" "+a[1]:o=a[0]:a.length==3?o=a[0]+" "+a[1]:a.length==4&&(o=a[1]+" "+a[2]+" "+a[3]);var r=n[n.length-1]!=""?n[n.length-1].charAt(0):n[n.length-2]?n[n.length-2].charAt(0):"";o=o.replace(",","");var l=r+". "+o,h=S.data.home_team.starting_lineup[0].lineup[I].x,f=h*50/100,p=S.data.home_team.players.findIndex(F=>F.player_id==S.data.home_team.starting_lineup[0].lineup[I].player_id);this.playersHome.push({played:!0,name:S.data.home_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.home_team.players[p].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[p].position_id-1].name,position_id:S.data.home_team.players[p].position_id-1,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.home_team.players[p].nationality?S.data.home_team.players[p].nationality.substring(0,3):"",imgNationality:S.data.home_team.players[p].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:l,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.home_team.starting_lineup[0].lineup[I].y-13,positionY:f*.9,positionXOrigin:S.data.home_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.home_team.starting_lineup[0].lineup[I].x-2,playerId:S.data.home_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.home_team.team_id}),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.homeTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.home_team.team_id==this.homeTeam.team_id&&(this.homeTeamAbrev=this.homeTeam.acronym),S.data.home_team.team_id==this.visitingTeam.team_id&&(this.homeTeamAbrev=this.visitingTeam.acronym)):this.homeTeamAbrev=this.homeTeam.acronymrecientes}if(this.playersHome.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0),S.data.home_team.bench){for(let I=0;I<S.data.home_team.bench.length;I++){this.subsTitle=!0;var _=S.data.home_team.bench[I].playerName.split(","),c=_[0].split(" "),C=_[1].trim().split(" "),g="";c.length==2||c.length==1?c[0].length<4?g=c[0]+" "+c[1]:g=c[0]:c.length==3?g=c[0]+" "+c[1]:c.length==4&&(g=c[1]+" "+c[2]+" "+c[3]);var u=C[C.length-1]!=""?C[C.length-1].charAt(0):C[C.length-2]?C[C.length-2].charAt(0):"";g=g.replace(",","");var m=u+". "+g,k=S.data.home_team.players.findIndex(F=>F.player_id==S.data.home_team.bench[I].playerID);this.playersHome.push({played:!1,name:S.data.home_team.bench[I].playerName,position:k!=-1?this.isFemale?this.positions[S.data.home_team.players[k].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.home_team.players[k].position_id-1].name:"",position_id:S.data.home_team.players[k].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.home_team.bench[I].playerID+".png",nationality:k!=-1&&S.data.home_team.players[k].nationality?S.data.home_team.players[k].nationality.substring(0,3):"",imgNationality:k!=-1?S.data.home_team.players[k].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:m,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.home_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.home_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.home_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.home_team.team_id})}this.playersHome.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0)}for(let I=0;I<S.data.away_team.starting_lineup[0].lineup.length;I++){this.away_team_id=S.data.away_team.team_id,this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+".svg","away",1),this.imageExists("https://golstatsimages.blob.core.windows.net/jersey-teams/"+S.data.away_team.team_id+"_g.svg","away",0);var T=S.data.away_team.starting_lineup[0].lineup[I].player_name.split(","),y=T[0].split(" "),d=T[1].trim().split(" "),w="";y.length==2||y.length==1?y[0].length<4?w=y[0]+" "+y[1]:w=y[0]:y.length==3?w=y[0]+" "+y[1]:y.length==4&&(w=y[1]+" "+y[2]+" "+y[3]);var E=d[n.length-1]!=""?d[d.length-1].charAt(0):d[d.length-2]?d[d.length-2].charAt(0):"";w=w.replace(",","");var R=E+". "+w,V=S.data.away_team.starting_lineup[0].lineup[I].x,A=100-(100-V)*50/100;A=A*.9;var Y=S.data.away_team.players.findIndex(F=>F.player_id==S.data.away_team.starting_lineup[0].lineup[I].player_id);this.playersAway.push({played:!0,name:S.data.away_team.starting_lineup[0].lineup[I].player_name,position:this.isFemale?this.positions[S.data.away_team.players[Y].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[Y].position_id-1].name,position_id:S.data.away_team.players[Y].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.starting_lineup[0].lineup[I].player_id+".png",nationality:S.data.away_team.players[Y].nationality?S.data.away_team.players[Y].nationality.substring(0,3):"",imgNationality:S.data.away_team.players[Y].nationality_photo,substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:R,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.starting_lineup[0].lineup[I].jersey_number,positionX:S.data.away_team.starting_lineup[0].lineup[I].y-13,positionY:A,positionXOrigin:S.data.away_team.starting_lineup[0].lineup[I].y-17,positionYOrigin:S.data.away_team.starting_lineup[0].lineup[I].x-7,playerId:S.data.away_team.starting_lineup[0].lineup[I].player_id,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!1,id_team:S.data.away_team.team_id}),this.awayTeamLogo=B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),this.selectOptMenuheader=="Historicos"?(S.data.away_team.team_id==this.visitingTeam.team_id&&(this.awayTeamAbrev=this.visitingTeam.acronym),S.data.away_team.team_id==this.homeTeam.team_id&&(this.awayTeamAbrev=this.homeTeam.acronym)):this.awayTeamAbrev=this.visitingTeam.acronymrecientes}if(this.playersAway.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0),S.data.away_team.bench){for(let I=0;I<S.data.away_team.bench.length;I++){this.subsTitle=!0;var ae=S.data.away_team.bench[I].playerName.split(","),D=ae[0].split(" "),U=ae[1].trim().split(" "),M="";D.length==2||D.length==1?D[0].length<4?M=D[0]+" "+D[1]:M=D[0]:D.length==3?M=D[0]+" "+D[1]:D.length==4&&(M=D[1]+" "+D[2]+" "+D[3]);var ye=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";M=M.replace(",","");var j=ye+". "+M,G=S.data.away_team.players.findIndex(F=>F.player_id==S.data.away_team.bench[I].playerID);this.playersAway.push({played:!1,name:S.data.away_team.bench[I].playerName,position:G!=-1?this.isFemale?this.positions[S.data.away_team.players[G].position_id-1].name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):this.positions[S.data.away_team.players[G].position_id-1].name:"",position_id:S.data.away_team.players[G].position_id,imgPlayer:"https://golstatsimages.blob.core.windows.net/players-profile/"+S.data.away_team.bench[I].playerID+".png",nationality:G!=-1&&S.data.away_team.players[G].nationality?S.data.away_team.players[G].nationality.substring(0,3):"",imgNationality:G!=-1?S.data.away_team.players[G].nationality_photo:"",substitutionIn:!1,substitutionOut:!1,abrevNamePlayer:j,imgTeam:B("https://golstatsimages.blob.core.windows.net/teams-80/"+S.data.away_team.team_id+".png",this.provider),substitutionMin:"",substitutionDataID:"",shirt_number:S.data.away_team.bench[I].jerseyNumber,positionX:"",positionY:"",positionXOrigin:"",positionYOrigin:"",playerId:S.data.away_team.bench[I].playerID,goals:0,yellowcards:0,redcards:0,goalsMin:[],yellowcardsMin:0,redcardsMin:0,idyellowcards:0,idredcards:0,idsGoals:[],idSubstitution:0,isbench:!0,id_team:S.data.away_team.team_id})}this.playersAway.sort((I,F)=>I.position_id>F.position_id?1:F.position_id>I.position_id?-1:0)}setTimeout(async()=>{await this.getMXM(t)},500),this.removeRequestPending(t,"general"),console.log(`✅ getLineUp: Petición completada exitosamente para game_id: ${t}`)}catch(q){return this.removeRequestPending(t,"general"),console.error(`❌ getLineUp: Error en petición para game_id: ${t}`,q),Promise.reject(q)}},closeChange(){this.subsActive=!1},imageExists(t,i,s){var a=new XMLHttpRequest,n=0;i=="away"?s==1?this.uniformAway==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformAwayG==""&&(a.open("HEAD",t,!1),a.send(),n=1):s==1?this.uniformHome==""&&(a.open("HEAD",t,!1),a.send(),n=1):this.uniformHomeG==""&&(a.open("HEAD",t,!1),a.send(),n=1),n==1&&(a.status==200?i=="away"?s==1?this.uniformAway="url("+t+")":this.uniformAwayG="url("+t+")":s==1?this.uniformHome="url("+t+")":this.uniformHomeG="url("+t+")":i=="away"?s==1?this.uniformAway="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita.svg)":this.uniformAwayG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_visita_g.svg)":s==1?this.uniformHome="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local.svg)":this.uniformHomeG="url(https://golstatsimages.blob.core.windows.net/jersey-teams/default_local_g.svg)")},viewChange(t){var i=t.split("@");if(i[0]==this.home_team_id){var s=this.playersHome.findIndex(r=>r.playerId==i[1]),a=this.playersHome.findIndex(r=>r.playerId==i[2]);s!=-1?(this.substitutionModal.min=this.playersHome[s].substitutionMin,this.substitutionModal.in.name=this.playersHome[s].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersHome[s].imgTeam,this.substitutionModal.in.shirt_number=this.playersHome[s].shirt_number,this.substitutionModal.in.playerImg=this.playersHome[s].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersHome[s].imgNationality):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),a!=-1?(this.substitutionModal.out.name=this.playersHome[a].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersHome[a].imgTeam,this.substitutionModal.out.playerImg=this.playersHome[a].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersHome[a].imgNationality,this.substitutionModal.out.shirt_number=this.playersHome[a].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}else{var n=this.playersAway.findIndex(r=>r.playerId==i[1]),o=this.playersAway.findIndex(r=>r.playerId==i[2]);n!=-1?(this.substitutionModal.min=this.playersAway[n].substitutionMin,this.substitutionModal.in.name=this.playersAway[n].abrevNamePlayer,this.substitutionModal.in.teamImg=this.playersAway[n].imgTeam,this.substitutionModal.in.playerImg=this.playersAway[n].imgPlayer,this.substitutionModal.in.nationalityimg=this.playersAway[n].imgNationality,this.substitutionModal.in.shirt_number=this.playersAway[n].shirt_number):(this.substitutionModal.in.name="",this.substitutionModal.in.teamImg="",this.substitutionModal.in.shirt_number="",this.substitutionModal.in.playerImg="",this.substitutionModal.in.nationalityimg=""),o!=-1?(this.substitutionModal.out.name=this.playersAway[o].abrevNamePlayer,this.substitutionModal.out.teamImg=this.playersAway[o].imgTeam,this.substitutionModal.out.playerImg=this.playersAway[o].imgPlayer,this.substitutionModal.out.nationalityimg=this.playersAway[o].imgNationality,this.substitutionModal.out.shirt_number=this.playersAway[o].shirt_number):(this.substitutionModal.out.name="",this.substitutionModal.out.teamImg="",this.substitutionModal.out.shirt_number="",this.substitutionModal.out.playerImg="",this.substitutionModal.out.nationalityimg="")}this.subsActive=!0},viewLineupTeam(t){this.teamActive=t}}},oc={style:{background:"#1d2a35"}},rc={class:"size-browser-class"},lc={class:"lineup-header-container",style:{height:"48px","margin-bottom":"35px",display:"flex","justify-content":"space-between","align-items":"center"}},cc={class:"team-shield-left",style:{"margin-left":"16%"}},dc=["src"],mc={class:"team-shield-right",style:{"margin-right":"16%"}},hc=["src"],pc={class:"lineup-players is-centered"},fc=["onClick"],gc=["onClick"];function uc(t,i,s,a,n,o){return e.openBlock(),e.createElementBlock("div",oc,[e.createElementVNode("div",rc,e.toDisplayString(o.sizeBrowser),1),i[4]||(i[4]=e.createElementVNode("div",{class:"size-browser-class2"},null,-1)),e.createElementVNode("div",lc,[e.createElementVNode("div",cc,[e.createElementVNode("img",{src:n.homeTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo1.png",alt:"Escudo equipo local",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,dc)]),e.createElementVNode("div",mc,[e.createElementVNode("img",{src:n.awayTeamLogo||"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/escudo2.png",alt:"Escudo equipo visitante",style:{width:"48px",height:"48px","object-fit":"contain"}},null,8,hc)])]),e.createElementVNode("div",pc,[e.createElementVNode("div",{class:e.normalizeClass(["lineup-players__container",{fallback:n.gamesContainerWidth===0}]),ref:"gamesContainer"},[e.createElementVNode("div",{class:e.normalizeClass(o.fieldcontainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.canchacontainerClass)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersHome,(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l+"jersey_home"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-5+o.calculatePerspectiveAdjustment(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformHome}:{backgroundImage:n.uniformHomeG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewhome)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},[...i[0]||(i[0]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,fc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128)),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.playersAway,(r,l)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:l+"jersey_away"},[r.played?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([o.itemplayerfieldClass,"active",n.gamesContainerWidth<740?"movil":""]),style:e.normalizeStyle({top:r.positionX+"%",left:r.positionY-4+o.calculatePerspectiveAdjustmentAway(r.positionX)+"%"})},[e.createElementVNode("div",{class:e.normalizeClass(o.jerseyitemplayerClass),style:e.normalizeStyle(r.position!="Portero"?{backgroundImage:n.uniformAway}:{backgroundImage:n.uniformAwayG})},[e.createElementVNode("div",{class:e.normalizeClass([o.yellowcarddivclass,r.yellowcards>0&&r.redcards==0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.redcarddivClass,r.yellowcards==0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.yellowredcarddivClass,r.yellowcards>0&&r.redcards>0?"cardsDisplay":"cardsNotDisplay"])},null,2),e.createElementVNode("div",{class:e.normalizeClass([o.goalcarddivClass,r.goals>0?"cardsDisplay":"cardsNotDisplay"])},null,2)],6),e.createElementVNode("div",{class:e.normalizeClass(o.infoplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.infonameplayeritemClass)},[e.createElementVNode("div",{class:e.normalizeClass(o.numitemnewway)},e.toDisplayString(r.shirt_number),3),e.createTextVNode(" "+e.toDisplayString(r.abrevNamePlayer),1)],2),r.substitutionIn||r.substitutionOut?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.infochangeplayeritemClass),onClick:h=>o.viewChange(r.substitutionDataID)},[...i[1]||(i[1]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/lineups/line.png"},null,-1)])],10,gc)):e.createCommentVNode("",!0)],2)],6)):e.createCommentVNode("",!0)],64))),128))],2)],2),(n.gameForAnalysis.game_status==4||n.gameForAnalysis.game_status==1)&&n.gameForAnalysis.is_live==0&&o.numPlayer==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(o.containernolineups)},[e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__img-search",n.gamesContainerWidth<740?"movil":""])},[...i[2]||(i[2]=[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/graf-busqueda@3x.png",width:"74"},null,-1)])],2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__title-info",n.gamesContainerWidth<740?"movil":""])}," Alineaciones sin definir ",2),e.createElementVNode("div",{class:e.normalizeClass([o.containernolineups+"__subtitle-info",n.gamesContainerWidth<740?"movil":""])},[...i[3]||(i[3]=[e.createTextVNode(" Los equipos no han presentado sus alineaciones. Estas ",-1),e.createElementVNode("br",null,null,-1),e.createTextVNode("serán dadas minutos antes del inicio del partido. ",-1)])],2)],2)):e.createCommentVNode("",!0)],2)])])}const yc=ne(nc,[["render",uc]]),_c=ne({__name:"gsc-lineups-reports",props:{game:{type:Object,default:()=>{}},gamehome:{type:Object,default:()=>{}},gameNumber:{type:Number,default:0},lastGames:{type:Object,default:()=>{}},gameaway:{type:Object,default:()=>{}},selectedOption:{type:String,default:"Prematch"},provider:{type:Number,default:1},isDevApis:{type:Boolean,default:!1}},setup(t){const i=t,s=o=>o?{game_id:o.game_id||null,season_id:o.season_id||null,prematch:o.prematch!==void 0?o.prematch:!0}:{game_id:null,season_id:null,prematch:!0},a=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_home_games){const o=i.gameNumber-1,r=i.lastGames.last_home_games[o];return s(r)}return s(null)}),n=e.computed(()=>{if(![1,2,3].includes(i.gameNumber))return s(null);if(i.selectedOption==="Prematch"&&i.lastGames&&i.lastGames.last_visiting_games){const o=i.gameNumber-1,r=i.lastGames.last_visiting_games[o];return s(r)}return s(null)});return(o,r)=>(e.openBlock(),e.createElementBlock("div",null,[e.createVNode(yc,{game:t.game,gamehome:a.value,gameaway:n.value,"selected-option":t.selectedOption,provider:t.provider,"is-dev-apis":t.isDevApis},null,8,["game","gamehome","gameaway","selected-option","provider","is-dev-apis"])]))}},[["__scopeId","data-v-12d1fcd5"]]);de.GSCLineupsReports=_c,Object.defineProperty(de,Symbol.toStringTag,{value:"Module"})}));
|