@golstats/gsc-game-data 1.1.25 → 1.1.26

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.
@@ -14,7 +14,7 @@
14
14
  * Vue 3 Carousel 0.3.4
15
15
  * (c) 2024
16
16
  * @license MIT
17
- */const xd={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"}},_E={itemsToShow:{default:xd.itemsToShow,type:Number},itemsToScroll:{default:xd.itemsToScroll,type:Number},wrapAround:{default:xd.wrapAround,type:Boolean},throttle:{default:xd.throttle,type:Number},snapAlign:{default:xd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:xd.transition,type:Number},breakpoints:{default:xd.breakpoints,type:Object},autoplay:{default:xd.autoplay,type:Number},pauseAutoplayOnHover:{default:xd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:xd.mouseDrag,type:Boolean},touchDrag:{default:xd.touchDrag,type:Boolean},dir:{default:xd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:xd.i18n,type:Object},settings:{default(){return{}},type:Object}};function TX({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:B,itemsToShow:U=1}=e;if(B)return Math.max(o-1,0);let m;switch(s){case"start":m=o-U;break;case"end":m=o-1;break;case"center":case"center-odd":m=o-Math.ceil((U-.5)/2);break;case"center-even":m=o-Math.ceil(U/2);break;default:m=0;break}return Math.max(m,0)}function AX({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:B,itemsToShow:U=1}=e;let m=0;if(s||U>o)return m;switch(B){case"start":m=0;break;case"end":m=U-1;break;case"center":case"center-odd":m=Math.floor((U-1)/2);break;case"center-even":m=Math.floor((U-2)/2);break;default:m=0;break}return m}function f6({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function EX({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:B,wrapAround:U,itemsToShow:m=1}=e;let y=o;switch(B){case"center":case"center-odd":y-=(m-1)/2;break;case"center-even":y-=(m-2)/2;break;case"end":y-=m-1;break}return U?y:f6({val:y,max:s-m,min:0})}function xE(e){return e?e.reduce((o,s)=>{var B;return s.type===t.Fragment?[...o,...xE(s.children)]:((B=s.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function m6({val:e,max:o,min:s=0}){return e>o?m6({val:e-(o+1),max:o,min:s}):e<s?m6({val:e+(o+1),max:o,min:s}):e}function MX(e,o){let s;return o?function(...B){const U=this;s||(e.apply(U,B),s=!0,setTimeout(()=>s=!1,o))}:e}function IX(e,o){let s;return function(...B){s&&clearTimeout(s),s=setTimeout(()=>{e(...B),s=null},o)}}function PX(e="",o={}){return Object.entries(o).reduce((s,[B,U])=>s.replace(`{${B}}`,String(U)),e)}var LX=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},xd))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},PX(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),BX=t.defineComponent({name:"Carousel",props:_E,setup(e,{slots:o,emit:s,expose:B}){var U;const m=t.ref(null),y=t.ref([]),a=t.ref(0),v=t.ref(0),p=t.reactive(Object.assign({},xd));let r=Object.assign({},xd),_;const b=t.ref((U=e.modelValue)!==null&&U!==void 0?U:0),x=t.ref(0),h=t.ref(0),n=t.ref(0),i=t.ref(0);let c,l;t.provide("config",p),t.provide("slidesCount",v),t.provide("currentSlide",b),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",a);function d(){_=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),w(r)}function g(){if(!_||!Object.keys(_).length)return;const re=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let se=Object.assign({},r);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(se=Object.assign(Object.assign({},se),_[ie])),me}),w(se)}function w(re){Object.entries(re).forEach(([se,ie])=>p[se]=ie)}const C=IX(()=>{g(),A(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();a.value=re.width/p.itemsToShow}function A(){v.value<=0||(h.value=Math.ceil((v.value-1)/2),n.value=TX({config:p,slidesCount:v.value}),i.value=AX({config:p,slidesCount:v.value}),p.wrapAround||(b.value=f6({val:b.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),g(),G(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),c&&clearInterval(c),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),z=()=>{M.value=!0},k=()=>{M.value=!1};function O(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||Z.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=MX(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const se=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=se},p.throttle);function j(){const re=p.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,ie=Math.round(I.x/a.value+se)*re;if(ie&&!P){const me=ye=>{window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(b.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function G(){!p.autoplay||p.autoplay<=0||(c=setInterval(()=>{p.pauseAutoplayOnHover&&M.value||ne()},p.autoplay))}function H(){c&&(clearInterval(c),c=null),G()}const Z=t.ref(!1);function $(re){const se=p.wrapAround?re:f6({val:re,max:n.value,min:i.value});b.value===se||Z.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!0,x.value=b.value,b.value=se,l=setTimeout(()=>{if(p.wrapAround){const ie=m6({val:se,max:n.value,min:0});ie!==b.value&&(b.value=ie,s("loop",{currentSlideIndex:b.value,slidingToIndex:re}))}s("update:modelValue",b.value),s("slide-end",{currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!1,H()},p.transition))}function ne(){$(b.value+p.itemsToScroll)}function q(){$(b.value-p.itemsToScroll)}const K={slideTo:$,next:ne,prev:q};t.provide("nav",K),t.provide("isSliding",Z);const ee=t.computed(()=>EX({config:p,currentSlide:b.value,slidesCount:v.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const re=p.dir==="rtl"?-1:1,se=ee.value*a.value*re;return{transform:`translateX(${I.x-se}px)`,transition:`${Z.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function Q(){d(),g(),A(),E(),H()}Object.keys(_E).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],Q)}),t.watch(()=>e.modelValue,re=>{re!==b.value&&$(Number(re))}),t.watch(v,A),s("before-init"),d();const ce={config:p,slidesCount:v,slideWidth:a,next:ne,prev:q,slideTo:$,currentSlide:b,maxSlide:n,minSlide:i,middleSlide:h};B({updateBreakpointsConfigs:g,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:d,restartCarousel:Q,slideTo:$,next:ne,prev:q,nav:K,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=xE(de==null?void 0:de(pe)),se=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(p.wrapAround){const ve=re.map((Se,Ce)=>t.cloneVNode(Se,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Se,Ce)=>t.cloneVNode(Se,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));ie=[...ve,...re,...we]}y.value=re,v.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:p.mouseDrag?O:null,onTouchstartPassiveCapture:p.touchDrag?O:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":Z.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:z,onMouseleave:k},[ye,se,t.h(LX)])}}}),g6;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(g6||(g6={}));const zX={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function OX(e){return e in g6}const y6=e=>{const o=t.inject("config",t.reactive(Object.assign({},xd))),s=String(e.name),B=`icon${s.charAt(0).toUpperCase()+s.slice(1)}`;if(!s||typeof s!="string"||!OX(s))return;const U=zX[s],m=t.h("path",{d:U}),y=o.i18n[B]||e.title||s,a=t.h("title",y);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":y},[a,m])};y6.props={name:String,title:String};const DX=(e,{slots:o,attrs:s})=>{const{next:B,prev:U}=o||{},m=t.inject("config",t.reactive(Object.assign({},xd))),y=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),v=t.inject("currentSlide",t.ref(1)),p=t.inject("nav",{}),{dir:r,wrapAround:_,i18n:b}=m,x=r==="rtl",h=t.h("button",{type:"button",class:["carousel__prev",!_&&v.value<=a.value&&"carousel__prev--disabled",s==null?void 0:s.class],"aria-label":b.ariaPreviousSlide,onClick:p.prev},(U==null?void 0:U())||t.h(y6,{name:x?"arrowRight":"arrowLeft"})),n=t.h("button",{type:"button",class:["carousel__next",!_&&v.value>=y.value&&"carousel__next--disabled",s==null?void 0:s.class],"aria-label":b.ariaNextSlide,onClick:p.next},(B==null?void 0:B())||t.h(y6,{name:x?"arrowLeft":"arrowRight"}));return[h,n]};var NX=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},xd))),B=t.inject("currentSlide",t.ref(0)),U=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),y=t.computed(()=>e.index===B.value),a=t.computed(()=>e.index===B.value-1),v=t.computed(()=>e.index===B.value+1),p=t.computed(()=>{const r=Math.floor(U.value),_=Math.ceil(U.value+s.itemsToShow-1);return e.index>=r&&e.index<=_});return()=>{var r;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p.value,"carousel__slide--active":y.value,"carousel__slide--prev":a.value,"carousel__slide--next":v.value,"carousel__slide--sliding":m.value},"aria-hidden":!p.value},(r=o.default)===null||r===void 0?void 0:r.call(o,{isActive:y.value,isClone:e.isClone,isPrev:a.value,isNext:v.value,isSliding:m.value,isVisible:p.value}))}}});const Sf=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},wE=e=>(t.pushScopeId("data-v-d88e6c89"),e=e(),t.popScopeId(),e),FX={key:1,class:"match-day__live"},RX=wE(()=>t.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),VX=wE(()=>t.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),jX=[RX,VX],UX={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:o}){const s=e,B=t.computed(()=>{const a={"background-color":s.backgroundColor,height:s.height};return s.matchDay.key===s.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${s.bottomLineColor}`,a["background-color"]=s.selectedMatchDayBackgroundColor),s.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),U=t.computed(()=>({color:s.numberColor,"font-family":s.numberFontFamily,"font-size":s.numberFontSize})),m=t.computed(()=>({color:s.textColor,"font-family":s.textFontFamily,"font-size":s.textFontSize}));function y(a){o("click-match-day",a)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...B.value}),onClick:v[0]||(v[0]=p=>y(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(U.value)},t.toDisplayString(e.matchDay.valueText),5),!Number.isNaN(e.matchDay.value)&&!e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",m.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5)):e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",FX,jX)):t.createCommentVNode("",!0)],4))}},GX=Sf(UX,[["__scopeId","data-v-d88e6c89"]]),HX={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:o}){const s=e;t.useCssVars(p=>({"59858af6":m.value,"5987b976":y.value}));const B=t.ref(null),U=t.computed(()=>({itemsToShow:s.itemsToShow,itemsToScroll:s.itemsToScroll,snapAlign:"start"})),m=t.computed(()=>B.value.data.currentSlide.value==0?"none":"inline"),y=t.computed(()=>B.value.data.currentSlide.value==B.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>s.closestMatchDay,p=>{if(p){const r=s.matchDays.find(_=>_.key===p);v(r||s.matchDays[0],!0)}}),t.watch(()=>s.matchDays,p=>{if(!s.closestMatchDay&&p&&p.length){const r=p.find(_=>_.key===s.defaultMatchDayKey);a.value=r||p[0],o("change-match-day",a.value)}else s.closestMatchDay&&(a.value=p.find(r=>r.key===s.closestMatchDay)||{})},{immediate:!0});function v(p,r=!1){r&&B.value&&B.value.slideTo(p.index),a.value=p,o("change-match-day",a.value)}return(p,r)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[(t.openBlock(),t.createBlock(t.unref(BX),t.mergeProps(U.value,{modelValue:a.value.index,ref_key:"matchDayPickerCarousel",ref:B,key:a.value.index}),{addons:t.withCtx(()=>[t.createVNode(t.unref(DX))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,_=>(t.openBlock(),t.createBlock(t.unref(NX),{key:_.key},{default:t.withCtx(()=>[t.createVNode(GX,t.mergeProps(s,{"match-day":_,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:v}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16,["modelValue"]))],4))}},ZX=Sf(HX,[["__scopeId","data-v-85216dc3"]]),WX=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},qX={key:1},JX={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},YX=["fill"],XX={key:0,class:"checkbox__teams"},$X={class:"checkbox__teams__logo"},KX=["src"],QX={class:"checkbox__teams__logo"},e$=["src"],t$={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null},provider:{type:Number,default:0}},emits:["update:modelValue"],setup(e,{emit:o}){const s=e;t.useCssVars(p=>({"70bd45d8":e.width,"12bb4b99":e.height}));const B=t.ref(!1),U=t.computed(()=>{const p={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return B.value?(p["background-color"]=s.boxBackgroundColor,p.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):p.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,p}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),y=t.computed(()=>{const p={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(p[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),p});t.watch(()=>s.modelValue,p=>{p!==B.value&&(B.value=p)},{immediate:!0});function a(){s.avoidInteraction||!B.value&&s.avoidToCheck||(B.value=!B.value,o("update:modelValue",B.value))}function v(p){const r={}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/";return s.provider&&s.provider>=2?`${r}${s.provider}/${p}.png`:`${r}${p}.png`}return(p,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(U.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",qX,[(t.openBlock(),t.createElementBlock("svg",JX,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,YX)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",XX,[t.createElementVNode("div",$X,[t.createElementVNode("img",{src:v(e.teamsIds[0]),alt:""},null,8,KX)]),t.createElementVNode("div",QX,[t.createElementVNode("img",{src:v(e.teamsIds[1]),alt:""},null,8,e$)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(y.value)},t.toDisplayString(e.label),5)],2))}},a$=WX(t$,[["__scopeId","data-v-4ea8394b"]]);function r$(e,o){if(!o||o<=1)return e;const s=new URL(e),B=s.pathname.split("/").filter(a=>a!=="");if(B.length===0)return e;const[U,...m]=B,y=[U,o,...m].join("/");return`${s.origin}/${y}${s.search}`}function W0(e,o=80,s=1){const B={}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-";return r$(`${B}${o}/${e}.png`,s)}function kE(e){if(typeof e=="string"){let o=e.replace("M","J ");return o=o.replace("PO1","CFI"),o=o.replace("PO2","CFV"),o=o.replace("PO3","SFI"),o=o.replace("PO4","SFV"),o=o.replace("PO5","FI"),o=o.replace("PO6","FV"),o}}function n$(e){let o="";return e.game_status!=4&&(o+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(o+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),o}const i$={class:"game-info__teams"},o$={class:"game-info__teams__team__logo"},s$=["src"],l$={class:"game-info__teams__detail"},c$={key:0,class:"game-info__teams__detail__pre-game"},u$={class:"game-info__teams__team__logo away"},d$=["src"],h$={key:0},p$={key:0},f$={key:1},m$={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const o=e,s=t.computed(()=>{let p=o.game.schedule.split(":");return p.pop(),p=p.join(":"),p}),B=t.computed(()=>{let p="120px";return(o.isLandingMode||o.isAcronymVisible)&&(p="70px"),{"min-width":p}}),U=t.computed(()=>({"font-size":o.namesFontSize,"font-family":o.namesFontFamily,color:o.colorPrimary})),m=t.computed(()=>({"font-size":o.additionalInfoFontSize,"font-family":o.additionalInfoFontFamily,color:o.colorSecondary})),y=t.computed(()=>({"font-size":o.scoreFontSize,"font-family":o.scoreFontFamily,color:o.colorPrimary})),a=t.computed(()=>({"font-size":o.timeZoneFontSize,"font-family":o.namesFontFamily,color:o.colorPrimary})),v=t.computed(()=>({"font-size":o.timeFontSize,"font-family":o.namesFontFamily,color:o.colorPrimary}));return(p,r)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",i$,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(U.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",o$,[t.createElementVNode("img",{src:t.unref(W0)(e.game.home_team.team_id,80,e.providerId),alt:""},null,8,s$)])],4),t.createElementVNode("div",l$,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",c$,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(v.value)},t.toDisplayString(s.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(a.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(y.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",u$,[t.createElementVNode("img",{src:t.unref(W0)(e.game.visiting_team.team_id,80,e.providerId),alt:""},null,8,d$)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(U.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([m.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",h$,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",p$,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",f$,t.toDisplayString(t.unref(n$)(e.game)),1))],4)],4))}},SE=Sf(m$,[["__scopeId","data-v-05c83028"]]),CE=e=>(t.pushScopeId("data-v-8839c56d"),e=e(),t.popScopeId(),e),g$={class:"game-status"},y$={key:0,class:"game-status__day__live"},v$=CE(()=>t.createElementVNode("span",null,"LIVE",-1)),b$=CE(()=>t.createElementVNode("span",{class:"dot"},null,-1)),_$=[v$,b$],x$={key:0,class:"game-status__round"},w$={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const o=e,s=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],B=t.computed(()=>{let y="";if(o.dateTimeMillis){const a=new Date(o.dateTimeMillis);y=`${a.getDate()} ${s[a.getMonth()]}`}return y}),U=t.computed(()=>({"font-size":o.fontSize})),m=t.computed(()=>{let y=[];return o.isLive?y.push("live"):o.status!==1&&y.push("pre-match"),y});return(y,a)=>(t.openBlock(),t.createElementBlock("div",g$,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",m.value]),style:t.normalizeStyle(U.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",y$,_$)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(B.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",x$,t.toDisplayString(e.roundAbbreviation),1))]))}},TE=Sf(w$,[["__scopeId","data-v-8839c56d"]]),zf={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},k$=e=>(t.pushScopeId("data-v-0d97b1a8"),e=e(),t.popScopeId(),e),S$={class:"actions"},C$={class:"actions__row"},T$=k$(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),A$=[T$],E$={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M$=["fill"],I$={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P$=["fill"],L$={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.computed(()=>({backgroundColor:s.iconBackgroundColor,borderColor:s.iconBorderColor}));function U(m){o("action",m)}return(m,y)=>(t.openBlock(),t.createElementBlock("div",S$,[t.createElementVNode("div",C$,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:y[0]||(y[0]=a=>U(t.unref(zf).STATISTICS))},A$,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:y[1]||(y[1]=a=>U(t.unref(zf).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",E$,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:s.iconColor},null,8,M$)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:y[2]||(y[2]=a=>U(t.unref(zf).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",I$,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:s.iconColor},null,8,P$)]))])):t.createCommentVNode("",!0)])]))}},B$=Sf(L$,[["__scopeId","data-v-0d97b1a8"]]),v6=e=>(t.pushScopeId("data-v-7ec0f118"),e=e(),t.popScopeId(),e),z$={class:"actions"},O$={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D$=["fill"],N$={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F$=["fill"],R$=v6(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),V$=[R$],j$={key:0,class:"actions__videos"},U$={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G$=["fill"],H$={key:1,class:"actions__videos__thumbnails"},Z$=v6(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),W$=v6(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),q$={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J$=["stroke"],Y$={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.computed(()=>({backgroundColor:s.iconBackgroundColor,borderColor:s.iconBorderColor})),U=t.computed(()=>{const v=[];return s.componentWidth<540&&v.push("mobile"),v}),m=t.computed(()=>s.componentWidth>730),y=t.computed(()=>({color:s.thumbnailColor,fontFamily:s.thumbnailFontFamily,fontSize:s.thumbnailFontSize}));function a(v){o("action",v)}return(v,p)=>(t.openBlock(),t.createElementBlock("div",z$,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",U.value])},[e.gameStatus===4444&&!e.isLive&&!m.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:p[0]||(p[0]=r=>a(t.unref(zf).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",O$,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:s.iconColor},null,8,D$)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!m.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:p[1]||(p[1]=r=>a(t.unref(zf).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",N$,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:s.iconColor},null,8,F$)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:p[2]||(p[2]=r=>a(t.unref(zf).STATISTICS))},V$,4)],2),m.value?(t.openBlock(),t.createElementBlock("div",j$,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:p[3]||(p[3]=r=>a(t.unref(zf).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",U$,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:s.iconColor},null,8,G$)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",H$,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:p[4]||(p[4]=r=>a(t.unref(zf).PLAY_GOALS))},[Z$,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(y.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:p[5]||(p[5]=r=>a(t.unref(zf).PLAY_RESUME))},[W$,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(y.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:p[6]||(p[6]=r=>a(t.unref(zf).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",q$,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,J$)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},X$=Sf(Y$,[["__scopeId","data-v-7ec0f118"]]),ex=e=>(t.pushScopeId("data-v-12f74326"),e=e(),t.popScopeId(),e),$$={class:"row-landing__game-status"},K$={class:"row-landing__game-actions"},Q$={class:"row-full__game-status"},eK={class:"row-full__game-info"},tK={key:0,class:"row-full__video-privilege"},aK={class:"row-full__game-actions"},rK={class:"game-events-container"},nK=ex(()=>t.createElementVNode("div",{class:"separator"},null,-1)),iK=ex(()=>t.createElementVNode("div",null,null,-1)),oK={class:"game-events__data"},sK={class:"game-events__data__team"},lK=["src"],cK={class:"game-events__data__team__event__text"},uK={class:"game-events__data__team away"},dK={class:"game-events__data__team__event__text"},hK=["src"],pK=ex(()=>t.createElementVNode("div",null,null,-1)),fK=ex(()=>t.createElementVNode("div",null,null,-1)),mK={__name:"CalendarRow",props:{teamId:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},videoPrivilegesUserId:{type:Number,default:0}},emits:["action","change-video-privilege"],setup(e,{emit:o}){const s=e,B={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},U=t.ref(!1),m=t.ref(!1),y=t.computed(()=>{const i={homeTeam:[],awayTeam:[]};return s.game&&s.game.game_status!==4&&!s.game.is_live&&s.game.minutes&&(i.homeTeam.push(...x(s.game.minutes.home_goals_minutes,B.GOAL)),i.homeTeam.push(...x(s.game.minutes.home_red_cards_minutes,B.RED_CARD)),i.homeTeam.push(...x(s.game.minutes.home_yellow_cards_minutes,B.YELLOW_CARD)),i.awayTeam.push(...x(s.game.minutes.visiting_goals_minutes,B.GOAL)),i.awayTeam.push(...x(s.game.minutes.away_red_cards_minutes,B.RED_CARD)),i.awayTeam.push(...x(s.game.minutes.away_yellow_cards_minutes,B.YELLOW_CARD))),i}),a=t.computed(()=>{const i=y.value.homeTeam.length,c=y.value.awayTeam.length;return i+c>0}),v=t.computed(()=>{const i=s.game.score[0],c=s.game.score[1];return i>0||c>0}),p=t.computed(()=>({"background-color":s.backgroundColor})),r=t.computed(()=>({height:s.height})),_=t.computed(()=>{const i={game:[],events:[]};return s.componentWidth<500?(i.events.push("break-point-3"),i.game.push("break-point-2")):s.componentWidth<730?(i.game.push("break-point-2"),i.events.push("break-point-2")):s.componentWidth<910&&(i.game.push("break-point-1"),i.events.push("break-point-1")),i}),b=t.computed(()=>({isLandingMode:s.isLandingMode,game:s.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"}));t.computed(()=>({"font-size":s.televisionFontSize,"font-family":s.televisionFontFamily,color:s.televisionColor})),t.watch(()=>s.componentWidth,i=>{m.value=i<910});function x(i,c){return i.map(l=>({iconUrl:c,text:l}))}function h(i){o("change-video-privilege",i)}function n(i){i===zf.SHOW_GAME_EVENTS?U.value=!U.value:o("action",{action:i,game:s.game})}return(i,c)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(SE,{game:e.game,"is-landing-mode":e.isLandingMode,"provider-id":e.providerId,"is-dev-apis":e.isDevApis},null,8,["game","is-landing-mode","provider-id","is-dev-apis"]),t.createElementVNode("div",$$,[t.createVNode(TE,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(kE)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",K$,[e.game.home_team?(t.openBlock(),t.createBlock(B$,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:n},null,8,["is-live","has-video","game-status"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",_.value.game]),style:t.normalizeStyle(r.value)},[t.createElementVNode("div",Q$,[t.createVNode(TE,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(kE)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",eK,[t.createVNode(SE,t.mergeProps(b.value,{"is-television-visible":m.value,game:e.game,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","provider-id","is-dev-apis","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",tK,[e.videoPrivilegesUserId&&e.showVideos==0?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:c[0]||(c[0]=l=>h(e.game))},[t.createVNode(t.unref(a$),{label:"Privilegios",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":e.game.hasVideoPrivilege,"avoid-interaction":""},null,8,["model-value"])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",aK,[e.game.home_team?(t.openBlock(),t.createBlock(X$,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":a.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?v.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":U.value,"component-width":e.componentWidth,onAction:n},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):t.createCommentVNode("",!0)])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",rK,[nK,t.createElementVNode("div",{class:t.normalizeClass(["game-events",_.value.events])},[iK,t.createElementVNode("div",oK,[t.createElementVNode("div",sK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.homeTeam,(l,d)=>(t.openBlock(),t.createElementBlock("div",{key:`h${d}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:l.iconUrl},null,8,lK),t.createElementVNode("div",cK,t.toDisplayString(l.text),1)]))),128))]),t.createElementVNode("div",uK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.awayTeam,(l,d)=>(t.openBlock(),t.createElementBlock("div",{key:`a${d}`,class:"game-events__data__team__event"},[t.createElementVNode("div",dK,t.toDisplayString(l.text),1),t.createElementVNode("img",{src:l.iconUrl},null,8,hK)]))),128))])]),pK,fK],2)],512),[[t.vShow,U.value]])]),_:1})],4))}},AE=Sf(mK,[["__scopeId","data-v-12f74326"]]),EE=e=>(t.pushScopeId("data-v-99439cb1"),e=e(),t.popScopeId(),e),gK={class:"modal-content"},yK={class:"modal-header"},vK=EE(()=>t.createElementVNode("div",{class:"separator"},null,-1)),bK={class:"modal-message"},_K=EE(()=>t.createElementVNode("div",{class:"separator"},null,-1)),xK={__name:"ModalActionConfirm",emits:["confirm-action"],setup(e,{expose:o,emit:s}){const B=t.ref(!1),U=t.ref({}),m=()=>{B.value=!1};function y(){s("confirm-action",{action:!0,data:U.value}),m()}function a({data:v}){U.value=v,B.value=!0}return o({showModal:a}),(v,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[B.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:m},[t.createElementVNode("div",{class:"modal-container",onClick:p[0]||(p[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",gK,[t.createElementVNode("div",yK,[t.renderSlot(v.$slots,"header",{},void 0,!0)]),vK,t.createElementVNode("p",bK,[t.renderSlot(v.$slots,"message",{},void 0,!0)]),_K,t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-cancel",onClick:m},"Cancelar"),t.createElementVNode("button",{class:"btn-delete",onClick:y},"Aceptar")])])])])):t.createCommentVNode("",!0)]),_:3})]))}},wK=Sf(xK,[["__scopeId","data-v-99439cb1"]]),kK={class:"calendar-table"},SK={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}},videoPrivilegesUserId:{type:Number,default:0},token:{type:String,default:""},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.ref(null),U=t.ref("");function m(r){return r%2===0?s.evenRowColor:s.oddRowColor}function y(r){o("action",r)}function a({action:r,data:_}){r&&p(_)}function v(r){if(B.value){const _=r.hasVideoPrivilege?"desactivar":"activar";U.value=`¿Estás seguro de ${_} el privilegio del partido ${r.home_team.colloquial_name} vs ${r.visiting_team.colloquial_name}?`,B.value.showModal({data:r})}}async function p(r){try{const _=!!r.hasVideoPrivilege,b={};s.token&&(b.Authorization=s.token);const x=Py("https://u6845vutog.execute-api.us-east-2.amazonaws.com/prod/api/v1/privileges/games",s.providerId,s.isDevApis),h=await Iy.post(x,{game_id:r.game_id,status:_?0:1},{headers:b});r.hasVideoPrivilege=!_}catch(_){console.error(_)}}return(r,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(wK,{ref_key:"modalActionConfirm",ref:B,onConfirmAction:a},{header:t.withCtx(()=>[t.createTextVNode(" Cambio de privilegio ")]),message:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.value),1)]),_:1},512),t.createElementVNode("div",kK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(b,x)=>(t.openBlock(),t.createBlock(AE,{key:b.game_id,game:b,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":m(x),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,"video-privileges-user-id":e.videoPrivilegesUserId,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:y,onChangeVideoPrivilege:v},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode","video-privileges-user-id","provider-id","is-dev-apis"]))),128))])],64))}},CK=Sf(SK,[["__scopeId","data-v-7470ea1a"]]),TK={class:"calendar-by-team"},AK={class:"playing-as-picker"},EK={class:"calendar-by-team__page"},MK={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.ref(0),U=t.computed(()=>{let v=[];if(s.gamesPages.size>0){const p=Array.from(s.gamesPages.entries()).reduce((r,[_,b])=>{const x=Number(_),h=Number.isNaN(x)?_:`Jornada ${x<10?"0":""}${x}`,n=b.reduce((i,c)=>(i.push(...c),i),[]).filter(i=>B.value===0||B.value===1&&i.visiting_team.team_id===s.teamId?!0:B.value===2&&i.home_team.team_id===s.teamId);return n.length>0&&r.push({roundName:h,games:n}),r},[]);v.push(p)}return v});function m(v){o("action",v)}function y(v){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),B.value=v,document.querySelector("#opc"+v).classList.add("selected")}function a(v){let p=v;switch(v){case"PI1":p="Play In 1";break;case"PI2":p="Play In 2";break;case"R1":p="Repechaje";break;case"CFI":p="Cuartos de final - Ida";break;case"CFV":p="Cuartos de final - Vuelta";break;case"SFI":p="Semifinal - Ida";break;case"SFV":p="Semifinal - Vuelta";break;case"FI":p="Final - Ida";break;case"FV":p="Final - Vuelta";break}return p}return(v,p)=>(t.openBlock(),t.createElementBlock("div",TK,[t.createElementVNode("div",AK,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:p[0]||(p[0]=r=>y(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:p[1]||(p[1]=r=>y(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:p[2]||(p[2]=r=>y(2))},"Local")]),t.createVNode(t.unref(bE),{"is-pagination-visible":e.isPaginationVisible,items:U.value},{default:t.withCtx(({item:r})=>[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r,(_,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(a(_.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.games,x=>(t.openBlock(),t.createBlock(AE,{key:x.game_id,game:x,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:m},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode","provider-id","is-dev-apis"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},IK=Sf(MK,[["__scopeId","data-v-79574004"]]),PK="_pccard_1ie6f_3",LK="_pcmobile_1ie6f_19",BK="_headerinfomobile_1ie6f_29",zK="_liveMinutes_1ie6f_37",OK="_viewButtomEvent_1ie6f_47",DK="_viewButtomEventMobile_1ie6f_79",NK="_containerEvents_1ie6f_111",FK="_sepEvents_1ie6f_125",RK="_goalsContainer_1ie6f_147",VK="_yellowContainer_1ie6f_165",jK="_redContainer_1ie6f_183",UK="_containerEventsGameHometeam_1ie6f_201",GK="_containerEventsGameAwayteam_1ie6f_229",HK="_image62Icon_1ie6f_257",ZK="_imgChivasIcon_1ie6f_277",WK="_nameDesktop_1ie6f_293",qK="_nameMobile_1ie6f_321",JK="_homeTeam_1ie6f_347",YK="_sbado16De_1ie6f_371",XK="_gameDate_1ie6f_389",$K="_sab16092023_1ie6f_397",KK="_div_1ie6f_425",QK="_divscore_1ie6f_443",eQ="_cst_1ie6f_463",tQ="_hour_1ie6f_483",aQ="_score_1ie6f_485",rQ="_chivasTvCanal_1ie6f_507",nQ="_gameStatus_1ie6f_531",iQ="_matchInfo_1ie6f_553",oQ="_image62Icon1_1ie6f_583",sQ="_name_1ie6f_293",lQ="_imgAtlasIcon_1ie6f_631",cQ="_name1_1ie6f_647",uQ="_awayTeam_1ie6f_673",dQ="_matchCard_1ie6f_697",hQ="_headereventsmobile_1ie6f_1069",pQ="_headereventsmobilecont_1ie6f_1089",fQ="_headereventsmobilecontlocal_1ie6f_1105",mQ="_icongoalheader_1ie6f_1119",gQ="_conttarjetasmobile_1ie6f_1131",yQ="_conttarjetasmobileyellow_1ie6f_1143",vQ="_iconmobileyellow_1ie6f_1157",bQ="_txtmobileyellow_1ie6f_1175",_Q="_iconmobilered_1ie6f_1205",xQ="_txtmobilered_1ie6f_1223",wQ="_conttarjetasmobilered_1ie6f_1255",kQ="_itemmobilgoal_1ie6f_1269",SQ="_goalscontainermobile_1ie6f_1299",CQ="_headereventsmobileconttitle_1ie6f_1331",TQ="_headereventsmobilecontaway_1ie6f_1381",AQ={pccard:PK,pcmobile:LK,headerinfomobile:BK,liveMinutes:zK,viewButtomEvent:OK,viewButtomEventMobile:DK,containerEvents:NK,sepEvents:FK,goalsContainer:RK,yellowContainer:VK,redContainer:jK,containerEventsGameHometeam:UK,containerEventsGameAwayteam:GK,image62Icon:HK,imgChivasIcon:ZK,nameDesktop:WK,nameMobile:qK,homeTeam:JK,sbado16De:YK,gameDate:XK,sab16092023:$K,div:KK,divscore:QK,cst:eQ,hour:tQ,score:aQ,chivasTvCanal:rQ,gameStatus:nQ,matchInfo:iQ,image62Icon1:oQ,name:sQ,imgAtlasIcon:lQ,name1:cQ,awayTeam:uQ,matchCard:dQ,headereventsmobile:hQ,headereventsmobilecont:pQ,headereventsmobilecontlocal:fQ,icongoalheader:mQ,conttarjetasmobile:gQ,conttarjetasmobileyellow:yQ,iconmobileyellow:vQ,txtmobileyellow:bQ,iconmobilered:_Q,txtmobilered:xQ,conttarjetasmobilered:wQ,itemmobilgoal:kQ,goalscontainermobile:SQ,headereventsmobileconttitle:CQ,headereventsmobilecontaway:TQ},EQ=["src"],MQ=["src"],IQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1),PQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1),LQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1),BQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1),zQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1),OQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1),DQ=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),NQ={key:0},FQ=t.createElementVNode("div",null,"ver desglose",-1),RQ=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"https://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),VQ=["src"],jQ=["src"],UQ={key:0,width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},GQ={key:0,width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},HQ={key:0,width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},ZQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1),WQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1),qQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1),JQ=["src"],YQ=["src"],XQ=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),$Q={key:0},KQ=["src"],QQ=["src"],eee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),tee=[eee],aee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),ree=[aee],nee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),iee=[nee],oee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),see=[oee],lee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),cee=[lee],uee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),dee=[uee],hee=t.createElementVNode("img",{style:{"margin-left":"6px"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-down.png"},null,-1),pee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),fee=[pee],mee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),gee=[mee],yee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),vee=[yee],bee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),_ee=[bee],xee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),wee=[xee],kee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),See=[kee],Cee={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}},playsLive:{type:Object,default:()=>{}},is_captured:{type:Number,default:1},infoLive:{type:Object,default:()=>{}},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},emits:["open-modal-event"],setup(e,{emit:o}){const s=e,B=new Map([[1,45],[2,90],[3,105],[4,120]]),U=t.computed(()=>{if(s.game.isMT)return"MT";const r=B.get(s.infoLive.recent_lapse);return r&&r<s.infoLive.minute?`${r}' + ${s.infoLive.minute-r}'`:`${s.infoLive.minute}'`}),m=t.computed(()=>{let r=0,_=0,b=!1;var x=!1;return Object.keys(s.infoLive).includes("score")&&(s.infoLive.score["own_"+s.game.home_team.team_id]!=null&&s.infoLive.score["own_"+s.game.home_team.team_id]!=0&&(x=!0),s.infoLive.score["own_"+s.game.visiting_team.team_id]!=null&&s.infoLive.score["own_"+s.game.visiting_team.team_id]!=0&&(b=!0),b?s.infoLive.score[s.game.home_team.team_id]!=null&&(r=parseInt(s.infoLive.score[s.game.home_team.team_id])+parseInt(s.infoLive.score["own_"+s.game.visiting_team.team_id])):s.infoLive.score[s.game.home_team.team_id]!=null&&(r=parseInt(s.infoLive.score[s.game.home_team.team_id])),x?s.infoLive.score[s.game.visiting_team.team_id]!=null&&(_=parseInt(s.infoLive.score[s.game.visiting_team.team_id])+parseInt(s.infoLive.score["own_"+s.game.home_team.team_id])):s.infoLive.score[s.game.visiting_team.team_id]!=null&&(_=parseInt(s.infoLive.score[s.game.visiting_team.team_id]))),r+" - "+_}),y=t.computed(()=>{const r={...s.game};return r.gameSchedule=s.game.schedule.split(":"),r.gameSchedule.pop(),r.gameSchedule=r.gameSchedule.join(":"),r});function a(r){let _=r.split(" "),b=_[_.length-2];return b.includes("+")?_[_.length-3]+"+"+_[_.length-1]:(b=_[_.length-1],b)}function v(r){o("open-modal-event",r)}function p(r,_){const b=new Date(r);if(_==1){const x=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],h=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${x[b.getDay()]} ${b.getDate()} de ${h[b.getMonth()]}`}else return`${b.getDate()}-${b.getMonth()+1}-${b.getFullYear()}`}return(r,_)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.pccard)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,150,e.providerId)},null,10,EQ),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgChivasIcon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,80,e.providerId)},null,10,MQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameDesktop),id:"team-name"},t.toDisplayString(y.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameMobile),id:"team-name"},t.toDisplayString(y.value.home_team.acronym),3),y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.is_live==0&&y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[IQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.home_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b).replace("(AG)",""))+" ",1),x!=y.value.minutes.home_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.home_red_cards_minutes.length>0&&y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.yellowContainer)},[PQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.home_red_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.home_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.home_red_cards_minutes.length>0||y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(r.$style.redContainer)},[LQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.home_yellow_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.home_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[BQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",1),x!=Object.keys(e.playsLive[e.game.home_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.yellowContainer)},[zQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.home_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.redContainer)},[OQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2),y.value.game_status==4&&y.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.sbado16De)},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.sab16092023)},t.toDisplayString(p(y.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.div)},t.toDisplayString(y.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.chivasTvCanal)},t.toDisplayString(y.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[y.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p(y.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([r.$style.sbado16De,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([r.$style.sab16092023,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,0)),3)],64)),y.value.is_live||y.value.game_status!=1&&y.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(m.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(y.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.gameStatus)},[y.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.liveMinutes)},[DQ,t.createTextVNode(" LIVE - "+t.toDisplayString(U.value),1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),y.value.penalties_score_home_team!=0||y.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",NQ," - Penales "+t.toDisplayString(y.value.penalties_score_home_team)+" - "+t.toDisplayString(y.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[y.value.is_live==1||y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.viewButtomEvent),onClick:_[0]||(_[0]=b=>v(y.value))},[FQ,t.createTextVNode("  "),RQ],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon1),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,150,e.providerId)},null,10,VQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name),id:"team-name"},t.toDisplayString(y.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgAtlasIcon),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,80,e.providerId)},null,10,jQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name1),id:"team-name"},t.toDisplayString(y.value.visiting_team.acronym),3),y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.is_live==0&&y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",UQ)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.visiting_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b).replace("(AG)",""))+" ",1),x!=y.value.minutes.visiting_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.away_red_cards_minutes.length>0&&y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.yellowContainer)},[y.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",GQ)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.away_red_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.away_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.away_red_cards_minutes.length>0||y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(r.$style.redContainer)},[y.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",HQ)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.away_yellow_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.away_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[ZQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",1),x!=Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.yellowContainer)},[WQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.redContainer)},[qQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.pcmobile)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.headerinfomobile)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,150,e.providerId)},null,10,JQ),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgChivasIcon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,80,e.providerId)},null,10,YQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameDesktop),id:"team-name"},t.toDisplayString(y.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameMobile),id:"team-name"},t.toDisplayString(y.value.home_team.acronym),3)],2),y.value.game_status==4&&y.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.sbado16De)},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.sab16092023)},t.toDisplayString(p(y.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.div)},t.toDisplayString(y.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.chivasTvCanal)},t.toDisplayString(y.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[y.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p(y.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([r.$style.sbado16De,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([r.$style.sab16092023,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,0)),3)],64)),y.value.is_live||y.value.game_status!=1&&y.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(m.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(y.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.gameStatus)},[y.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.liveMinutes)},[XQ,t.createTextVNode(" LIVE - "+t.toDisplayString(U.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),y.value.penalties_score_home_team!=0||y.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",$Q," - Penales "+t.toDisplayString(y.value.penalties_score_home_team)+" - "+t.toDisplayString(y.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon1),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,150,e.providerId)},null,10,KQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name),id:"team-name"},t.toDisplayString(y.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgAtlasIcon),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,80,e.providerId)},null,10,QQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name1),id:"team-name"},t.toDisplayString(y.value.visiting_team.acronym),3)],2)],2),y.value.game_status!=4||y.value.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.headereventsmobile)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobilecont)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobilecontlocal)},[y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},tee,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},ree,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.goalscontainermobile),style:{"justify-content":"left !important"}},[y.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(y.value.minutes.home_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(a(b).replace("(AG)","")),3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",3))),128)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobile)},[y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},iee,2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(y.value.minutes.home_yellow_cards_minutes.length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},see,2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(y.value.minutes.home_red_cards_minutes.length),3)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},cee,2),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobileyellow)},"0",2))],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},dee,2),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].red).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobilered)},"0",2))],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobileconttitle)},[e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.is_live==1||y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.$style.viewButtomEventMobile),onClick:_[1]||(_[1]=b=>v(y.value))},[t.createTextVNode(" ver desglose "),hee],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobilecontaway)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobile)},[y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(y.value.minutes.away_yellow_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},fee,2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(y.value.minutes.away_red_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},gee,2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobileyellow)},"0",2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},vee,2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobilered)},"0",2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},_ee,2)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.goalscontainermobile),style:{"justify-content":"right !important"}},[y.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(y.value.minutes.visiting_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(a(b).replace("(AG)","")),3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",3))),128)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},wee,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},See,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2)],2)):t.createCommentVNode("",!0)],2)],2))}},Tee={$style:AQ},Aee=Sf(Cee,[["__cssModules",Tee]]),Eee={class:"calendar-by-game__carousel"},Mee="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Iee={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},playsLive:{type:Object,default:()=>{}},infoLive:{type:Object,default:()=>{}},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},tournamentType:{type:Number,default:0},checkLiveGamesIntervalMinutes:{type:Number,default:2},gamesEventsIntervalMinutes:{type:Number,default:2},checkStartedLiveGamesMinutes:{type:Number,default:5},videoPrivilegesUserId:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(e,{emit:o}){const s=e;let B=null,U=null,m=null;const y=new Set,a=new Set,v=t.ref([]),p=t.ref({}),r=t.ref(0),_=t.ref(null),b=t.ref({}),x=t.ref(new Map),h=t.ref(!1),n=t.ref(null),i=t.ref(null),c=t.ref(null),l=t.ref([]),d=t.ref(new Map),g=t.ref(new Set),w=t.ref(Q_(p6));let C=Promise.resolve();t.watch(()=>s.providerId,He=>{C=xX(He).then(Pe=>{w.value=Pe})},{immediate:!0});const E=t.computed(()=>s.isCup),A=t.computed(()=>s.isCupLegacy),P=t.computed(()=>({height:s.height,width:s.width})),L=t.computed(()=>{if(s.games)return me(s.games,s.isTeamGamePerPage);{const He=x.value.get(b.value.key);return He&&s.isTeamGamePerPage&&s.onlyGamesTeamId?[He[0].filter(Pe=>Pe.home_team.team_id===s.onlyGamesTeamId||Pe.visiting_team.team_id===s.onlyGamesTeamId)]:He||[]}}),T=t.computed(()=>{const He=s.areGamesCarouselType?L.value[0]:L.value;return console.log("aux: ",He),He}),I=t.ref([]),M=t.ref(new Map),S=t.ref([]),z=t.ref(0),k=t.ref(0),O=t.computed(()=>{const He=j(p.value),Pe=I.value.find(Ve=>Ve.key===He);return Pe&&h.value&&(N(!1),we(Pe)),He});t.watch(()=>s.seasons,He=>{He&&He.length&&(N(!0),v.value=He.map(Pe=>Pe.id),ne(He,!0))},{immediate:!0,deep:!0}),t.watch(x,He=>{if(s.onlyGamesTeamId&&He.size){const Pe=Array.from(He.values()).reduce((Ve,Ie)=>(Ie.forEach(ge=>{const Ae=ge.find(ke=>ke.home_team.team_id===s.onlyGamesTeamId||ke.visiting_team.team_id===s.onlyGamesTeamId);Ae&&Ve.push(Ae)}),Ve),[]);o("change-games-by-client-privileges",Pe)}},{immediate:!0});function N(He){h.value=He}function j(He){const Pe=new Date().valueOf(),Ve=Object.entries(Object.entries(He).reduce((ge,[Ae,ke])=>(ge[Ae]=null,ke.forEach(je=>{je.games.forEach(De=>{if([1,0].includes(De.game_status)||De.is_live){const Ne=Pe-De.dateTimeMillis;(ge[Ae]===null||Ne<ge[Ae])&&(ge[Ae]=Ne)}})}),ge),{}));if(!Ve.length)return"1";const Ie=Ve.reduce((ge,[Ae,ke])=>{if(ke!==null){const je=M.value.get(Ae);(ge.shortestMillisToNow===null||ke<ge.shortestMillisToNow&&je.index>=ge.scheduleKey.index)&&(ge.shortestMillisToNow=ke,ge.round=Ae,ge.scheduleKey=je)}return ge},{round:"",shortestMillisToNow:null,scheduleKey:null});return Ie.shortestMillisToNow!==null?Ie.round:Ve[0][0]}t.watch(()=>s.teamId,()=>{ie()},{immediate:!0});async function G(He){try{const Pe=Py("https://u6845vutog.execute-api.us-east-2.amazonaws.com/prod/api/v1/privileges/games?",s.providerId,s.isDevApis),Ve=He.reduce((Ie,ge,Ae)=>(Ie+=`${Ae===0?"":"&"}season=${ge}`,Ie),Pe);return(await Iy.get(Ve)).data}catch(Pe){throw new Error(Pe)}}async function H(He,Pe,Ve=""){let Ie=Ve;try{const ge={};s.token&&(ge.Authorization=s.token),Ie||(Ie=Py("https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",s.providerId,s.isDevApis),He.forEach((je,De)=>{Ie+=`${De===0?"":"&"}seasons=${je}`}));const{data:{data:Ae,teams:ke}}=await Iy.get(Ie,{headers:ge});return{seasonsAndGames:Ae,seasonsAndTeams:ke}}catch(ge){if(Pe>0)return H(He,Pe-1,Ie);throw new Error(ge)}}function Z(He){for(const Pe of He)if(!v.value.includes(Pe.season_id))return!0;return!1}let $=0;async function ne(He,Pe){try{p.value={},k.value=0,z.value=0;const Ve=new Set,Ie=He.map(Ne=>Ne.id),ge=[H(Ie,3)];s.videoPrivilegesUserId&&ge.push(G(Ie));const[{seasonsAndGames:Ae,seasonsAndTeams:ke},je]=await Promise.all(ge);if(je&&je.forEach(Ne=>{Ne.status&&Ve.add(Ne.game_id)}),Pe&&Z(Ae))return;$=0,Ae.forEach(Ne=>{const{type:qe}=He.find(Ze=>Ze.id===Ne.season_id);Ne.type=qe,Ne.games.forEach(Ze=>{qe===0&&($=Ne.season_id),k.value++,([1,0].includes(Ze.game_status)||Ze.is_live)&&z.value++,Ze.season_id=Ne.season_id,Ze.hasVideoPrivilege=Ve.has(Ze.game_id)})}),n.value={seasonsGames:Ae};const{teams:De}=ke.find(Ne=>Ne.season_id===$);i.value=De,o("change-teams",De),await C,ie(),g.value.size?ee():await q()}catch(Ve){throw new Error(Ve)}}async function q(){try{const He=await se();a.clear(),l.value=He.data.reduce((Ve,Ie)=>(Ie.games.forEach(ge=>{y.add(ge.game_id),a.add(ge.game_id),Ve.push(ge)}),Ve),[]);const Pe=[];if(y.forEach(Ve=>{a.has(Ve)||(Pe.push(Ve),pe(Ve))}),Pe.forEach(Ve=>{y.delete(Ve)}),l.value.length){U||await K();const Ve=[];g.value.forEach(Ie=>{const ge=d.value.get(Ie);ge&&new Date().valueOf()>ge.dateTimeMillis&&Ve.push(Ie)}),Ve.length&&Ve.every(Ie=>d.value.get(Ie).isLiveTracked)&&ce()}}catch(He){throw new Error(He)}}async function K(){try{const He=[];for(const Ve of l.value){const Ie=d.value.get(Ve.game_id);Ie&&(Ie.is_live=1,Ie.game_status=4,Ie.live_stats=1,Ie.scheduleKey&&Ie.scheduleKey.liveGamesIds.add(Ve.game_id)),Ie.isLiveTracked=!0,He.push(re(Ve.game_id))}const Pe=await Promise.all(He);for(const Ve of Pe){const Ie=d.value.get(Ve.game_id);if(Ie){let ge=!1,Ae=!1;for(const Ne of Ve.plays){if(Ne.category_id===0&&Ne.game_status_id===18){Ae=!0;break}Ne.category_id===0&&Ne.game_status_id===17&&(ge=!0)}Ie.isMT=ge&&!Ae;const ke=[Number(Ve.score[Ie.home_team.team_id.toString()])+Number(Ve.score[`own_${Ie.visiting_team.team_id.toString()}`]),Number(Ve.score[Ie.visiting_team.team_id.toString()])+Number(Ve.score[`own_${Ie.home_team.team_id.toString()}`])],je=ke[0],De=ke[1];Ie.score=[Number.isNaN(je)?0:je,Number.isNaN(De)?0:De],he(Ie,Ve.plays)}}U||Q()}catch(He){throw new Error(He)}}function ee(){g.value.size&&g.value.forEach(He=>{const Pe=d.value.get(He);if(Pe){const Ve=new Date().valueOf();if(60*1e3*30+Pe.dateTimeMillis-Ve>0){const Ie=Pe.dateTimeMillis-Ve-3e5;setTimeout(()=>{X()},Ie>0?Ie:0)}}})}function X(){ce(),m||(m=setInterval(()=>{q()},s.checkLiveGamesIntervalMinutes*60*1e3))}function Q(){de(),U=setInterval(()=>{K()},s.gamesEventsIntervalMinutes*60*1e3)}function ce(){clearInterval(m),m=null}function de(){clearInterval(U),U=null}function he(He,Pe){for(const Ve of Pe)if(Ve.category_id===0&&Ve.game_status_id===13){const Ie=d.value.get(Ve.game_id);l.value=l.value.filter(ge=>ge.game_id!==He.game_id),Ie.is_live=0,Ie.game_status=0,Ie.scheduleKey&&Ie.scheduleKey.liveGamesIds.delete(He.game_id)}}function pe(He){const Pe=d.value.get(He);Pe&&(l.value=l.value.filter(Ve=>Ve.game_id!==He),Pe.is_live=0,Pe.game_status=0,Pe.scheduleKey&&Pe.scheduleKey.liveGamesIds.delete(He))}async function re(He){try{const Pe=Py(Mee,s.providerId,s.isDevApis);return(await Iy.get(`${Pe}${He}`,{headers:{Authorization:`${s.token}`}})).data}catch(Pe){throw new Error(Pe)}}async function se(){try{if(s.seasons.length===0)return[];const He=s.seasons.reduce((ge,Ae)=>`${ge}seasons=${Ae.id}&`,""),Pe=Iy.create({headers:{Authorization:`${s.token}`}}),Ve=Py(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${He}`,s.providerId,s.isDevApis),{data:Ie}=await Pe.get(Ve);return Ie}catch(He){throw new Error(He)}}function ie(){if(ce(),!i.value)return;d.value.clear(),g.value.clear(),S.value=[];const He=n.value&&n.value.seasonsGames?n.value.seasonsGames.map(Pe=>{const Ve=Pe.games.reduce((Ie,ge)=>{if(s.onlyGamesTeamId&&s.onlyGamesTeamId!==ge.home_team&&s.onlyGamesTeamId!==ge.visiting_team)return Ie;const Ae={...ge,regularSeasonId:$},ke=new Date,[je,De,Ne]=Ae.date.split("-"),[qe,Ze,_e]=Ae.schedule.split(":"),Be=new Date(Number(je),Number(De)-1,Number(Ne),Number(qe),Number(Ze),Number(_e));return Ae.dateTimeMillis=Be.valueOf(),Ae.home_team=i.value.find(Re=>Re.team_id===ge.home_team),Ae.visiting_team=i.value.find(Re=>Re.team_id===ge.visiting_team),Ae.game_status===4&&!Ae.is_live&&ke.getFullYear()===Be.getFullYear()&&ke.getMonth()===Be.getMonth()&&ke.getDate()===Be.getDate()&&g.value.add(Ae.game_id),d.value.set(Ae.game_id,Ae),s.teamId&&Ae.home_team.team_id!==s.teamId&&Ae.visiting_team.team_id!==s.teamId||(Ie[ge.matchday_abbreviation]?Ie[ge.matchday_abbreviation][ge.game_status===3?"canceled":ge.date]?Ie[ge.matchday_abbreviation][ge.game_status===3?"canceled":ge.date].push(Ae):Ie[ge.matchday_abbreviation][ge.game_status===3?"canceled":ge.date]=[Ae]:Ie[ge.matchday_abbreviation]={[ge.game_status===3?"canceled":ge.date]:[Ae]},s.userTeamId&&([1,0].includes(Ae.game_status)||Ae.is_live)&&(Ae.home_team.team_id===s.userTeamId||Ae.visiting_team.team_id===s.userTeamId)&&S.value.push(Ae)),Ie},{});for(let[Ie,ge]of Object.entries(Ve))Ve[Ie]=Object.entries(ge).map(([Ae,ke])=>({date:Ae,games:ke.sort((je,De)=>je.dateTimeMillis-De.dateTimeMillis)})),Ve[Ie].sort((Ae,ke)=>Ae.date<ke.date?-1:Ae.date>ke.date?1:0);return{type:Pe.type,weight:Pe.type===0?0:Pe.type===2?1:2,schedule:Ve}}):[];He.sort((Pe,Ve)=>Pe.weight-Ve.weight),p.value=He.reduce((Pe,Ve)=>{for(const[Ie,ge]of Object.entries(Ve.schedule))if(Ve.type===0)if([1,2].includes(s.tournamentType)){const Ae=w.value.namesAndAbbByTournamentTypeAndMatchDayAbb.get(s.tournamentType);if(Ae){const ke=Ae.get(Ie);ke&&(Pe[ke.matchDayAbbreviation]=ge)}}else if(E.value){const Ae=Ie.replace("M",""),ke=Ae;A.value?Pe[w.value.cupLegacy[Ae]||ke]=ge:Pe[w.value.cup[Ie]||ke]=ge}else Pe[Number(Ie.replace("M","")).toString()]=ge;else Ve.type===2?Ie.charAt(1)=="I"?Pe[`PI${Number(Ie.replace("PI",""))}`]=ge:Pe[`R${Number(Ie.replace("PO",""))}`]=ge:Ve.type===1&&(Pe[w.value.regularLeague[Ie]]=ge);return Pe},{}),x.value=new Map,M.value.clear(),I.value=Array.from(Object.entries(p.value).reduce((Pe,[Ve,Ie],ge)=>{const Ae=Number(Ve);let ke="";Number.isNaN(Ae)?ke=Ve:ke=Ae<10?`0${Ae}`:Ve;const je={key:Ve,value:Ae,valueText:ke,index:ge,liveGamesIds:new Set};M.value.set(Ve,je),Pe.set(Ve,je);const De=Ie.reduce((qe,Ze)=>(Ze.games.forEach(_e=>{_e.game_id===s.defaultGameId&&(c.value=Ve),_e.roundAbbreviation=Number.isNaN(Ae)?Ae:`J ${Ae}`,_e.scheduleKey=je,_e.is_live&&je.liveGamesIds.add(_e.game_id)}),qe=qe.concat(Ze.games),qe),[]),Ne=me(De);return x.value.set(Ve,Ne),Pe},new Map).values())}function me(He,Pe=!1){const Ve=[];if(s.gamesPerMatchDay>0){let Ie=[];He.forEach((ge,Ae)=>{Ie.push(ge),(Ae+1)%s.gamesPerMatchDay===0&&(Ve.push([...Ie]),Ie=[])}),Ie.length&&Ve.push([...Ie])}else Ve.push(He);return Pe&&s.isTeamGamePerPage&&s.defaultGameId?Ve.filter(Ie=>Ie.game_id===s.defaultGameId||Ie.gameId===s.defaultGameId):Ve}async function ye(He){try{const Pe=Py("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments",s.providerId,s.isDevApis),{data:Ve}=await Iy.get(Pe);return Ve}catch(Pe){if(He>0)return ye(He-1);throw new Error(Pe)}}function ve(){if(window.ResizeObserver)B=new ResizeObserver(()=>{r.value=_.value.clientWidth}),B.observe(_.value);else throw new Error("Resize observer not supported!")}function we(He){b.value.value!==He.value&&(b.value=He,o("change-round",He))}function Se(He){s.areGamesCarouselType&&o("change-game-carousel",He.selectedItem)}function Ce(He){o("action",He),Le(He)}function Me(He){o("open-modal-event",He)}function Le(He){const Pe="PLAY_RESUME",Ve="PLAY_GOALS",Ie=s.providerId==1?[607,608,12,55,54,35,14,52,15,53,466,477]:[393,444,985,986,1035,1075,473,389],ge=s.providerId==1?[12,55,"35_r","54_r"]:[393,1415],{game_id:Ae,season_id:ke}=He.game;let je={seasonId:ke,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[Ae],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};He.action===Pe?(je.categoryIds=Ie,je.advancedFilter.playListTitle="Resumen",o("openmedia",je)):He.action===Ve&&(je.categoryIds=ge,je.advancedFilter.playListTitle="Goles",o("openmedia",je))}async function ze(){try{if(!s.awaitForSeasons&&!s.games){const He=(await ye(3)).find(Ie=>Ie._id===1),Pe=He.seasons[0],Ve=[{id:Pe.id,type:Pe.type}];He&&He.tournament&&o("tournament-selected",He.tournament),Pe.related_seasons&&Pe.related_seasons.length&&Ve.push(...Pe.related_seasons.map(Ie=>({id:Ie.id,type:Ie.type}))),await ne(Ve,!1)}}catch(He){throw new Error(He)}}return t.onMounted(()=>{ve()}),ze(),(He,Pe)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:_,class:"calendar-by-game",style:t.normalizeStyle(P.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(IK,{key:0,"full-tournament-schedule":p.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":x.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:Ce},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode","provider-id","is-dev-apis"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&I.value?(t.openBlock(),t.createBlock(ZX,{key:0,"match-days":I.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?O.value:"",onChangeMatchDay:we},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",Eee,[L.value?(t.openBlock(),t.createBlock(t.unref(bE),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:T.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Se},{default:t.withCtx(({item:Ve})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(Aee,{key:0,is_captured:e.is_captured,game:Ve,onOpenModalEvent:Me,"plays-live":e.playsLive,"info-live":e.infoLive,"provider-id":e.providerId,"is-dev-apis":e.isDevApis},null,8,["is_captured","game","plays-live","info-live","provider-id","is-dev-apis"])):(t.openBlock(),t.createBlock(CK,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":Ve,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,"video-privileges-user-id":e.videoPrivilegesUserId,token:e.token,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:Ce},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode","video-privileges-user-id","token","provider-id","is-dev-apis"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},Pee=Sf(Iee,[["__scopeId","data-v-510bfb7d"]]);function Lee(){return ME().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ME(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Bee=typeof Proxy=="function",zee="devtools-plugin:setup",Oee="plugin:settings:set";let Ly,b6;function Dee(){var e;return Ly!==void 0||(typeof window<"u"&&window.performance?(Ly=!0,b6=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ly=!0,b6=globalThis.perf_hooks.performance):Ly=!1),Ly}function Nee(){return Dee()?b6.now():Date.now()}class Fee{constructor(o,s){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=s;const B={};if(o.settings)for(const y in o.settings){const a=o.settings[y];B[y]=a.defaultValue}const U=`__vue-devtools-plugin-settings__${o.id}`;let m=Object.assign({},B);try{const y=localStorage.getItem(U),a=JSON.parse(y);Object.assign(m,a)}catch{}this.fallbacks={getSettings(){return m},setSettings(y){try{localStorage.setItem(U,JSON.stringify(y))}catch{}m=y},now(){return Nee()}},s&&s.on(Oee,(y,a)=>{y===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(y,a)=>this.target?this.target.on[a]:(...v)=>{this.onQueue.push({method:a,args:v})}}),this.proxiedTarget=new Proxy({},{get:(y,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...v)=>(this.targetQueue.push({method:a,args:v,resolve:()=>{}}),this.fallbacks[a](...v)):(...v)=>new Promise(p=>{this.targetQueue.push({method:a,args:v,resolve:p})})})}async setRealTarget(o){this.target=o;for(const s of this.onQueue)this.target.on[s.method](...s.args);for(const s of this.targetQueue)s.resolve(await this.target[s.method](...s.args))}}function Ree(e,o){const s=e,B=ME(),U=Lee(),m=Bee&&s.enableEarlyProxy;if(U&&(B.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!m))U.emit(zee,e,o);else{const y=m?new Fee(s,U):null;(B.__VUE_DEVTOOLS_PLUGINS__=B.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:s,setupFn:o,proxy:y}),y&&o(y.proxiedTarget)}}/*!
17
+ */const xd={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"}},_E={itemsToShow:{default:xd.itemsToShow,type:Number},itemsToScroll:{default:xd.itemsToScroll,type:Number},wrapAround:{default:xd.wrapAround,type:Boolean},throttle:{default:xd.throttle,type:Number},snapAlign:{default:xd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:xd.transition,type:Number},breakpoints:{default:xd.breakpoints,type:Object},autoplay:{default:xd.autoplay,type:Number},pauseAutoplayOnHover:{default:xd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:xd.mouseDrag,type:Boolean},touchDrag:{default:xd.touchDrag,type:Boolean},dir:{default:xd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:xd.i18n,type:Object},settings:{default(){return{}},type:Object}};function TX({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:B,itemsToShow:U=1}=e;if(B)return Math.max(o-1,0);let m;switch(s){case"start":m=o-U;break;case"end":m=o-1;break;case"center":case"center-odd":m=o-Math.ceil((U-.5)/2);break;case"center-even":m=o-Math.ceil(U/2);break;default:m=0;break}return Math.max(m,0)}function AX({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:B,itemsToShow:U=1}=e;let m=0;if(s||U>o)return m;switch(B){case"start":m=0;break;case"end":m=U-1;break;case"center":case"center-odd":m=Math.floor((U-1)/2);break;case"center-even":m=Math.floor((U-2)/2);break;default:m=0;break}return m}function f6({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function EX({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:B,wrapAround:U,itemsToShow:m=1}=e;let y=o;switch(B){case"center":case"center-odd":y-=(m-1)/2;break;case"center-even":y-=(m-2)/2;break;case"end":y-=m-1;break}return U?y:f6({val:y,max:s-m,min:0})}function xE(e){return e?e.reduce((o,s)=>{var B;return s.type===t.Fragment?[...o,...xE(s.children)]:((B=s.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function m6({val:e,max:o,min:s=0}){return e>o?m6({val:e-(o+1),max:o,min:s}):e<s?m6({val:e+(o+1),max:o,min:s}):e}function MX(e,o){let s;return o?function(...B){const U=this;s||(e.apply(U,B),s=!0,setTimeout(()=>s=!1,o))}:e}function IX(e,o){let s;return function(...B){s&&clearTimeout(s),s=setTimeout(()=>{e(...B),s=null},o)}}function PX(e="",o={}){return Object.entries(o).reduce((s,[B,U])=>s.replace(`{${B}}`,String(U)),e)}var LX=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},xd))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},PX(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),BX=t.defineComponent({name:"Carousel",props:_E,setup(e,{slots:o,emit:s,expose:B}){var U;const m=t.ref(null),y=t.ref([]),a=t.ref(0),v=t.ref(0),p=t.reactive(Object.assign({},xd));let r=Object.assign({},xd),_;const b=t.ref((U=e.modelValue)!==null&&U!==void 0?U:0),x=t.ref(0),h=t.ref(0),n=t.ref(0),i=t.ref(0);let c,l;t.provide("config",p),t.provide("slidesCount",v),t.provide("currentSlide",b),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",a);function d(){_=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),w(r)}function g(){if(!_||!Object.keys(_).length)return;const re=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let se=Object.assign({},r);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(se=Object.assign(Object.assign({},se),_[ie])),me}),w(se)}function w(re){Object.entries(re).forEach(([se,ie])=>p[se]=ie)}const C=IX(()=>{g(),A(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();a.value=re.width/p.itemsToShow}function A(){v.value<=0||(h.value=Math.ceil((v.value-1)/2),n.value=TX({config:p,slidesCount:v.value}),i.value=AX({config:p,slidesCount:v.value}),p.wrapAround||(b.value=f6({val:b.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),g(),G(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),c&&clearInterval(c),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),z=()=>{M.value=!0},k=()=>{M.value=!1};function O(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||Z.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=MX(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const se=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=se},p.throttle);function j(){const re=p.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,ie=Math.round(I.x/a.value+se)*re;if(ie&&!P){const me=ye=>{window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(b.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function G(){!p.autoplay||p.autoplay<=0||(c=setInterval(()=>{p.pauseAutoplayOnHover&&M.value||ne()},p.autoplay))}function H(){c&&(clearInterval(c),c=null),G()}const Z=t.ref(!1);function $(re){const se=p.wrapAround?re:f6({val:re,max:n.value,min:i.value});b.value===se||Z.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!0,x.value=b.value,b.value=se,l=setTimeout(()=>{if(p.wrapAround){const ie=m6({val:se,max:n.value,min:0});ie!==b.value&&(b.value=ie,s("loop",{currentSlideIndex:b.value,slidingToIndex:re}))}s("update:modelValue",b.value),s("slide-end",{currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!1,H()},p.transition))}function ne(){$(b.value+p.itemsToScroll)}function q(){$(b.value-p.itemsToScroll)}const K={slideTo:$,next:ne,prev:q};t.provide("nav",K),t.provide("isSliding",Z);const ee=t.computed(()=>EX({config:p,currentSlide:b.value,slidesCount:v.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const re=p.dir==="rtl"?-1:1,se=ee.value*a.value*re;return{transform:`translateX(${I.x-se}px)`,transition:`${Z.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function Q(){d(),g(),A(),E(),H()}Object.keys(_E).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],Q)}),t.watch(()=>e.modelValue,re=>{re!==b.value&&$(Number(re))}),t.watch(v,A),s("before-init"),d();const ce={config:p,slidesCount:v,slideWidth:a,next:ne,prev:q,slideTo:$,currentSlide:b,maxSlide:n,minSlide:i,middleSlide:h};B({updateBreakpointsConfigs:g,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:d,restartCarousel:Q,slideTo:$,next:ne,prev:q,nav:K,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=xE(de==null?void 0:de(pe)),se=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(p.wrapAround){const ve=re.map((Se,Ce)=>t.cloneVNode(Se,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Se,Ce)=>t.cloneVNode(Se,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));ie=[...ve,...re,...we]}y.value=re,v.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:p.mouseDrag?O:null,onTouchstartPassiveCapture:p.touchDrag?O:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":Z.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:z,onMouseleave:k},[ye,se,t.h(LX)])}}}),g6;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(g6||(g6={}));const zX={arrowUp:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z",arrowDown:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z",arrowRight:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z",arrowLeft:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"};function OX(e){return e in g6}const y6=e=>{const o=t.inject("config",t.reactive(Object.assign({},xd))),s=String(e.name),B=`icon${s.charAt(0).toUpperCase()+s.slice(1)}`;if(!s||typeof s!="string"||!OX(s))return;const U=zX[s],m=t.h("path",{d:U}),y=o.i18n[B]||e.title||s,a=t.h("title",y);return t.h("svg",{class:"carousel__icon",viewBox:"0 0 24 24",role:"img","aria-label":y},[a,m])};y6.props={name:String,title:String};const DX=(e,{slots:o,attrs:s})=>{const{next:B,prev:U}=o||{},m=t.inject("config",t.reactive(Object.assign({},xd))),y=t.inject("maxSlide",t.ref(1)),a=t.inject("minSlide",t.ref(1)),v=t.inject("currentSlide",t.ref(1)),p=t.inject("nav",{}),{dir:r,wrapAround:_,i18n:b}=m,x=r==="rtl",h=t.h("button",{type:"button",class:["carousel__prev",!_&&v.value<=a.value&&"carousel__prev--disabled",s==null?void 0:s.class],"aria-label":b.ariaPreviousSlide,onClick:p.prev},(U==null?void 0:U())||t.h(y6,{name:x?"arrowRight":"arrowLeft"})),n=t.h("button",{type:"button",class:["carousel__next",!_&&v.value>=y.value&&"carousel__next--disabled",s==null?void 0:s.class],"aria-label":b.ariaNextSlide,onClick:p.next},(B==null?void 0:B())||t.h(y6,{name:x?"arrowLeft":"arrowRight"}));return[h,n]};var NX=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},xd))),B=t.inject("currentSlide",t.ref(0)),U=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),y=t.computed(()=>e.index===B.value),a=t.computed(()=>e.index===B.value-1),v=t.computed(()=>e.index===B.value+1),p=t.computed(()=>{const r=Math.floor(U.value),_=Math.ceil(U.value+s.itemsToShow-1);return e.index>=r&&e.index<=_});return()=>{var r;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p.value,"carousel__slide--active":y.value,"carousel__slide--prev":a.value,"carousel__slide--next":v.value,"carousel__slide--sliding":m.value},"aria-hidden":!p.value},(r=o.default)===null||r===void 0?void 0:r.call(o,{isActive:y.value,isClone:e.isClone,isPrev:a.value,isNext:v.value,isSliding:m.value,isVisible:p.value}))}}});const Sf=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},wE=e=>(t.pushScopeId("data-v-15f082dd"),e=e(),t.popScopeId(),e),FX={key:1,class:"match-day__live"},RX=wE(()=>t.createElementVNode("div",{class:"match-day__live__bullet"},null,-1)),VX=wE(()=>t.createElementVNode("div",{class:"match-day__live__text"},"LIVE",-1)),jX=[RX,VX],UX={__name:"MatchDay",props:{isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"'Poppins-Regular', sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},matchDay:{type:Object,default:()=>{}},matchDaySelected:{type:Object,default:()=>{}},componentWidth:{type:Number,default:0}},emits:["change-match-day"],setup(e,{emit:o}){const s=e,B=t.computed(()=>{const a={"background-color":s.backgroundColor,height:s.height};return s.matchDay.key===s.matchDaySelected.key&&(a["border-bottom"]=`solid 1px ${s.bottomLineColor}`,a["background-color"]=s.selectedMatchDayBackgroundColor),s.isLandingMode||(a["border-right"]="solid 1px rgba(255, 255, 255, 0.1)"),a}),U=t.computed(()=>({color:s.numberColor,"font-family":s.numberFontFamily,"font-size":s.numberFontSize})),m=t.computed(()=>({color:s.textColor,"font-family":s.textFontFamily,"font-size":s.textFontSize}));function y(a){o("click-match-day",a)}return(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day",style:t.normalizeStyle({...B.value}),onClick:v[0]||(v[0]=p=>y(e.matchDay))},[t.createElementVNode("div",{class:"match-day__value",style:t.normalizeStyle(U.value)},t.toDisplayString(e.matchDay.valueText),5),!Number.isNaN(e.matchDay.value)&&!e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",{key:0,class:"match-day__text",style:t.normalizeStyle([e.isLandingMode?"margin-top:3px":"margin-top:4px",m.value])},t.toDisplayString(e.isLandingMode||e.componentWidth<=425?"JOR":"JORNADA"),5)):e.matchDay.liveGamesIds.size?(t.openBlock(),t.createElementBlock("div",FX,jX)):t.createCommentVNode("",!0)],4))}},GX=Sf(UX,[["__scopeId","data-v-15f082dd"]]),HX={__name:"MatchDayPicker",props:{matchDays:{type:Array,default:()=>[]},isLandingMode:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#183143"},numberColor:{type:String,default:"white"},numberFontFamily:{type:String,default:"sans-serif"},numberFontSize:{type:String,default:"14px"},textColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"8px"},bottomLineColor:{type:String,default:"#cbee6b"},selectedMatchDayBackgroundColor:{type:String,default:"#243b4c"},height:{type:String,default:"fit-content"},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},defaultMatchDayKey:{type:[String,null],default:""},componentWidth:{type:Number,default:0},closestMatchDay:{type:[Number,String],default:0}},emits:["change-match-day"],setup(e,{emit:o}){const s=e;t.useCssVars(p=>({"6930a853":m.value,"692f9113":y.value}));const B=t.ref(null),U=t.computed(()=>({itemsToShow:s.itemsToShow,itemsToScroll:s.itemsToScroll,snapAlign:"start"})),m=t.computed(()=>B.value.data.currentSlide.value==0?"none":"inline"),y=t.computed(()=>B.value.data.currentSlide.value==B.value.data.maxSlide.value?"none":"inline"),a=t.ref({});t.watch(()=>s.closestMatchDay,p=>{if(p){const r=s.matchDays.find(_=>_.key===p);v(r||s.matchDays[0],!0)}}),t.watch(()=>s.matchDays,p=>{if(!s.closestMatchDay&&p&&p.length){const r=p.find(_=>_.key===s.defaultMatchDayKey);a.value=r||p[0],o("change-match-day",a.value)}else s.closestMatchDay&&(a.value=p.find(r=>r.key===s.closestMatchDay)||{})},{immediate:!0});function v(p,r=!1){r&&B.value&&B.value.slideTo(p.index),a.value=p,o("change-match-day",a.value)}return(p,r)=>(t.openBlock(),t.createElementBlock("div",{class:"match-day-picker",style:t.normalizeStyle(e.isLandingMode?"border-top-left-radius: 9px; border-top-right-radius: 9px;":"margin-bottom:12px")},[(t.openBlock(),t.createBlock(t.unref(BX),t.mergeProps(U.value,{modelValue:a.value.index,ref_key:"matchDayPickerCarousel",ref:B,key:a.value.index}),{addons:t.withCtx(()=>[t.createVNode(t.unref(DX))]),default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.matchDays,_=>(t.openBlock(),t.createBlock(t.unref(NX),{key:_.key},{default:t.withCtx(()=>[t.createVNode(GX,t.mergeProps(s,{"match-day":_,"match-day-selected":a.value,"is-landing-mode":e.isLandingMode,"component-width":e.componentWidth,onClickMatchDay:v}),null,16,["match-day","match-day-selected","is-landing-mode","component-width"])]),_:2},1024))),128))]),_:1},16,["modelValue"]))],4))}},ZX=Sf(HX,[["__scopeId","data-v-7bfcb74c"]]),WX=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},qX={key:1},JX={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},YX=["fill"],XX={key:0,class:"checkbox__teams"},$X={class:"checkbox__teams__logo"},KX=["src"],QX={class:"checkbox__teams__logo"},e$=["src"],t$={__name:"GSC-Checkbox",props:{width:{type:String,default:"fit-content"},height:{type:String,default:"fit-content"},label:{type:String,default:""},labelWhiteSpace:{type:String,default:"normal"},labelColor:{type:String,default:"white"},fontFamily:{type:String,default:"sans-serif"},labelFontSize:{type:String,default:"12px"},modelValue:{type:Boolean,default:!1},justifyContent:{type:String,default:"flex-start"},alignItems:{type:String,default:"center"},boxBackgroundColor:{type:String,default:"#CBEE6B"},boxValueColor:{type:String,default:"#0d1d29"},boxValue:{type:[String,Number],default:""},boxPosition:{type:String,default:"left",validator(e){return["left","right","top","bottom"].includes(e)}},boxMarginTop:{type:String,default:"0.2em"},boxWidthAndHeight:{type:String,default:"16px"},boxBorderColor:{type:String,default:"#969da2"},boxBorderWidth:{type:String,default:"2px"},boxBorderRadius:{type:String,default:"4px"},boxValueFontSize:{type:String,default:"10px"},boxValueFontFamily:{type:String,default:"sans-serif"},avoidInteraction:{type:Boolean,default:!1},avoidToCheck:{type:Boolean,default:!1},isBoxOnly:{type:Boolean,default:!1},teamsIds:{type:Array,default:()=>null}},emits:["update:modelValue"],setup(e,{emit:o}){const s=e;t.useCssVars(p=>({"7bd9d47b":e.width,"34dc7ddc":e.height}));const B=t.ref(!1),U=t.computed(()=>{const p={color:s.boxValueColor,"font-family":s.fontFamily,height:s.boxWidthAndHeight,width:s.boxWidthAndHeight,minWidth:s.boxWidthAndHeight,"border-radius":s.boxBorderRadius,"margin-top":s.boxMarginTop};return B.value?(p["background-color"]=s.boxBackgroundColor,p.border=`solid ${s.boxBorderWidth} ${s.boxBackgroundColor}`):p.border=`solid ${s.boxBorderWidth} ${s.boxBorderColor}`,p}),m=t.computed(()=>({"font-family":s.boxValueFontFamily,"font-size":s.boxValueFontSize,color:s.boxValueColor,"line-height":1})),y=t.computed(()=>{const p={color:s.labelColor,"font-family":s.fontFamily,"font-size":s.labelFontSize,"white-space":s.labelWhiteSpace,"text-align":s.boxPosition==="top"||s.boxPosition==="bottom"?"center":s.boxPosition};return(s.boxPosition==="left"||s.boxPosition==="right")&&(p[`margin-${s.boxPosition}`]=s.isBoxOnly?"0":s.teamsIds?"8px":"10px"),p});t.watch(()=>s.modelValue,p=>{p!==B.value&&(B.value=p)},{immediate:!0});function a(){s.avoidInteraction||!B.value&&s.avoidToCheck||(B.value=!B.value,o("update:modelValue",B.value))}function v(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,r)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["checkbox",`box-${e.boxPosition}`]),onClick:a},[t.createElementVNode("div",{class:"checkbox__box",style:t.normalizeStyle(U.value)},[B.value?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.boxValue?(t.openBlock(),t.createElementBlock("div",{key:0,class:"checkbox__box__value",style:t.normalizeStyle(m.value)},t.toDisplayString(e.boxValue),5)):(t.openBlock(),t.createElementBlock("div",qX,[(t.openBlock(),t.createElementBlock("svg",JX,[t.createElementVNode("path",{d:"M9.77994 1.70133L4.10994 7.37133C3.96994 7.51133 3.77994 7.59133 3.57994 7.59133C3.37994 7.59133 3.18994 7.51133 3.04994 7.37133L0.219941 4.54133C-0.0700586 4.25133 -0.0700586 3.77133 0.219941 3.48133C0.509941 3.19133 0.989941 3.19133 1.27994 3.48133L3.57994 5.78133L8.71994 0.641328C9.00994 0.351328 9.48994 0.351328 9.77994 0.641328C10.0699 0.931328 10.0699 1.40133 9.77994 1.70133Z",fill:e.boxValueColor},null,8,YX)]))]))],64)):t.createCommentVNode("",!0)],4),e.teamsIds&&e.teamsIds.length?(t.openBlock(),t.createElementBlock("div",XX,[t.createElementVNode("div",$X,[t.createElementVNode("img",{src:v(e.teamsIds[0]),alt:""},null,8,KX)]),t.createElementVNode("div",QX,[t.createElementVNode("img",{src:v(e.teamsIds[1]),alt:""},null,8,e$)])])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"checkbox__label",style:t.normalizeStyle(y.value)},t.toDisplayString(e.label),5)],2))}},a$=WX(t$,[["__scopeId","data-v-b6f124d8"]]);function r$(e,o){if(!o||o<=1)return e;const s=new URL(e),B=s.pathname.split("/").filter(a=>a!=="");if(B.length===0)return e;const[U,...m]=B,y=[U,o,...m].join("/");return`${s.origin}/${y}${s.search}`}function W0(e,o=80,s=1){const B={}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-";return r$(`${B}${o}/${e}.png`,s)}function kE(e){if(typeof e=="string"){let o=e.replace("M","J ");return o=o.replace("PO1","CFI"),o=o.replace("PO2","CFV"),o=o.replace("PO3","SFI"),o=o.replace("PO4","SFV"),o=o.replace("PO5","FI"),o=o.replace("PO6","FV"),o}}function n$(e){let o="";return e.game_status!=4&&(o+="Finalizado"),(e.penalties_score_home_team!=0||e.penalties_score_visiting_team!=0)&&(o+=" - Penales "+e.penalties_score_home_team+" - "+e.penalties_score_visiting_team),o}const i$={class:"game-info__teams"},o$={class:"game-info__teams__team__logo"},s$=["src"],l$={class:"game-info__teams__detail"},c$={key:0,class:"game-info__teams__detail__pre-game"},u$={class:"game-info__teams__team__logo away"},d$=["src"],h$={key:0},p$={key:0},f$={key:1},m$={__name:"GameInfo",props:{isLandingMode:{type:Boolean,default:!1},isAcronymVisible:{type:Boolean,default:!1},isTelevisionVisible:{type:Boolean,default:!0},game:{type:Object,required:!0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},colorPrimary:{type:String,default:"white"},colorSecondary:{type:String,default:"grey"},namesFontSize:{type:String,default:"12px"},timeFontSize:{type:String,default:"12px"},timeZoneFontSize:{type:String,default:"8px"},scoreFontSize:{type:String,default:"13px"},namesFontFamily:{type:String,default:"sans-serif"},scoreFontFamily:{type:String,default:"sans-serif"},additionalInfoFontFamily:{type:String,default:"sans-serif"},additionalInfoFontSize:{type:String,default:"9px"}},setup(e){const o=e,s=t.computed(()=>{let p=o.game.schedule.split(":");return p.pop(),p=p.join(":"),p}),B=t.computed(()=>{let p="120px";return(o.isLandingMode||o.isAcronymVisible)&&(p="70px"),{"min-width":p}}),U=t.computed(()=>({"font-size":o.namesFontSize,"font-family":o.namesFontFamily,color:o.colorPrimary})),m=t.computed(()=>({"font-size":o.additionalInfoFontSize,"font-family":o.additionalInfoFontFamily,color:o.colorSecondary})),y=t.computed(()=>({"font-size":o.scoreFontSize,"font-family":o.scoreFontFamily,color:o.colorPrimary})),a=t.computed(()=>({"font-size":o.timeZoneFontSize,"font-family":o.namesFontFamily,color:o.colorPrimary})),v=t.computed(()=>({"font-size":o.timeFontSize,"font-family":o.namesFontFamily,color:o.colorPrimary}));return(p,r)=>(t.openBlock(),t.createElementBlock("div",{class:"game-info",style:t.normalizeStyle(e.isLandingMode?"gap:5px":"")},[t.createElementVNode("div",i$,[t.createElementVNode("div",{class:"game-info__teams__team",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(U.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.home_team.acronym:e.game.home_team.colloquial_name),5),t.createElementVNode("div",o$,[t.createElementVNode("img",{src:t.unref(W0)(e.game.home_team.team_id,80,e.providerId),alt:""},null,8,s$)])],4),t.createElementVNode("div",l$,[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("div",c$,[t.createElementVNode("div",null,[t.createElementVNode("span",{style:t.normalizeStyle(v.value)},t.toDisplayString(s.value),5),t.createTextVNode(),t.createElementVNode("span",{style:t.normalizeStyle(a.value)},"CST",4)])])):(t.openBlock(),t.createElementBlock("div",{key:1,class:"game-info__teams__detail__score",style:t.normalizeStyle(y.value)},[t.createElementVNode("span",null,t.toDisplayString(e.game.score[0])+" - "+t.toDisplayString(e.game.score[1]),1)],4))]),t.createElementVNode("div",{class:"game-info__teams__team away",style:t.normalizeStyle(B.value)},[t.createElementVNode("div",u$,[t.createElementVNode("img",{src:t.unref(W0)(e.game.visiting_team.team_id,80,e.providerId),alt:""},null,8,d$)]),t.createElementVNode("div",{class:"game-info__teams__team__name",style:t.normalizeStyle(U.value)},t.toDisplayString(e.isLandingMode||e.isAcronymVisible?e.game.visiting_team.acronym:e.game.visiting_team.colloquial_name),5)],4)]),t.createElementVNode("div",{class:"game-info__status",style:t.normalizeStyle([m.value,e.isLandingMode?"line-height: normal":""])},[e.game.game_status===4&&!e.game.is_live?(t.openBlock(),t.createElementBlock("span",h$,[e.isTelevisionVisible?(t.openBlock(),t.createElementBlock("span",p$,t.toDisplayString(e.game.tv_stations.join(", ")),1)):t.createCommentVNode("",!0)])):(t.openBlock(),t.createElementBlock("span",f$,t.toDisplayString(t.unref(n$)(e.game)),1))],4)],4))}},SE=Sf(m$,[["__scopeId","data-v-4190335c"]]),CE=e=>(t.pushScopeId("data-v-e2fc9ed0"),e=e(),t.popScopeId(),e),g$={class:"game-status"},y$={key:0,class:"game-status__day__live"},v$=CE(()=>t.createElementVNode("span",null,"LIVE",-1)),b$=CE(()=>t.createElementVNode("span",{class:"dot"},null,-1)),_$=[v$,b$],x$={key:0,class:"game-status__round"},w$={__name:"GameStatus",props:{isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},status:{type:Number,default:4},isLive:{type:Boolean,default:!1},dateTimeMillis:{type:Number,default:0},roundAbbreviation:{type:String,default:""},fontSize:{type:String,default:"10px"}},setup(e){const o=e,s=["Ene","Feb","Mar","Abr","May","Jun","Jul","Ago","Sep","Oct","Nov","Dic"],B=t.computed(()=>{let y="";if(o.dateTimeMillis){const a=new Date(o.dateTimeMillis);y=`${a.getDate()} ${s[a.getMonth()]}`}return y}),U=t.computed(()=>({"font-size":o.fontSize})),m=t.computed(()=>{let y=[];return o.isLive?y.push("live"):o.status!==1&&y.push("pre-match"),y});return(y,a)=>(t.openBlock(),t.createElementBlock("div",g$,[t.createElementVNode("div",{class:t.normalizeClass(["game-status__day",m.value]),style:t.normalizeStyle(U.value)},[e.isLive?(t.openBlock(),t.createElementBlock("div",y$,_$)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(B.value),1)],64))],6),e.isRoundMode?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",x$,t.toDisplayString(e.roundAbbreviation),1))]))}},TE=Sf(w$,[["__scopeId","data-v-e2fc9ed0"]]),zf={SHOW_GAME_EVENTS:"SHOW_GAME_EVENTS",PLAY_GOALS:"PLAY_GOALS",PLAY_RESUME:"PLAY_RESUME",NOTIFICATION:"NOTIFICATION",STATISTICS:"STATISTICS"},k$=e=>(t.pushScopeId("data-v-5711c5a6"),e=e(),t.popScopeId(),e),S$={class:"actions"},C$={class:"actions__row"},T$=k$(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),A$=[T$],E$={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},M$=["fill"],I$={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},P$=["fill"],L$={__name:"GameActionsLanding",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.computed(()=>({backgroundColor:s.iconBackgroundColor,borderColor:s.iconBorderColor}));function U(m){o("action",m)}return(m,y)=>(t.openBlock(),t.createElementBlock("div",S$,[t.createElementVNode("div",C$,[t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:y[0]||(y[0]=a=>U(t.unref(zf).STATISTICS))},A$,4),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:y[1]||(y[1]=a=>U(t.unref(zf).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",E$,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:s.iconColor},null,8,M$)]))],4)):t.createCommentVNode("",!0),e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button",onClick:y[2]||(y[2]=a=>U(t.unref(zf).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",I$,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:s.iconColor},null,8,P$)]))])):t.createCommentVNode("",!0)])]))}},B$=Sf(L$,[["__scopeId","data-v-5711c5a6"]]),v6=e=>(t.pushScopeId("data-v-d64f8667"),e=e(),t.popScopeId(),e),z$={class:"actions"},O$={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},D$=["fill"],N$={width:"6",height:"8",viewBox:"0 0 6 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},F$=["fill"],R$=v6(()=>t.createElementVNode("svg",{width:"10",height:"12",viewBox:"0 0 10 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.87471 3.35132C9.31653 3.35132 9.67471 3.70949 9.67471 4.15132V10.4531C9.67471 10.8949 9.31653 11.2531 8.87471 11.2531C8.43288 11.2531 8.07471 10.8949 8.07471 10.4531V4.15132C8.07471 3.70949 8.43288 3.35132 8.87471 3.35132Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.67549 0.199951C5.11732 0.199951 5.47549 0.558123 5.47549 0.999951V10.4526C5.47549 10.8944 5.11732 11.2526 4.67549 11.2526C4.23366 11.2526 3.87549 10.8944 3.87549 10.4526V0.999951C3.87549 0.558123 4.23366 0.199951 4.67549 0.199951Z",fill:"#EEEC6B"}),t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.0002 5.45154C1.44202 5.45154 1.8002 5.80971 1.8002 6.25154V10.4527C1.8002 10.8945 1.44202 11.2527 1.0002 11.2527C0.558368 11.2527 0.200195 10.8945 0.200195 10.4527V6.25154C0.200195 5.80971 0.558368 5.45154 1.0002 5.45154Z",fill:"#EEEC6B"})],-1)),V$=[R$],j$={key:0,class:"actions__videos"},U$={width:"13",height:"16",viewBox:"0 0 13 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},G$=["fill"],H$={key:1,class:"actions__videos__thumbnails"},Z$=v6(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__goals"},null,-1)),W$=v6(()=>t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__summary"},null,-1)),q$={height:24,width:24,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J$=["stroke"],Y$={__name:"GameActionsFull",props:{gameStatus:{type:Number,default:4},isLive:{type:Boolean,default:!1},hasVideo:{type:Boolean,default:!1},hasActions:{type:Boolean,default:!0},hasGoals:{type:Boolean,default:!0},areEventsVisible:{type:Boolean,default:!1},iconColor:{type:String,default:"#CBEE6B"},iconBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0.2)"},iconBorderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},showPlayButton:{type:Boolean,default:!1},arrowColor:{type:String,default:"white"},thumbnailFontFamily:{type:String,default:"sans-serif"},thumbnailFontSize:{type:String,default:"8px"},thumbnailColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.computed(()=>({backgroundColor:s.iconBackgroundColor,borderColor:s.iconBorderColor})),U=t.computed(()=>{const v=[];return s.componentWidth<540&&v.push("mobile"),v}),m=t.computed(()=>s.componentWidth>730),y=t.computed(()=>({color:s.thumbnailColor,fontFamily:s.thumbnailFontFamily,fontSize:s.thumbnailFontSize}));function a(v){o("action",v)}return(v,p)=>(t.openBlock(),t.createElementBlock("div",z$,[t.createElementVNode("div",{class:t.normalizeClass(["actions__buttons",U.value])},[e.gameStatus===4444&&!e.isLive&&!m.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:p[0]||(p[0]=r=>a(t.unref(zf).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",O$,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:s.iconColor},null,8,D$)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo&&!m.value?(t.openBlock(),t.createElementBlock("div",{key:1,class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:p[1]||(p[1]=r=>a(t.unref(zf).PLAY_RESUME))},[(t.openBlock(),t.createElementBlock("svg",N$,[t.createElementVNode("path",{d:"M0.442694 7.9474C0.385489 7.90953 0.337676 7.85295 0.304408 7.78375C0.27114 7.71456 0.25368 7.63538 0.253908 7.55475V0.444134C0.253987 0.363779 0.271562 0.284951 0.304765 0.216032C0.337968 0.147113 0.385557 0.090677 0.442475 0.0527243C0.499393 0.0147716 0.563511 -0.00327964 0.628014 0.000489552C0.692517 0.00425874 0.754994 0.0297075 0.808803 0.0741304L5.09491 3.62986C5.14387 3.67036 5.18401 3.7253 5.21178 3.78978C5.23955 3.85426 5.25409 3.92628 5.25409 3.99944C5.25409 4.0726 5.23955 4.14462 5.21178 4.2091C5.18401 4.27358 5.14387 4.32852 5.09491 4.36902L0.808803 7.92559C0.755077 7.97011 0.692648 7.99565 0.628173 7.99949C0.563698 8.00333 0.499593 7.98533 0.442694 7.9474Z",fill:s.iconColor},null,8,F$)]))],4)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__button rounded",style:t.normalizeStyle(B.value),onClick:p[2]||(p[2]=r=>a(t.unref(zf).STATISTICS))},V$,4)],2),m.value?(t.openBlock(),t.createElementBlock("div",j$,[e.gameStatus===4444&&!e.isLive?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__button",onClick:p[3]||(p[3]=r=>a(t.unref(zf).NOTIFICATION))},[(t.openBlock(),t.createElementBlock("svg",U$,[t.createElementVNode("path",{d:"M5.056 14.476h2.888c0 .838-.65 1.524-1.444 1.524-.794 0-1.444-.686-1.444-1.524zM13 12.952v.762H0v-.762l1.444-1.523V6.857c0-2.362 1.445-4.419 3.612-5.105v-.228C5.056.686 5.706 0 6.5 0c.794 0 1.444.686 1.444 1.524v.228c2.167.686 3.612 2.743 3.612 5.105v4.572L13 12.952zm-2.889-6.095c0-2.133-1.589-3.81-3.611-3.81-2.022 0-3.611 1.677-3.611 3.81v5.333h7.222V6.857z",fill:s.iconColor},null,8,G$)]))])):t.createCommentVNode("",!0),e.showPlayButton&&e.hasVideo?(t.openBlock(),t.createElementBlock("div",H$,[e.hasGoals?(t.openBlock(),t.createElementBlock("div",{key:0,class:"actions__videos__thumbnails__thumbnail",onClick:p[4]||(p[4]=r=>a(t.unref(zf).PLAY_GOALS))},[Z$,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(y.value)}," Goles ",4)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail",onClick:p[5]||(p[5]=r=>a(t.unref(zf).PLAY_RESUME))},[W$,t.createElementVNode("div",{class:"actions__videos__thumbnails__thumbnail__text",style:t.normalizeStyle(y.value)}," Resumen ",4)])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(e.gameStatus!==4||e.isLive)&&e.hasActions?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["actions__button expand",{"rotated-180":e.areEventsVisible,mobile:e.componentWidth<540}]),onClick:p[6]||(p[6]=r=>a(t.unref(zf).SHOW_GAME_EVENTS))},[(t.openBlock(),t.createElementBlock("svg",q$,[t.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:e.arrowColor},null,8,J$)]))],2)):(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(["actions__button expand",{"rotated-180":!1,mobile:e.componentWidth<540}])},null,2))]))}},X$=Sf(Y$,[["__scopeId","data-v-d64f8667"]]),ex=e=>(t.pushScopeId("data-v-e0fd9956"),e=e(),t.popScopeId(),e),$$={class:"row-landing__game-status"},K$={class:"row-landing__game-actions"},Q$={class:"row-full__game-status"},eK={class:"row-full__game-info"},tK={key:0,class:"row-full__video-privilege"},aK={class:"row-full__game-actions"},rK={class:"game-events-container"},nK=ex(()=>t.createElementVNode("div",{class:"separator"},null,-1)),iK=ex(()=>t.createElementVNode("div",null,null,-1)),oK={class:"game-events__data"},sK={class:"game-events__data__team"},lK=["src"],cK={class:"game-events__data__team__event__text"},uK={class:"game-events__data__team away"},dK={class:"game-events__data__team__event__text"},hK=["src"],pK=ex(()=>t.createElementVNode("div",null,null,-1)),fK=ex(()=>t.createElementVNode("div",null,null,-1)),mK={__name:"CalendarRow",props:{teamId:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},game:{type:Object,required:!0},height:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#172531"},showPlayButton:{type:Boolean,default:!1},componentWidth:{type:Number,default:400,validator(e){return e>0}},televisionFontSize:{type:String,default:"12px"},televisionFontFamily:{type:String,default:"sans-serif"},televisionColor:{type:String,default:"rgba(255, 255, 255, 0.5)"},videoPrivilegesUserId:{type:Number,default:0}},emits:["action","change-video-privilege"],setup(e,{emit:o}){const s=e,B={GOAL:{}.GAME_EVENTS_ICONS_GOAL||"/icn-gol.svg",RED_CARD:{}.GAME_EVENTS_ICONS_RED_CARD||"/icn-expulsion.svg",YELLOW_CARD:{}.GAME_EVENTS_ICONS_YELLOW_CARD||"/icn-amarilla.svg"},U=t.ref(!1),m=t.ref(!1),y=t.computed(()=>{const i={homeTeam:[],awayTeam:[]};return s.game&&s.game.game_status!==4&&!s.game.is_live&&s.game.minutes&&(i.homeTeam.push(...x(s.game.minutes.home_goals_minutes,B.GOAL)),i.homeTeam.push(...x(s.game.minutes.home_red_cards_minutes,B.RED_CARD)),i.homeTeam.push(...x(s.game.minutes.home_yellow_cards_minutes,B.YELLOW_CARD)),i.awayTeam.push(...x(s.game.minutes.visiting_goals_minutes,B.GOAL)),i.awayTeam.push(...x(s.game.minutes.away_red_cards_minutes,B.RED_CARD)),i.awayTeam.push(...x(s.game.minutes.away_yellow_cards_minutes,B.YELLOW_CARD))),i}),a=t.computed(()=>{const i=y.value.homeTeam.length,c=y.value.awayTeam.length;return i+c>0}),v=t.computed(()=>{const i=s.game.score[0],c=s.game.score[1];return i>0||c>0}),p=t.computed(()=>({"background-color":s.backgroundColor})),r=t.computed(()=>({height:s.height})),_=t.computed(()=>{const i={game:[],events:[]};return s.componentWidth<500?(i.events.push("break-point-3"),i.game.push("break-point-2")):s.componentWidth<730?(i.game.push("break-point-2"),i.events.push("break-point-2")):s.componentWidth<910&&(i.game.push("break-point-1"),i.events.push("break-point-1")),i}),b=t.computed(()=>({isLandingMode:s.isLandingMode,game:s.game,colorPrimary:"#fff",colorSecondary:"#fff",namesFontSize:"12px",timeFontSize:"12px",timeZoneFontSize:"8px",scoreFontSize:"13px",namesFontFamily:"sans-serif",scoreFontFamily:"sans-serif",additionalInfoFontFamily:"sans-serif",additionalInfoFontSize:"9px"}));t.computed(()=>({"font-size":s.televisionFontSize,"font-family":s.televisionFontFamily,color:s.televisionColor})),t.watch(()=>s.componentWidth,i=>{m.value=i<910});function x(i,c){return i.map(l=>({iconUrl:c,text:l}))}function h(i){o("change-video-privilege",i)}function n(i){i===zf.SHOW_GAME_EVENTS?U.value=!U.value:o("action",{action:i,game:s.game})}return(i,c)=>e.isLandingMode?(t.openBlock(),t.createElementBlock("div",{key:0,class:"row-landing",style:t.normalizeStyle(p.value)},[t.createVNode(SE,{game:e.game,"is-landing-mode":e.isLandingMode,"provider-id":e.providerId,"is-dev-apis":e.isDevApis},null,8,["game","is-landing-mode","provider-id","is-dev-apis"]),t.createElementVNode("div",$$,[t.createVNode(TE,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(kE)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",K$,[e.game.home_team?(t.openBlock(),t.createBlock(B$,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"game-status":e.game.game_status,"show-play-button":!0,onAction:n},null,8,["is-live","has-video","game-status"])):t.createCommentVNode("",!0)])],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"row-full-container",style:t.normalizeStyle(p.value)},[t.createElementVNode("div",{class:t.normalizeClass(["row-full",_.value.game]),style:t.normalizeStyle(r.value)},[t.createElementVNode("div",Q$,[t.createVNode(TE,{status:e.game.game_status,"is-live":!!e.game.is_live,"date-time-millis":e.game.dateTimeMillis,"round-abbreviation":t.unref(kE)(e.game.matchday_abbreviation),"is-landing-mode":e.isLandingMode,"is-round-mode":e.isRoundMode,"font-size":"10px"},null,8,["status","is-live","date-time-millis","round-abbreviation","is-landing-mode","is-round-mode"])]),t.createElementVNode("div",eK,[t.createVNode(SE,t.mergeProps(b.value,{"is-television-visible":m.value,game:e.game,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,"is-landing-mode":e.isLandingMode,"is-acronym-visible":e.componentWidth<540}),null,16,["is-television-visible","game","provider-id","is-dev-apis","is-landing-mode","is-acronym-visible"])]),e.componentWidth>=910?(t.openBlock(),t.createElementBlock("div",tK,[e.videoPrivilegesUserId&&e.showVideos==0?(t.openBlock(),t.createElementBlock("div",{key:0,onClick:c[0]||(c[0]=l=>h(e.game))},[t.createVNode(t.unref(a$),{label:"Privilegios",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":e.game.hasVideoPrivilege,"avoid-interaction":""},null,8,["model-value"])])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",aK,[e.game.home_team?(t.openBlock(),t.createBlock(X$,{key:0,"is-live":!!e.game.is_live,"has-video":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?!!e.game.has_video:!1,"has-actions":a.value,"has-goals":e.showVideos==0||e.showVideos==1&&e.teamId==e.game.home_team.team_id?v.value:!1,"game-status":e.game.game_status,"show-play-button":!0,"are-events-visible":U.value,"component-width":e.componentWidth,onAction:n},null,8,["is-live","has-video","has-actions","has-goals","game-status","are-events-visible","component-width"])):t.createCommentVNode("",!0)])],6),t.createVNode(t.Transition,null,{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",rK,[nK,t.createElementVNode("div",{class:t.normalizeClass(["game-events",_.value.events])},[iK,t.createElementVNode("div",oK,[t.createElementVNode("div",sK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.homeTeam,(l,d)=>(t.openBlock(),t.createElementBlock("div",{key:`h${d}`,class:"game-events__data__team__event"},[t.createElementVNode("img",{src:l.iconUrl},null,8,lK),t.createElementVNode("div",cK,t.toDisplayString(l.text),1)]))),128))]),t.createElementVNode("div",uK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.awayTeam,(l,d)=>(t.openBlock(),t.createElementBlock("div",{key:`a${d}`,class:"game-events__data__team__event"},[t.createElementVNode("div",dK,t.toDisplayString(l.text),1),t.createElementVNode("img",{src:l.iconUrl},null,8,hK)]))),128))])]),pK,fK],2)],512),[[t.vShow,U.value]])]),_:1})],4))}},AE=Sf(mK,[["__scopeId","data-v-e0fd9956"]]),EE=e=>(t.pushScopeId("data-v-673c112d"),e=e(),t.popScopeId(),e),gK={class:"modal-content"},yK={class:"modal-header"},vK=EE(()=>t.createElementVNode("div",{class:"separator"},null,-1)),bK={class:"modal-message"},_K=EE(()=>t.createElementVNode("div",{class:"separator"},null,-1)),xK={__name:"ModalActionConfirm",emits:["confirm-action"],setup(e,{expose:o,emit:s}){const B=t.ref(!1),U=t.ref({}),m=()=>{B.value=!1};function y(){s("confirm-action",{action:!0,data:U.value}),m()}function a({data:v}){U.value=v,B.value=!0}return o({showModal:a}),(v,p)=>(t.openBlock(),t.createBlock(t.Teleport,{to:"body"},[t.createVNode(t.Transition,{name:"modal"},{default:t.withCtx(()=>[B.value?(t.openBlock(),t.createElementBlock("div",{key:0,class:"modal-overlay",onClick:m},[t.createElementVNode("div",{class:"modal-container",onClick:p[0]||(p[0]=t.withModifiers(()=>{},["stop"]))},[t.createElementVNode("div",gK,[t.createElementVNode("div",yK,[t.renderSlot(v.$slots,"header",{},void 0,!0)]),vK,t.createElementVNode("p",bK,[t.renderSlot(v.$slots,"message",{},void 0,!0)]),_K,t.createElementVNode("div",{class:"modal-actions"},[t.createElementVNode("button",{class:"btn-cancel",onClick:m},"Cancelar"),t.createElementVNode("button",{class:"btn-delete",onClick:y},"Aceptar")])])])])):t.createCommentVNode("",!0)]),_:3})]))}},wK=Sf(xK,[["__scopeId","data-v-673c112d"]]),kK={class:"calendar-table"},SK={__name:"CalendarTable",props:{teamId:{type:Number,default:0},showVideos:{type:Number,default:0},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},gamesPerPage:{type:Array,default:()=>[]},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}},videoPrivilegesUserId:{type:Number,default:0},token:{type:String,default:""},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.ref(null),U=t.ref("");function m(r){return r%2===0?s.evenRowColor:s.oddRowColor}function y(r){o("action",r)}function a({action:r,data:_}){r&&p(_)}function v(r){if(B.value){const _=r.hasVideoPrivilege?"desactivar":"activar";U.value=`¿Estás seguro de ${_} el privilegio del partido ${r.home_team.colloquial_name} vs ${r.visiting_team.colloquial_name}?`,B.value.showModal({data:r})}}async function p(r){try{const _=!!r.hasVideoPrivilege,b={};s.token&&(b.Authorization=s.token);const x=Py("https://u6845vutog.execute-api.us-east-2.amazonaws.com/prod/api/v1/privileges/games",s.providerId,s.isDevApis),h=await Iy.post(x,{game_id:r.game_id,status:_?0:1},{headers:b});r.hasVideoPrivilege=!_}catch(_){console.error(_)}}return(r,_)=>(t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(wK,{ref_key:"modalActionConfirm",ref:B,onConfirmAction:a},{header:t.withCtx(()=>[t.createTextVNode(" Cambio de privilegio ")]),message:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(U.value),1)]),_:1},512),t.createElementVNode("div",kK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.gamesPerPage,(b,x)=>(t.openBlock(),t.createBlock(AE,{key:b.game_id,game:b,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":m(x),"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,"video-privileges-user-id":e.videoPrivilegesUserId,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:y,onChangeVideoPrivilege:v},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode","video-privileges-user-id","provider-id","is-dev-apis"]))),128))])],64))}},CK=Sf(SK,[["__scopeId","data-v-12308628"]]),TK={class:"calendar-by-team"},AK={class:"playing-as-picker"},EK={class:"calendar-by-team__page"},MK={__name:"CalendarTableByTeam",props:{showVideos:{type:Number,default:0},teamId:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!0},gamesPages:{type:Map,default:()=>new Map},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},rowHeight:{type:String,default:"fit-content"},nameRowColor:{type:String,default:"#172531"},gameRowColor:{type:String,default:"#0D1D29"},componentWidth:{type:Number,default:400,validator(e){return e>0}}},emits:["action"],setup(e,{emit:o}){const s=e,B=t.ref(0),U=t.computed(()=>{let v=[];if(s.gamesPages.size>0){const p=Array.from(s.gamesPages.entries()).reduce((r,[_,b])=>{const x=Number(_),h=Number.isNaN(x)?_:`Jornada ${x<10?"0":""}${x}`,n=b.reduce((i,c)=>(i.push(...c),i),[]).filter(i=>B.value===0||B.value===1&&i.visiting_team.team_id===s.teamId?!0:B.value===2&&i.home_team.team_id===s.teamId);return n.length>0&&r.push({roundName:h,games:n}),r},[]);v.push(p)}return v});function m(v){o("action",v)}function y(v){document.querySelector("#opc0").classList.remove("selected"),document.querySelector("#opc1").classList.remove("selected"),document.querySelector("#opc2").classList.remove("selected"),B.value=v,document.querySelector("#opc"+v).classList.add("selected")}function a(v){let p=v;switch(v){case"PI1":p="Play In 1";break;case"PI2":p="Play In 2";break;case"R1":p="Repechaje";break;case"CFI":p="Cuartos de final - Ida";break;case"CFV":p="Cuartos de final - Vuelta";break;case"SFI":p="Semifinal - Ida";break;case"SFV":p="Semifinal - Vuelta";break;case"FI":p="Final - Ida";break;case"FV":p="Final - Vuelta";break}return p}return(v,p)=>(t.openBlock(),t.createElementBlock("div",TK,[t.createElementVNode("div",AK,[t.createElementVNode("div",{class:"playing-as-picker__type selected",id:"opc0",onClick:p[0]||(p[0]=r=>y(0))}," Todas "),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc1",onClick:p[1]||(p[1]=r=>y(1))},"Visitante"),t.createElementVNode("div",{class:"playing-as-picker__type",id:"opc2",onClick:p[2]||(p[2]=r=>y(2))},"Local")]),t.createVNode(t.unref(bE),{"is-pagination-visible":e.isPaginationVisible,items:U.value},{default:t.withCtx(({item:r})=>[t.createElementVNode("div",EK,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(r,(_,b)=>(t.openBlock(),t.createElementBlock("div",{key:b,class:"calendar-by-team__page__round"},[t.createElementVNode("div",{class:"calendar-by-team__page__round__round-name",style:t.normalizeStyle([{color:"white"},e.componentWidth<=425?"padding: 5px 10px":""])},t.toDisplayString(a(_.roundName)),5),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_.games,x=>(t.openBlock(),t.createBlock(AE,{key:x.game_id,game:x,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":e.isLandingMode,height:e.rowHeight,"background-color":e.gameRowColor,"component-width":e.componentWidth,"is-round-mode":e.isRoundMode,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:m},null,8,["game","team-id","show-videos","is-landing-mode","height","background-color","component-width","is-round-mode","provider-id","is-dev-apis"]))),128))]))),128))])]),_:1},8,["is-pagination-visible","items"])]))}},IK=Sf(MK,[["__scopeId","data-v-cc8eed3a"]]),PK="_pccard_95chy_2",LK="_pcmobile_95chy_10",BK="_headerinfomobile_95chy_15",zK="_liveMinutes_95chy_19",OK="_viewButtomEvent_95chy_24",DK="_viewButtomEventMobile_95chy_40",NK="_containerEvents_95chy_56",FK="_sepEvents_95chy_63",RK="_goalsContainer_95chy_74",VK="_yellowContainer_95chy_83",jK="_redContainer_95chy_92",UK="_containerEventsGameHometeam_95chy_101",GK="_containerEventsGameAwayteam_95chy_115",HK="_image62Icon_95chy_129",ZK="_imgChivasIcon_95chy_139",WK="_nameDesktop_95chy_147",qK="_nameMobile_95chy_161",JK="_homeTeam_95chy_174",YK="_sbado16De_95chy_186",XK="_gameDate_95chy_195",$K="_sab16092023_95chy_199",KK="_div_95chy_213",QK="_divscore_95chy_222",eQ="_cst_95chy_232",tQ="_hour_95chy_242",aQ="_score_95chy_243",rQ="_chivasTvCanal_95chy_254",nQ="_gameStatus_95chy_266",iQ="_matchInfo_95chy_277",oQ="_image62Icon1_95chy_292",sQ="_name_95chy_147",lQ="_imgAtlasIcon_95chy_316",cQ="_name1_95chy_324",uQ="_awayTeam_95chy_337",dQ="_matchCard_95chy_349",hQ="_headereventsmobile_95chy_535",pQ="_headereventsmobilecont_95chy_545",fQ="_headereventsmobilecontlocal_95chy_553",mQ="_icongoalheader_95chy_560",gQ="_conttarjetasmobile_95chy_566",yQ="_conttarjetasmobileyellow_95chy_572",vQ="_iconmobileyellow_95chy_579",bQ="_txtmobileyellow_95chy_588",_Q="_iconmobilered_95chy_603",xQ="_txtmobilered_95chy_612",wQ="_conttarjetasmobilered_95chy_628",kQ="_itemmobilgoal_95chy_635",SQ="_goalscontainermobile_95chy_650",CQ="_headereventsmobileconttitle_95chy_666",TQ="_headereventsmobilecontaway_95chy_691",AQ={pccard:PK,pcmobile:LK,headerinfomobile:BK,liveMinutes:zK,viewButtomEvent:OK,viewButtomEventMobile:DK,containerEvents:NK,sepEvents:FK,goalsContainer:RK,yellowContainer:VK,redContainer:jK,containerEventsGameHometeam:UK,containerEventsGameAwayteam:GK,image62Icon:HK,imgChivasIcon:ZK,nameDesktop:WK,nameMobile:qK,homeTeam:JK,sbado16De:YK,gameDate:XK,sab16092023:$K,div:KK,divscore:QK,cst:eQ,hour:tQ,score:aQ,chivasTvCanal:rQ,gameStatus:nQ,matchInfo:iQ,image62Icon1:oQ,name:sQ,imgAtlasIcon:lQ,name1:cQ,awayTeam:uQ,matchCard:dQ,headereventsmobile:hQ,headereventsmobilecont:pQ,headereventsmobilecontlocal:fQ,icongoalheader:mQ,conttarjetasmobile:gQ,conttarjetasmobileyellow:yQ,iconmobileyellow:vQ,txtmobileyellow:bQ,iconmobilered:_Q,txtmobilered:xQ,conttarjetasmobilered:wQ,itemmobilgoal:kQ,goalscontainermobile:SQ,headereventsmobileconttitle:CQ,headereventsmobilecontaway:TQ},EQ=["src"],MQ=["src"],IQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1),PQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1),LQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1),BQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1),zQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1),OQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1),DQ=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),NQ={key:0},FQ=t.createElementVNode("div",null,"ver desglose",-1),RQ=t.createElementVNode("img",{width:"13",style:{"margin-top":"1px"},src:"https://golstatsimages.blob.core.windows.net/todoelfut/arrow-live-down.png"},null,-1),VQ=["src"],jQ=["src"],UQ={key:0,width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},GQ={key:0,width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},HQ={key:0,width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},ZQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/players-goals-con-goles.png"},null,-1),WQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/red_card.png"},null,-1),qQ=t.createElementVNode("img",{width:"10",src:"https://golstatsimages.blob.core.windows.net/todoelfut/yellow_card.png"},null,-1),JQ=["src"],YQ=["src"],XQ=t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/point-indicador-live.png"},null,-1),$Q={key:0},KQ=["src"],QQ=["src"],eee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),tee=[eee],aee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),ree=[aee],nee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),iee=[nee],oee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),see=[oee],lee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),cee=[lee],uee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),dee=[uee],hee=t.createElementVNode("img",{style:{"margin-left":"6px"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-down.png"},null,-1),pee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),fee=[pee],mee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),gee=[mee],yee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-yellow-card@2x.png"},null,-1),vee=[yee],bee=t.createElementVNode("img",{style:{position:"absolute","margin-top":"1px"},width:"7",src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-red-card@2x.png"},null,-1),_ee=[bee],xee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),wee=[xee],kee=t.createElementVNode("img",{width:"12",style:{position:"absolute"},src:"https://golstatsimages.blob.core.windows.net/playlist-icons/icn-soccer-ball@2x.png"},null,-1),See=[kee],Cee={__name:"CardPreMatch",props:{game:{type:Object,default:()=>{}},playsLive:{type:Object,default:()=>{}},is_captured:{type:Number,default:1},infoLive:{type:Object,default:()=>{}},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},emits:["open-modal-event"],setup(e,{emit:o}){const s=e,B=new Map([[1,45],[2,90],[3,105],[4,120]]),U=t.computed(()=>{if(s.game.isMT)return"MT";const r=B.get(s.infoLive.recent_lapse);return r&&r<s.infoLive.minute?`${r}' + ${s.infoLive.minute-r}'`:`${s.infoLive.minute}'`}),m=t.computed(()=>{let r=0,_=0,b=!1;var x=!1;return Object.keys(s.infoLive).includes("score")&&(s.infoLive.score["own_"+s.game.home_team.team_id]!=null&&s.infoLive.score["own_"+s.game.home_team.team_id]!=0&&(x=!0),s.infoLive.score["own_"+s.game.visiting_team.team_id]!=null&&s.infoLive.score["own_"+s.game.visiting_team.team_id]!=0&&(b=!0),b?s.infoLive.score[s.game.home_team.team_id]!=null&&(r=parseInt(s.infoLive.score[s.game.home_team.team_id])+parseInt(s.infoLive.score["own_"+s.game.visiting_team.team_id])):s.infoLive.score[s.game.home_team.team_id]!=null&&(r=parseInt(s.infoLive.score[s.game.home_team.team_id])),x?s.infoLive.score[s.game.visiting_team.team_id]!=null&&(_=parseInt(s.infoLive.score[s.game.visiting_team.team_id])+parseInt(s.infoLive.score["own_"+s.game.home_team.team_id])):s.infoLive.score[s.game.visiting_team.team_id]!=null&&(_=parseInt(s.infoLive.score[s.game.visiting_team.team_id]))),r+" - "+_}),y=t.computed(()=>{const r={...s.game};return r.gameSchedule=s.game.schedule.split(":"),r.gameSchedule.pop(),r.gameSchedule=r.gameSchedule.join(":"),r});function a(r){let _=r.split(" "),b=_[_.length-2];return b.includes("+")?_[_.length-3]+"+"+_[_.length-1]:(b=_[_.length-1],b)}function v(r){o("open-modal-event",r)}function p(r,_){const b=new Date(r);if(_==1){const x=["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"],h=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"];return`${x[b.getDay()]} ${b.getDate()} de ${h[b.getMonth()]}`}else return`${b.getDate()}-${b.getMonth()+1}-${b.getFullYear()}`}return(r,_)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(r.$style.matchCard)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.pccard)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,150,e.providerId)},null,10,EQ),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgChivasIcon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,80,e.providerId)},null,10,MQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameDesktop),id:"team-name"},t.toDisplayString(y.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameMobile),id:"team-name"},t.toDisplayString(y.value.home_team.acronym),3),y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.is_live==0&&y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[IQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.home_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b).replace("(AG)",""))+" ",1),x!=y.value.minutes.home_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.home_red_cards_minutes.length>0&&y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.home_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.yellowContainer)},[PQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.home_red_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.home_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.home_red_cards_minutes.length>0||y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.home_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(r.$style.redContainer)},[LQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.home_yellow_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.home_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameHometeam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[BQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",1),x!=Object.keys(e.playsLive[e.game.home_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.yellowContainer)},[zQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].red),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].red[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.home_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.home_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.redContainer)},[OQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].yellow),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.home_team.team_id].yellow[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2),y.value.game_status==4&&y.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.sbado16De)},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.sab16092023)},t.toDisplayString(p(y.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.div)},t.toDisplayString(y.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.chivasTvCanal)},t.toDisplayString(y.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[y.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p(y.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([r.$style.sbado16De,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([r.$style.sab16092023,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,0)),3)],64)),y.value.is_live||y.value.game_status!=1&&y.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(m.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(y.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.gameStatus)},[y.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.liveMinutes)},[DQ,t.createTextVNode(" LIVE - "+t.toDisplayString(U.value),1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),y.value.penalties_score_home_team!=0||y.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",NQ," - Penales "+t.toDisplayString(y.value.penalties_score_home_team)+" - "+t.toDisplayString(y.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2),e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:4},[y.value.is_live==1||y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.viewButtomEvent),onClick:_[0]||(_[0]=b=>v(y.value))},[FQ,t.createTextVNode("  "),RQ],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon1),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,150,e.providerId)},null,10,VQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name),id:"team-name"},t.toDisplayString(y.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgAtlasIcon),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,80,e.providerId)},null,10,jQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name1),id:"team-name"},t.toDisplayString(y.value.visiting_team.acronym),3),y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.is_live==0&&y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("img",UQ)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.visiting_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b).replace("(AG)",""))+" ",1),x!=y.value.minutes.visiting_goals_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.away_red_cards_minutes.length>0&&y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.yellowContainer)},[y.value.minutes.away_red_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",GQ)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.away_red_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.away_red_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0),y.value.minutes.away_red_cards_minutes.length>0||y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),y.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:4,class:t.normalizeClass(r.$style.redContainer)},[y.value.minutes.away_yellow_cards_minutes.length>0?(t.openBlock(),t.createElementBlock("img",HQ)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value.minutes.away_yellow_cards_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(a(b))+" ",1),x!=y.value.minutes.away_yellow_cards_minutes.length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.containerEventsGameAwayteam)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.containerEvents)},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.goalsContainer)},[ZQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",1),x!=Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0&&Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.yellowContainer)},[WQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].red),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].red[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length>0||Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.sepEvents)}," | ",2)):t.createCommentVNode("",!0),Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length>0?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.redContainer)},[qQ,(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x},[t.createTextVNode(t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].yellow[b].event.map(h=>`${h}`).join(", "))+"' ",1),x!=Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length-1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(",  ")],64)):t.createCommentVNode("",!0)]))),128))],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2)],2)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.pcmobile)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.headerinfomobile)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.homeTeam),id:"container-home-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,150,e.providerId)},null,10,JQ),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgChivasIcon),alt:"",src:t.unref(W0)(y.value.home_team.team_id,80,e.providerId)},null,10,YQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameDesktop),id:"team-name"},t.toDisplayString(y.value.home_team.colloquial_name),3),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.nameMobile),id:"team-name"},t.toDisplayString(y.value.home_team.acronym),3)],2),y.value.game_status==4&&y.value.is_live==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.sbado16De)},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.sab16092023)},t.toDisplayString(p(y.value.date_time_utc,0)),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.hour)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.div)},t.toDisplayString(y.value.gameSchedule),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.cst)},"CST",2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.chivasTvCanal)},t.toDisplayString(y.value.tv_stations.join(", ")),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.matchInfo),id:"container-match-info"},[y.value.is_live?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(p(y.value.date_time_utc,1)),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",{class:t.normalizeClass([r.$style.sbado16De,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,1)),3),t.createElementVNode("div",{class:t.normalizeClass([r.$style.sab16092023,r.$style.gameDate])},t.toDisplayString(p(y.value.date_time_utc,0)),3)],64)),y.value.is_live||y.value.game_status!=1&&y.value.game_status!=4?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(m.value),3)],2)):(t.openBlock(),t.createElementBlock("div",{key:3,class:t.normalizeClass(r.$style.score)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.divscore)},t.toDisplayString(y.value.score.join(" - ")),3)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.gameStatus)},[y.value.is_live?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.liveMinutes)},[XQ,t.createTextVNode(" LIVE - "+t.toDisplayString(U.value)+"' ",1)],2)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(" Finalizado "),y.value.penalties_score_home_team!=0||y.value.penalties_score_visiting_team!=0?(t.openBlock(),t.createElementBlock("span",$Q," - Penales "+t.toDisplayString(y.value.penalties_score_home_team)+" - "+t.toDisplayString(y.value.penalties_score_visiting_team),1)):t.createCommentVNode("",!0)],64))],2)],2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.awayTeam),id:"container-away-team"},[t.createElementVNode("img",{class:t.normalizeClass(r.$style.image62Icon1),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,150,e.providerId)},null,10,KQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name),id:"team-name"},t.toDisplayString(y.value.visiting_team.colloquial_name),3),t.createElementVNode("img",{class:t.normalizeClass(r.$style.imgAtlasIcon),alt:"",src:t.unref(W0)(y.value.visiting_team.team_id,80,e.providerId)},null,10,QQ),t.createElementVNode("h3",{class:t.normalizeClass(r.$style.name1),id:"team-name"},t.toDisplayString(y.value.visiting_team.acronym),3)],2)],2),y.value.game_status!=4||y.value.is_live==1?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.headereventsmobile)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobilecont)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobilecontlocal)},[y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.minutes.home_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},tee,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.home_team.team_id]&&"goals"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.home_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},ree,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.goalscontainermobile),style:{"justify-content":"left !important"}},[y.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(y.value.minutes.home_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(a(b).replace("(AG)","")),3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.home_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(e.playsLive[e.game.home_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",3))),128)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobile)},[y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},iee,2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(y.value.minutes.home_yellow_cards_minutes.length),3)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},see,2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(y.value.minutes.home_red_cards_minutes.length),3)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},cee,2),e.playsLive[e.game.home_team.team_id]&&"yellow"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].yellow).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobileyellow)},"0",2))],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},dee,2),e.playsLive[e.game.home_team.team_id]&&"red"in e.playsLive[e.game.home_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.home_team.team_id].red).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobilered)},"0",2))],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobileconttitle)},[e.is_captured==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.is_live==1||y.value.game_status==1||Object.keys(y.value.minutes).length>0?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(r.$style.viewButtomEventMobile),onClick:_[1]||(_[1]=b=>v(y.value))},[t.createTextVNode(" ver desglose "),hee],2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.headereventsmobilecontaway)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobile)},[y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(y.value.minutes.away_yellow_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},fee,2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(y.value.minutes.away_red_cards_minutes.length),3),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},gee,2)],2)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive).length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobileyellow)},[e.playsLive[e.game.visiting_team.team_id]&&"yellow"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobileyellow)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].yellow).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobileyellow)},"0",2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobileyellow)},vee,2)],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.conttarjetasmobilered)},[e.playsLive[e.game.visiting_team.team_id]&&"red"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.txtmobilered)},t.toDisplayString(Object.keys(e.playsLive[e.game.visiting_team.team_id].red).length),3)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(r.$style.txtmobilered)},"0",2)),t.createElementVNode("div",{class:t.normalizeClass(r.$style.iconmobilered)},_ee,2)],2)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),t.createElementVNode("div",{class:t.normalizeClass(r.$style.goalscontainermobile),style:{"justify-content":"right !important"}},[y.value.game_status==1?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(y.value.minutes.visiting_goals_minutes,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(a(b).replace("(AG)","")),3))),128)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(Object.keys(e.playsLive[e.game.visiting_team.team_id].goals),(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:x,class:t.normalizeClass(r.$style.itemmobilgoal)},t.toDisplayString(e.playsLive[e.game.visiting_team.team_id].goals[b].event.map(h=>`${h}`).join(", ").replace("(AG)",""))+"' ",3))),128)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2),y.value.game_status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[y.value.minutes.visiting_goals_minutes.length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},wee,2)):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[y.value.is_live==1&&y.value.game_status!=1||y.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.playsLive[e.game.visiting_team.team_id]&&"goals"in e.playsLive[e.game.visiting_team.team_id]?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[Object.keys(e.playsLive[e.game.visiting_team.team_id].goals).length>0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(r.$style.icongoalheader)},See,2)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))],2)],2)],2)):t.createCommentVNode("",!0)],2)],2))}},Tee={$style:AQ},Aee=Sf(Cee,[["__cssModules",Tee]]),Eee={class:"calendar-by-game__carousel"},Mee="https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",Iee={__name:"GSC-CalendarByGame",props:{showVideos:{type:Number,default:0},playsLive:{type:Object,default:()=>{}},infoLive:{type:Object,default:()=>{}},height:{type:String,default:"fit-content"},width:{type:String,default:"100%"},rowHeight:{type:String,default:"fit-content"},oddRowColor:{type:String,default:"#172531"},evenRowColor:{type:String,default:"#0D1D29"},isLandingMode:{type:Boolean,default:!1},isRoundMode:{type:Boolean,default:!1},isRoundPickerVisible:{type:Boolean,default:!0},isPaginationVisible:{type:Boolean,default:!0},awaitForSeasons:{type:Boolean,default:!1},seasons:{type:Array,default:()=>[]},isCup:{type:Boolean,default:!1},isCupLegacy:{type:Boolean,default:!1},token:{type:String,default:""},pagesWithGames:{type:Array,default:()=>[]},maxGamesToShow:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},areRoundsVisible:{type:Boolean,default:!0},is_captured:{type:Number,default:1},gamesPerMatchDay:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},itemsToShow:{type:Number,default:9},itemsToScroll:{type:Number,default:9},games:{type:Array,default:()=>null},teamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},avoidTeamIdFilter:{type:Boolean,default:!1},areGamesCarouselType:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},userTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isTeamGamePerPage:{type:Boolean,default:!1},onlyGamesTeamId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},tournamentType:{type:Number,default:0},checkLiveGamesIntervalMinutes:{type:Number,default:2},gamesEventsIntervalMinutes:{type:Number,default:2},checkStartedLiveGamesMinutes:{type:Number,default:5},videoPrivilegesUserId:{type:Number,default:0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},emits:["tournament-selected","change-teams","change-round","change-game-carousel","action","change-games-by-client-privileges","open-modal-event"],setup(e,{emit:o}){const s=e;let B=null,U=null,m=null;const y=new Set,a=new Set,v=t.ref([]),p=t.ref({}),r=t.ref(0),_=t.ref(null),b=t.ref({}),x=t.ref(new Map),h=t.ref(!1),n=t.ref(null),i=t.ref(null),c=t.ref(null),l=t.ref([]),d=t.ref(new Map),g=t.ref(new Set),w=t.ref(Q_(p6));let C=Promise.resolve();t.watch(()=>s.providerId,He=>{C=xX(He).then(Pe=>{w.value=Pe})},{immediate:!0});const E=t.computed(()=>s.isCup),A=t.computed(()=>s.isCupLegacy),P=t.computed(()=>({height:s.height,width:s.width})),L=t.computed(()=>{if(s.games)return me(s.games,s.isTeamGamePerPage);{const He=x.value.get(b.value.key);return He&&s.isTeamGamePerPage&&s.onlyGamesTeamId?[He[0].filter(Pe=>Pe.home_team.team_id===s.onlyGamesTeamId||Pe.visiting_team.team_id===s.onlyGamesTeamId)]:He||[]}}),T=t.computed(()=>{const He=s.areGamesCarouselType?L.value[0]:L.value;return console.log("aux: ",He),He}),I=t.ref([]),M=t.ref(new Map),S=t.ref([]),z=t.ref(0),k=t.ref(0),O=t.computed(()=>{const He=j(p.value),Pe=I.value.find(Ve=>Ve.key===He);return Pe&&h.value&&(N(!1),we(Pe)),He});t.watch(()=>s.seasons,He=>{He&&He.length&&(N(!0),v.value=He.map(Pe=>Pe.id),ne(He,!0))},{immediate:!0,deep:!0}),t.watch(x,He=>{if(s.onlyGamesTeamId&&He.size){const Pe=Array.from(He.values()).reduce((Ve,Ie)=>(Ie.forEach(ge=>{const Ae=ge.find(ke=>ke.home_team.team_id===s.onlyGamesTeamId||ke.visiting_team.team_id===s.onlyGamesTeamId);Ae&&Ve.push(Ae)}),Ve),[]);o("change-games-by-client-privileges",Pe)}},{immediate:!0});function N(He){h.value=He}function j(He){const Pe=new Date().valueOf(),Ve=Object.entries(Object.entries(He).reduce((ge,[Ae,ke])=>(ge[Ae]=null,ke.forEach(je=>{je.games.forEach(De=>{if([1,0].includes(De.game_status)||De.is_live){const Ne=Pe-De.dateTimeMillis;(ge[Ae]===null||Ne<ge[Ae])&&(ge[Ae]=Ne)}})}),ge),{}));if(!Ve.length)return"1";const Ie=Ve.reduce((ge,[Ae,ke])=>{if(ke!==null){const je=M.value.get(Ae);(ge.shortestMillisToNow===null||ke<ge.shortestMillisToNow&&je.index>=ge.scheduleKey.index)&&(ge.shortestMillisToNow=ke,ge.round=Ae,ge.scheduleKey=je)}return ge},{round:"",shortestMillisToNow:null,scheduleKey:null});return Ie.shortestMillisToNow!==null?Ie.round:Ve[0][0]}t.watch(()=>s.teamId,()=>{ie()},{immediate:!0});async function G(He){try{const Pe=Py("https://u6845vutog.execute-api.us-east-2.amazonaws.com/prod/api/v1/privileges/games?",s.providerId,s.isDevApis),Ve=He.reduce((Ie,ge,Ae)=>(Ie+=`${Ae===0?"":"&"}season=${ge}`,Ie),Pe);return(await Iy.get(Ve)).data}catch(Pe){throw new Error(Pe)}}async function H(He,Pe,Ve=""){let Ie=Ve;try{const ge={};s.token&&(ge.Authorization=s.token),Ie||(Ie=Py("https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?",s.providerId,s.isDevApis),He.forEach((je,De)=>{Ie+=`${De===0?"":"&"}seasons=${je}`}));const{data:{data:Ae,teams:ke}}=await Iy.get(Ie,{headers:ge});return{seasonsAndGames:Ae,seasonsAndTeams:ke}}catch(ge){if(Pe>0)return H(He,Pe-1,Ie);throw new Error(ge)}}function Z(He){for(const Pe of He)if(!v.value.includes(Pe.season_id))return!0;return!1}let $=0;async function ne(He,Pe){try{p.value={},k.value=0,z.value=0;const Ve=new Set,Ie=He.map(Ne=>Ne.id),ge=[H(Ie,3)];s.videoPrivilegesUserId&&ge.push(G(Ie));const[{seasonsAndGames:Ae,seasonsAndTeams:ke},je]=await Promise.all(ge);if(je&&je.forEach(Ne=>{Ne.status&&Ve.add(Ne.game_id)}),Pe&&Z(Ae))return;$=0,Ae.forEach(Ne=>{const{type:qe}=He.find(Ze=>Ze.id===Ne.season_id);Ne.type=qe,Ne.games.forEach(Ze=>{qe===0&&($=Ne.season_id),k.value++,([1,0].includes(Ze.game_status)||Ze.is_live)&&z.value++,Ze.season_id=Ne.season_id,Ze.hasVideoPrivilege=Ve.has(Ze.game_id)})}),n.value={seasonsGames:Ae};const{teams:De}=ke.find(Ne=>Ne.season_id===$);i.value=De,o("change-teams",De),await C,ie(),g.value.size?ee():await q()}catch(Ve){throw new Error(Ve)}}async function q(){try{const He=await se();a.clear(),l.value=He.data.reduce((Ve,Ie)=>(Ie.games.forEach(ge=>{y.add(ge.game_id),a.add(ge.game_id),Ve.push(ge)}),Ve),[]);const Pe=[];if(y.forEach(Ve=>{a.has(Ve)||(Pe.push(Ve),pe(Ve))}),Pe.forEach(Ve=>{y.delete(Ve)}),l.value.length){U||await K();const Ve=[];g.value.forEach(Ie=>{const ge=d.value.get(Ie);ge&&new Date().valueOf()>ge.dateTimeMillis&&Ve.push(Ie)}),Ve.length&&Ve.every(Ie=>d.value.get(Ie).isLiveTracked)&&ce()}}catch(He){throw new Error(He)}}async function K(){try{const He=[];for(const Ve of l.value){const Ie=d.value.get(Ve.game_id);Ie&&(Ie.is_live=1,Ie.game_status=4,Ie.live_stats=1,Ie.scheduleKey&&Ie.scheduleKey.liveGamesIds.add(Ve.game_id)),Ie.isLiveTracked=!0,He.push(re(Ve.game_id))}const Pe=await Promise.all(He);for(const Ve of Pe){const Ie=d.value.get(Ve.game_id);if(Ie){let ge=!1,Ae=!1;for(const Ne of Ve.plays){if(Ne.category_id===0&&Ne.game_status_id===18){Ae=!0;break}Ne.category_id===0&&Ne.game_status_id===17&&(ge=!0)}Ie.isMT=ge&&!Ae;const ke=[Number(Ve.score[Ie.home_team.team_id.toString()])+Number(Ve.score[`own_${Ie.visiting_team.team_id.toString()}`]),Number(Ve.score[Ie.visiting_team.team_id.toString()])+Number(Ve.score[`own_${Ie.home_team.team_id.toString()}`])],je=ke[0],De=ke[1];Ie.score=[Number.isNaN(je)?0:je,Number.isNaN(De)?0:De],he(Ie,Ve.plays)}}U||Q()}catch(He){throw new Error(He)}}function ee(){g.value.size&&g.value.forEach(He=>{const Pe=d.value.get(He);if(Pe){const Ve=new Date().valueOf();if(60*1e3*30+Pe.dateTimeMillis-Ve>0){const Ie=Pe.dateTimeMillis-Ve-3e5;setTimeout(()=>{X()},Ie>0?Ie:0)}}})}function X(){ce(),m||(m=setInterval(()=>{q()},s.checkLiveGamesIntervalMinutes*60*1e3))}function Q(){de(),U=setInterval(()=>{K()},s.gamesEventsIntervalMinutes*60*1e3)}function ce(){clearInterval(m),m=null}function de(){clearInterval(U),U=null}function he(He,Pe){for(const Ve of Pe)if(Ve.category_id===0&&Ve.game_status_id===13){const Ie=d.value.get(Ve.game_id);l.value=l.value.filter(ge=>ge.game_id!==He.game_id),Ie.is_live=0,Ie.game_status=0,Ie.scheduleKey&&Ie.scheduleKey.liveGamesIds.delete(He.game_id)}}function pe(He){const Pe=d.value.get(He);Pe&&(l.value=l.value.filter(Ve=>Ve.game_id!==He),Pe.is_live=0,Pe.game_status=0,Pe.scheduleKey&&Pe.scheduleKey.liveGamesIds.delete(He))}async function re(He){try{const Pe=Py(Mee,s.providerId,s.isDevApis);return(await Iy.get(`${Pe}${He}`,{headers:{Authorization:`${s.token}`}})).data}catch(Pe){throw new Error(Pe)}}async function se(){try{if(s.seasons.length===0)return[];const He=s.seasons.reduce((ge,Ae)=>`${ge}seasons=${Ae.id}&`,""),Pe=Iy.create({headers:{Authorization:`${s.token}`}}),Ve=Py(`https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason/lives?${He}`,s.providerId,s.isDevApis),{data:Ie}=await Pe.get(Ve);return Ie}catch(He){throw new Error(He)}}function ie(){if(ce(),!i.value)return;d.value.clear(),g.value.clear(),S.value=[];const He=n.value&&n.value.seasonsGames?n.value.seasonsGames.map(Pe=>{const Ve=Pe.games.reduce((Ie,ge)=>{if(s.onlyGamesTeamId&&s.onlyGamesTeamId!==ge.home_team&&s.onlyGamesTeamId!==ge.visiting_team)return Ie;const Ae={...ge,regularSeasonId:$},ke=new Date,[je,De,Ne]=Ae.date.split("-"),[qe,Ze,_e]=Ae.schedule.split(":"),Be=new Date(Number(je),Number(De)-1,Number(Ne),Number(qe),Number(Ze),Number(_e));return Ae.dateTimeMillis=Be.valueOf(),Ae.home_team=i.value.find(Re=>Re.team_id===ge.home_team),Ae.visiting_team=i.value.find(Re=>Re.team_id===ge.visiting_team),Ae.game_status===4&&!Ae.is_live&&ke.getFullYear()===Be.getFullYear()&&ke.getMonth()===Be.getMonth()&&ke.getDate()===Be.getDate()&&g.value.add(Ae.game_id),d.value.set(Ae.game_id,Ae),s.teamId&&Ae.home_team.team_id!==s.teamId&&Ae.visiting_team.team_id!==s.teamId||(Ie[ge.matchday_abbreviation]?Ie[ge.matchday_abbreviation][ge.game_status===3?"canceled":ge.date]?Ie[ge.matchday_abbreviation][ge.game_status===3?"canceled":ge.date].push(Ae):Ie[ge.matchday_abbreviation][ge.game_status===3?"canceled":ge.date]=[Ae]:Ie[ge.matchday_abbreviation]={[ge.game_status===3?"canceled":ge.date]:[Ae]},s.userTeamId&&([1,0].includes(Ae.game_status)||Ae.is_live)&&(Ae.home_team.team_id===s.userTeamId||Ae.visiting_team.team_id===s.userTeamId)&&S.value.push(Ae)),Ie},{});for(let[Ie,ge]of Object.entries(Ve))Ve[Ie]=Object.entries(ge).map(([Ae,ke])=>({date:Ae,games:ke.sort((je,De)=>je.dateTimeMillis-De.dateTimeMillis)})),Ve[Ie].sort((Ae,ke)=>Ae.date<ke.date?-1:Ae.date>ke.date?1:0);return{type:Pe.type,weight:Pe.type===0?0:Pe.type===2?1:2,schedule:Ve}}):[];He.sort((Pe,Ve)=>Pe.weight-Ve.weight),p.value=He.reduce((Pe,Ve)=>{for(const[Ie,ge]of Object.entries(Ve.schedule))if(Ve.type===0)if([1,2].includes(s.tournamentType)){const Ae=w.value.namesAndAbbByTournamentTypeAndMatchDayAbb.get(s.tournamentType);if(Ae){const ke=Ae.get(Ie);ke&&(Pe[ke.matchDayAbbreviation]=ge)}}else if(E.value){const Ae=Ie.replace("M",""),ke=Ae;A.value?Pe[w.value.cupLegacy[Ae]||ke]=ge:Pe[w.value.cup[Ie]||ke]=ge}else Pe[Number(Ie.replace("M","")).toString()]=ge;else Ve.type===2?Ie.charAt(1)=="I"?Pe[`PI${Number(Ie.replace("PI",""))}`]=ge:Pe[`R${Number(Ie.replace("PO",""))}`]=ge:Ve.type===1&&(Pe[w.value.regularLeague[Ie]]=ge);return Pe},{}),x.value=new Map,M.value.clear(),I.value=Array.from(Object.entries(p.value).reduce((Pe,[Ve,Ie],ge)=>{const Ae=Number(Ve);let ke="";Number.isNaN(Ae)?ke=Ve:ke=Ae<10?`0${Ae}`:Ve;const je={key:Ve,value:Ae,valueText:ke,index:ge,liveGamesIds:new Set};M.value.set(Ve,je),Pe.set(Ve,je);const De=Ie.reduce((qe,Ze)=>(Ze.games.forEach(_e=>{_e.game_id===s.defaultGameId&&(c.value=Ve),_e.roundAbbreviation=Number.isNaN(Ae)?Ae:`J ${Ae}`,_e.scheduleKey=je,_e.is_live&&je.liveGamesIds.add(_e.game_id)}),qe=qe.concat(Ze.games),qe),[]),Ne=me(De);return x.value.set(Ve,Ne),Pe},new Map).values())}function me(He,Pe=!1){const Ve=[];if(s.gamesPerMatchDay>0){let Ie=[];He.forEach((ge,Ae)=>{Ie.push(ge),(Ae+1)%s.gamesPerMatchDay===0&&(Ve.push([...Ie]),Ie=[])}),Ie.length&&Ve.push([...Ie])}else Ve.push(He);return Pe&&s.isTeamGamePerPage&&s.defaultGameId?Ve.filter(Ie=>Ie.game_id===s.defaultGameId||Ie.gameId===s.defaultGameId):Ve}async function ye(He){try{const Pe=Py("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments",s.providerId,s.isDevApis),{data:Ve}=await Iy.get(Pe);return Ve}catch(Pe){if(He>0)return ye(He-1);throw new Error(Pe)}}function ve(){if(window.ResizeObserver)B=new ResizeObserver(()=>{r.value=_.value.clientWidth}),B.observe(_.value);else throw new Error("Resize observer not supported!")}function we(He){b.value.value!==He.value&&(b.value=He,o("change-round",He))}function Se(He){s.areGamesCarouselType&&o("change-game-carousel",He.selectedItem)}function Ce(He){o("action",He),Le(He)}function Me(He){o("open-modal-event",He)}function Le(He){const Pe="PLAY_RESUME",Ve="PLAY_GOALS",Ie=[607,608,12,55,54,35,14,52,15,53,466,477],ge=[12,55,"35_r","54_r"],{game_id:Ae,season_id:ke}=He.game;let je={seasonId:ke,tournaments:[],isFeaturedPlayers:!1,mainSectionType:1,playListType:1,gameIdsToFilter:[Ae],playerIds:[],goalkeeperIds:[],categoryIds:[],teamId:0,matchResult:[],categorySingleName:"",avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:""},objectPlaySync:null};He.action===Pe?(je.categoryIds=Ie,je.advancedFilter.playListTitle="Resumen",o("openmedia",je)):He.action===Ve&&(je.categoryIds=ge,je.advancedFilter.playListTitle="Goles",o("openmedia",je))}async function ze(){try{if(!s.awaitForSeasons&&!s.games){const He=(await ye(3)).find(Ie=>Ie._id===1),Pe=He.seasons[0],Ve=[{id:Pe.id,type:Pe.type}];He&&He.tournament&&o("tournament-selected",He.tournament),Pe.related_seasons&&Pe.related_seasons.length&&Ve.push(...Pe.related_seasons.map(Ie=>({id:Ie.id,type:Ie.type}))),await ne(Ve,!1)}}catch(He){throw new Error(He)}}return t.onMounted(()=>{ve()}),ze(),(He,Pe)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"calendarByGame",ref:_,class:"calendar-by-game",style:t.normalizeStyle(P.value)},[e.teamId&&!e.avoidTeamIdFilter?(t.openBlock(),t.createBlock(IK,{key:0,"full-tournament-schedule":p.value,"team-id":e.teamId,"show-videos":e.showVideos,"is-landing-mode":!1,"row-height":e.rowHeight,"component-width":r.value,"games-pages":x.value,"is-pagination-visible":e.isPaginationVisible,"is-round-mode":e.isRoundMode,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:Ce},null,8,["full-tournament-schedule","team-id","show-videos","row-height","component-width","games-pages","is-pagination-visible","is-round-mode","provider-id","is-dev-apis"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.areRoundsVisible&&I.value?(t.openBlock(),t.createBlock(ZX,{key:0,"match-days":I.value,"is-landing-mode":e.isLandingMode,height:"48px","items-to-show":e.itemsToShow,"items-to-scroll":e.itemsToScroll,"component-width":r.value,"default-match-day-key":c.value,"closest-match-day":e.sortCalendar?O.value:"",onChangeMatchDay:we},null,8,["match-days","is-landing-mode","items-to-show","items-to-scroll","component-width","default-match-day-key","closest-match-day"])):t.createCommentVNode("",!0),t.createElementVNode("div",Eee,[L.value?(t.openBlock(),t.createBlock(t.unref(bE),{key:0,"is-pagination-visible":e.isPaginationVisible&&!e.areGamesCarouselType,items:T.value,"are-navigation-arrows-visible":e.areGamesCarouselType?!e.areGamesCarouselType:e.isPaginationVisible,"wrap-around":e.areGamesCarouselType&&!e.isTeamGamePerPage,"items-to-show":e.areGamesCarouselType&&!e.isTeamGamePerPage?1.2:1,"is-main-slide-priority":e.areGamesCarouselType,"are-slides-arrows-visible":e.areGamesCarouselType&&!e.isTeamGamePerPage,"slides-arrows-left-and-right":e.areGamesCarouselType?"30px":"0px","default-item-by-prop":e.areGamesCarouselType?{propName:"game_id",value:e.defaultGameId}:{},onInput:Se},{default:t.withCtx(({item:Ve})=>[e.areGamesCarouselType?(t.openBlock(),t.createBlock(Aee,{key:0,is_captured:e.is_captured,game:Ve,onOpenModalEvent:Me,"plays-live":e.playsLive,"info-live":e.infoLive,"provider-id":e.providerId,"is-dev-apis":e.isDevApis},null,8,["is_captured","game","plays-live","info-live","provider-id","is-dev-apis"])):(t.openBlock(),t.createBlock(CK,{key:1,"team-id":e.teamId,"show-videos":e.showVideos,"games-per-page":Ve,"is-landing-mode":e.isLandingMode,"row-height":e.rowHeight,"component-width":r.value,"is-round-mode":e.isRoundMode,"video-privileges-user-id":e.videoPrivilegesUserId,token:e.token,"provider-id":e.providerId,"is-dev-apis":e.isDevApis,onAction:Ce},null,8,["team-id","show-videos","games-per-page","is-landing-mode","row-height","component-width","is-round-mode","video-privileges-user-id","token","provider-id","is-dev-apis"]))]),_:1},8,["is-pagination-visible","items","are-navigation-arrows-visible","wrap-around","items-to-show","is-main-slide-priority","are-slides-arrows-visible","slides-arrows-left-and-right","default-item-by-prop"])):t.createCommentVNode("",!0)])],64))],4))}},Pee=Sf(Iee,[["__scopeId","data-v-dba5d04d"]]);function Lee(){return ME().__VUE_DEVTOOLS_GLOBAL_HOOK__}function ME(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const Bee=typeof Proxy=="function",zee="devtools-plugin:setup",Oee="plugin:settings:set";let Ly,b6;function Dee(){var e;return Ly!==void 0||(typeof window<"u"&&window.performance?(Ly=!0,b6=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(Ly=!0,b6=globalThis.perf_hooks.performance):Ly=!1),Ly}function Nee(){return Dee()?b6.now():Date.now()}class Fee{constructor(o,s){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=o,this.hook=s;const B={};if(o.settings)for(const y in o.settings){const a=o.settings[y];B[y]=a.defaultValue}const U=`__vue-devtools-plugin-settings__${o.id}`;let m=Object.assign({},B);try{const y=localStorage.getItem(U),a=JSON.parse(y);Object.assign(m,a)}catch{}this.fallbacks={getSettings(){return m},setSettings(y){try{localStorage.setItem(U,JSON.stringify(y))}catch{}m=y},now(){return Nee()}},s&&s.on(Oee,(y,a)=>{y===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(y,a)=>this.target?this.target.on[a]:(...v)=>{this.onQueue.push({method:a,args:v})}}),this.proxiedTarget=new Proxy({},{get:(y,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...v)=>(this.targetQueue.push({method:a,args:v,resolve:()=>{}}),this.fallbacks[a](...v)):(...v)=>new Promise(p=>{this.targetQueue.push({method:a,args:v,resolve:p})})})}async setRealTarget(o){this.target=o;for(const s of this.onQueue)this.target.on[s.method](...s.args);for(const s of this.targetQueue)s.resolve(await this.target[s.method](...s.args))}}function Ree(e,o){const s=e,B=ME(),U=Lee(),m=Bee&&s.enableEarlyProxy;if(U&&(B.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!m))U.emit(zee,e,o);else{const y=m?new Fee(s,U):null;(B.__VUE_DEVTOOLS_PLUGINS__=B.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:s,setupFn:o,proxy:y}),y&&o(y.proxiedTarget)}}/*!
18
18
  * vuex v4.0.2
19
19
  * (c) 2021 Evan You
20
20
  * @license MIT
@@ -4133,7 +4133,7 @@ uniform ${Fe} ${Ge} u_${rt};
4133
4133
  * Vue 3 Carousel 0.3.1
4134
4134
  * (c) 2023
4135
4135
  * @license MIT
4136
- */const Xd={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"}},yV={itemsToShow:{default:Xd.itemsToShow,type:Number},itemsToScroll:{default:Xd.itemsToScroll,type:Number},wrapAround:{default:Xd.wrapAround,type:Boolean},throttle:{default:Xd.throttle,type:Number},snapAlign:{default:Xd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Xd.transition,type:Number},breakpoints:{default:Xd.breakpoints,type:Object},autoplay:{default:Xd.autoplay,type:Number},pauseAutoplayOnHover:{default:Xd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Xd.mouseDrag,type:Boolean},touchDrag:{default:Xd.touchDrag,type:Boolean},dir:{default:Xd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Xd.i18n,type:Object},settings:{default(){return{}},type:Object}};function idt({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:B,itemsToShow:U=1}=e;if(B)return Math.max(o-1,0);let m;switch(s){case"start":m=o-U;break;case"end":m=o-1;break;case"center":case"center-odd":m=o-Math.ceil((U-.5)/2);break;case"center-even":m=o-Math.ceil(U/2);break;default:m=0;break}return Math.max(m,0)}function odt({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:B,itemsToShow:U=1}=e;let m=0;if(s||U>o)return m;switch(B){case"start":m=0;break;case"end":m=U-1;break;case"center":case"center-odd":m=Math.floor((U-1)/2);break;case"center-even":m=Math.floor((U-2)/2);break;default:m=0;break}return m}function ZS({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function sdt({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:B,wrapAround:U,itemsToShow:m=1}=e;let y=o;switch(B){case"center":case"center-odd":y-=(m-1)/2;break;case"center-even":y-=(m-2)/2;break;case"end":y-=m-1;break}return U?y:ZS({val:y,max:s-m,min:0})}function vV(e){return e?e.reduce((o,s)=>{var B;return s.type===t.Fragment?[...o,...vV(s.children)]:((B=s.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function WS({val:e,max:o,min:s=0}){return e>o?WS({val:e-(o+1),max:o,min:s}):e<s?WS({val:e+(o+1),max:o,min:s}):e}function ldt(e,o){let s;return o?function(...B){const U=this;s||(e.apply(U,B),s=!0,setTimeout(()=>s=!1,o))}:e}function cdt(e,o){let s;return function(...B){s&&clearTimeout(s),s=setTimeout(()=>{e(...B),s=null},o)}}function udt(e="",o={}){return Object.entries(o).reduce((s,[B,U])=>s.replace(`{${B}}`,String(U)),e)}var ddt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Xd))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},udt(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),hdt=t.defineComponent({name:"Carousel",props:yV,setup(e,{slots:o,emit:s,expose:B}){var U;const m=t.ref(null),y=t.ref([]),a=t.ref(0),v=t.ref(0),p=t.reactive(Object.assign({},Xd));let r=Object.assign({},Xd),_;const b=t.ref((U=e.modelValue)!==null&&U!==void 0?U:0),x=t.ref(0),h=t.ref(0),n=t.ref(0),i=t.ref(0);let c,l;t.provide("config",p),t.provide("slidesCount",v),t.provide("currentSlide",b),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",a);function d(){_=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),w(r)}function g(){if(!_||!Object.keys(_).length)return;const re=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let se=Object.assign({},r);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(se=Object.assign(Object.assign({},se),_[ie])),me}),w(se)}function w(re){Object.entries(re).forEach(([se,ie])=>p[se]=ie)}const C=cdt(()=>{g(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();a.value=re.width/p.itemsToShow}function A(){v.value<=0||(h.value=Math.ceil((v.value-1)/2),n.value=idt({config:p,slidesCount:v.value}),i.value=odt({config:p,slidesCount:v.value}),p.wrapAround||(b.value=ZS({val:b.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),g(),G(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),c&&clearInterval(c),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),z=()=>{M.value=!0},k=()=>{M.value=!1};function O(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||Z.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=ldt(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const se=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=se},p.throttle);function j(){const re=p.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,ie=Math.round(I.x/a.value+se)*re;if(ie&&!P){const me=ye=>{ye.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(b.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function G(){!p.autoplay||p.autoplay<=0||(c=setInterval(()=>{p.pauseAutoplayOnHover&&M.value||ne()},p.autoplay))}function H(){c&&(clearInterval(c),c=null),G()}const Z=t.ref(!1);function $(re){const se=p.wrapAround?re:ZS({val:re,max:n.value,min:i.value});b.value===se||Z.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!0,x.value=b.value,b.value=se,l=setTimeout(()=>{if(p.wrapAround){const ie=WS({val:se,max:n.value,min:0});ie!==b.value&&(b.value=ie,s("loop",{currentSlideIndex:b.value,slidingToIndex:re}))}s("update:modelValue",b.value),s("slide-end",{currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!1,H()},p.transition))}function ne(){$(b.value+p.itemsToScroll)}function q(){$(b.value-p.itemsToScroll)}const K={slideTo:$,next:ne,prev:q};t.provide("nav",K),t.provide("isSliding",Z);const ee=t.computed(()=>sdt({config:p,currentSlide:b.value,slidesCount:v.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const re=p.dir==="rtl"?-1:1,se=ee.value*a.value*re;return{transform:`translateX(${I.x-se}px)`,transition:`${Z.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function Q(){d(),g(),A(),E(),H()}Object.keys(yV).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],Q)}),t.watch(()=>e.modelValue,re=>{re!==b.value&&$(Number(re))}),t.watch(v,A),s("before-init"),d();const ce={config:p,slidesCount:v,slideWidth:a,next:ne,prev:q,slideTo:$,currentSlide:b,maxSlide:n,minSlide:i,middleSlide:h};B({updateBreakpointsConfigs:g,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:d,restartCarousel:Q,slideTo:$,next:ne,prev:q,nav:K,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=vV(de==null?void 0:de(pe)),se=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(p.wrapAround){const ve=re.map((Se,Ce)=>t.cloneVNode(Se,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Se,Ce)=>t.cloneVNode(Se,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));ie=[...ve,...re,...we]}y.value=re,v.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:p.mouseDrag?O:null,onTouchstartPassiveCapture:p.touchDrag?O:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":Z.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:z,onMouseleave:k},[ye,se,t.h(ddt)])}}}),bV;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bV||(bV={}));var pdt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},Xd))),B=t.inject("currentSlide",t.ref(0)),U=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),y=()=>e.index===B.value,a=()=>e.index===B.value-1,v=()=>e.index===B.value+1,p=()=>{const r=Math.floor(U.value),_=Math.ceil(U.value+s.itemsToShow-1);return e.index>=r&&e.index<=_};return()=>{var r;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p(),"carousel__slide--active":y(),"carousel__slide--prev":a(),"carousel__slide--next":v(),"carousel__slide--sliding":m.value},"aria-hidden":!p()},(r=o.default)===null||r===void 0?void 0:r.call(o))}}});const fdt=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},mdt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),gdt={class:"gsc-carousel"},ydt={key:0},vdt=mdt(()=>t.createElementVNode("div",null,"no hay",-1)),bdt=[vdt],_dt={class:"gsc-carousel__2d__slides"},xdt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wdt=["fill"],kdt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sdt=["fill"],Cdt={class:"gsc-carousel__2d__navigation"},Tdt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Adt=["stroke"],Edt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Mdt=["onClick"],Idt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pdt=["stroke"],Ldt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(o=>o in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:o,emit:s}){const B=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const U=t.ref(null),m=t.ref({}),y=t.ref(0),a=t.ref(!1);t.watch(U,n=>{n&&a.value?(a.value=!1,v(B.items)):n&&n.slideTo&&n.slideTo(y.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,n=>{y.value!==n&&b(n)}),t.watch(()=>B.defaultItemByIndex,n=>{y.value!==n&&b(n)}),t.watch(()=>B.items,n=>{U.value?v(n):a.value=!0},{immediate:!0});function v(n){n&&n.length&&U.value&&setTimeout(()=>{if(B.defaultItemByProp){const i=B.items.findIndex(c=>c[B.defaultItemByProp.propName]===B.defaultItemByProp.value);i!==-1?(y.value=i,m.value=n[i]):(y.value=0,m.value=n[0])}else y.value=B.defaultItemByIndex,m.value=n[B.defaultItemByIndex];U.value.slideTo&&U.value.slideTo(y.value),m.value&&y.value===0&&s("input",{selectedItem:m.value,selectedItemIndex:y.value})},500)}function p(){U.value&&U.value.next()}function r(){U.value&&U.value.prev()}function _(){U.value&&U.value.updateSlideWidth()}function b(n){U.value&&U.value.slideTo(n)}function x(n){U.value.slideTo(n)}function h(n){const i=n.slidingToIndex<0?B.items.length-1:n.slidingToIndex===B.items.length?0:n.slidingToIndex;y.value=i,m.value=B.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:m.value,selectedItemIndex:y.value})}return o({prev:r,next:p,updateSlideWidth:_,slideTo:b}),(n,i)=>(t.openBlock(),t.createElementBlock("div",gdt,[B.is3d?(t.openBlock(),t.createElementBlock("div",ydt,bdt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",_dt,[t.createVNode(t.unref(hdt),{ref_key:"carousel2d",ref:U,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createBlock(t.unref(pdt),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{item:c},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=c=>U.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",xdt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,wdt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=c=>p())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",kdt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Sdt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Cdt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=c=>r())},[(t.openBlock(),t.createElementBlock("svg",Tdt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Adt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Edt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${y.value===l?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${y.value===l?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:d=>x(l)},null,12,Mdt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=c=>U.value.next())},[(t.openBlock(),t.createElementBlock("svg",Idt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Pdt)]))])):t.createCommentVNode("",!0)])],2))]))}},Bdt=fdt(Ldt,[["__scopeId","data-v-54620d25"]]),NQt="",_V={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},FQt="",qS={components:{GSCCarousel:Bdt,GSCLeaders:Gut,GSCRowTable:iV,GSCTableHeader:QR,GSCExpandedInfo:gV},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},seasonSelected:{type:Object,default:()=>({})},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=jb(e);return{myDivRef:e,elementSize:o}},watch:{category:{async handler(){this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season)}},game:{immediate:!0,deep:!0,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(e){await this.getCategoryStats(this.season),e===1&&this.game.is_live?(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)):clearInterval(this.intervalIdtops)}},filtersProp:{immediate:!1,deep:!0,async handler(e,o){e&&(JSON.stringify(e)!==JSON.stringify(o)||this.sonConjuntosDistintos(e.setNationalitiesIds,o.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},o={},s=[],B=[],U=[];return this.formatFilterStats.map(m=>{e[m.team_id]?e[m.team_id].total=e[m.team_id].total+m.total:(e[m.team_id]={},e[m.team_id].total=m.total,e[m.team_id].id=this.teamInfo[m.team_id].id,e[m.team_id].name=this.teamInfo[m.team_id].name.replace(" Femenil",""),e[m.team_id].img=Af("https://golstatsimages.blob.core.windows.net/teams-80/"+m.team_id+".png",this.$store.getters.getProviderId),e[m.team_id].effectiveness=this.teamInfo[m.team_id].effectiveness,e[m.team_id].frecuency=this.teamInfo[m.team_id].frecuency,e[m.team_id].game_avg=this.teamInfo[m.team_id].game_avg,e[m.team_id].game_avg_last_season=this.teamInfo[m.team_id].game_avg_last_season,e[m.team_id].games_played_lastseason=this.teamInfo[m.team_id].games_played_lastseason,e[m.team_id].games_played=this.teamInfo[m.team_id].games_played,e[m.team_id].positiontable=this.teamInfo[m.team_id].positiontable,e[m.team_id].goals=this.teamInfo[m.team_id].goals,e[m.team_id].goalsrecived=this.teamInfo[m.team_id].goalsrecived,e[m.team_id].xg=this.teamInfo[m.team_id].xg),o[m.player_id]?m.player_id!=0&&m.player_id!=62117&&(o[m.player_id].total=o[m.player_id].total+m.total):m.player_id!=0&&m.player_id!=62117&&(o[m.player_id]={},o[m.player_id].total=m.total,m.player_id&&this.playersInfo[m.player_id]?(o[m.player_id].name=this.playersInfo[m.player_id].name,o[m.player_id].name_short=this.getnameshort(this.playersInfo[m.player_id].name),o[m.player_id].img=this.playersInfo[m.player_id].img,o[m.player_id].id=this.playersInfo[m.player_id].id,o[m.player_id].age=this.playersInfo[m.player_id].age,o[m.player_id].team=this.playersInfo[m.player_id].team,o[m.player_id].teamname=this.playersInfo[m.player_id].teamname,o[m.player_id].teamid=this.playersInfo[m.player_id].teamid,o[m.player_id].position=this.playersInfo[m.player_id].position,o[m.player_id].positionId=this.playersInfo[m.player_id].positionId,o[m.player_id].positionfull=this.playersInfo[m.player_id].positionfull,o[m.player_id].country=this.playersInfo[m.player_id].country,o[m.player_id].effectiveness=this.playersInfo[m.player_id].effectiveness,o[m.player_id].minutes=this.playersInfo[m.player_id].minutes_played,o[m.player_id].games=this.playersInfo[m.player_id].games_played,o[m.player_id].date=this.playersInfo[m.player_id].date,o[m.player_id].nationality=this.playersInfo[m.player_id].nationality,o[m.player_id].player_country_flag=this.playersInfo[m.player_id].player_country_flag,o[m.player_id].categoryName=this.categoryName):(o[m.player_id].id=m.player_id,o[m.player_id].name=m.player_id,o[m.player_id].img="SIN IMAGEN",o[m.player_id].age="",o[m.player_id].teamname="",o[m.player_id].team="",o[m.player_id].teamid=0,o[m.player_id].position="",o[m.player_id].positionId=0,o[m.player_id].positionfull="",o[m.player_id].country="",o[m.player_id].effectiveness="",o[m.player_id].minutes="",o[m.player_id].games="",o[m.player_id].date="00-00-0000",o[m.player_id].nationality="",o[m.player_id].player_country_flag="",o[m.player_id].categoryName=""))}),s.push(...Object.values(e)),B.push(...Object.values(o)),s=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((m,y)=>(m.top=y<9?"0"+(y+1):""+(y+1),m)),s=s.map((m,y)=>(m.top=y<9?"0"+(y+1):""+(y+1),m)),this.filterTeam!==0&&!this.isTeam&&(U=B.filter(m=>m.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(s):this.filterTeam!=0?this.formatArrayPaginate(U):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",videoCategoriesMap:{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]},urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),async created(){await this.fetchVideoCategories()},methods:{getImageUrl:Af,changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,o){return e.total>o.total?-1:e.total<o.total?1:e.minutes<o.minutes?-1:e.minutes>o.minutes?1:0},sonConjuntosDistintos(e,o){const s=Array.from(e),B=Array.from(o);if(s.length!==B.length)return!0;for(let U=0;U<s.length;U++)if(!o.has(s[U]))return!0;return!1},getnameshort(e){if(!e)return"";var o=e.split(",");if(o[1]===void 0){var s=e.trim().split(/\s+/).filter(Boolean);return s.length>1?s[0].charAt(0)+". "+s[s.length-1]:e.trim()}var B=o[0].split(" "),U=o[1].trim().split(" "),m="";B.length==2||B.length==1?B[0].length<4?m=B[0]+" "+B[1]:m=B[0]:B.length==3?m=B[0]+" "+B[1]:B.length==4&&(m=B[1]+" "+B[2]+" "+B[3]);var y=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";return m=m.replace(",",""),y+". "+m},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,o){return e.total<o.total?-1:e.total>o.total?1:e.name<o.name?-1:e.name>o.name?1:0},sortAndSlice(e,o){return e.sort((s,B)=>(s.name<B.name?1:-1)&&(s.total<B.total?1:-1)).slice(0,o)},getCategoryName(e){let o="";for(let s=0;s<this.categories.length;s++)e==this.categories[s].id&&(o=this.categories[s].name);return o},translateTopCategories(e){return this.videoCategoriesMap[e]||[]},async fetchVideoCategories(){try{const e=this.$store.getters.getProviderId||1,{data:o}=await pu.get(`https://dtcf4s9tapfr0.cloudfront.net/${e}/tops/translate_top_categories.json`);o&&typeof o=="object"&&(this.videoCategoriesMap=o)}catch{}},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,o,s){let B=this.filtersValues.matchResult,U=this.filtersValues.playingAs,m=this.filtersValues.sections,y=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,U=this.filterEmitAux.playingAs,m=this.filterEmitAux.sections,y=this.filterEmitAux.zone);const v=1,p=2,r=3,_=this.isTeam?r:p,b=e.player_id;let x=[],h=this.isTeam?e.id:this.filterTeam;b?this.isTeam?h=b:(x=[b],a=a.filter(i=>!i.toString().includes("_r"))):this.isTeam?h=e.id:(x=[e.id],a=a.filter(i=>!i.toString().includes("_r")));const n={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.game.is_live==1?this.season:this.game.regularSeasonId,isFeaturedPlayers:!1,mainSectionType:v,playListType:_,gameIds:null,playerIds:x,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:h||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:U,timeSections:m,fieldSections:y,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",n)},emitEventMediaFullTable(e,o,s){let B=this.filtersValues.matchResult,U=this.filtersValues.playingAs,m=this.filtersValues.sections,y=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,U=this.filterEmitAux.playingAs,m=this.filterEmitAux.sections,y=this.filterEmitAux.zone);const v=1,p=2,r=3,_=this.isTeam?r:p;let b=[],x=this.isTeam?e.id:this.filterTeam;this.isTeam?x=e.id:(b=[e.id],a=a.filter(n=>!n.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:v,playListType:_,gameIds:null,playerIds:b,goalkeeperIds:[],categoryIds:a,teamId:x||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:U,timeSections:m,fieldSections:y,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",h)},replaceImgPlayer(e){return e.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(e){var o=e.split(","),s=o[0].split(" "),B=o[1].trim().split(" "),U="";s.length==2||s.length==1?s[0].length<4?U=s[0]+" "+s[1]:U=s[0]:s.length==3?U=s[0]+" "+s[1]:s.length==4&&(U=s[1]+" "+s[2]+" "+s[3]);var m=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";U=U.replace(",","");var y=m+". "+U;return y},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,o){this.$emit("clickprofile",{id:e,teamId:o,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){var o,s;this.mapPlayers=new Map;try{if(!e)return;let B=[],U={},m={},y=this.season;(s=(o=this.seasonSelected)==null?void 0:o.related_seasons)!=null&&s.some(_=>_.id===this.season)&&(y=this.seasonSelected.id),this.arePlaysEmpty=!1;const a=pu.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;const v=this.$store.getters.getProviderId,p=this.$store.getters.getIsDevApis;let r={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)+"?t="+this.teamWidget):r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)+"?acc=1&t="+this.teamWidget):r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)+"?acc=1"):this.isWidget&&this.teamWidget!=0?r=await a.get(uu(this.urlPrematch+y+"/"+this.category,v,p)+"?t="+this.teamWidget):r=await a.get(uu(this.urlPrematch+y+"/"+this.category,v,p)+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),r&&r.data&&r.data.data&&r.data.data.length>0){B=r.data.data.map(b=>this.formatStatsData(b)),r.data.teams.forEach(b=>{U[b[0]]={},U[b[0]].id=b[0],U[b[0]].name=b[1],U[b[0]].abrv=b[2],U[b[0]].img=b[3],U[b[0]].effectiveness=b[4],U[b[0]].games_played=b[5],U[b[0]].games_played_lastseason=b[6],U[b[0]].positiontable=b[7],U[b[0]].goals=b[8],U[b[0]].goalsrecived=b[9],U[b[0]].xg=b[10],U[b[0]].frecuency=b[11],U[b[0]].game_avg=b[12],U[b[0]].game_avg_last_season=b[13]});const _=new Set;r.data.players.forEach(b=>{const x=this.getObjectPlayer(b);this.mapPlayers.set(x.numberId,x);const h=x.numberAge,n=x.teamName.length>0?x.teamName[0].acronym:"",i=x.teamName.length>0?U[x.teamName[0].team_id].name:"",c=x.teamName.length>0?x.teamName[0].team_id:"",l=this.positions[x.numberPositionId-1].fullname,d=this.positions[x.numberPositionId-1].name,g=x.countryId.length>0?x.countryId[0].nationality_id:"",w=x.effectiveness,C=x.min,E=x.games,A=x.date;x.arrayNationalities.forEach(P=>{_.add(P.numberId)}),m[b[0]]={id:b[0],name:b[1],img:b[2],age:h,team:n,teamname:i,teamid:c,position:l,positionfull:d,effectiveness:w,country:g,games_played:E,minutes_played:C,date:A,nationality:x.stringNationalityName,player_country_flag:x.player_country_flag,positionId:x.numberPositionId}}),this.setNationalityIds=_,this.arrayAgeRange=[r.data.min_age,r.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=U,this.playersInfo=m,this.formatStats=B,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=r}catch(B){return Promise.reject(B)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(o=>{const s=e.playingAs.includes(o.playing_as),B=e.matchResult.includes(o.match_result),U=e.sections.includes(o.section),m=e.typeZone===1&&e.zone.includes(o.origen)||e.typeZone===2&&e.zone.includes(o.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const y=this.mapPlayers.get(o.player_id);if(!y)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(o.player_id))return!1}else{let a=!1;for(const v of y.arrayNationalitiesIds)if(e.setNationalitiesIds.has(v)){a=!0;break}if(!a)return!1}if(y.numberAge<e.arrayAgeRange[0]||y.numberAge>e.arrayAgeRange[1]||y.date<e.setYear||!e.setPositionsIds.includes(y.numberPositionId))return!1}return(e.playingAs.length===0||s)&&(e.matchResult.length===0||B)&&(e.sections.length===0||U)&&(e.zone.length===0||m)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const o={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((s,B)=>{o[s]=e[B]}),o},getObjectPlayer(e){const o=[],s=e[7].map(U=>(o.push(U.nationality_id),{stringName:U.nationality,numberId:U.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+e[3]+".jpg",stringNationalityName:_V[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:s,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(e){const o=Math.ceil(e.length/this.numRows);return Array.from({length:o},(s,B)=>{const U=B*this.numRows,m=U+this.numRows;return e.slice(U,m)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},xV=()=>{t.useCssVars(e=>({"7945af00":e.borderRadius,"245d87d0":e.borderWidth,"268b8496":e.borderColor}))},wV=qS.setup;qS.setup=wV?(e,o)=>(xV(),wV(e,o)):xV;const zdt={ref:"myDivRef"},Odt={class:"btnViewFullList"},Ddt={class:"text"},Ndt={class:"groupsLeague"},Fdt={class:"row-table-carrousel"},Rdt={key:1,class:"container-no-search-result"},Vdt={key:0,class:"overlay-loading-top"};function jdt(e,o,s,B,U,m){const y=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),v=t.resolveComponent("GSCExpandedInfo"),p=t.resolveComponent("GSCCarousel"),r=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",zdt,[t.createElementVNode("div",Odt,[t.createElementVNode("div",Ddt,[t.createElementVNode("div",Ndt,t.toDisplayString(s.categoryName),1)])]),s.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.topData.length>0?(t.openBlock(),t.createBlock(p,{key:0,items:m.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:m.changeCarrousel},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",Fdt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(b,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:x},[b.top==1?(t.openBlock(),t.createBlock(y,{key:0,onMediadata:o[0]||(o[0]=h=>m.emitEventMedia(h,s.category,s.categoryName)),type:s.typeTable,"type-data":s.typeData,game:s.game,"team-widget":s.teamWidget,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==b.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:s.typeTable==0?{top:"01",photo:b.img,logo:m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+b.teamid+".png",e.$store.getters.getProviderId),name:b.name,player_short:b.name_short,player_id:b.id,categoryId:s.category,total:b.total}:{top:"01",logo:b.img,total:b.total,name_team:b.name,player_id:b.id},"category-name":s.categoryName,buttonMaxWidth:s.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:m.clickexpand,onMore:m.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"is-expanded":e.playerexpand==b.id&&e.expand,onMediadata:o[1]||(o[1]=h=>m.emitEventMedia(h,s.category,s.categoryName)),data:s.typeTable==0?{position:b.top,player_name:b.name,player_short:b.name_short,player_photo:b.img,total:b.total,id:b.id,player_age:b.age,team_abrev:b.team,team_logo:m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+b.teamid+".png",e.$store.getters.getProviderId),player_position:b.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+b.country+".jpg",player_games:b.minutes,player_min:b.games,league_name:"          Liga MX          "}:{position:b.top,team_logo:b.img,team_abrev:b.name,frequency:b.frecuency,promthistournament:b.game_avg,promlasttournament:b.game_avg_last_season,teams_games:"-",category:s.category,total:b.total,id:b.id},height:"71px","can-play-videos":s.canPlayVideos,background:x%2===0?s.backgroundEven:s.backgroundOdd,onExpand:m.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==b.id?(t.openBlock(),t.createBlock(v,{key:2,type:s.typeTable,"is-live":s.game.is_live,"view-effectiveness":b.positionId!==1,data:s.typeTable==0?{teams:b.teamname,age:b.age,dataofbirth:b.date,nationality:b.nationality,countryFlag:b.player_country_flag,position:b.position,games:b.games,min:b.minutes,goals:b.total,effectiveness:b.effectiveness,category:s.categoryName,id:b.id}:{position:b.positiontable,goals:b.goals,goals_received:b.goalsrecived,games_played:b.games_played,category:s.categoryName,effectiveness:b.effectiveness,xg:b.xg,total:b.total,attendance:"-",id:b.id},onViewprofile:h=>m.viewprofile(h,b.teamid),background:x%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",Rdt,[e.isloading?(t.openBlock(),t.createElementBlock("div",Vdt,o[3]||(o[3]=[t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)]))):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o[4]||(o[4]=t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),o[5]||(o[5]=t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1))],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(r,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.topData,(_,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(x,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:h},[t.createVNode(a,{"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==x.id&&e.expand,onMediadata:o[2]||(o[2]=n=>m.emitEventMediaFullTable(n,s.category,s.categoryName)),data:s.typeTable==0?{position:x.top,player_name:x.name,player_short:x.name_short,player_photo:x.img,total:x.total,id:x.id,player_age:x.age,team_abrev:x.team,team_logo:m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+x.teamid+".png",e.$store.getters.getProviderId),player_position:x.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+x.country+".jpg",player_games:x.games,player_min:x.minutes,league_name:"          Liga MX          "}:{position:x.positiontable,team_logo:x.img,team_abrev:x.name,frequency:x.frecuency,promthistournament:x.game_avg,promlasttournament:x.game_avg_last_season,category:s.category,team_games:x.games_played,total:x.total,id:x.id},height:"71px",background:((b+1)*5+h)%2===0?s.backgroundOdd:s.backgroundEven,onExpand:m.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==x.id?(t.openBlock(),t.createBlock(v,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":x.positionId!==1,data:s.typeTable==0?{teams:x.teamname,age:x.age,dataofbirth:x.date,nationality:x.nationality,countryFlag:x.player_country_flag,position:x.positionfull,positionfull:x.positionfull,games:x.games,min:x.minutes,goals:x.total,effectiveness:x.effectiveness,category:m.getCategoryName(s.category),id:x.id}:{position:x.positiontable,goals:x.goals,goals_received:x.goalsrecived,games_played:x.games_played,category:s.categoryName,effectiveness:x.effectiveness,xg:x.xg,total:x.total,category:m.getCategoryName(s.category),attendance:"-",id:x.id},onViewprofile:n=>m.viewprofile(n,x.teamid),background:h%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const Udt=Ki(qS,[["render",jdt],["__scopeId","data-v-ef09809c"]]),Gdt=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},Hdt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},Zdt=["src"],Wdt=["src"];function qdt(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(m.customStyle),class:"gsc-label",onClick:o[0]||(o[0]=(...y)=>m.btnLabel&&m.btnLabel(...y))},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(m.customIcon),class:"icon",src:s.icon},null,12,Zdt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(m.customStyle)},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:o[1]||(o[1]=(...y)=>m.btnClose&&m.btnClose(...y)),style:t.normalizeStyle(m.customIcon),class:"icon",src:s.icon},null,12,Wdt)):t.createCommentVNode("",!0)],4))])}const Jdt=Gdt(Hdt,[["render",qdt],["__scopeId","data-v-42ff544a"]]);function Ydt(e){const o=t.ref({width:0,height:0});function s(){const B=e.value.getBoundingClientRect();o.value.width=B.width,o.value.height=B.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:o}}const Xdt=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},JS={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,o=this.$refs.content.scrollWidth;o>0&&e>0&&(o>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},kV=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},SV=JS.setup;JS.setup=SV?(e,o)=>(kV(),SV(e,o)):kV;const $dt={ref:"gscScrollableContainer",class:"scrollable-container"},Kdt={class:"scrollable-arrows"},Qdt=["width","height","viewBox"],eht=["stroke"],tht={class:"scrollable-wrapper"},aht={class:"scrollable-arrows"},rht=["width","height","viewBox"],nht=["stroke"];function iht(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",$dt,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",m.hideShowLeftArrow]),onClick:o[0]||(o[0]=(...y)=>m.scrollLeft&&m.scrollLeft(...y))},[t.createElementVNode("div",Kdt,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:m.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,eht)],8,Qdt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:o[1]||(o[1]=(...y)=>m.getScroll&&m.getScroll(...y))},[t.createElementVNode("div",tht,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),s.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",m.hideShowRightArrow]),onClick:o[2]||(o[2]=(...y)=>m.scrollRight&&m.scrollRight(...y))},[t.createElementVNode("div",aht,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:m.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,nht)],8,rht))])],2)):t.createCommentVNode("",!0)],512)}const oht=Xdt(JS,[["render",iht],["__scopeId","data-v-b548a08d"]]),sht=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},YS={components:{GSCSlider:oht},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=Ydt(e);return{myDivRef:e,elementSize:o}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var o={};return e.width>768?o={fontSize:"16px"}:e.width>480?o={fontSize:"14px"}:o={fontSize:"12px"},o}}},CV=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},TV=YS.setup;YS.setup=TV?(e,o)=>(CV(),TV(e,o)):CV;const lht={ref:"myDivRef"},cht={key:0,class:"gs-switch-container"},uht=["onClick"],dht={key:1,class:"gs-switch-container-type"},hht=["onClick"],pht={key:2,class:"gs-switch-container-carousel"},fht=["onClick"];function mht(e,o,s,B,U,m){const y=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",lht,[s.type==0?(t.openBlock(),t.createElementBlock("div",cht,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([m.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:p=>(s.selectedOption=a,m.clickEmitEvent(a))},t.toDisplayString(a),13,uht))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",dht,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([m.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{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:v,onClick:p=>(s.selectedOption=a,m.clickEmitEvent(a))},t.toDisplayString(a),13,hht))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",pht,[t.createVNode(y,{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:p=>(s.selectedOption=a,m.clickEmitEvent(a))},t.toDisplayString(a),13,fht))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const XS=sht(YS,[["render",mht],["__scopeId","data-v-8a86dfaf"]]),RQt="",VQt="";function ght(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const jQt="",yht={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},vht=t.ref(ght()),bht={components:{GSCTableHeader:QR,GscSwitchComponent:XS,GSCFilterperteam:Put,GSCFilters:OR,GSCExpandedInfo:gV,GSCLabel:Jdt,GSCSeasonSelect:MA,GSCTopCategory:Udt,GSCTournamentSelect:TA,GSCRowTable:iV},computed:{...Fct.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(e);if(JSON.stringify(this.filters)!=o)return o},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...vht.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let o=0;o<e.teams.length;o++)this.teams.push({id:e.teams[o].team_id,team:e.teams[o].colloquial_name,logo:e.teams[o].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:o}=jb(e);return{myDivRefTopsFull:e,elementSize:o}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],productivityTranslationMap:null,filterScounting:{tournaments:[1],seasonId:0,categories:[{key:"goals",name:"Goles",ids:[12]},{key:"assists",name:"Asistencias",ids:[10]},{key:"goal_participations",name:"Participaciones en gol",ids:[27]},{key:"headers_rival_area",name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{key:"shots_total",name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{key:"goals",name:"Goles",isSelected:!1,id:[12]},{key:"assists",name:"Asistencias",isSelected:!1,id:[10]},{key:"goal_participations",name:"Participaciones en gol",isSelected:!1,id:[27]},{key:"headers_rival_area",name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{key:"shots_total",name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{key:"shots_on_target",name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{key:"shots_outside_box",name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{key:"shots_outside_box_on_target",name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{key:"shots_inside_box",name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{key:"shots_inside_box_on_target",name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{key:"crosses_left",name:"Centros por izquierda",isSelected:!1,id:[13]},{key:"crosses_left_success",name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{key:"crosses_right",name:"Centros por derecha",isSelected:!1,id:[25]},{key:"crosses_right_success",name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{key:"dribbles_success",name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{key:"dribbles_to_goal",name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{key:"balls_won_own_area",name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{key:"headers_own_area",name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{key:"tackles_won",name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{key:"clearances",name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{key:"recoveries_total",name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{key:"recoveries_q1",name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{key:"recoveries_q2",name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{key:"recoveries_q3",name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{key:"recoveries_q4",name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{key:"passes_success",name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{key:"passes_success_q1",name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{key:"passes_success_q2",name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{key:"passes_success_q3",name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{key:"passes_success_q4",name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:Xr,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){if(!e)return"";var o=e.split(",");if(o[1]===void 0){var s=e.trim().split(/\s+/).filter(Boolean);return s.length>1?s[0].charAt(0)+". "+s[s.length-1]:e.trim()}var B=o[0].split(" "),U=o[1].trim().split(" "),m="";B.length==2||B.length==1?B[0].length<4?m=B[0]+" "+B[1]:m=B[0]:B.length==3?m=B[0]+" "+B[1]:B.length==4&&(m=B[1]+" "+B[2]+" "+B[3]);var y=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";return m=m.replace(",",""),y+". "+m},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const o=e.id===this.selectedTournament.id;e.isSelected=o,e.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(ju.All),o.clearFilters(ju.AGE_RANGE),o.clearFilters(ju.YEAR),o.clearFilters(ju.NATIONALITY),o.clearFilters(ju.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,U)=>U+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<s.teams.length;B++)this.teamsscouting.push({id:s.teams[B].team_id,team:s.teams[B].colloquial_name,logo:s.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let U=[e.id],m=e.team_id;const y={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:U,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:m||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",y)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,o,s){this.$emit("openProfilePlayer",{playerId:e,teamId:s,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async loadTopsCategories(){try{const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis,s=pu.create({headers:{Authorization:`${this.token}`}}),{data:B}=await s.get(uu(this.urlFilter,e,o));if(Array.isArray(B)&&B.length){const U=B.filter(m=>m&&m.id!=null&&m.category_name).map(m=>({id:m.id,name:m.category_name,isSelected:!1}));U.length&&(this.categoriesDefault=U,this.arrayCategoryFilter=U.map(m=>m.id),this.arrayCategoryFilterFull=U.map(m=>m.id))}}catch{}},async loadProductivityTranslation(){const e=this.$store.getters.getProviderId;if(!e||e===1)return;const o=await tie(e);o&&typeof o=="object"&&(this.productivityTranslationMap=o,this.applyProductivityTranslation(o))},applyProductivityTranslation(e){const o=["offensive","defensive","possession"];for(const s of o){const B=this.detaildProductivityCategories[s];B&&Array.isArray(B.categories)&&(B.categories=B.categories.filter(U=>Array.isArray(e[U.key])).map(U=>({...U,id:e[U.key]})))}this.filterScounting.categories=this.filterScounting.categories.filter(s=>Array.isArray(e[s.key])).map(s=>({...s,ids:e[s.key]}))},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=pu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.post(uu("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.$store.getters.getProviderId,this.$store.getters.getIsDevApis),this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var s=this.arrayFiltersPlays.findIndex(U=>U.type==="onFiltersTournaments");s!==-1?this.arrayFiltersPlays[s].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let U=0;U<o.length;U++){o[U];let y=o[U].dob.split("T")[0].split("-");var B={position:U+1,player_name:this.abrevName(o[U].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[U].player_id+".png",total:o[U].total.toFixed(0),id:o[U].player_id,player_age:this.calcularEdad(o[U].dob),team_abrev:o[U].teams[0].acronym,team_name:o[U].teams[0].team_name,team_logo:Af("https://golstatsimages.blob.core.windows.net/teams-80/"+o[U].teams[0].team_id+".png",this.$store.getters.getProviderId),player_position:o[U].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[U].nationality_id+".jpg",date:y[2]+"."+y[1]+"."+y[0].substring(2,4),team_id:o[U].team_id,nationality_name:_V[o[U].nationality_id],player_games:o[U].games_played,player_min:o[U].minutes_played,league_name:o[U].tournament_name,seasons:o[U].seasons,season_id:o[U].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const U=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let m=0;m<U.teams.length;m++)this.teamsscouting.push({id:U.teams[m].team_id,team:U.teams[m].colloquial_name,logo:U.teams[m].logo})}this.loadingActive=!1},abrevName(e){var o=e.split(","),s=o[0].split(" "),B=o[1].trim().split(" "),U="";s.length==2||s.length==1?s[0].length<4?U=s[0]+" "+s[1]:U=s[0]:s.length==3?U=s[0]+" "+s[1]:s.length==4&&(U=s[1]+" "+s[2]+" "+s[3]);var m=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";U=U.replace(",","");var y=m+". "+U;return y},calcularEdad(e){var o=new Date(e),s=new Date,B=s-o,U=Math.floor(B/(1e3*60*60*24*365.25));return U},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.length;s++)e[s].isSelected&&o.push(e[s].id);if(o.length==0&&(o=[1]),o.length==1)for(let s=0;s<e.length;s++)e[s].isSelected&&(this.nameLeagueSelected=e[s].name,this.seasonsFilterSelected=e[s].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,U=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,U],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&o.push(e.nationalities[B].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var s=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&s.push(e.positions[B].id);s.length==0&&(s=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=s,this.filterScounting.nationalities=o},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.productivityFilters.length;s++)o[e.productivityFilters[s].priority-1]={name:e.productivityFilters[s].name,ids:e.productivityFilters[s].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var s=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){this.filtersPredefinedF=this.filters;for(let U=0;U<this.FVfilterGolstats.length;U++)this.FVfilterGolstats[U].isSelected=!1;var s=this.arrayFiltersPlays.findIndex(U=>U.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var s=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(s!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(U=>U.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let m=0;m<this.categoriesDefault.length;m++)this.categoriesDefault[m].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let m=0;m<this.FVfilterGolstats.length;m++)this.FVfilterGolstats[m].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,o){return Math.floor(Math.random()*(o-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let s=0;s<this.categoriesPlaysTypes.offensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.defensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.possession.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.offenses.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s])}else for(let s=0;s<e.playsCategories.length;s++)e.playsCategories[s].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[s].id),this.arrayCategoryFilterFull.push(e.playsCategories[s]));var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(e){var o=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(o!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let U=0;U<this.detaildProductivityCategories.offensive.categories.length;U++)this.detaildProductivityCategories.offensive.categories[U].isSelected=!1;for(let U=0;U<this.detaildProductivityCategories.defensive.categories.length;U++)this.detaildProductivityCategories.defensive.categories[U].isSelected=!1;for(let U=0;U<this.detaildProductivityCategories.possession.categories.length;U++)this.detaildProductivityCategories.possession.categories[U].isSelected=!1;for(let U=0;U<this.detaildProductivityCategories.offensesConditions.length;U++)this.detaildProductivityCategories.offensesConditions[U]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(U,m)=>m+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let U=0;U<B.teams.length;U++)this.teamsscouting.push({id:B.teams[U].team_id,team:B.teams[U].colloquial_name,logo:B.teams[U].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var s=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(ju.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(ju.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(ju.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(ju.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(ju.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(o,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var s=[];for(let m=0;m<e.playingAs.length;m++)if(e.playingAs[m].isSelected){const y=e.playingAs[m].name=="Local"?1:2;o.push(y)}for(let m=0;m<e.gameSections.length;m++)e.gameSections[m].isSelected&&s.push(e.gameSections[m].value);this.fVsections=s,this.fVplayingAs=o;var B=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersDetailsTime"),U="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(U+=", 0-15"),this.fVsections.includes(2)&&(U+=", 15-30"),this.fVsections.includes(3)&&(U+=", 30-45"),this.fVsections.includes(4)&&(U+=", 45-60"),this.fVsections.includes(5)&&(U+=", 60-75"),this.fVsections.includes(6)&&(U+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=U:this.arrayFiltersPlays.push({name:U,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,U)=>U+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(ju.All),e.clearFilters(ju.AGE_RANGE),e.clearFilters(ju.YEAR),e.clearFilters(ju.NATIONALITY),e.clearFilters(ju.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(o,1),this.setUpTournamentsToFilter();const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<s.teams.length;B++)this.teamsscouting.push({id:s.teams[B].team_id,team:s.teams[B].colloquial_name,logo:s.teams[B].logo})},onFiltersData(e){var o=0,s=0;e.ageByRange&&(e.ageByRange.min==0?o=1:o=e.ageByRange.min,e.ageByRange.max==0?s=40:s=e.ageByRange.max,this.fVarrayAgeRange=[o,s]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",U="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let b=0;b<e.nationalities.length;b++)e.nationalities[b].isSelected&&this.fVnationalities.add(e.nationalities[b].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let b=0;b<this.elegibilidadArray.length;b++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[b])}for(let b=0;b<e.positions.length;b++)e.positions[b].isSelected&&this.fVsetPositionsIds.push(e.positions[b].id);if(e.hasOwnProperty("nationalities"))var m=e.nationalities.filter(b=>b.isSelected===!0);var y=e.positions.filter(b=>b.isSelected===!0);if(y.length==1&&(B=y[0].name),e.hasOwnProperty("nationalities")&&m.length==1&&(U=m[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var v=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersPosition");v!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[v].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var p=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersYear");p!=-1?this.arrayFiltersPlays[p].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var r=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersAge");r!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[r].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var r=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersAge");r!=-1&&this.arrayFiltersPlays.splice(r,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var _=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersNationality");_!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[_].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+U:this.arrayFiltersPlays.splice(_,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+U,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let s=0;s<this.categoriesDefault.length;s++)this.categoriesDefault[s].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(o!==-1){for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=pu.create({headers:{Authorization:`${this.token}`}}),o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,{data:B}=await e.get(uu(this.tournamentsUrl,o,s));return B},async fetchTeams(){const e=pu.create({headers:{Authorization:`${this.token}`}}),o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,{data:B}=await e.get(uu(this.teamsUrl+this.seasonActive,o,s));return B},async fetchTeamsScouting(e){const o=pu.create({headers:{Authorization:`${this.token}`}}),s=this.$store.getters.getProviderId,B=this.$store.getters.getIsDevApis,{data:U}=await o.get(uu(this.teamsUrl+e,s,B));return U},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";e.id==1?o=this.urlFilter:o=this.urlFilter;const s=pu.create({headers:{Authorization:`${this.token}`}}),{data:B}=await s.get(uu(o+e.id,this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));if(Object.keys(B[0].match_lapse_combinations).forEach(_=>{this.predefinedFiltersMatchLapse[_.toString()]=B[0].match_lapse_combinations[_]}),Object.keys(B[0].playing_as_combinations).forEach(_=>{this.predefinedFiltersPlayingAs[_.toString()]=B[0].playing_as_combinations[_]}),Object.keys(B[0].field_sections_combinations).forEach(_=>{this.predefinedFiltersSections[_.toString()]=B[0].field_sections_combinations[_]}),B[0]){for(let _=0;_<B[0].filter_records.length;_++){var U=B[0].description;if(B[0].filter_records[_].field_sections!==void 0){const x=B[0].filter_records[_].field_sections.toString();(this.predefinedFiltersSections[x]||this.predefinedFiltersSections[x]=="")&&(this.predefinedFiltersSections[x]==""?U=U.replace(" [en {field_sections}]",this.predefinedFiltersSections[x]):U=U.replace("{field_sections}",this.predefinedFiltersSections[x]))}if(B[0].filter_records[_].match_lapse!==void 0){const x=B[0].filter_records[_].match_lapse.toString();(this.predefinedFiltersMatchLapse[x]||this.predefinedFiltersMatchLapse[x]=="")&&(this.predefinedFiltersMatchLapse[x]==""?U=U.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[x]):U=U.replace("{match_lapse}",this.predefinedFiltersMatchLapse[x]))}if(B[0].filter_records[_].playing_as!==void 0){const x=B[0].filter_records[_].playing_as.toString();(this.predefinedFiltersPlayingAs[x]||this.predefinedFiltersPlayingAs[x]=="")&&(this.predefinedFiltersPlayingAs[x]==""?U=U.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[x]):U=U.replace("{playing_as}",this.predefinedFiltersPlayingAs[x]))}B[0].filter_records[_].section_type!==void 0&&(this.optionSelected=="Jugadores"?U=U.replace("{section_type}","Jugadores"):U=U.replace("{section_type}","Equipos")),U=U.replace(/\[/g,""),U=U.replace(/\]/g,""),U=U.replace("{category_name}",B[0].category_name);const b=U.split(": ");var m=b[1];m.length>129&&this.windowWidth>1358&&(m=m.substring(0,129),m=m+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[_].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:_,category_name:e.name,id_category:B[0].id,title:b[0]+":",text:b[1],textOrigin:B[0].description,titledots:m,filtersPredefined:{matchResult:B[0].filter_records[_].match_result,playingAs:B[0].filter_records[_].playing_as,sections:B[0].filter_records[_].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[_].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var y=[];for(let _=0;_<this.arrayPredefinedFilters.length;_++){var a=0,v=new Set,p={},r=this.arrayPredefinedFilters[_].text.replace(/\*.*?\*/,"");if(r=r.replace(/\*/g,""),r=r.replace(/ +/g," "),this.arrayPredefinedFilters[_].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[_].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[_].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,this.arrayPredefinedFilters[_].filtersPredefined.end_age]:this.arrayPredefinedFilters[_].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[_].filtersPredefined.end_age],this.arrayPredefinedFilters[_].filtersPredefined.matchResult.length!=3&&(a+=1),p.matchResult=this.arrayPredefinedFilters[_].filtersPredefined.matchResult,this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length!=0){for(let b=0;b<this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length;b++)v.add(this.arrayPredefinedFilters[_].filtersPredefined.nationalities[b]);p.setNationalitiesIds=v}else v.add(138),v.add(222),v.add(163),v.add(51),v.add(226),v.add(10),v.add(223),v.add(96),v.add(171),v.add(198),v.add(105),v.add(80),v.add(29),v.add(74),v.add(216),v.add(196),v.add(64),v.add(155),v.add(156),v.add(89),v.add(106),v.add(81),v.add(233),v.add(204),p.setNationalitiesIds=v;this.arrayPredefinedFilters[_].filtersPredefined.playingAs.length!=2&&(a+=1),p.playingAs=this.arrayPredefinedFilters[_].filtersPredefined.playingAs,this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[_].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[_].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[_].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[_].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[_].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[_].filtersPredefined.typeZone,y.push({id:_+1,name:r,isSelected:!1,value:a,filters:p})}this.FVfilterGolstats=y,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((r,_)=>r-_).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var s=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(s=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(s||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var U="";B.includes(1)&&(U=U+"0-15, "),B.includes(2)&&(U=U+"16-30, "),B.includes(3)&&(U=U+"31-45, "),B.includes(4)&&(U=U+"46-60, "),B.includes(5)&&(U=U+"61-75, "),B.includes(6)&&(U=U+"76-90, "),U=U.slice(0,-2),U=U.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",U)}const m=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[m]||this.predefinedFiltersPlayingAs[m]=="")&&(this.predefinedFiltersPlayingAs[m]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[m]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[m])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const y=e.split(": ");let a=y[1].charAt(0).toUpperCase()+y[1].toLowerCase().slice(1),v=y[1].charAt(0).toUpperCase()+y[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=y[0]+":";const p=v.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let r=1;r<=p.length;r++)r%2===0||(v=v.replace("*",'<span style="color: #ffff03" >'));else v=v.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=v},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadTopsCategories(),await this.loadProductivityTranslation();const e=pu.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(s=>(delete s.headers.Authorization,s));const o=await e.get(qy("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",this.$store.getters.getProviderId),{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=o.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},_ht={ref:"myDivRefTopsFull"},xht={key:0,class:"overlay-loading"},wht={key:0,class:"cont-leyemd-multipleleagues"},kht={key:0,style:{"margin-left":"10px"}},Sht={key:3,style:{width:"100%",height:"295px"}};function Cht(e,o,s,B,U,m){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const y=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),v=t.resolveComponent("GSCFilters"),p=t.resolveComponent("GSCLabel"),r=t.resolveComponent("GSCTopCategory"),_=t.resolveComponent("GSCTableHeader"),b=t.resolveComponent("GSCRowTable"),x=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",_ht,[U.loadingActive?(t.openBlock(),t.createElementBlock("div",xht,o[8]||(o[8]=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)]))):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[U.optionSelected!="Scouting"&&U.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:U.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:m.clickTeam,onClickAll:m.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(U.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...h)=>m.clickCloseFilters&&m.clickCloseFilters(...h))},o[9]||(o[9]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)]),2)):t.createCommentVNode("",!0),U.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(y,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":U.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:m.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(U.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...h)=>m.openMenuFilters&&m.openMenuFilters(...h))},null,6),[[t.vShow,B.elementSize.width<760&&U.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[U.optionSelectedSubmenu=="Todas las jugadas"&&U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersPlays,filters:U.categoriesPlaysTypes,onApply:m.applyFiltersBtn,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply","provider-id","is-dev-apis"]),[[t.vShow,!U.showFullTable]]),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{key:U.updateFilterField,"filter-type":U.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersField,filters:U.fVzone,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"])),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersDetails,filters:U.detailsObject,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"]),U.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(v,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:U.tournamentSelectedObj.value},token:U.token,"onUpdate:filters":m.onFiltersData,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters","provider-id","is-dev-apis"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),U.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:U.tournamentsToFilter,key:U.keyTournamentValue,"onUpdate:filters":m.onFiltersTournaments,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters","provider-id","is-dev-apis"])),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:U.filterScounting.seasonId,tournamentId:U.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":m.onFiltersPersonalData,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","season","onUpdate:filters","provider-id","is-dev-apis"]),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:U.universeData,"onUpdate:filters":m.onFiltersUniverse,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters","provider-id","is-dev-apis"]),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersProductivity,filters:U.detaildProductivityCategories,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:o[4]||(o[4]=(...h)=>m.getScoutingData&&m.getScoutingData(...h))},"Buscar",2)],64)):t.createCommentVNode("",!0),U.optionSelectedSubmenu=="Predeterminados"&&U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModePropsTypePlays,{"filter-type":U.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:U.updateFilterPlaytypesGolstats,"onUpdate:filters":m.onFiltersPlaysTypes,filters:U.categoriesDefault,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"])),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:U.updateFilterGolstats,"onUpdate:filters":m.onFiltersGolStats,filters:m.filterGolstats,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||U.openMenuMobil]]),U.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[U.filterScounting.tournaments.length>1&&U.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",wht,[o[10]||(o[10]=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1)),t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:U.teamsscouting,"team-id":U.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:U.updateFilterTeamsScouting,onClickTeam:m.clickTeamScouting,onClickAll:m.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[U.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[U.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),U.optionSelected!="Scouting"&&U.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[U.showFullTable?(t.openBlock(),t.createElementBlock("div",kht,[t.createVNode(p,{"text-value":"Categoría - "+U.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:m.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.arrayFiltersPlays,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:{"margin-left":"10px"}},[t.createVNode(p,{"text-value":h.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:m.deleteLabelFilter,id:h.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),U.rowScoutingData.length!=0||U.optionSelectedSubmenu=="Predeterminados"&&U.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:o[5]||(o[5]=(...h)=>m.onClickDeleteFilter&&m.onClickDeleteFilter(...h))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),s.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(U.showFullTable?"gap: 0px!important;":"")},[U.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.categoriesDefault,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:h.id,style:t.normalizeStyle(!U.showOnlyCategories&&U.arrayCategoryFilter.includes(h.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(r,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":U.isTeam,onMore:m.onShowFullTable,"border-width":0,onIntervalidtops:m.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":m.filterChange,category:h.id,"type-table":U.typeTable,categoryName:h.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:U.updateTables,onClickprofile:m.clickprofile,onSetopenmedia:m.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season-selected","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!U.showOnlyCategories&&U.arrayCategoryFilter.includes(h.id)&&!U.showFullTable]])],4))),128)),U.showFullTable?(t.openBlock(),t.createBlock(r,{"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":U.isTeam,"is-widget":s.isWidget,"team-widget":s.teamWidget,"border-width":0,"border-radius":"12px","game-id":s.gameId,onIntervalidtops:m.intervalidtops,game:s.game,typeData:s.typeData,category:U.showFullCategory,type:1,"type-table":U.typeTable,categoryName:"","filters-prop":m.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:U.updateTablesfull,onClickprofile:m.clickprofile,onSetopenmedia:m.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[U.categoryPredefinedActive?(t.openBlock(),t.createBlock(r,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":U.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:m.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":s.canPlayVideos,"game-id":s.gameId,game:s.game,typeData:s.typeData,category:U.categoryPredefined,type:1,"type-table":U.typeTable,categoryName:"","filters-prop":m.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:U.updateTables,onClickprofile:m.clickprofile,onSetopenmedia:m.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o[12]||(o[12]=t.createElementVNode("span",null,"Tipo de Jugada",-1)),o[13]||(o[13]=t.createTextVNode(" y un ")),o[14]||(o[14]=t.createElementVNode("span",null,"Filtro GolStats",-1)),o[15]||(o[15]=t.createTextVNode(" en la"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(U.rowScoutingData.length>0?"height: auto;":"")},[U.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.rowScoutingData.length>0?(t.openBlock(),t.createBlock(_,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.rowScoutingData,(h,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[U.teamselectrec==0||U.teamselectrec==h.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(b,{type:2,"is-expanded":U.playerexpand==h.id&&U.expand,onMediadata:m.setMediaData,data:{position:h.position,player_name:h.player_name,player_photo:h.player_photo,total:h.total,id:h.id,player_age:h.player_age,team_abrev:h.team_abrev,team_logo:h.team_logo,player_position:U.positions[h.player_position-1].fullname,player_country_flag:h.player_country_flag,player_games:h.player_games,player_min:h.player_min,league_name:h.league_name,seasons:h.seasons,season_id:h.season_id},height:"71px",background:n%2===0?s.backgroundOdd:s.backgroundEven,onExpand:m.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),U.expand&&U.playerexpand==h.id?(t.openBlock(),t.createBlock(x,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:h.team_name,age:h.player_age,dataofbirth:h.date,nationality:h.nationality_name,countryFlag:h.player_country_flag,position:U.positions[h.player_position-1].name,games:h.player_games,min:h.player_min,goals:h.total,effectiveness:"-",category:"total",id:h.id},onViewprofile:i=>m.viewprofile(i,h.season_id,h.team_id),background:n%2===0?s.backgroundOdd:s.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),U.rowScoutingData.length==0&&!U.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),U.rowScoutingData.length==0&&!U.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:o[6]||(o[6]=(...h)=>m.onClickDeleteFilter&&m.onClickDeleteFilter(...h))}," Eliminar filtros aplicados ",2),U.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:o[7]||(o[7]=(...h)=>m.getScoutingData&&m.getScoutingData(...h))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),U.loadingActive?(t.openBlock(),t.createElementBlock("div",Sht)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const Tht=Ki(bht,[["render",Cht],["__cssModules",{$style:yht}]]),zta="";let AV=null;const Aht={components:{GSCDatosGSMain:Nct,GSCCheckbox:j1,GSCRadioToggle:dF,GSCTopFull:Tht},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e==="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)AV=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),AV.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.isLiveAccumulated=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Eht={class:"container-comparative",ref:"comparative"},Mht={class:"container-btn"},Iht={class:"items-container-btn"},Pht={class:"container-sections"},Lht={key:0,class:"container-teams-menu"},Bht={class:"container-team-menu-home"},zht=["src"],Oht={class:"container-team-menu-away"},Dht=["src"],Nht={key:1,class:"container-switch-menu"},Fht={class:"container-leyend"},Rht={class:"container-tops"};function Vht(e,o,s,B,U,m){const y=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),v=t.resolveComponent("GSCRadioToggle"),p=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",Eht,[t.createElementVNode("div",Mht,[t.createElementVNode("div",Iht,[t.createElementVNode("div",{class:t.normalizeClass([U.widthSection>480?"btn-destacados":"btn-destacados-movil",U.activeSection=="destacados"?"active":""]),onClick:o[0]||(o[0]=r=>m.clickOptSection("destacados"))},[s.game.status==1||s.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([U.widthSection>480?"btn-avanced":"btn-avanced-movil",U.activeSection=="avanzado"?"active":""]),onClick:o[1]||(o[1]=r=>m.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",Pht,[U.activeSection=="destacados"?(t.openBlock(),t.createBlock(y,{key:0,"is-widget":s.isWidget,"team-widget":s.teamWidget,"tournament-selected":s.tournamentSelected,"time-live-comparative-best-players":s.timeLiveComparativeBestPlayers,game:s.game,"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:m.openmedia,onIntervalidgs:m.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),U.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Lht,[t.createElementVNode("div",Bht,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:U.updateHomeCheck,"model-value":U.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:s.game.homeTeam.logo},null,8,zht),t.createElementVNode("div",{class:t.normalizeClass(U.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(s.game.homeTeam.colloquial_name),3)]),o[2]||(o[2]=t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),t.createElementVNode("div",Oht,[t.createElementVNode("div",{class:t.normalizeClass(U.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(s.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:s.game.awayTeam.logo},null,8,Dht),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:U.updateAwayCheck,"model-value":U.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),s.game.is_live||s.game.status===1||s.game.status===0?(t.openBlock(),t.createElementBlock("div",Nht,[t.createVNode(v,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":U.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:m.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Fht,[U.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",Rht,[t.createVNode(p,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:m.openmedia,onOpenProfileTeam:m.onOpenProfileTeam,onIntervalidtops:m.intervalidtops,onOpenProfilePlayer:m.onOpenProfilePlayer,"type-data":U.typeViewData,"game-id":s.game.gameId,game:s.game,"current-season-id":s.game.seasonId,"team-id":U.teamactive,"season-active":s.game.seasonId,"season-selected":s.seasonSelected,teamselect:U.teamactive,"is-female-mode":s.isFemaleMode},null,8,["is-widget","team-widget","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","season-selected","teamselect","is-female-mode"])])],64)):t.createCommentVNode("",!0)])],512)}const jht=Ki(Aht,[["render",Vht],["__scopeId","data-v-84eca2e0"]]);var Uht=Object.defineProperty,Ght=(e,o,s)=>o in e?Uht(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,$S=(e,o,s)=>Ght(e,typeof o!="symbol"?o+"":o,s);function EV(e,o){return function(){return e.apply(o,arguments)}}const{toString:Hht}=Object.prototype,{getPrototypeOf:KS}=Object,{iterator:d4,toStringTag:MV}=Symbol,h4=(e=>o=>{const s=Hht.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Kf=e=>(e=e.toLowerCase(),o=>h4(o)===e),p4=e=>o=>typeof o===e,{isArray:Rv}=Array,Ub=p4("undefined");function Zht(e){return e!==null&&!Ub(e)&&e.constructor!==null&&!Ub(e.constructor)&&Cp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const IV=Kf("ArrayBuffer");function Wht(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&IV(e.buffer),o}const qht=p4("string"),Cp=p4("function"),PV=p4("number"),f4=e=>e!==null&&typeof e=="object",Jht=e=>e===!0||e===!1,m4=e=>{if(h4(e)!=="object")return!1;const o=KS(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(MV in e)&&!(d4 in e)},Yht=Kf("Date"),Xht=Kf("File"),$ht=Kf("Blob"),Kht=Kf("FileList"),Qht=e=>f4(e)&&Cp(e.pipe),ept=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||Cp(e.append)&&((o=h4(e))==="formdata"||o==="object"&&Cp(e.toString)&&e.toString()==="[object FormData]"))},tpt=Kf("URLSearchParams"),[apt,rpt,npt,ipt]=["ReadableStream","Request","Response","Headers"].map(Kf),opt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gb(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let B,U;if(typeof e!="object"&&(e=[e]),Rv(e))for(B=0,U=e.length;B<U;B++)o.call(null,e[B],B,e);else{const m=s?Object.getOwnPropertyNames(e):Object.keys(e),y=m.length;let a;for(B=0;B<y;B++)a=m[B],o.call(null,e[a],a,e)}}function LV(e,o){o=o.toLowerCase();const s=Object.keys(e);let B=s.length,U;for(;B-- >0;)if(U=s[B],o===U.toLowerCase())return U;return null}const pg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,BV=e=>!Ub(e)&&e!==pg;function QS(){const{caseless:e}=BV(this)&&this||{},o={},s=(B,U)=>{const m=e&&LV(o,U)||U;m4(o[m])&&m4(B)?o[m]=QS(o[m],B):m4(B)?o[m]=QS({},B):Rv(B)?o[m]=B.slice():o[m]=B};for(let B=0,U=arguments.length;B<U;B++)arguments[B]&&Gb(arguments[B],s);return o}const spt=(e,o,s,{allOwnKeys:B}={})=>(Gb(o,(U,m)=>{s&&Cp(U)?e[m]=EV(U,s):e[m]=U},{allOwnKeys:B}),e),lpt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cpt=(e,o,s,B)=>{e.prototype=Object.create(o.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},upt=(e,o,s,B)=>{let U,m,y;const a={};if(o=o||{},e==null)return o;do{for(U=Object.getOwnPropertyNames(e),m=U.length;m-- >0;)y=U[m],(!B||B(y,e,o))&&!a[y]&&(o[y]=e[y],a[y]=!0);e=s!==!1&&KS(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},dpt=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const B=e.indexOf(o,s);return B!==-1&&B===s},hpt=e=>{if(!e)return null;if(Rv(e))return e;let o=e.length;if(!PV(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},ppt=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&KS(Uint8Array)),fpt=(e,o)=>{const s=(e&&e[d4]).call(e);let B;for(;(B=s.next())&&!B.done;){const U=B.value;o.call(e,U[0],U[1])}},mpt=(e,o)=>{let s;const B=[];for(;(s=e.exec(o))!==null;)B.push(s);return B},gpt=Kf("HTMLFormElement"),ypt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,B){return s.toUpperCase()+B}),zV=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),vpt=Kf("RegExp"),OV=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),B={};Gb(s,(U,m)=>{let y;(y=o(U,m,e))!==!1&&(B[m]=y||U)}),Object.defineProperties(e,B)},bpt=e=>{OV(e,(o,s)=>{if(Cp(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const B=e[s];if(Cp(B)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},_pt=(e,o)=>{const s={},B=U=>{U.forEach(m=>{s[m]=!0})};return Rv(e)?B(e):B(String(e).split(o)),s},xpt=()=>{},wpt=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function kpt(e){return!!(e&&Cp(e.append)&&e[MV]==="FormData"&&e[d4])}const Spt=e=>{const o=new Array(10),s=(B,U)=>{if(f4(B)){if(o.indexOf(B)>=0)return;if(!("toJSON"in B)){o[U]=B;const m=Rv(B)?[]:{};return Gb(B,(y,a)=>{const v=s(y,U+1);!Ub(v)&&(m[a]=v)}),o[U]=void 0,m}}return B};return s(e,0)},Cpt=Kf("AsyncFunction"),Tpt=e=>e&&(f4(e)||Cp(e))&&Cp(e.then)&&Cp(e.catch),DV=((e,o)=>e?setImmediate:o?((s,B)=>(pg.addEventListener("message",({source:U,data:m})=>{U===pg&&m===s&&B.length&&B.shift()()},!1),U=>{B.push(U),pg.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Cp(pg.postMessage)),Apt=typeof queueMicrotask<"u"?queueMicrotask.bind(pg):typeof process<"u"&&process.nextTick||DV,Ept=e=>e!=null&&Cp(e[d4]),On={isArray:Rv,isArrayBuffer:IV,isBuffer:Zht,isFormData:ept,isArrayBufferView:Wht,isString:qht,isNumber:PV,isBoolean:Jht,isObject:f4,isPlainObject:m4,isReadableStream:apt,isRequest:rpt,isResponse:npt,isHeaders:ipt,isUndefined:Ub,isDate:Yht,isFile:Xht,isBlob:$ht,isRegExp:vpt,isFunction:Cp,isStream:Qht,isURLSearchParams:tpt,isTypedArray:ppt,isFileList:Kht,forEach:Gb,merge:QS,extend:spt,trim:opt,stripBOM:lpt,inherits:cpt,toFlatObject:upt,kindOf:h4,kindOfTest:Kf,endsWith:dpt,toArray:hpt,forEachEntry:fpt,matchAll:mpt,isHTMLForm:gpt,hasOwnProperty:zV,hasOwnProp:zV,reduceDescriptors:OV,freezeMethods:bpt,toObjectSet:_pt,toCamelCase:ypt,noop:xpt,toFiniteNumber:wpt,findKey:LV,global:pg,isContextDefined:BV,isSpecCompliantForm:kpt,toJSONObject:Spt,isAsyncFn:Cpt,isThenable:Tpt,setImmediate:DV,asap:Apt,isIterable:Ept};function kl(e,o,s,B,U){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),B&&(this.request=B),U&&(this.response=U,this.status=U.status?U.status:null)}On.inherits(kl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:On.toJSONObject(this.config),code:this.code,status:this.status}}});const NV=kl.prototype,FV={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{FV[e]={value:e}}),Object.defineProperties(kl,FV),Object.defineProperty(NV,"isAxiosError",{value:!0}),kl.from=(e,o,s,B,U,m)=>{const y=Object.create(NV);return On.toFlatObject(e,y,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),kl.call(y,e.message,o,s,B,U),y.cause=e,y.name=e.name,m&&Object.assign(y,m),y};const Mpt=null;function eC(e){return On.isPlainObject(e)||On.isArray(e)}function RV(e){return On.endsWith(e,"[]")?e.slice(0,-2):e}function VV(e,o,s){return e?e.concat(o).map(function(B,U){return B=RV(B),!s&&U?"["+B+"]":B}).join(s?".":""):o}function Ipt(e){return On.isArray(e)&&!e.some(eC)}const Ppt=On.toFlatObject(On,{},null,function(e){return/^is[A-Z]/.test(e)});function g4(e,o,s){if(!On.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=On.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,h){return!On.isUndefined(h[x])});const B=s.metaTokens,U=s.visitor||p,m=s.dots,y=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&On.isSpecCompliantForm(o);if(!On.isFunction(U))throw new TypeError("visitor must be a function");function v(x){if(x===null)return"";if(On.isDate(x))return x.toISOString();if(On.isBoolean(x))return x.toString();if(!a&&On.isBlob(x))throw new kl("Blob is not supported. Use a Buffer instead.");return On.isArrayBuffer(x)||On.isTypedArray(x)?a&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,h,n){let i=x;if(x&&!n&&typeof x=="object"){if(On.endsWith(h,"{}"))h=B?h:h.slice(0,-2),x=JSON.stringify(x);else if(On.isArray(x)&&Ipt(x)||(On.isFileList(x)||On.endsWith(h,"[]"))&&(i=On.toArray(x)))return h=RV(h),i.forEach(function(c,l){!(On.isUndefined(c)||c===null)&&o.append(y===!0?VV([h],l,m):y===null?h:h+"[]",v(c))}),!1}return eC(x)?!0:(o.append(VV(n,h,m),v(x)),!1)}const r=[],_=Object.assign(Ppt,{defaultVisitor:p,convertValue:v,isVisitable:eC});function b(x,h){if(!On.isUndefined(x)){if(r.indexOf(x)!==-1)throw Error("Circular reference detected in "+h.join("."));r.push(x),On.forEach(x,function(n,i){(!(On.isUndefined(n)||n===null)&&U.call(o,n,On.isString(i)?i.trim():i,h,_))===!0&&b(n,h?h.concat(i):[i])}),r.pop()}}if(!On.isObject(e))throw new TypeError("data must be an object");return b(e),o}function jV(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function tC(e,o){this._pairs=[],e&&g4(e,this,o)}const UV=tC.prototype;UV.append=function(e,o){this._pairs.push([e,o])},UV.toString=function(e){const o=e?function(s){return e.call(this,s,jV)}:jV;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function Lpt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GV(e,o,s){if(!o)return e;const B=s&&s.encode||Lpt;On.isFunction(s)&&(s={serialize:s});const U=s&&s.serialize;let m;if(U?m=U(o,s):m=On.isURLSearchParams(o)?o.toString():new tC(o,s).toString(B),m){const y=e.indexOf("#");y!==-1&&(e=e.slice(0,y)),e+=(e.indexOf("?")===-1?"?":"&")+m}return e}let HV=class{constructor(){this.handlers=[]}use(o,s,B){return this.handlers.push({fulfilled:o,rejected:s,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){On.forEach(this.handlers,function(s){s!==null&&o(s)})}};const ZV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bpt=typeof URLSearchParams<"u"?URLSearchParams:tC,zpt=typeof FormData<"u"?FormData:null,Opt=typeof Blob<"u"?Blob:null,Dpt={isBrowser:!0,classes:{URLSearchParams:Bpt,FormData:zpt,Blob:Opt},protocols:["http","https","file","blob","url","data"]},aC=typeof window<"u"&&typeof document<"u",rC=typeof navigator=="object"&&navigator||void 0,Npt=aC&&(!rC||["ReactNative","NativeScript","NS"].indexOf(rC.product)<0),Fpt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rpt=aC&&window.location.href||"http://localhost",Vpt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aC,hasStandardBrowserEnv:Npt,hasStandardBrowserWebWorkerEnv:Fpt,navigator:rC,origin:Rpt},Symbol.toStringTag,{value:"Module"})),Bh={...Vpt,...Dpt};function jpt(e,o){return g4(e,new Bh.classes.URLSearchParams,Object.assign({visitor:function(s,B,U,m){return Bh.isNode&&On.isBuffer(s)?(this.append(B,s.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},o))}function Upt(e){return On.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Gpt(e){const o={},s=Object.keys(e);let B;const U=s.length;let m;for(B=0;B<U;B++)m=s[B],o[m]=e[m];return o}function WV(e){function o(s,B,U,m){let y=s[m++];if(y==="__proto__")return!0;const a=Number.isFinite(+y),v=m>=s.length;return y=!y&&On.isArray(U)?U.length:y,v?(On.hasOwnProp(U,y)?U[y]=[U[y],B]:U[y]=B,!a):((!U[y]||!On.isObject(U[y]))&&(U[y]=[]),o(s,B,U[y],m)&&On.isArray(U[y])&&(U[y]=Gpt(U[y])),!a)}if(On.isFormData(e)&&On.isFunction(e.entries)){const s={};return On.forEachEntry(e,(B,U)=>{o(Upt(B),U,s,0)}),s}return null}function Hpt(e,o,s){if(On.isString(e))try{return(o||JSON.parse)(e),On.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(s||JSON.stringify)(e)}const Hb={transitional:ZV,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",B=s.indexOf("application/json")>-1,U=On.isObject(e);if(U&&On.isHTMLForm(e)&&(e=new FormData(e)),On.isFormData(e))return B?JSON.stringify(WV(e)):e;if(On.isArrayBuffer(e)||On.isBuffer(e)||On.isStream(e)||On.isFile(e)||On.isBlob(e)||On.isReadableStream(e))return e;if(On.isArrayBufferView(e))return e.buffer;if(On.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let m;if(U){if(s.indexOf("application/x-www-form-urlencoded")>-1)return jpt(e,this.formSerializer).toString();if((m=On.isFileList(e))||s.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return g4(m?{"files[]":e}:e,y&&new y,this.formSerializer)}}return U||B?(o.setContentType("application/json",!1),Hpt(e)):e}],transformResponse:[function(e){const o=this.transitional||Hb.transitional,s=o&&o.forcedJSONParsing,B=this.responseType==="json";if(On.isResponse(e)||On.isReadableStream(e))return e;if(e&&On.isString(e)&&(s&&!this.responseType||B)){const U=!(o&&o.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(m){if(U)throw m.name==="SyntaxError"?kl.from(m,kl.ERR_BAD_RESPONSE,this,null,this.response):m}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bh.classes.FormData,Blob:Bh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};On.forEach(["delete","get","head","post","put","patch"],e=>{Hb.headers[e]={}});const Zpt=On.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wpt=e=>{const o={};let s,B,U;return e&&e.split(`
4136
+ */const Xd={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"}},yV={itemsToShow:{default:Xd.itemsToShow,type:Number},itemsToScroll:{default:Xd.itemsToScroll,type:Number},wrapAround:{default:Xd.wrapAround,type:Boolean},throttle:{default:Xd.throttle,type:Number},snapAlign:{default:Xd.snapAlign,validator(e){return["start","end","center","center-even","center-odd"].includes(e)}},transition:{default:Xd.transition,type:Number},breakpoints:{default:Xd.breakpoints,type:Object},autoplay:{default:Xd.autoplay,type:Number},pauseAutoplayOnHover:{default:Xd.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:Xd.mouseDrag,type:Boolean},touchDrag:{default:Xd.touchDrag,type:Boolean},dir:{default:Xd.dir,validator(e){return["rtl","ltr"].includes(e)}},i18n:{default:Xd.i18n,type:Object},settings:{default(){return{}},type:Object}};function idt({config:e,slidesCount:o}){const{snapAlign:s,wrapAround:B,itemsToShow:U=1}=e;if(B)return Math.max(o-1,0);let m;switch(s){case"start":m=o-U;break;case"end":m=o-1;break;case"center":case"center-odd":m=o-Math.ceil((U-.5)/2);break;case"center-even":m=o-Math.ceil(U/2);break;default:m=0;break}return Math.max(m,0)}function odt({config:e,slidesCount:o}){const{wrapAround:s,snapAlign:B,itemsToShow:U=1}=e;let m=0;if(s||U>o)return m;switch(B){case"start":m=0;break;case"end":m=U-1;break;case"center":case"center-odd":m=Math.floor((U-1)/2);break;case"center-even":m=Math.floor((U-2)/2);break;default:m=0;break}return m}function ZS({val:e,max:o,min:s}){return o<s?e:Math.min(Math.max(e,s),o)}function sdt({config:e,currentSlide:o,slidesCount:s}){const{snapAlign:B,wrapAround:U,itemsToShow:m=1}=e;let y=o;switch(B){case"center":case"center-odd":y-=(m-1)/2;break;case"center-even":y-=(m-2)/2;break;case"end":y-=m-1;break}return U?y:ZS({val:y,max:s-m,min:0})}function vV(e){return e?e.reduce((o,s)=>{var B;return s.type===t.Fragment?[...o,...vV(s.children)]:((B=s.type)===null||B===void 0?void 0:B.name)==="CarouselSlide"?[...o,s]:o},[]):[]}function WS({val:e,max:o,min:s=0}){return e>o?WS({val:e-(o+1),max:o,min:s}):e<s?WS({val:e+(o+1),max:o,min:s}):e}function ldt(e,o){let s;return o?function(...B){const U=this;s||(e.apply(U,B),s=!0,setTimeout(()=>s=!1,o))}:e}function cdt(e,o){let s;return function(...B){s&&clearTimeout(s),s=setTimeout(()=>{e(...B),s=null},o)}}function udt(e="",o={}){return Object.entries(o).reduce((s,[B,U])=>s.replace(`{${B}}`,String(U)),e)}var ddt=t.defineComponent({name:"ARIA",setup(){const e=t.inject("config",t.reactive(Object.assign({},Xd))),o=t.inject("currentSlide",t.ref(0)),s=t.inject("slidesCount",t.ref(0));return()=>t.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},udt(e.i18n.itemXofY,{currentSlide:o.value+1,slidesCount:s.value}))}}),hdt=t.defineComponent({name:"Carousel",props:yV,setup(e,{slots:o,emit:s,expose:B}){var U;const m=t.ref(null),y=t.ref([]),a=t.ref(0),v=t.ref(0),p=t.reactive(Object.assign({},Xd));let r=Object.assign({},Xd),_;const b=t.ref((U=e.modelValue)!==null&&U!==void 0?U:0),x=t.ref(0),h=t.ref(0),n=t.ref(0),i=t.ref(0);let c,l;t.provide("config",p),t.provide("slidesCount",v),t.provide("currentSlide",b),t.provide("maxSlide",n),t.provide("minSlide",i),t.provide("slideWidth",a);function d(){_=Object.assign({},e.breakpoints),r=Object.assign(Object.assign(Object.assign({},r),e),{i18n:Object.assign(Object.assign({},r.i18n),e.i18n),breakpoints:void 0}),w(r)}function g(){if(!_||!Object.keys(_).length)return;const re=Object.keys(_).map(ie=>Number(ie)).sort((ie,me)=>+me-+ie);let se=Object.assign({},r);re.some(ie=>{const me=window.matchMedia(`(min-width: ${ie}px)`).matches;return me&&(se=Object.assign(Object.assign({},se),_[ie])),me}),w(se)}function w(re){Object.entries(re).forEach(([se,ie])=>p[se]=ie)}const C=cdt(()=>{g(),E()},16);function E(){if(!m.value)return;const re=m.value.getBoundingClientRect();a.value=re.width/p.itemsToShow}function A(){v.value<=0||(h.value=Math.ceil((v.value-1)/2),n.value=idt({config:p,slidesCount:v.value}),i.value=odt({config:p,slidesCount:v.value}),p.wrapAround||(b.value=ZS({val:b.value,max:n.value,min:i.value})))}t.onMounted(()=>{t.nextTick(()=>E()),setTimeout(()=>E(),1e3),g(),G(),window.addEventListener("resize",C,{passive:!0}),s("init")}),t.onUnmounted(()=>{l&&clearTimeout(l),c&&clearInterval(c),window.removeEventListener("resize",C,{passive:!0})});let P=!1;const L={x:0,y:0},T={x:0,y:0},I=t.reactive({x:0,y:0}),M=t.ref(!1),S=t.ref(!1),z=()=>{M.value=!0},k=()=>{M.value=!1};function O(re){["INPUT","TEXTAREA","SELECT"].includes(re.target.tagName)||(P=re.type==="touchstart",P||re.preventDefault(),!(!P&&re.button!==0||Z.value)&&(L.x=P?re.touches[0].clientX:re.clientX,L.y=P?re.touches[0].clientY:re.clientY,document.addEventListener(P?"touchmove":"mousemove",N,!0),document.addEventListener(P?"touchend":"mouseup",j,!0)))}const N=ldt(re=>{S.value=!0,T.x=P?re.touches[0].clientX:re.clientX,T.y=P?re.touches[0].clientY:re.clientY;const se=T.x-L.x,ie=T.y-L.y;I.y=ie,I.x=se},p.throttle);function j(){const re=p.dir==="rtl"?-1:1,se=Math.sign(I.x)*.4,ie=Math.round(I.x/a.value+se)*re;if(ie&&!P){const me=ye=>{ye.stopPropagation(),window.removeEventListener("click",me,!0)};window.addEventListener("click",me,!0)}$(b.value-ie),I.x=0,I.y=0,S.value=!1,document.removeEventListener(P?"touchmove":"mousemove",N,!0),document.removeEventListener(P?"touchend":"mouseup",j,!0)}function G(){!p.autoplay||p.autoplay<=0||(c=setInterval(()=>{p.pauseAutoplayOnHover&&M.value||ne()},p.autoplay))}function H(){c&&(clearInterval(c),c=null),G()}const Z=t.ref(!1);function $(re){const se=p.wrapAround?re:ZS({val:re,max:n.value,min:i.value});b.value===se||Z.value||(s("slide-start",{slidingToIndex:re,currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!0,x.value=b.value,b.value=se,l=setTimeout(()=>{if(p.wrapAround){const ie=WS({val:se,max:n.value,min:0});ie!==b.value&&(b.value=ie,s("loop",{currentSlideIndex:b.value,slidingToIndex:re}))}s("update:modelValue",b.value),s("slide-end",{currentSlideIndex:b.value,prevSlideIndex:x.value,slidesCount:v.value}),Z.value=!1,H()},p.transition))}function ne(){$(b.value+p.itemsToScroll)}function q(){$(b.value-p.itemsToScroll)}const K={slideTo:$,next:ne,prev:q};t.provide("nav",K),t.provide("isSliding",Z);const ee=t.computed(()=>sdt({config:p,currentSlide:b.value,slidesCount:v.value}));t.provide("slidesToScroll",ee);const X=t.computed(()=>{const re=p.dir==="rtl"?-1:1,se=ee.value*a.value*re;return{transform:`translateX(${I.x-se}px)`,transition:`${Z.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${v.value*a.value}px`:"",width:"100%"}});function Q(){d(),g(),A(),E(),H()}Object.keys(yV).forEach(re=>{["modelValue"].includes(re)||t.watch(()=>e[re],Q)}),t.watch(()=>e.modelValue,re=>{re!==b.value&&$(Number(re))}),t.watch(v,A),s("before-init"),d();const ce={config:p,slidesCount:v,slideWidth:a,next:ne,prev:q,slideTo:$,currentSlide:b,maxSlide:n,minSlide:i,middleSlide:h};B({updateBreakpointsConfigs:g,updateSlidesData:A,updateSlideWidth:E,initDefaultConfigs:d,restartCarousel:Q,slideTo:$,next:ne,prev:q,nav:K,data:ce});const de=o.default||o.slides,he=o.addons,pe=t.reactive(ce);return()=>{const re=vV(de==null?void 0:de(pe)),se=(he==null?void 0:he(pe))||[];re.forEach((ve,we)=>ve.props.index=we);let ie=re;if(p.wrapAround){const ve=re.map((Se,Ce)=>t.cloneVNode(Se,{index:-re.length+Ce,isClone:!0,key:`clone-before-${Ce}`})),we=re.map((Se,Ce)=>t.cloneVNode(Se,{index:re.length+Ce,isClone:!0,key:`clone-after-${Ce}`}));ie=[...ve,...re,...we]}y.value=re,v.value=Math.max(re.length,1);const me=t.h("ol",{class:"carousel__track",style:X.value,onMousedownCapture:p.mouseDrag?O:null,onTouchstartPassiveCapture:p.touchDrag?O:null},ie),ye=t.h("div",{class:"carousel__viewport"},me);return t.h("section",{ref:m,class:{carousel:!0,"is-sliding":Z.value,"is-dragging":S.value,"is-hover":M.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:z,onMouseleave:k},[ye,se,t.h(ddt)])}}}),bV;(function(e){e.arrowUp="arrowUp",e.arrowDown="arrowDown",e.arrowRight="arrowRight",e.arrowLeft="arrowLeft"})(bV||(bV={}));var pdt=t.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(e,{slots:o}){const s=t.inject("config",t.reactive(Object.assign({},Xd))),B=t.inject("currentSlide",t.ref(0)),U=t.inject("slidesToScroll",t.ref(0)),m=t.inject("isSliding",t.ref(!1)),y=()=>e.index===B.value,a=()=>e.index===B.value-1,v=()=>e.index===B.value+1,p=()=>{const r=Math.floor(U.value),_=Math.ceil(U.value+s.itemsToShow-1);return e.index>=r&&e.index<=_};return()=>{var r;return t.h("li",{style:{width:`${100/s.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":e.isClone,"carousel__slide--visible":p(),"carousel__slide--active":y(),"carousel__slide--prev":a(),"carousel__slide--next":v(),"carousel__slide--sliding":m.value},"aria-hidden":!p()},(r=o.default)===null||r===void 0?void 0:r.call(o))}}});const fdt=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},mdt=e=>(t.pushScopeId("data-v-54620d25"),e=e(),t.popScopeId(),e),gdt={class:"gsc-carousel"},ydt={key:0},vdt=mdt(()=>t.createElementVNode("div",null,"no hay",-1)),bdt=[vdt],_dt={class:"gsc-carousel__2d__slides"},xdt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wdt=["fill"],kdt={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Sdt=["fill"],Cdt={class:"gsc-carousel__2d__navigation"},Tdt={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Adt=["stroke"],Edt={key:1,class:"gsc-carousel__2d__navigation__pagination"},Mdt=["onClick"],Idt={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pdt=["stroke"],Ldt={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:e=>["propName","value"].every(o=>o in e)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(e,{expose:o,emit:s}){const B=e;t.useCssVars(n=>({"2c72d674":e.slideLeftArrowBackgroundImage,"90a63f40":e.slidesArrowsLeftAndRight,"2627d097":e.slideRightArrowBackgroundImage,"1904d43f":e.marginTop,cfb58986:e.secondarySlidesOpacity}));const U=t.ref(null),m=t.ref({}),y=t.ref(0),a=t.ref(!1);t.watch(U,n=>{n&&a.value?(a.value=!1,v(B.items)):n&&n.slideTo&&n.slideTo(y.value)},{deep:!0}),t.watch(()=>B.currentItemIndex,n=>{y.value!==n&&b(n)}),t.watch(()=>B.defaultItemByIndex,n=>{y.value!==n&&b(n)}),t.watch(()=>B.items,n=>{U.value?v(n):a.value=!0},{immediate:!0});function v(n){n&&n.length&&U.value&&setTimeout(()=>{if(B.defaultItemByProp){const i=B.items.findIndex(c=>c[B.defaultItemByProp.propName]===B.defaultItemByProp.value);i!==-1?(y.value=i,m.value=n[i]):(y.value=0,m.value=n[0])}else y.value=B.defaultItemByIndex,m.value=n[B.defaultItemByIndex];U.value.slideTo&&U.value.slideTo(y.value),m.value&&y.value===0&&s("input",{selectedItem:m.value,selectedItemIndex:y.value})},500)}function p(){U.value&&U.value.next()}function r(){U.value&&U.value.prev()}function _(){U.value&&U.value.updateSlideWidth()}function b(n){U.value&&U.value.slideTo(n)}function x(n){U.value.slideTo(n)}function h(n){const i=n.slidingToIndex<0?B.items.length-1:n.slidingToIndex===B.items.length?0:n.slidingToIndex;y.value=i,m.value=B.items[i],s("update:currentItemIndex",i),s("input",{selectedItem:m.value,selectedItemIndex:y.value})}return o({prev:r,next:p,updateSlideWidth:_,slideTo:b}),(n,i)=>(t.openBlock(),t.createElementBlock("div",gdt,[B.is3d?(t.openBlock(),t.createElementBlock("div",ydt,bdt)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":e.isMainSlidePriority}])},[t.createElementVNode("div",_dt,[t.createVNode(t.unref(hdt),{ref_key:"carousel2d",ref:U,"items-to-show":e.itemsToShow,"wrap-around":e.wrapAround,onSlideStart:h},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createBlock(t.unref(pdt),{key:l},{default:t.withCtx(()=>[t.renderSlot(n.$slots,"default",{item:c},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[0]||(i[0]=c=>U.value.prev())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",xdt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:e.arrowsColor},null,8,wdt)]))],2)],4)):t.createCommentVNode("",!0),e.areSlidesArrowsVisible&&e.items.length>1?(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:t.normalizeStyle("max-width:"+e.arrowsMaxWidth+"!important"),onClick:i[1]||(i[1]=c=>p())},[t.createElementVNode("div",{class:t.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:e.areSlidesArrowsRounded}])},[(t.openBlock(),t.createElementBlock("svg",kdt,[t.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:e.arrowsColor},null,8,Sdt)]))],2)],4)):t.createCommentVNode("",!0),t.createElementVNode("div",Cdt,[e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:i[2]||(i[2]=c=>r())},[(t.openBlock(),t.createElementBlock("svg",Tdt,[t.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:B.arrowsColor},null,8,Adt)]))])):t.createCommentVNode("",!0),e.isPaginationVisible?(t.openBlock(),t.createElementBlock("div",Edt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.items,(c,l)=>(t.openBlock(),t.createElementBlock("div",{key:`i-${l}`,class:"gsc-carousel__2d__navigation__pagination__item",style:t.normalizeStyle({height:`${B.navigationHeight}px`,width:`${y.value===l?B.navigationActiveWidth:B.navigationActiveWidth/2}px`,borderRadius:`${B.navigationBorderRadius}px`,backgroundColor:`${y.value===l?B.navigationActiveColor:B.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:d=>x(l)},null,12,Mdt))),128))])):t.createCommentVNode("",!0),e.areNavigationArrowsVisible?(t.openBlock(),t.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:i[3]||(i[3]=c=>U.value.next())},[(t.openBlock(),t.createElementBlock("svg",Idt,[t.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:B.arrowsColor},null,8,Pdt)]))])):t.createCommentVNode("",!0)])],2))]))}},Bdt=fdt(Ldt,[["__scopeId","data-v-54620d25"]]),NQt="",_V={3:"Albanesa",4:"Argelina",6:"Andorrano",7:"Angoleña",8:"Anguillan",9:"Antiguan",10:"Argentina",11:"Armenia",12:"Arubeño",13:"Austríaca",14:"Austríaca",15:"Azerbaiyano",16:"Bahamas",17:"Bareini",18:"Bangladesí",19:"Barbadense",20:"Bielorrusa",21:"Belga",22:"Beliceña",23:"Beninesa",24:"Bermudeña",25:"Butanés",26:"Boliviana",27:"Bosnia",28:"Botsuano",29:"Brasileña",30:"Islas Vírgenes Británicas",31:"Bruneano",32:"Búlgara",33:"Burundés",34:"Burmesa",35:"Burundés",36:"Camboyana",37:"Camerunés",38:"Canadiense",39:"Caboverdiano",40:"Caimanés",41:"Centroafricana",42:"Chadiano",43:"Chilena",44:"China",45:"Isla de Navidad",46:"Cocos Island",47:"Colombiana",48:"Comorense",49:"Congoleña",50:"Cookiano",51:"Costarricense",52:"Marfileña",53:"Croata",54:"Cubana",55:"Chipriota",56:"Checa",57:"Danesa",58:"Djibouti",60:"Dominicana",61:"Timorense",62:"Ecuatoriana",63:"Egipcia",64:"Salvadoreña",65:"Inglesa",66:"Ecuatoguineano",67:"Eritreo",68:"Estoniana",69:"Etíope",70:"Islas Malvinas",71:"Feroés",72:"Fiyiano",73:"Finlandesa",74:"Francesa",75:"Guayana Francesa",76:"Francopolinecio",77:"Gabonesa",78:"Gambiana",79:"Georgiano",80:"Alemana",81:"Ghanesa",82:"Gibraltareño",221:"Británico",84:"Griega",85:"Groenlandés",86:"Granadino",87:"Guadeloupeño",89:"Guatemalteca",90:"Guineana",91:"Guyanés",92:"Haitiana",93:"Hondureña",94:"Hongkongese",95:"Húngaro",96:"Islandesa",97:"Indio",98:"Indonesia",99:"Iraní",100:"Iraquí",101:"Irlandesa",102:"Manés",103:"Israelí",104:"Italiana",105:"Jamaiquina",106:"Japonesa",107:"Jordana",108:"Kazaja",109:"Keniana",110:"Kiribatiano",111:"Coreana",112:"Surcoreana",113:"Kosovan",114:"Kuwaití",115:"Kirguisa",116:"Laosiano",117:"Letona",118:"Libanesa",119:"Basotho",120:"Liberiana",121:"Libia",122:"Liechtenstein",123:"Lituano",124:"Luxemburguesa",125:"Macaneso",126:"Macedonia",127:"Malgache",128:"Malaya",129:"Malaya",130:"Maldivo",131:"Mali",132:"Maltesa",133:"Marshallese",134:"Martiniqueña",135:"Mauritania",136:"Mauriciano",137:"Mahoran",138:"Mexicana",139:"Micronesio",140:"Moldava",141:"Monacan",142:"Mongol",143:"Montenegrina",144:"Montserratiano",145:"Marroqui",146:"Mozambiqueña",147:"Namibio",148:"Nauruan",149:"Nepalí",150:"Holandesa",151:"Neocaledonio",152:"Neozelandesa",153:"Nicaragüense",154:"Niueño",155:"Nigerina",156:"Nigeriana",157:"Noruega",158:"Normariano",159:"Omaní",160:"Palestina",161:"Palestina",162:"Palauan",163:"Panameña",164:"Papú",165:"Paraguaya",166:"Peruana",167:"Filipina",168:"Pitcairnés",169:"Polaca",170:"Portuguesa",171:"Puertorriqueña",172:"Catari",173:"Reunionés",174:"Rumana",175:"Rusa",176:"Ruandés",177:"Santa Elena",178:"Sancristobaleña",179:"Santa Lucía",180:"Miquelonnais",181:"Sanvicentina",182:"Samoano",183:"Sanmariense",184:"Santotomense",185:"Saudí",186:"Escocesa",187:"Senegalense",188:"Serbia",189:"Seychellense",190:"Sierraleonesa",191:"Singapurense",192:"Eslovena",193:"Eslovena",194:"Salomonense",195:"Somalí",196:"Sudafricana",197:"Surosetio",198:"Española",199:"Esrilanques",200:"Sudanés",201:"Surinamés",202:"Swazi",203:"Sueca",204:"Suiza",205:"Sirio",206:"Taiwanesa",207:"Tayiko",208:"Tanzano",209:"Tailandesa",210:"Togo",211:"Tongano",212:"Trinitaria",213:"Tunecina",214:"Turca",215:"Turkmena",216:"none",217:"Tuvaluano",218:"Ugandesa",219:"Ucraniana",220:"Emiratí",222:"Americana",223:"Uruguaya",224:"Uzbeka",225:"Vanuatuense",226:"Venezolana",227:"Vietnamita",228:"Islas Vírgenes",229:"Galesa",230:"Walisiano",231:"Saharaui",232:"Yemení",233:"Zambiana",234:"Zimbabuense",236:"Curazaleña",237:"San Martín",239:"Debutante"},FQt="",qS={components:{GSCCarousel:Bdt,GSCLeaders:Gut,GSCRowTable:iV,GSCTableHeader:QR,GSCExpandedInfo:gV},props:{isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},typeData:{type:Number,default:1},gameId:{type:Number,default:0},filtersProp:{type:[Object,String],default:()=>{}},game:{type:Object,default:()=>({})},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!1},filterTeam:{type:Number,default:0},timeLiveComparativeAvanced:{type:Number,default:6e4},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},seasonSelected:{type:Object,default:()=>({})},season:{type:Number,default:1772},type:{type:Number,default:0},borderRadius:{type:String,default:"8px"},borderWidth:{type:[String,Number],default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=jb(e);return{myDivRef:e,elementSize:o}},watch:{category:{async handler(){this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season)}},game:{immediate:!0,deep:!0,async handler(e){e&&(this.playersInfo={},this.teamInfo={},this.isloading=!0,this.formatFilterStats=[],await this.getCategoryStats(this.season),this.game.is_live&&(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)))}},typeData:{immediate:!0,async handler(e){await this.getCategoryStats(this.season),e===1&&this.game.is_live?(this.createIntervalTops(),this.$emit("intervalidtops",this.intervalIdtops)):clearInterval(this.intervalIdtops)}},filtersProp:{immediate:!1,deep:!0,async handler(e,o){e&&(JSON.stringify(e)!==JSON.stringify(o)||this.sonConjuntosDistintos(e.setNationalitiesIds,o.setNationalitiesIds))&&(this.isloading=!0,this.filterEmitAux=e,[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.filterEmitAux.typeZone=1:this.filterEmitAux.typeZone=2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux))}}},computed:{topData(){if(this.changeStateLoading(!0),Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var e={},o={},s=[],B=[],U=[];return this.formatFilterStats.map(m=>{e[m.team_id]?e[m.team_id].total=e[m.team_id].total+m.total:(e[m.team_id]={},e[m.team_id].total=m.total,e[m.team_id].id=this.teamInfo[m.team_id].id,e[m.team_id].name=this.teamInfo[m.team_id].name.replace(" Femenil",""),e[m.team_id].img=Af("https://golstatsimages.blob.core.windows.net/teams-80/"+m.team_id+".png",this.$store.getters.getProviderId),e[m.team_id].effectiveness=this.teamInfo[m.team_id].effectiveness,e[m.team_id].frecuency=this.teamInfo[m.team_id].frecuency,e[m.team_id].game_avg=this.teamInfo[m.team_id].game_avg,e[m.team_id].game_avg_last_season=this.teamInfo[m.team_id].game_avg_last_season,e[m.team_id].games_played_lastseason=this.teamInfo[m.team_id].games_played_lastseason,e[m.team_id].games_played=this.teamInfo[m.team_id].games_played,e[m.team_id].positiontable=this.teamInfo[m.team_id].positiontable,e[m.team_id].goals=this.teamInfo[m.team_id].goals,e[m.team_id].goalsrecived=this.teamInfo[m.team_id].goalsrecived,e[m.team_id].xg=this.teamInfo[m.team_id].xg),o[m.player_id]?m.player_id!=0&&m.player_id!=62117&&(o[m.player_id].total=o[m.player_id].total+m.total):m.player_id!=0&&m.player_id!=62117&&(o[m.player_id]={},o[m.player_id].total=m.total,m.player_id&&this.playersInfo[m.player_id]?(o[m.player_id].name=this.playersInfo[m.player_id].name,o[m.player_id].name_short=this.getnameshort(this.playersInfo[m.player_id].name),o[m.player_id].img=this.playersInfo[m.player_id].img,o[m.player_id].id=this.playersInfo[m.player_id].id,o[m.player_id].age=this.playersInfo[m.player_id].age,o[m.player_id].team=this.playersInfo[m.player_id].team,o[m.player_id].teamname=this.playersInfo[m.player_id].teamname,o[m.player_id].teamid=this.playersInfo[m.player_id].teamid,o[m.player_id].position=this.playersInfo[m.player_id].position,o[m.player_id].positionId=this.playersInfo[m.player_id].positionId,o[m.player_id].positionfull=this.playersInfo[m.player_id].positionfull,o[m.player_id].country=this.playersInfo[m.player_id].country,o[m.player_id].effectiveness=this.playersInfo[m.player_id].effectiveness,o[m.player_id].minutes=this.playersInfo[m.player_id].minutes_played,o[m.player_id].games=this.playersInfo[m.player_id].games_played,o[m.player_id].date=this.playersInfo[m.player_id].date,o[m.player_id].nationality=this.playersInfo[m.player_id].nationality,o[m.player_id].player_country_flag=this.playersInfo[m.player_id].player_country_flag,o[m.player_id].categoryName=this.categoryName):(o[m.player_id].id=m.player_id,o[m.player_id].name=m.player_id,o[m.player_id].img="SIN IMAGEN",o[m.player_id].age="",o[m.player_id].teamname="",o[m.player_id].team="",o[m.player_id].teamid=0,o[m.player_id].position="",o[m.player_id].positionId=0,o[m.player_id].positionfull="",o[m.player_id].country="",o[m.player_id].effectiveness="",o[m.player_id].minutes="",o[m.player_id].games="",o[m.player_id].date="00-00-0000",o[m.player_id].nationality="",o[m.player_id].player_country_flag="",o[m.player_id].categoryName=""))}),s.push(...Object.values(e)),B.push(...Object.values(o)),s=this.sortAndSlice(Object.values(e),60),B=B.sort(this.compareObjectsMinutes).slice(0,60),B=B.map((m,y)=>(m.top=y<9?"0"+(y+1):""+(y+1),m)),s=s.map((m,y)=>(m.top=y<9?"0"+(y+1):""+(y+1),m)),this.filterTeam!==0&&!this.isTeam&&(U=B.filter(m=>m.teamid===this.filterTeam)),this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(s):this.filterTeam!=0?this.formatArrayPaginate(U):this.formatArrayPaginate(B)}else return this.changeStateLoading(!1),[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/live/tops",videoCategoriesMap:{1:[12,55,"35_r","54_r"],2:[2,20],3:[485,486,487,488],4:[10,324],5:[27,323],6:[510],7:[537,540,544,547],8:[328],9:[231,238,280,287,294,406],10:[13,25],11:[98,101,104,105,109,112,115,116],12:[4],13:[88],14:[5],15:[34],16:[23],17:[11],18:[17,50],19:[18,49],20:[14,52],21:[15,53],22:[39],23:[31,32]},urlPrematch:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory/",data_headers:["team_id","player_id","playing_as","match_result","section","total","origen","destino"],token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",mapPlayers:new Map,setNationalityIds:new Set,arrayAgeRange:[0,0],arePlaysEmpty:!1,teamInfo:{},formatFilterStats:[],formatStats:[],playersInfo:{},isloading:!0,statsData:{},updateSlider:0,intervalIdtops:null,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],zone:[],typeZone:[]},filtersValues:{type:1,sections:[1,2,3,4,5,6],matchResult:[1,2,3],playingAs:[1,2],zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],typeZone:1,arrayAgeRange:[1,60],setNationalitiesIds:[],setPositionsIds:[1,2,3,4,5,6,7,8,9]},expand:!1,playerexpand:0,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],categories:[{id:1,name:"Goles"}]}),async created(){await this.fetchVideoCategories()},methods:{getImageUrl:Af,changeStateLoading(e){this.isloading=e},compareObjectsMinutes(e,o){return e.total>o.total?-1:e.total<o.total?1:e.minutes<o.minutes?-1:e.minutes>o.minutes?1:0},sonConjuntosDistintos(e,o){const s=Array.from(e),B=Array.from(o);if(s.length!==B.length)return!0;for(let U=0;U<s.length;U++)if(!o.has(s[U]))return!0;return!1},getnameshort(e){if(!e)return"";var o=e.split(",");if(o[1]===void 0){var s=e.trim().split(/\s+/).filter(Boolean);return s.length>1?s[0].charAt(0)+". "+s[s.length-1]:e.trim()}var B=o[0].split(" "),U=o[1].trim().split(" "),m="";B.length==2||B.length==1?B[0].length<4?m=B[0]+" "+B[1]:m=B[0]:B.length==3?m=B[0]+" "+B[1]:B.length==4&&(m=B[1]+" "+B[2]+" "+B[3]);var y=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";return m=m.replace(",",""),y+". "+m},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(e,o){return e.total<o.total?-1:e.total>o.total?1:e.name<o.name?-1:e.name>o.name?1:0},sortAndSlice(e,o){return e.sort((s,B)=>(s.name<B.name?1:-1)&&(s.total<B.total?1:-1)).slice(0,o)},getCategoryName(e){let o="";for(let s=0;s<this.categories.length;s++)e==this.categories[s].id&&(o=this.categories[s].name);return o},translateTopCategories(e){return this.videoCategoriesMap[e]||[]},async fetchVideoCategories(){try{const e=this.$store.getters.getProviderId||1,{data:o}=await pu.get(`https://dtcf4s9tapfr0.cloudfront.net/${e}/tops/translate_top_categories.json`);o&&typeof o=="object"&&(this.videoCategoriesMap=o)}catch{}},getCoordinatePointPerCategory(e){return{1:2,2:3,3:1,4:2,5:1,6:2,7:2,8:1,9:1,10:2,11:2,12:1,13:1,14:1,15:1,16:1,17:1,18:3,19:3,20:3,21:3,22:1,23:1}[e]||0},emitEventMedia(e,o,s){let B=this.filtersValues.matchResult,U=this.filtersValues.playingAs,m=this.filtersValues.sections,y=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,U=this.filterEmitAux.playingAs,m=this.filterEmitAux.sections,y=this.filterEmitAux.zone);const v=1,p=2,r=3,_=this.isTeam?r:p,b=e.player_id;let x=[],h=this.isTeam?e.id:this.filterTeam;b?this.isTeam?h=b:(x=[b],a=a.filter(i=>!i.toString().includes("_r"))):this.isTeam?h=e.id:(x=[e.id],a=a.filter(i=>!i.toString().includes("_r")));const n={auxwidget:!!(this.canPlayVideos||this.game.awayTeam.team_id==this.teamWidget&&this.typeData!=1),seasonId:this.game.is_live==1?this.season:this.game.regularSeasonId,isFeaturedPlayers:!1,mainSectionType:v,playListType:_,gameIds:null,playerIds:x,goalkeeperIds:[],categoryIds:this.translateTopCategories(o),teamId:h||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:U,timeSections:m,fieldSections:y,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",n)},emitEventMediaFullTable(e,o,s){let B=this.filtersValues.matchResult,U=this.filtersValues.playingAs,m=this.filtersValues.sections,y=this.filtersValues.zone,a=this.translateTopCategories(o);Object.keys(this.filterEmitAux).length>0&&(B=this.filterEmitAux.matchResult,U=this.filterEmitAux.playingAs,m=this.filterEmitAux.sections,y=this.filterEmitAux.zone);const v=1,p=2,r=3,_=this.isTeam?r:p;let b=[],x=this.isTeam?e.id:this.filterTeam;this.isTeam?x=e.id:(b=[e.id],a=a.filter(n=>!n.toString().includes("_r")));const h={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:v,playListType:_,gameIds:null,playerIds:b,goalkeeperIds:[],categoryIds:a,teamId:x||0,matchResult:B,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:s,playingAs:U,timeSections:m,fieldSections:y,coordinatePoint:this.getCoordinatePointPerCategory(o)}};this.$emit("setopenmedia",h)},replaceImgPlayer(e){return e.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(e){var o=e.split(","),s=o[0].split(" "),B=o[1].trim().split(" "),U="";s.length==2||s.length==1?s[0].length<4?U=s[0]+" "+s[1]:U=s[0]:s.length==3?U=s[0]+" "+s[1]:s.length==4&&(U=s[1]+" "+s[2]+" "+s[3]);var m=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";U=U.replace(",","");var y=m+". "+U;return y},clickMore(e){this.$emit("more",{category:e,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(e,o){this.$emit("clickprofile",{id:e,teamId:o,isTeam:this.isTeam})},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async getCategoryStats(e){var o,s;this.mapPlayers=new Map;try{if(!e)return;let B=[],U={},m={},y=this.season;(s=(o=this.seasonSelected)==null?void 0:o.related_seasons)!=null&&s.some(_=>_.id===this.season)&&(y=this.seasonSelected.id),this.arePlaysEmpty=!1;const a=pu.create({headers:{Authorization:`${this.token}`}});this.isloading=!0;const v=this.$store.getters.getProviderId,p=this.$store.getters.getIsDevApis;let r={};if(this.typeData==1?this.isWidget&&this.teamWidget!=0?r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)+"?t="+this.teamWidget):r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)):this.game.game_status===1?this.isWidget&&this.teamWidget!=0?r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)+"?acc=1&t="+this.teamWidget):r=await a.get(uu(this.url+"/"+this.gameId+"/"+this.category,v,p)+"?acc=1"):this.isWidget&&this.teamWidget!=0?r=await a.get(uu(this.urlPrematch+y+"/"+this.category,v,p)+"?t="+this.teamWidget):r=await a.get(uu(this.urlPrematch+y+"/"+this.category,v,p)+"?t="+this.game.homeTeam.team_id+"&t="+this.game.awayTeam.team_id),r&&r.data&&r.data.data&&r.data.data.length>0){B=r.data.data.map(b=>this.formatStatsData(b)),r.data.teams.forEach(b=>{U[b[0]]={},U[b[0]].id=b[0],U[b[0]].name=b[1],U[b[0]].abrv=b[2],U[b[0]].img=b[3],U[b[0]].effectiveness=b[4],U[b[0]].games_played=b[5],U[b[0]].games_played_lastseason=b[6],U[b[0]].positiontable=b[7],U[b[0]].goals=b[8],U[b[0]].goalsrecived=b[9],U[b[0]].xg=b[10],U[b[0]].frecuency=b[11],U[b[0]].game_avg=b[12],U[b[0]].game_avg_last_season=b[13]});const _=new Set;r.data.players.forEach(b=>{const x=this.getObjectPlayer(b);this.mapPlayers.set(x.numberId,x);const h=x.numberAge,n=x.teamName.length>0?x.teamName[0].acronym:"",i=x.teamName.length>0?U[x.teamName[0].team_id].name:"",c=x.teamName.length>0?x.teamName[0].team_id:"",l=this.positions[x.numberPositionId-1].fullname,d=this.positions[x.numberPositionId-1].name,g=x.countryId.length>0?x.countryId[0].nationality_id:"",w=x.effectiveness,C=x.min,E=x.games,A=x.date;x.arrayNationalities.forEach(P=>{_.add(P.numberId)}),m[b[0]]={id:b[0],name:b[1],img:b[2],age:h,team:n,teamname:i,teamid:c,position:l,positionfull:d,effectiveness:w,country:g,games_played:E,minutes_played:C,date:A,nationality:x.stringNationalityName,player_country_flag:x.player_country_flag,positionId:x.numberPositionId}}),this.setNationalityIds=_,this.arrayAgeRange=[r.data.min_age,r.data.max_age]}else this.arePlaysEmpty=!0;this.teamInfo=U,this.playersInfo=m,this.formatStats=B,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=r}catch(B){return Promise.reject(B)}},filterRecords(e){return this.formatStats.length>0?this.formatStats.filter(o=>{const s=e.playingAs.includes(o.playing_as),B=e.matchResult.includes(o.match_result),U=e.sections.includes(o.section),m=e.typeZone===1&&e.zone.includes(o.origen)||e.typeZone===2&&e.zone.includes(o.destino);if(e.setPositionsIds&&e.setNationalitiesIds&&e.arrayAgeRange&&e.setYear&&!this.isTeam){const y=this.mapPlayers.get(o.player_id);if(!y)return!1;if(e.booleanAreNationalTeamsVisible){if(e.setAvailableNationalTeamsPlayersIds.size>0&&!e.setAvailableNationalTeamsPlayersIds.has(o.player_id))return!1}else{let a=!1;for(const v of y.arrayNationalitiesIds)if(e.setNationalitiesIds.has(v)){a=!0;break}if(!a)return!1}if(y.numberAge<e.arrayAgeRange[0]||y.numberAge>e.arrayAgeRange[1]||y.date<e.setYear||!e.setPositionsIds.includes(y.numberPositionId))return!1}return(e.playingAs.length===0||s)&&(e.matchResult.length===0||B)&&(e.sections.length===0||U)&&(e.zone.length===0||m)}):[]},updateSliderF(){this.updateSlider+=1},formatStatsData(e){const o={};return e[1]===0&&(e[2]===1||e[2]===2)&&(e[2]=3-e[2]),e[1]===0&&(e[3]===1||e[3]===2)&&(e[3]=3-e[3]),this.data_headers.forEach((s,B)=>{o[s]=e[B]}),o},getObjectPlayer(e){const o=[],s=e[7].map(U=>(o.push(U.nationality_id),{stringName:U.nationality,numberId:U.nationality_id})),B=e[9].split("-");return{numberId:e[0]!==void 0?e[0]:"",stringFullName:e[1]!==void 0?e[1]:"",stringImageUrl:e[2]!==void 0?e[2]:"",numberTeamId:e[3]!==void 0?e[3]:"",player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+e[3]+".jpg",stringNationalityName:_V[e[3]],numberAge:e[5]!==void 0?e[5]:"",numberPositionId:e[6]!==void 0?e[6]:"",countryId:e[7]!==void 0?e[7]:"",teamName:e[10]!==void 0?e[10]:"",effectiveness:e[11]!==void 0?e[11]:"",min:e[13]!==void 0?e[13]:"",games:e[12]!==void 0?e[12]:"",date:B.length>0?Number(B[0]):0,arrayNationalities:s,category:this.categoryName,arrayNationalitiesIds:o}},formatArrayPaginate(e){const o=Math.ceil(e.length/this.numRows);return Array.from({length:o},(s,B)=>{const U=B*this.numRows,m=U+this.numRows;return e.slice(U,m)})},createIntervalTops(){this.intervalIdtops=setInterval(async()=>{await this.getCategoryStats(this.season)},this.timeLiveComparativeAvanced)},clearTopsInterval(){this.intervalIdtops&&(clearInterval(this.intervalIdtops),this.intervalIdtops=null)}},beforeUnmount(){this.clearTopsInterval()}},xV=()=>{t.useCssVars(e=>({"7945af00":e.borderRadius,"245d87d0":e.borderWidth,"268b8496":e.borderColor}))},wV=qS.setup;qS.setup=wV?(e,o)=>(xV(),wV(e,o)):xV;const zdt={ref:"myDivRef"},Odt={class:"btnViewFullList"},Ddt={class:"text"},Ndt={class:"groupsLeague"},Fdt={class:"row-table-carrousel"},Rdt={key:1,class:"container-no-search-result"},Vdt={key:0,class:"overlay-loading-top"};function jdt(e,o,s,B,U,m){const y=t.resolveComponent("GSCLeaders"),a=t.resolveComponent("GSCRowTable"),v=t.resolveComponent("GSCExpandedInfo"),p=t.resolveComponent("GSCCarousel"),r=t.resolveComponent("GSCTableHeader");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(s.type==0?"gsc-top":"gsc-top-full")},[t.createElementVNode("div",zdt,[t.createElementVNode("div",Odt,[t.createElementVNode("div",Ddt,[t.createElementVNode("div",Ndt,t.toDisplayString(s.categoryName),1)])]),s.type==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[m.topData.length>0?(t.openBlock(),t.createBlock(p,{key:0,items:m.topData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:m.changeCarrousel},{default:t.withCtx(({item:_})=>[t.createElementVNode("div",Fdt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(b,x)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:x},[b.top==1?(t.openBlock(),t.createBlock(y,{key:0,onMediadata:o[0]||(o[0]=h=>m.emitEventMedia(h,s.category,s.categoryName)),type:s.typeTable,"type-data":s.typeData,game:s.game,"team-widget":s.teamWidget,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==b.id&&e.expand,ref_for:!0,ref:"GSCLeaders",data:s.typeTable==0?{top:"01",photo:b.img,logo:m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+b.teamid+".png",e.$store.getters.getProviderId),name:b.name,player_short:b.name_short,player_id:b.id,categoryId:s.category,total:b.total}:{top:"01",logo:b.img,total:b.total,name_team:b.name,player_id:b.id},"category-name":s.categoryName,buttonMaxWidth:s.typeTable!=0?B.elementSize.width>360?"210px":"130px":B.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"11px",onExpand:m.clickexpand,onMore:m.morestats},null,8,["type","type-data","game","team-widget","can-play-videos","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(t.openBlock(),t.createBlock(a,{key:1,"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"is-expanded":e.playerexpand==b.id&&e.expand,onMediadata:o[1]||(o[1]=h=>m.emitEventMedia(h,s.category,s.categoryName)),data:s.typeTable==0?{position:b.top,player_name:b.name,player_short:b.name_short,player_photo:b.img,total:b.total,id:b.id,player_age:b.age,team_abrev:b.team,team_logo:m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+b.teamid+".png",e.$store.getters.getProviderId),player_position:b.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+b.country+".jpg",player_games:b.minutes,player_min:b.games,league_name:"          Liga MX          "}:{position:b.top,team_logo:b.img,team_abrev:b.name,frequency:b.frecuency,promthistournament:b.game_avg,promlasttournament:b.game_avg_last_season,teams_games:"-",category:s.category,total:b.total,id:b.id},height:"71px","can-play-videos":s.canPlayVideos,background:x%2===0?s.backgroundEven:s.backgroundOdd,onExpand:m.clickexpand},null,8,["type-data","team-widget","game","type","type-view","is-expanded","data","can-play-videos","background","onExpand"])),e.expand&&e.playerexpand==b.id?(t.openBlock(),t.createBlock(v,{key:2,type:s.typeTable,"is-live":s.game.is_live,"view-effectiveness":b.positionId!==1,data:s.typeTable==0?{teams:b.teamname,age:b.age,dataofbirth:b.date,nationality:b.nationality,countryFlag:b.player_country_flag,position:b.position,games:b.games,min:b.minutes,goals:b.total,effectiveness:b.effectiveness,category:s.categoryName,id:b.id}:{position:b.positiontable,goals:b.goals,goals_received:b.goalsrecived,games_played:b.games_played,category:s.categoryName,effectiveness:b.effectiveness,xg:b.xg,total:b.total,attendance:"-",id:b.id},onViewprofile:h=>m.viewprofile(h,b.teamid),background:x%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(t.openBlock(),t.createElementBlock("div",Rdt,[e.isloading?(t.openBlock(),t.createElementBlock("div",Vdt,o[3]||(o[3]=[t.createElementVNode("div",{class:"overlay-loading-top__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)]))):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[o[4]||(o[4]=t.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),o[5]||(o[5]=t.createElementVNode("div",{class:"container-no-search-result-subtitle"},[t.createTextVNode(" No existen resultados para este tipo de"),t.createElementVNode("br"),t.createTextVNode(" jugada, considerando el torneo y otros"),t.createElementVNode("br"),t.createTextVNode(" filtros que has seleccionado. ")],-1))],64))]))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(r,{background:"#183143",type:s.typeTable},null,8,["type"]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.topData,(_,b)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:b},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(_,(x,h)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:h},[t.createVNode(a,{"type-data":s.typeData,"team-widget":s.teamWidget,game:s.game,type:s.typeTable,"type-view":s.type,"can-play-videos":s.canPlayVideos,"is-expanded":e.playerexpand==x.id&&e.expand,onMediadata:o[2]||(o[2]=n=>m.emitEventMediaFullTable(n,s.category,s.categoryName)),data:s.typeTable==0?{position:x.top,player_name:x.name,player_short:x.name_short,player_photo:x.img,total:x.total,id:x.id,player_age:x.age,team_abrev:x.team,team_logo:m.getImageUrl("https://golstatsimages.blob.core.windows.net/teams-80/"+x.teamid+".png",e.$store.getters.getProviderId),player_position:x.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+x.country+".jpg",player_games:x.games,player_min:x.minutes,league_name:"          Liga MX          "}:{position:x.positiontable,team_logo:x.img,team_abrev:x.name,frequency:x.frecuency,promthistournament:x.game_avg,promlasttournament:x.game_avg_last_season,category:s.category,team_games:x.games_played,total:x.total,id:x.id},height:"71px",background:((b+1)*5+h)%2===0?s.backgroundOdd:s.backgroundEven,onExpand:m.clickexpand},null,8,["type-data","team-widget","game","type","type-view","can-play-videos","is-expanded","data","background","onExpand"]),e.expand&&e.playerexpand==x.id?(t.openBlock(),t.createBlock(v,{key:0,type:s.typeTable,"is-live":s.game.is_live,additionalClass:"fullTable","view-effectiveness":x.positionId!==1,data:s.typeTable==0?{teams:x.teamname,age:x.age,dataofbirth:x.date,nationality:x.nationality,countryFlag:x.player_country_flag,position:x.positionfull,positionfull:x.positionfull,games:x.games,min:x.minutes,goals:x.total,effectiveness:x.effectiveness,category:m.getCategoryName(s.category),id:x.id}:{position:x.positiontable,goals:x.goals,goals_received:x.goalsrecived,games_played:x.games_played,category:s.categoryName,effectiveness:x.effectiveness,xg:x.xg,total:x.total,category:m.getCategoryName(s.category),attendance:"-",id:x.id},onViewprofile:n=>m.viewprofile(n,x.teamid),background:h%2===0?s.backgroundEven:s.backgroundOdd},null,8,["type","is-live","view-effectiveness","data","onViewprofile","background"])):t.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const Udt=Ki(qS,[["render",jdt],["__scopeId","data-v-ef09809c"]]),Gdt=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},Hdt={props:{id:Number,textValue:String,icon:String,numFilter:Number,iconVisible:{type:Boolean,default:!0},activeClickLabel:{type:Boolean,default:!1},height:{type:String,default:"35px"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderColor:String,backgroundColor:{type:String,default:"#23303B"},fontSize:{type:String,default:"13px"},fontColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"Poppins-Regular"},iconSize:{type:String,default:"20px"}},computed:{customStyle(){return{height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,cursor:this.cursorType,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customIcon(){return{width:this.iconSize}}},methods:{btnLabel(){this.$emit("clickLabel",this.id)},btnClose(){this.$emit("clickClose",this.id)}}},Zdt=["src"],Wdt=["src"];function qdt(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",null,[s.activeClickLabel?(t.openBlock(),t.createElementBlock("div",{key:0,style:t.normalizeStyle(m.customStyle),class:"gsc-label",onClick:o[0]||(o[0]=(...y)=>m.btnLabel&&m.btnLabel(...y))},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,style:t.normalizeStyle(m.customIcon),class:"icon",src:s.icon},null,12,Zdt)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock("div",{key:1,class:"gsc-label",style:t.normalizeStyle(m.customStyle)},[t.createTextVNode(t.toDisplayString(s.numFilter)+" "+t.toDisplayString(s.textValue)+" ",1),s.iconVisible?(t.openBlock(),t.createElementBlock("img",{key:0,onClick:o[1]||(o[1]=(...y)=>m.btnClose&&m.btnClose(...y)),style:t.normalizeStyle(m.customIcon),class:"icon",src:s.icon},null,12,Wdt)):t.createCommentVNode("",!0)],4))])}const Jdt=Gdt(Hdt,[["render",qdt],["__scopeId","data-v-42ff544a"]]);function Ydt(e){const o=t.ref({width:0,height:0});function s(){const B=e.value.getBoundingClientRect();o.value.width=B.width,o.value.height=B.height}return t.onMounted(()=>{s(),window.addEventListener("resize",s)}),t.onUnmounted(()=>{window.removeEventListener("resize",s)}),{elementSize:o}}const Xdt=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},JS={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let e="";return this.arrowsPosition=="absolute"?e="leftAbsolute":e="leftRelative",this.arrowsScrollHide?this.showLeftArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e},hideShowRightArrow(){let e="";return this.arrowsPosition=="absolute"?e="rightAbsolute":e="rightRelative",this.arrowsScrollHide?this.showRightArrow?e+=" showArrowSlide":e+=" hideArrowSlide":e+=" showArrowSlide",e}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let e=0;this.arrowsPosition=="relative"?e=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:e=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,e>0&&(this.$refs.content.scrollLeft==e?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let e;clearTimeout(e),e=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var e=this.$el.clientWidth,o=this.$refs.content.scrollWidth;o>0&&e>0&&(o>e?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},kV=()=>{t.useCssVars(e=>({"42d3dba6":e.backgroundColor,"4de5d2cf":e.height,"67bafa7b":e.arrowsPosition,"61e1032e":e.arrowsPadding+"px","79a4ac00":e.arrowsBackground,"6b8355c6":e.arrowsHeight*2+"px","29a58368":e.arrowsWidth*2+"px","3622fa64":e.arrowsRadius,"1ba101fe":e.arrowsBorder,"0bafb5e6":e.arrowsMargin+"px","423a44b8":e.arrowsContainerBgL,"423a44be":e.arrowsContainerBgR,"10b117ee":e.scrollColor}))},SV=JS.setup;JS.setup=SV?(e,o)=>(kV(),SV(e,o)):kV;const $dt={ref:"gscScrollableContainer",class:"scrollable-container"},Kdt={class:"scrollable-arrows"},Qdt=["width","height","viewBox"],eht=["stroke"],tht={class:"scrollable-wrapper"},aht={class:"scrollable-arrows"},rht=["width","height","viewBox"],nht=["stroke"];function iht(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",$dt,[s.arrows?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["arrows-container",m.hideShowLeftArrow]),onClick:o[0]||(o[0]=(...y)=>m.scrollLeft&&m.scrollLeft(...y))},[t.createElementVNode("div",Kdt,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:m.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:s.arrowsColor},null,8,eht)],8,Qdt))])],2)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:o[1]||(o[1]=(...y)=>m.getScroll&&m.getScroll(...y))},[t.createElementVNode("div",tht,[t.renderSlot(e.$slots,"default",{},void 0,!0)])],544),s.arrows?(t.openBlock(),t.createElementBlock("div",{key:1,id:"arrows-container-right",class:t.normalizeClass(["arrows-container",m.hideShowRightArrow]),onClick:o[2]||(o[2]=(...y)=>m.scrollRight&&m.scrollRight(...y))},[t.createElementVNode("div",aht,[(t.openBlock(),t.createElementBlock("svg",{width:s.arrowsWidth,height:s.arrowsHeight,viewBox:m.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[t.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:s.arrowsColor},null,8,nht)],8,rht))])],2)):t.createCommentVNode("",!0)],512)}const oht=Xdt(JS,[["render",iht],["__scopeId","data-v-b548a08d"]]),sht=(e,o)=>{const s=e.__vccOpts||e;for(const[B,U]of o)s[B]=U;return s},YS={components:{GSCSlider:oht},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const e=t.ref("myDivRef"),{elementSize:o}=Ydt(e);return{myDivRef:e,elementSize:o}},methods:{clickEmitEvent(e){this.$emit("input",e)},customGrid(e){var o={};return e.width>768?o={fontSize:"16px"}:e.width>480?o={fontSize:"14px"}:o={fontSize:"12px"},o}}},CV=()=>{t.useCssVars(e=>({cff4a118:e.fontSize,"42aab7f6":e.borderWidth,d29bcbd2:e.fontFamily,df6c5a9c:e.background,"09b32862":e.borderRadius,"8c0d6daa":e.borderWidthContainer,e8a86fa4:e.borderColorContainer,"179494da":e.colorOptionActive,cea5647c:e.width}))},TV=YS.setup;YS.setup=TV?(e,o)=>(CV(),TV(e,o)):CV;const lht={ref:"myDivRef"},cht={key:0,class:"gs-switch-container"},uht=["onClick"],dht={key:1,class:"gs-switch-container-type"},hht=["onClick"],pht={key:2,class:"gs-switch-container-carousel"},fht=["onClick"];function mht(e,o,s,B,U,m){const y=t.resolveComponent("GSCSlider");return t.openBlock(),t.createElementBlock("div",lht,[s.type==0?(t.openBlock(),t.createElementBlock("div",cht,[t.createElementVNode("div",{class:"gs-switch-container__control",style:t.normalizeStyle([m.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:p=>(s.selectedOption=a,m.clickEmitEvent(a))},t.toDisplayString(a),13,uht))),128))],4),t.renderSlot(e.$slots,s.selectedOption,{},void 0,!0)])):t.createCommentVNode("",!0),s.type==1?(t.openBlock(),t.createElementBlock("div",dht,[t.createElementVNode("div",{class:"gs-switch-container-type__control",style:t.normalizeStyle([m.customGrid(B.elementSize)])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{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:v,onClick:p=>(s.selectedOption=a,m.clickEmitEvent(a))},t.toDisplayString(a),13,hht))),128))],4)])):t.createCommentVNode("",!0),s.type==2?(t.openBlock(),t.createElementBlock("div",pht,[t.createVNode(y,{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:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.buttons,(a,v)=>(t.openBlock(),t.createElementBlock("div",{class:"button-option-multi",style:t.normalizeStyle([{height:s.height},s.selectedOption==a?{borderColor:s.colorOptionActive,color:s.colorFont+"!important",background:s.backgroundOptionActive}:{borderColor:s.colorOptionDisable,color:"grey !important"}]),key:v,onClick:p=>(s.selectedOption=a,m.clickEmitEvent(a))},t.toDisplayString(a),13,fht))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):t.createCommentVNode("",!0)],512)}const XS=sht(YS,[["render",mht],["__scopeId","data-v-8a86dfaf"]]),RQt="",VQt="";function ght(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const jQt="",yht={comfiltersContainer:"_comfiltersContainer_xl2as_1",comfiltersContainer1232:"_comfiltersContainer1232_xl2as_1",closeFiltersPc:"_closeFiltersPc_xl2as_1",comtextleyemdmultipleleagues:"_comtextleyemdmultipleleagues_xl2as_1",comtextleyemdmultipleleagues380:"_comtextleyemdmultipleleagues380_xl2as_1",comfiltersContainer760:"_comfiltersContainer760_xl2as_1",comfiltersContainer460:"_comfiltersContainer460_xl2as_1",comcontainerSection:"_comcontainerSection_xl2as_1",comcontainerSection1232:"_comcontainerSection1232_xl2as_1",comcontainerSection960:"_comcontainerSection960_xl2as_1",comcontainerSection320:"_comcontainerSection320_xl2as_1",comcontainerSection350:"_comcontainerSection350_xl2as_1",comtemplateLosMejores1:"_comtemplateLosMejores1_xl2as_1",comtemplateLosMejores11232:"_comtemplateLosMejores11232_xl2as_1",comtemplateLosMejores1960:"_comtemplateLosMejores1960_xl2as_1",comtemplateLosMejores1420:"_comtemplateLosMejores1420_xl2as_1",comtemplateLosMejores1320:"_comtemplateLosMejores1320_xl2as_1",comtemplateLosMejores1540:"_comtemplateLosMejores1540_xl2as_1",comtemplateLosMejores1350:"_comtemplateLosMejores1350_xl2as_1",comtopFiltersParent:"_comtopFiltersParent_xl2as_1",comtopFiltersParent1232:"_comtopFiltersParent1232_xl2as_1",comtopFiltersParent960:"_comtopFiltersParent960_xl2as_1",comtopFiltersParent460:"_comtopFiltersParent460_xl2as_1",comtopFiltersParent420:"_comtopFiltersParent420_xl2as_1",comcontainerTheBest:"_comcontainerTheBest_xl2as_1",comcontainerTheBest1232:"_comcontainerTheBest1232_xl2as_1",comcontainerTheBest960:"_comcontainerTheBest960_xl2as_1",comcontainerTheBest320:"_comcontainerTheBest320_xl2as_1",comtitleSection:"_comtitleSection_xl2as_1",comtitleSection540:"_comtitleSection540_xl2as_1",comcontainerTables:"_comcontainerTables_xl2as_1",comcontainerTables960:"_comcontainerTables960_xl2as_1",comcontainerTables760:"_comcontainerTables760_xl2as_1",comcontainerTables320:"_comcontainerTables320_xl2as_1",comtoniKroosWrapper:"_comtoniKroosWrapper_xl2as_1",comtoniKroosWrapper1080:"_comtoniKroosWrapper1080_xl2as_1",comtoniKroosWrapper975:"_comtoniKroosWrapper975_xl2as_1",comtoniKroosWrapper760:"_comtoniKroosWrapper760_xl2as_1",comtoniKroosWrapper420:"_comtoniKroosWrapper420_xl2as_1",comtoniKroosWrapper320:"_comtoniKroosWrapper320_xl2as_1",frameChild:"_frameChild_xl2as_1",filtros:"_filtros_xl2as_1",groupParent:"_groupParent_xl2as_1",shapeIcon:"_shapeIcon_xl2as_1",btnFilters:"_btnFilters_xl2as_1",btnFiltersPC:"_btnFiltersPC_xl2as_1",comquitarFiltros:"_comquitarFiltros_xl2as_1",comquitarFiltros730:"_comquitarFiltros730_xl2as_1",comquitarFiltros480:"_comquitarFiltros480_xl2as_1",comquitarFiltros380:"_comquitarFiltros380_xl2as_1",btnCloseFilters:"_btnCloseFilters_xl2as_1",commejoresJugadores:"_commejoresJugadores_xl2as_1",commejoresJugadores730:"_commejoresJugadores730_xl2as_1",commejoresJugadores480:"_commejoresJugadores480_xl2as_1",mejoresJugadoresSM:"_mejoresJugadoresSM_xl2as_1",toniKroos:"_toniKroos_xl2as_1",teamBar:"_teamBar_xl2as_1",commenuSection:"_commenuSection_xl2as_1",commenuSection960:"_commenuSection960_xl2as_1",comcontainerMenu:"_comcontainerMenu_xl2as_1",comcontainerMenu760:"_comcontainerMenu760_xl2as_1",containerFilters:"_containerFilters_xl2as_1",teamBarParent:"_teamBarParent_xl2as_1",comtopFilters:"_comtopFilters_xl2as_1",comtopFilters1232:"_comtopFilters1232_xl2as_1",comtopFilters420:"_comtopFilters420_xl2as_1",comtopFilters460:"_comtopFilters460_xl2as_1",comlosMejores:"_comlosMejores_xl2as_1",comlosMejores380:"_comlosMejores380_xl2as_1",comlosMejores530:"_comlosMejores530_xl2as_1",comlosMejores730:"_comlosMejores730_xl2as_1",commenuSectionHeader:"_commenuSectionHeader_xl2as_1",commenuSectionHeader1232:"_commenuSectionHeader1232_xl2as_1",commenuSectionHeader960:"_commenuSectionHeader960_xl2as_1",commenuSectionHeader730:"_commenuSectionHeader730_xl2as_1",comdropdown:"_comdropdown_xl2as_1",comdropdown730:"_comdropdown730_xl2as_1",comdropdown1:"_comdropdown1_xl2as_1",comdropdown1730:"_comdropdown1730_xl2as_1",comdropdownParent:"_comdropdownParent_xl2as_1",comdropdownParent730:"_comdropdownParent730_xl2as_1",commenuSectionParentHeader:"_commenuSectionParentHeader_xl2as_1",commenuSectionParentHeader1232:"_commenuSectionParentHeader1232_xl2as_1",commenuSectionParentHeader960:"_commenuSectionParentHeader960_xl2as_1",commenuSectionParentHeader730:"_commenuSectionParentHeader730_xl2as_1",commenuSectionParentHeader430:"_commenuSectionParentHeader430_xl2as_1",comdescubreVideos:"_comdescubreVideos_xl2as_1",comdescubreVideos1232:"_comdescubreVideos1232_xl2as_1",comdescubreVideos960:"_comdescubreVideos960_xl2as_1",allCategories:"_allCategories_xl2as_1",containerScountingBtncom:"_containerScountingBtncom_xl2as_3",btnDeleteAplicacom:"_btnDeleteAplicacom_xl2as_13",SearchBtnBarcom:"_SearchBtnBarcom_xl2as_33",btnLeyendTxtcom:"_btnLeyendTxtcom_xl2as_52",BtnSearchScountingcom:"_BtnSearchScountingcom_xl2as_61",containerPredefinedcom:"_containerPredefinedcom_xl2as_85",containerPredefinedScountingcom:"_containerPredefinedScountingcom_xl2as_92",titleContainerPredefinedcom:"_titleContainerPredefinedcom_xl2as_100",subtitleContainerPredefinedcom:"_subtitleContainerPredefinedcom_xl2as_111"},vht=t.ref(ght()),bht={components:{GSCTableHeader:QR,GscSwitchComponent:XS,GSCFilterperteam:Put,GSCFilters:OR,GSCExpandedInfo:gV,GSCLabel:Jdt,GSCSeasonSelect:MA,GSCTopCategory:Udt,GSCTournamentSelect:TA,GSCRowTable:iV},computed:{...Fct.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const e={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.fVnationalities,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},o=JSON.stringify(e);if(JSON.stringify(this.filters)!=o)return o},filterGolstats(){return this.FVfilterGolstats},filterButtonProps(){return{...vht.value}}},props:{timeLiveComparativeAvanced:{type:Number,default:6e4},currentSeasonId:{type:Number,default:0},typeData:{type:Number,default:1},canPlayVideos:{type:Boolean,default:!1},teamId:{type:Number,default:0},gameId:{type:Number,default:0},isWidget:{type:Boolean,default:!1},seasonSelected:{type:Object,default:()=>({})},teamWidget:{type:Number,default:0},game:{type:Object,default:()=>({})},teamselect:{type:Number,default:0},seasonActive:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""},tournamentSelectProps:{type:Object,default:null},isFemaleMode:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const e=await this.fetchTeams();for(let o=0;o<e.teams.length;o++)this.teams.push({id:e.teams[o].team_id,team:e.teams[o].colloquial_name,logo:e.teams[o].logo})}}},setup(){const e=t.ref("myDivRefTopsFull"),{elementSize:o}=jb(e);return{myDivRefTopsFull:e,elementSize:o}},data(){return{elegibilidadArray:[],updateFilterTeamsScouting:0,modifidFiltersFlag:!1,showfiltersPc:!1,positions:[{name:"Portero",fullname:"POR"},{name:"Defensa central",fullname:"DFC"},{name:"Lateral por izquierda",fullname:"LI"},{name:"Lateral por derecha",fullname:"LD"},{name:"Volante por izquierda",fullname:"VI"},{name:"Volante por derecha",fullname:"VD"},{name:"Volante defensivo",fullname:"VDF"},{name:"Volante ofensivo",fullname:"VO"},{name:"Delantero",fullname:"DEL"},{name:"Desconocida",fullname:"Desc"}],universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(e,o)=>o+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],productivityTranslationMap:null,filterScounting:{tournaments:[1],seasonId:0,categories:[{key:"goals",name:"Goles",ids:[12]},{key:"assists",name:"Asistencias",ids:[10]},{key:"goal_participations",name:"Participaciones en gol",ids:[27]},{key:"headers_rival_area",name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{key:"shots_total",name:"Tiros a gol totales",ids:[91,95,92,93,96,97]}],range_age:[10,40],age_or_year:1,year:1989,nationalities:[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239],elegibles:[],minutes_played:211,minutes_played_avg:40,last_months:12,type_stats:1,positions:[1,2,3,4,5,6,7,8,9,10],fouls:!1,yellow_cards:!1,red_cards:!1},expand:!1,playerexpand:0,arrayFiltersPlays:[],filtersPredefinedF:{},categoryPredefinedActive:!1,categoryPredefined:0,typeTable:0,keyUpdateFilter:0,loadingActive:!1,isTeam:!1,arrayPredefinedFilters:[],arrayCategoryFilter:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],arrayCategoryFilterFull:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23],FVsetAvailableNationalTeamsPlayersIds:new Set,showOnlyCategories:!1,showFullCategory:0,categoryName:"",showFullTable:!1,expansionPanelModePropsTypePlays:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",width:"400px",maxWidth:"400px"},expansionPanelProps:{width:"400px",borderRadius:"8px"},fieldComponentProps:{widthContainer:"400px"}},expansionPanelModeProps:{isExpansionPanel:!1,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)"},expansionPanelProps:{width:"400px",borderRadius:"8px",fontFamily:"'Poppins-Regular'"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"13px"}},expansionPanelModePropsMobil:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"300px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"270px",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"},fieldComponentProps:{widthContainer:"100%",title:"Elige el área o zona de cancha",titleFontSize:"12px",widthField:268,widthFieldGrid:"268px",heightField:180,heightFieldGrid:"180px",heightContainer:"280px"}},filters:{zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{key:"goals",name:"Goles",isSelected:!1,id:[12]},{key:"assists",name:"Asistencias",isSelected:!1,id:[10]},{key:"goal_participations",name:"Participaciones en gol",isSelected:!1,id:[27]},{key:"headers_rival_area",name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{key:"shots_total",name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{key:"shots_on_target",name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{key:"shots_outside_box",name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{key:"shots_outside_box_on_target",name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{key:"shots_inside_box",name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{key:"shots_inside_box_on_target",name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{key:"crosses_left",name:"Centros por izquierda",isSelected:!1,id:[13]},{key:"crosses_left_success",name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{key:"crosses_right",name:"Centros por derecha",isSelected:!1,id:[25]},{key:"crosses_right_success",name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{key:"dribbles_success",name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{key:"dribbles_to_goal",name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{key:"balls_won_own_area",name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{key:"headers_own_area",name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{key:"tackles_won",name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{key:"clearances",name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{key:"recoveries_total",name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{key:"recoveries_q1",name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{key:"recoveries_q2",name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{key:"recoveries_q3",name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{key:"recoveries_q4",name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{key:"passes_success",name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{key:"passes_success_q1",name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{key:"passes_success_q2",name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{key:"passes_success_q3",name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{key:"passes_success_q4",name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},detailsObject:{playingAs:[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}],gameSections:[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},nameLeagueSelected:"",categoriesPlaysTypes:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:6},{name:"Tiros a gol con destino a portería",isSelected:!0,id:7},{name:"Asistencias",isSelected:!0,id:4},{name:"Centros",isSelected:!0,id:10},{name:"Centros acertados",isSelected:!0,id:11},{name:"Participaciones en gol",isSelected:!0,id:5},{name:"1vs1 exitosos ofensivos",isSelected:!0,id:12},{name:"1vs1 exitosos ofensivos que terminan en gol",isSelected:!0,id:13},{name:"Balones ganados en área rival",isSelected:!0,id:17},{name:"Cabeceos en área rival",isSelected:!0,id:8},{name:"Tiros de esquina",isSelected:!0,id:23}]},defensive:{title:"Defensivo",categories:[{name:"1vs1 defensivos exitosos",isSelected:!0,id:14},{name:"Cabeceo en área propia",isSelected:!0,id:9},{name:"Balones ganados en área propia",isSelected:!0,id:16},{name:"Rechaces",isSelected:!0,id:15},{name:"Atajadas",isSelected:!0,id:22}]},possession:{title:"Posesión",categories:[{name:"Pases acertados",isSelected:!0,id:2},{name:"Balones recuperados en disputa",isSelected:!0,id:3}]},offenses:{title:"Infracciones",categories:[{name:"Faltas cometidas",isSelected:!0,id:18},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},categoriesDefault:[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Pases acertados",isSelected:!1},{id:23,name:"Tiros de Esquina",isSelected:!1},{id:3,name:"Balones recuperados en disputa",isSelected:!1},{id:4,name:"Asistencias",isSelected:!1},{id:5,name:"Participaciones en gol",isSelected:!1},{id:6,name:"Tiros a gol",isSelected:!1},{id:7,name:"Tiros a gol que llegaron a la portería",isSelected:!1},{id:8,name:"Cabeceos en área rival",isSelected:!1},{id:9,name:"Cabeceos en área propia",isSelected:!1},{id:10,name:"Centros",isSelected:!1},{id:11,name:"Centros acertados",isSelected:!1},{id:12,name:"1vs1 exitosos ofensivos",isSelected:!1},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol",isSelected:!1},{id:14,name:"1vs1 defensivos exitoso",isSelected:!1},{id:15,name:"Rechaces",isSelected:!1},{id:16,name:"Balones ganados en área propia",isSelected:!1},{id:17,name:"Balones ganados en área rival",isSelected:!1},{id:18,name:"Faltas cometidas",isSelected:!1},{id:19,name:"Faltas recibidas",isSelected:!1},{id:20,name:"Tarjetas amarillas",isSelected:!1},{id:21,name:"Tarjetas rojas",isSelected:!1},{id:22,name:"Atajadas",isSelected:!1}],seasonsFilterSelected:0,tournamentsToFilter:[{name:"Liga MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/liga_mx.png",isSelected:!0,id:1,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1772,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1745},{type:1,id:1746}],id:1694,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1591},{type:1,id:1594}],id:1535,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1520},{type:1,id:1525}],id:1476,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1446},{type:1,id:1456}],id:1401,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1382},{type:1,id:1383}],id:1325,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1311},{type:1,id:1316}],id:1275,type:0},{name:"Clausura 2020",related_seasons:[],id:1239,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1231}],id:1155,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1135}],id:1093,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1075}],id:1002,type:0}]},{name:"Liga MX Femenil",logo:"https://golstatsimages.blob.core.windows.net/tournaments/femenil_mx.png",isSelected:!0,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1777,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1747}],id:1696,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1655}],id:1539,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1523}],id:1485,type:0},{name:"Grita Mexico A21",related_seasons:[{type:1,id:1458}],id:1402,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:1,id:1384}],id:1323,type:0},{name:"Guard1anes 2020",related_seasons:[{type:1,id:1318}],id:1283,type:0},{name:"Clausura 2020",related_seasons:[],id:1241,type:0},{name:"Apertura 2019",related_seasons:[{type:1,id:1227}],id:1157,type:0},{name:"Clausura 2019",related_seasons:[{type:1,id:1132}],id:1095,type:0},{name:"Apertura 2018",related_seasons:[{type:1,id:1072}],id:1004,type:0},{name:"Clausura 2018",related_seasons:[{type:1,id:1237}],id:1236,type:0}]},{name:"Liga Expansion MX",logo:"https://golstatsimages.blob.core.windows.net/tournaments/expansion_mx.png",isSelected:!0,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1776,type:0},{name:"Clausura 2023",related_seasons:[{type:2,id:1742},{type:1,id:1748}],id:1695,type:0},{name:"Apertura 2022",related_seasons:[{type:2,id:1598},{type:1,id:1618}],id:1544,type:0},{name:"Grita Mexico C22",related_seasons:[{type:2,id:1515},{type:1,id:1519}],id:1484,type:0},{name:"Grita Mexico A21",related_seasons:[{type:2,id:1454},{type:1,id:1463}],id:1408,type:0},{name:"Guard1anes Clausura 2021",related_seasons:[{type:2,id:1378},{type:1,id:1380}],id:1327,type:0},{name:"Guard1anes 2020",related_seasons:[{type:2,id:1315},{type:1,id:1317}],id:1287,type:0}]},{name:"Sub-23",logo:null,isSelected:!0,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1785,type:0}]},{name:"Sub-18",logo:null,isSelected:!0,id:1096,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1782,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1751}],id:1714,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1593}],id:1543,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1522}],id:1487,type:0}]},{name:"Sub-16",logo:null,isSelected:!0,id:1095,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1783,type:0},{name:"Clausura 2023",related_seasons:[{type:1,id:1750}],id:1715,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1652}],id:1541,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1527}],id:1488,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,optionSelected:"Jugadores",optionSelectedSubmenu:"Todas las jugadas",tournamentsUrl:"https://17zyhpyc7c.execute-api.us-west-2.amazonaws.com/prod/tournaments",teamsUrl:"https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/",urlFilter:"https://cqqxaonvm6.execute-api.us-east-2.amazonaws.com/prod/gs2/tops/filters?categories=",retries:3,teams:[],updateFilterGolstats:0,updateFilterPlaytypesGolstats:0,arrayTournaments:[],arraySeasons:{},seasonBytournament:[],updateFilterTeamsScouting:0,filtersTypes:Xr,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVnationalities:new Set,fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],fVplayingAs:[1,2],fVsections:[1,2,3,4,5,6],fVmatchResult:[1,2,3],fVarrayAgeRange:[10,40],FVeligible:[],FVYear:1900,keyTournamentValue:0,fVtypeZone:2,fVsetPositionsIds:[1,2,3,4,5,6,7,8,9],currentIndex:-1,delay:800,teamselectrec:0,tournamentSelected:0,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{}}},methods:{getnameshort(e){if(!e)return"";var o=e.split(",");if(o[1]===void 0){var s=e.trim().split(/\s+/).filter(Boolean);return s.length>1?s[0].charAt(0)+". "+s[s.length-1]:e.trim()}var B=o[0].split(" "),U=o[1].trim().split(" "),m="";B.length==2||B.length==1?B[0].length<4?m=B[0]+" "+B[1]:m=B[0]:B.length==3?m=B[0]+" "+B[1]:B.length==4&&(m=B[1]+" "+B[2]+" "+B[3]);var y=U[U.length-1]!=""?U[U.length-1].charAt(0):U[U.length-2]?U[U.length-2].charAt(0):"";return m=m.replace(",",""),y+". "+m},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(e=>{const o=e.id===this.selectedTournament.id;e.isSelected=o,e.isDefaultTournament=o})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;this.setUpTournamentsToFilter();const o=this.$refs.personalDataFilter;o.clearFilters(ju.All),o.clearFilters(ju.AGE_RANGE),o.clearFilters(ju.YEAR),o.clearFilters(ju.NATIONALITY),o.clearFilters(ju.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,U)=>U+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var e=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(e,1);const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<s.teams.length;B++)this.teamsscouting.push({id:s.teams[B].team_id,team:s.teams[B].colloquial_name,logo:s.teams[B].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(e){this.seasonActive!==e.id&&(this.seasonActive=e.id,this.resetPredefinedTeamAll(),this.$emit("change-season-id",e.id))},changeTournament(e){e.id!==this.selectedTournament.id&&(this.selectedTournament=e,this.tournamentSelectedObj={propName:"id",value:e.id},this.teamselect=0,this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},changeTournamentMovil(e){this.tournamentSelectedObj={propName:"id",value:e.id},this.seasonBytournament=e.seasons,this.teamselect=0},selectedSeasonMovil(e){this.seasonActive=e.id},setRelevantCategoriesPlayer(e){return e===1?[39,40,52,53,54,55,323,324,608,774,802]:[10,12,14,15,27,35,61,217,257,466,519,607,702,730,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,211,232,235,239,242,282,284,289,291,296,485,486,487,488]},setOpenMedia(e){this.$emit("openmedia",e)},setMediaData(e){let U=[e.id],m=e.team_id;const y={seasonId:e.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:U,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(e.position),teamId:m||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};this.$emit("openmedia",y)},clickprofile(e){e.isTeam?this.$emit("openProfileTeam",{teamId:e.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:e.id,teamId:e.teamId,seasonId:this.seasonActive})},viewprofile(e,o,s){this.$emit("openProfilePlayer",{playerId:e,teamId:s,seasonId:o||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(e){this.expand=e.expand,this.playerexpand=e.id},async loadTopsCategories(){try{const e=this.$store.getters.getProviderId,o=this.$store.getters.getIsDevApis,s=pu.create({headers:{Authorization:`${this.token}`}}),{data:B}=await s.get(uu(this.urlFilter,e,o));if(Array.isArray(B)&&B.length){const U=B.filter(m=>m&&m.id!=null&&m.category_name).map(m=>({id:m.id,name:m.category_name,isSelected:!1}));U.length&&(this.categoriesDefault=U,this.arrayCategoryFilter=U.map(m=>m.id),this.arrayCategoryFilterFull=U.map(m=>m.id))}}catch{}},async loadProductivityTranslation(){const e=this.$store.getters.getProviderId;if(!e||e===1)return;const o=await tie(e);o&&typeof o=="object"&&(this.productivityTranslationMap=o,this.applyProductivityTranslation(o))},applyProductivityTranslation(e){const o=["offensive","defensive","possession"];for(const s of o){const B=this.detaildProductivityCategories[s];B&&Array.isArray(B.categories)&&(B.categories=B.categories.filter(U=>Array.isArray(e[U.key])).map(U=>({...U,id:e[U.key]})))}this.filterScounting.categories=this.filterScounting.categories.filter(s=>Array.isArray(e[s.key])).map(s=>({...s,ids:e[s.key]}))},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const e=pu.create({headers:{Authorization:`${this.token}`}}),{data:o}=await e.post(uu("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.$store.getters.getProviderId,this.$store.getters.getIsDevApis),this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var s=this.arrayFiltersPlays.findIndex(U=>U.type==="onFiltersTournaments");s!==-1?this.arrayFiltersPlays[s].name=this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX":this.arrayFiltersPlays.push({name:this.filterScounting.tournaments.length>1?"Ligas "+this.filterScounting.tournaments.length:this.nameLeagueSelected!=""?this.nameLeagueSelected:"Liga MX",type:"onFiltersTournaments"})}this.rowScoutingData=[];for(let U=0;U<o.length;U++){o[U];let y=o[U].dob.split("T")[0].split("-");var B={position:U+1,player_name:this.abrevName(o[U].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+o[U].player_id+".png",total:o[U].total.toFixed(0),id:o[U].player_id,player_age:this.calcularEdad(o[U].dob),team_abrev:o[U].teams[0].acronym,team_name:o[U].teams[0].team_name,team_logo:Af("https://golstatsimages.blob.core.windows.net/teams-80/"+o[U].teams[0].team_id+".png",this.$store.getters.getProviderId),player_position:o[U].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+o[U].nationality_id+".jpg",date:y[2]+"."+y[1]+"."+y[0].substring(2,4),team_id:o[U].team_id,nationality_name:_V[o[U].nationality_id],player_games:o[U].games_played,player_min:o[U].minutes_played,league_name:o[U].tournament_name,seasons:o[U].seasons,season_id:o[U].seasons[0]};this.rowScoutingData.push(B)}if(this.seasonsFilterSelected!=0){const U=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let m=0;m<U.teams.length;m++)this.teamsscouting.push({id:U.teams[m].team_id,team:U.teams[m].colloquial_name,logo:U.teams[m].logo})}this.loadingActive=!1},abrevName(e){var o=e.split(","),s=o[0].split(" "),B=o[1].trim().split(" "),U="";s.length==2||s.length==1?s[0].length<4?U=s[0]+" "+s[1]:U=s[0]:s.length==3?U=s[0]+" "+s[1]:s.length==4&&(U=s[1]+" "+s[2]+" "+s[3]);var m=B[B.length-1]!=""?B[B.length-1].charAt(0):B[B.length-2]?B[B.length-2].charAt(0):"";U=U.replace(",","");var y=m+". "+U;return y},calcularEdad(e){var o=new Date(e),s=new Date,B=s-o,U=Math.floor(B/(1e3*60*60*24*365.25));return U},async onFiltersTournaments(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.length;s++)e[s].isSelected&&o.push(e[s].id);if(o.length==0&&(o=[1]),o.length==1)for(let s=0;s<e.length;s++)e[s].isSelected&&(this.nameLeagueSelected=e[s].name,this.seasonsFilterSelected=e[s].seasons[0].id);else this.seasonsFilterSelected=0,o.length>0&&(this.nameLeagueSelected=o.length+" Ligas");this.filterScounting.tournaments=o,this.filterScounting.seasonId=e[0].seasons[0].id},onFiltersPersonalData(e){if(this.modifidFiltersFlag=!0,e.hasOwnProperty("ageByRange")){const B=e.ageByRange.min==0?10:e.ageByRange.min,U=e.ageByRange.max==0?40:e.ageByRange.max;this.filterScounting.range_age=[B,U],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];e.hasOwnProperty("year")?(this.filterScounting.year=e.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var o=[];if(e.hasOwnProperty("nationalities")){for(let B=0;B<e.nationalities.length;B++)e.nationalities[B].isSelected&&o.push(e.nationalities[B].id);o.length==0&&(o=[3,4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,221,84,85,86,87,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,222,223,224,225,226,227,228,229,230,231,232,233,234,236,237,239])}this.filterScounting.elegibles=[],e.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[e.eligibility[0].id]);var s=[];for(let B=0;B<e.positions.length;B++)e.positions[B].isSelected&&s.push(e.positions[B].id);s.length==0&&(s=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=s,this.filterScounting.nationalities=o},onFiltersUniverse(e){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(e.minutesPlayed),this.filterScounting.last_months=Number(e.lastMonths),this.filterScounting.minutes_played_avg=Number(e.percentMinutesPlayed),this.filterScounting.type_stats=e.statistics.averagePerGame?3:e.statistics.averagePerMinute?2:1},onFiltersProductivity(e){this.modifidFiltersFlag=!0;var o=[];for(let s=0;s<e.productivityFilters.length;s++)o[e.productivityFilters[s].priority-1]={name:e.productivityFilters[s].name,ids:e.productivityFilters[s].id};o.length==0&&(o=[]),this.filterScounting.categories=o,this.filterScounting.fouls=e.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=e.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=e.offensesConditions.areRedCardsSelected},onFiltersGolStats(e){if(e.length>0){var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");o!==-1?this.arrayFiltersPlays[o].name=e[0].name:this.arrayFiltersPlays.push({name:e[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=e[0].filters}else{var s=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){this.filtersPredefinedF=this.filters;for(let U=0;U<this.FVfilterGolstats.length;U++)this.FVfilterGolstats[U].isSelected=!1;var s=this.arrayFiltersPlays.findIndex(U=>U.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}},shouldRender(e){return e<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(e){if(e.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=e[0].id;var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&o!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(o,1);var s=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");if(s!==-1){for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(e[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var o=this.arrayFiltersPlays.findIndex(U=>U.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&o!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(o,1);for(let m=0;m<this.categoriesDefault.length;m++)this.categoriesDefault[m].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var s=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&s!==-1){for(let m=0;m<this.FVfilterGolstats.length;m++)this.FVfilterGolstats[m].isSelected=!1;s!==-1&&this.arrayFiltersPlays.splice(s,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(e){this.categoryName=e.categoryName,this.showFullCategory=e.category,this.showFullTable=!0,this.loadingActive=!0,setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,aux:this.getRandomNumber(1,1e4),booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(e,o){return Math.floor(Math.random()*(o-e+1))+e},applyFiltersBtn(e){},onFiltersPlays(e){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],e.playsCategories.length==0){for(let s=0;s<this.categoriesPlaysTypes.offensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.defensive.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.possession.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s]);for(let s=0;s<this.categoriesPlaysTypes.offenses.categories.length;s++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[s].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[s])}else for(let s=0;s<e.playsCategories.length;s++)e.playsCategories[s].isSelected&&(this.arrayCategoryFilter.push(e.playsCategories[s].id),this.arrayCategoryFilterFull.push(e.playsCategories[s]));var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):o!=-1?this.arrayFiltersPlays[o].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):o!==-1&&this.arrayFiltersPlays.splice(o,1)},async deleteLabelFilter(e){var o=this.arrayFiltersPlays.findIndex(B=>B.type===e);if(o!==-1){if(e=="onFiltersTournaments"){this.rowScoutingData=[];for(let U=0;U<this.detaildProductivityCategories.offensive.categories.length;U++)this.detaildProductivityCategories.offensive.categories[U].isSelected=!1;for(let U=0;U<this.detaildProductivityCategories.defensive.categories.length;U++)this.detaildProductivityCategories.defensive.categories[U].isSelected=!1;for(let U=0;U<this.detaildProductivityCategories.possession.categories.length;U++)this.detaildProductivityCategories.possession.categories[U].isSelected=!1;for(let U=0;U<this.detaildProductivityCategories.offensesConditions.length;U++)this.detaildProductivityCategories.offensesConditions[U]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(U,m)=>m+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;const B=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let U=0;U<B.teams.length;U++)this.teamsscouting.push({id:B.teams[U].team_id,team:B.teams[U].colloquial_name,logo:B.teams[U].logo});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(e=="onFiltersPlays"){for(let B=0;B<this.categoriesPlaysTypes.offensive.categories.length;B++)this.categoriesPlaysTypes.offensive.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.defensive.categories.length;B++)this.categoriesPlaysTypes.defensive.categories[B].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[B]);for(let B=0;B<this.categoriesPlaysTypes.possession.categories.length;B++)this.categoriesPlaysTypes.possession.categories[B].isSelected=!0;for(let B=0;B<this.categoriesPlaysTypes.offenses.categories.length;B++)this.categoriesPlaysTypes.offenses.categories[B].isSelected=!0}if(e=="onFiltersField"&&(this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let B=0;B<this.FVfilterGolstats.length;B++)this.FVfilterGolstats[B].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(e=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var s=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersPredefined");s!==-1&&this.arrayFiltersPlays.splice(s,1);for(let B=0;B<this.categoriesDefault.length;B++)this.categoriesDefault[B].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}e=="onFiltersDetailsTime"&&(this.detailsObject.gameSections[0].isSelected=!0,this.detailsObject.gameSections[1].isSelected=!0,this.detailsObject.gameSections[2].isSelected=!0,this.detailsObject.gameSections[3].isSelected=!0,this.detailsObject.gameSections[4].isSelected=!0,this.detailsObject.gameSections[5].isSelected=!0,this.fVsections=[1,2,3,4,5,6],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersDetailsPlayingAs"&&(this.detailsObject.playingAs[0].isSelected=!0,this.detailsObject.playingAs[1].isSelected=!0,this.fVplayingAs=[1,2],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}),e=="onFiltersNationality"&&(this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(ju.NATIONALITY)),e=="onFiltersPosition"&&(this.fVsetPositionsIds=[1,2,3,4,5,6,7,8,9],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(ju.POSITION)),e=="onFiltersAge"&&(this.fVarrayAgeRange=[10,40],this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.$refs.personalDataFilterPlayers.clearFilters(ju.AGE_RANGE)),e=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(ju.ELIGIBILITY),e=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(ju.YEAR),this.FVYear=1900,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds})}this.arrayFiltersPlays.splice(o,1)},onFiltersField(e){e.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=e;var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersField");o!=-1?this.arrayFiltersPlays[o].name=this.fVzone.length+" zonas del campo":this.arrayFiltersPlays.push({name:this.fVzone.length+" zonas del campo",type:"onFiltersField"}),[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22].includes(this.category)?this.fVtypeZone=1:this.fVtypeZone=2,this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},e.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(o!=-1?this.arrayFiltersPlays[o].name="1/4 de cancha":this.arrayFiltersPlays.push({name:"1/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="2/4 de cancha":this.arrayFiltersPlays.push({name:"2/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&(o!=-1?this.arrayFiltersPlays[o].name="3/4 de cancha":this.arrayFiltersPlays.push({name:"3/4 de cancha",type:"onFiltersField"})),this.fVzone.length==4&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="4/4 de cancha":this.arrayFiltersPlays.push({name:"4/4 de cancha",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&this.fVzone.includes(5)&&this.fVzone.includes(6)&&this.fVzone.includes(7)&&this.fVzone.includes(8)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha propia":this.arrayFiltersPlays.push({name:"cancha propia",type:"onFiltersField"})),this.fVzone.length==8&&this.fVzone.includes(9)&&this.fVzone.includes(10)&&this.fVzone.includes(11)&&this.fVzone.includes(12)&&this.fVzone.includes(13)&&this.fVzone.includes(14)&&this.fVzone.includes(15)&&this.fVzone.includes(16)&&(o!=-1?this.arrayFiltersPlays[o].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(o,1)},addFilterPlayingAS(){var e=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersDetailsPlayingAs");e!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[e].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(e,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(e){var o=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var s=[];for(let m=0;m<e.playingAs.length;m++)if(e.playingAs[m].isSelected){const y=e.playingAs[m].name=="Local"?1:2;o.push(y)}for(let m=0;m<e.gameSections.length;m++)e.gameSections[m].isSelected&&s.push(e.gameSections[m].value);this.fVsections=s,this.fVplayingAs=o;var B=this.arrayFiltersPlays.findIndex(m=>m.type==="onFiltersDetailsTime"),U="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(U+=", 0-15"),this.fVsections.includes(2)&&(U+=", 15-30"),this.fVsections.includes(3)&&(U+=", 30-45"),this.fVsections.includes(4)&&(U+=", 45-60"),this.fVsections.includes(5)&&(U+=", 60-75"),this.fVsections.includes(6)&&(U+=", 75-90"),B!=-1?this.arrayFiltersPlays[B].name=U:this.arrayFiltersPlays.push({name:U,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="Primer tiempo":this.arrayFiltersPlays.push({name:"Primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==3&&this.fVsections.includes(4)&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(3)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del primer tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del primer tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(4)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los primeros 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 15 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 15 minutos del segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&(B!=-1?this.arrayFiltersPlays[B].name="los primeros 30 minutos del partido":this.arrayFiltersPlays.push({name:"los primeros 30 minutos del partido",type:"onFiltersDetailsTime"})),this.fVsections.length==2&&this.fVsections.includes(5)&&this.fVsections.includes(6)&&(B!=-1?this.arrayFiltersPlays[B].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):B!=-1&&this.arrayFiltersPlays.splice(B,1),this.addFilterPlayingAS(),this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},async resetScouting(){this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(B,U)=>U+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;const e=this.$refs.personalDataFilter;e.clearFilters(ju.All),e.clearFilters(ju.AGE_RANGE),e.clearFilters(ju.YEAR),e.clearFilters(ju.NATIONALITY),e.clearFilters(ju.POSITION),this.rowScoutingData=[];for(let B=0;B<this.detaildProductivityCategories.offensive.categories.length;B++)this.detaildProductivityCategories.offensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.defensive.categories.length;B++)this.detaildProductivityCategories.defensive.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.possession.categories.length;B++)this.detaildProductivityCategories.possession.categories[B].isSelected=!1;for(let B=0;B<this.detaildProductivityCategories.offensesConditions.length;B++)this.detaildProductivityCategories.offensesConditions[B]=!1;var o=this.arrayFiltersPlays.findIndex(B=>B.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(o,1),this.setUpTournamentsToFilter();const s=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let B=0;B<s.teams.length;B++)this.teamsscouting.push({id:s.teams[B].team_id,team:s.teams[B].colloquial_name,logo:s.teams[B].logo})},onFiltersData(e){var o=0,s=0;e.ageByRange&&(e.ageByRange.min==0?o=1:o=e.ageByRange.min,e.ageByRange.max==0?s=40:s=e.ageByRange.max,this.fVarrayAgeRange=[o,s]),e.year&&(this.FVYear=e.year),this.fVnationalities=new Set;let B="",U="";if(this.fVsetPositionsIds=[],e.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let b=0;b<e.nationalities.length;b++)e.nationalities[b].isSelected&&this.fVnationalities.add(e.nationalities[b].id)}if(this.FVeligible=[],e.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let b=0;b<this.elegibilidadArray.length;b++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[b])}for(let b=0;b<e.positions.length;b++)e.positions[b].isSelected&&this.fVsetPositionsIds.push(e.positions[b].id);if(e.hasOwnProperty("nationalities"))var m=e.nationalities.filter(b=>b.isSelected===!0);var y=e.positions.filter(b=>b.isSelected===!0);if(y.length==1&&(B=y[0].name),e.hasOwnProperty("nationalities")&&m.length==1&&(U=m[0].name),setTimeout(()=>{this.filters={zone:this.fVzone,playingAs:this.fVplayingAs,sections:this.fVsections,matchResult:this.fVmatchResult,arrayAgeRange:this.fVarrayAgeRange,typeZone:this.fVtypeZone,elegible:this.FVeligible,setNationalitiesIds:this.fVnationalities,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds}},1e3),this.FVbooleanAreNationalTeamsVisible){var a=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersElegibility");a!=-1?this.arrayFiltersPlays[a].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var a=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersElegibility");this.arrayFiltersPlays.splice(a,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var v=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersPosition");v!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[v].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B:this.arrayFiltersPlays.splice(v,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":"Posicion de juego "+B,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var p=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersYear");p!=-1?this.arrayFiltersPlays[p].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(this.fVarrayAgeRange[0]>=e.ageLimits.min&&this.fVarrayAgeRange[1]<=e.ageLimits.max)if(this.fVarrayAgeRange[0]>e.ageLimits.min||this.fVarrayAgeRange[1]<e.ageLimits.max){var r=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersAge");r!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[r].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años",type:"onFiltersAge"})}else{var r=this.arrayFiltersPlays.findIndex(x=>x.type==="onFiltersAge");r!=-1&&this.arrayFiltersPlays.splice(r,1)}if(e.hasOwnProperty("nationalities")&&this.fVnationalities.size!=e.nationalities.length&&this.fVnationalities.size>0){var _=this.arrayFiltersPlays.findIndex(b=>b.type==="onFiltersNationality");_!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[_].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+U:this.arrayFiltersPlays.splice(_,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+U,type:"onFiltersNationality"})}},clickAll(e){},clickAllAll(e){},clickTeam(e){},clickTeamScouting(e){},resetFilterTeamAndPlayers(){this.filters={zone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[1,60],typeZone:1,setNationalitiesIds:this.setNationalitiesIds,setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:this.FVYear,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:new Set}},async changeTabsGeneral(e){if(this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=e,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,e=="Equipos"&&(this.typeTable=1,this.isTeam=!0,this.updateTables+=1,this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Jugadores"&&(this.typeTable=0,this.isTeam=!1,this.teamselect=0,this.updateTables+=1,this.rowScoutingData=[],this.resetFilterTeamAndPlayers(),this.resetScouting()),e=="Scouting"){this.rowScoutingData=[],this.teamselect=0,this.arrayFiltersPlays=[];const o=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let s=0;s<o.teams.length;s++)this.teamsscouting.push({id:o.teams[s].team_id,team:o.teams[s].colloquial_name,logo:o.teams[s].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}},resetPredefinedTeamAll(){var e=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&e!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(e,1);for(let s=0;s<this.categoriesDefault.length;s++)this.categoriesDefault[s].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var o=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");if(o!==-1){for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;o!==-1&&this.arrayFiltersPlays.splice(o,1),this.updateFilterGolstats+=1}}},changeTabsSubmenu(e){e!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=e},async fetchTournaments(){const e=pu.create({headers:{Authorization:`${this.token}`}}),o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,{data:B}=await e.get(uu(this.tournamentsUrl,o,s));return B},async fetchTeams(){const e=pu.create({headers:{Authorization:`${this.token}`}}),o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,{data:B}=await e.get(uu(this.teamsUrl+this.seasonActive,o,s));return B},async fetchTeamsScouting(e){const o=pu.create({headers:{Authorization:`${this.token}`}}),s=this.$store.getters.getProviderId,B=this.$store.getters.getIsDevApis,{data:U}=await o.get(uu(this.teamsUrl+e,s,B));return U},async getPredefinedfilters(e){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var o="";e.id==1?o=this.urlFilter:o=this.urlFilter;const s=pu.create({headers:{Authorization:`${this.token}`}}),{data:B}=await s.get(uu(o+e.id,this.$store.getters.getProviderId,this.$store.getters.getIsDevApis));if(Object.keys(B[0].match_lapse_combinations).forEach(_=>{this.predefinedFiltersMatchLapse[_.toString()]=B[0].match_lapse_combinations[_]}),Object.keys(B[0].playing_as_combinations).forEach(_=>{this.predefinedFiltersPlayingAs[_.toString()]=B[0].playing_as_combinations[_]}),Object.keys(B[0].field_sections_combinations).forEach(_=>{this.predefinedFiltersSections[_.toString()]=B[0].field_sections_combinations[_]}),B[0]){for(let _=0;_<B[0].filter_records.length;_++){var U=B[0].description;if(B[0].filter_records[_].field_sections!==void 0){const x=B[0].filter_records[_].field_sections.toString();(this.predefinedFiltersSections[x]||this.predefinedFiltersSections[x]=="")&&(this.predefinedFiltersSections[x]==""?U=U.replace(" [en {field_sections}]",this.predefinedFiltersSections[x]):U=U.replace("{field_sections}",this.predefinedFiltersSections[x]))}if(B[0].filter_records[_].match_lapse!==void 0){const x=B[0].filter_records[_].match_lapse.toString();(this.predefinedFiltersMatchLapse[x]||this.predefinedFiltersMatchLapse[x]=="")&&(this.predefinedFiltersMatchLapse[x]==""?U=U.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[x]):U=U.replace("{match_lapse}",this.predefinedFiltersMatchLapse[x]))}if(B[0].filter_records[_].playing_as!==void 0){const x=B[0].filter_records[_].playing_as.toString();(this.predefinedFiltersPlayingAs[x]||this.predefinedFiltersPlayingAs[x]=="")&&(this.predefinedFiltersPlayingAs[x]==""?U=U.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[x]):U=U.replace("{playing_as}",this.predefinedFiltersPlayingAs[x]))}B[0].filter_records[_].section_type!==void 0&&(this.optionSelected=="Jugadores"?U=U.replace("{section_type}","Jugadores"):U=U.replace("{section_type}","Equipos")),U=U.replace(/\[/g,""),U=U.replace(/\]/g,""),U=U.replace("{category_name}",B[0].category_name);const b=U.split(": ");var m=b[1];m.length>129&&this.windowWidth>1358&&(m=m.substring(0,129),m=m+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||B[0].filter_records[_].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:_,category_name:e.name,id_category:B[0].id,title:b[0]+":",text:b[1],textOrigin:B[0].description,titledots:m,filtersPredefined:{matchResult:B[0].filter_records[_].match_result,playingAs:B[0].filter_records[_].playing_as,sections:B[0].filter_records[_].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:B[0].type_zone,zone:B[0].filter_records[_].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var y=[];for(let _=0;_<this.arrayPredefinedFilters.length;_++){var a=0,v=new Set,p={},r=this.arrayPredefinedFilters[_].text.replace(/\*.*?\*/,"");if(r=r.replace(/\*/g,""),r=r.replace(/ +/g," "),this.arrayPredefinedFilters[_].filtersPredefined.elegible.length>0&&(a+=1),(this.arrayPredefinedFilters[_].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[_].filtersPredefined.start_age.length!=0)&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,this.arrayPredefinedFilters[_].filtersPredefined.end_age]:this.arrayPredefinedFilters[_].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[_].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[_].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[_].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[_].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[_].filtersPredefined.end_age],this.arrayPredefinedFilters[_].filtersPredefined.matchResult.length!=3&&(a+=1),p.matchResult=this.arrayPredefinedFilters[_].filtersPredefined.matchResult,this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length>0&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length!=0){for(let b=0;b<this.arrayPredefinedFilters[_].filtersPredefined.nationalities.length;b++)v.add(this.arrayPredefinedFilters[_].filtersPredefined.nationalities[b]);p.setNationalitiesIds=v}else v.add(138),v.add(222),v.add(163),v.add(51),v.add(226),v.add(10),v.add(223),v.add(96),v.add(171),v.add(198),v.add(105),v.add(80),v.add(29),v.add(74),v.add(216),v.add(196),v.add(64),v.add(155),v.add(156),v.add(89),v.add(106),v.add(81),v.add(233),v.add(204),p.setNationalitiesIds=v;this.arrayPredefinedFilters[_].filtersPredefined.playingAs.length!=2&&(a+=1),p.playingAs=this.arrayPredefinedFilters[_].filtersPredefined.playingAs,this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[_].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[_].filtersPredefined.sections.length!=6&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[_].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[_].filtersPredefined.zone.length!=16&&(a+=1),this.arrayPredefinedFilters[_].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[_].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[_].filtersPredefined.typeZone,y.push({id:_+1,name:r,isSelected:!1,value:a,filters:p})}this.FVfilterGolstats=y,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var e=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((r,_)=>r-_).toString();this.predefinedFiltersSections[o]||this.predefinedFiltersSections[o]==""?this.predefinedFiltersSections[o]==""?e=e.replace(" [en {field_sections}]",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections[o]):e=e.replace("{field_sections}",this.predefinedFiltersSections.other);var s=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(e=e.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(s=!0,e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]","")):(e=e.replace("[{nationality}]",""),e=e.replace("[de las nacionalidades y posiciones seleccionadas]",""),e=e.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(s||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(e=e.replace("[de las posiciones seleccionadas]","")):e=e.replace("[de las posiciones seleccionadas]",""),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age!=this.arrayAgeRange[0]||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age!=this.arrayAgeRange[1]?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age==this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age?(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" a "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.end_age+" años]")):(e=e.replace("[de {min_age} a {max_age} años]",""),e=e.replace("[de {min_age} años]","")):(e=e.replace("[de {min_age} años]",""),e=e.replace("[de {min_age} a {max_age} años]",""));const B=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[B]||this.predefinedFiltersMatchLapse[B]=="")this.predefinedFiltersMatchLapse[B]==""?e=e.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[B]):e=e.replace("{match_lapse}",this.predefinedFiltersMatchLapse[B]);else{e=e.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var U="";B.includes(1)&&(U=U+"0-15, "),B.includes(2)&&(U=U+"16-30, "),B.includes(3)&&(U=U+"31-45, "),B.includes(4)&&(U=U+"46-60, "),B.includes(5)&&(U=U+"61-75, "),B.includes(6)&&(U=U+"76-90, "),U=U.slice(0,-2),U=U.replace(/,([^,]*)$/," y $1"),e=e.replace("{match_lapse_selected}",U)}const m=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[m]||this.predefinedFiltersPlayingAs[m]=="")&&(this.predefinedFiltersPlayingAs[m]==""?e=e.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[m]):e=e.replace("{playing_as}",this.predefinedFiltersPlayingAs[m])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?e=e.replace("{section_type}","Porteras"):e=e.replace("{section_type}","Jugadoras"):this.category.id==22?e=e.replace("{section_type}","Porteros"):e=e.replace("{section_type}","Jugadores"):e=e.replace("{section_type}","Equipos"),e=e.replace(/\[/g,""),e=e.replace(/\]/g,""),e=e.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const y=e.split(": ");let a=y[1].charAt(0).toUpperCase()+y[1].toLowerCase().slice(1),v=y[1].charAt(0).toUpperCase()+y[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=a,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=y[0]+":";const p=v.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let r=1;r<=p.length;r++)r%2===0||(v=v.replace("*",'<span style="color: #ffff03" >'));else v=v.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=v},intervalidtops(e){this.$emit("intervalidtops",e)}},mounted(){sessionStorage.getItem("sidpdfil")!==null&&sessionStorage.setItem("sidpdfil",0),this.renderNext(),this.teamId!==0&&this.optionSelected!=="Scouting"&&this.clickTeam(this.teamId),this.defaultSection!=="Jugadores"&&(this.defaultSection==="Scouting"&&this.selectedSeason(this.currentSeasonId),this.changeTabsGeneral(this.defaultSection))},async created(){try{await this.loadTopsCategories(),await this.loadProductivityTranslation();const e=pu.create({headers:{"Content-Type":"application/json"}});e.interceptors.request.use(s=>(delete s.headers.Authorization,s));const o=await e.get(qy("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",this.$store.getters.getProviderId),{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=o.data,this.fVnationalities.add(138),this.fVnationalities.add(222),this.fVnationalities.add(163),this.fVnationalities.add(51),this.fVnationalities.add(226),this.fVnationalities.add(10),this.fVnationalities.add(223),this.fVnationalities.add(96),this.fVnationalities.add(171),this.fVnationalities.add(198),this.fVnationalities.add(105),this.fVnationalities.add(80),this.fVnationalities.add(29),this.fVnationalities.add(74),this.fVnationalities.add(216),this.fVnationalities.add(196),this.fVnationalities.add(64),this.fVnationalities.add(155),this.fVnationalities.add(156),this.fVnationalities.add(89),this.fVnationalities.add(106),this.fVnationalities.add(81),this.fVnationalities.add(233),this.fVnationalities.add(204)}catch(e){throw new Error(e)}}},_ht={ref:"myDivRefTopsFull"},xht={key:0,class:"overlay-loading"},wht={key:0,class:"cont-leyemd-multipleleagues"},kht={key:0,style:{"margin-left":"10px"}},Sht={key:3,style:{width:"100%",height:"295px"}};function Cht(e,o,s,B,U,m){t.resolveComponent("GSCTournamentSelect"),t.resolveComponent("GSCSeasonSelect");const y=t.resolveComponent("GscSwitchComponent"),a=t.resolveComponent("GSCFilterperteam"),v=t.resolveComponent("GSCFilters"),p=t.resolveComponent("GSCLabel"),r=t.resolveComponent("GSCTopCategory"),_=t.resolveComponent("GSCTableHeader"),b=t.resolveComponent("GSCRowTable"),x=t.resolveComponent("GSCExpandedInfo");return t.openBlock(),t.createElementBlock("div",_ht,[U.loadingActive?(t.openBlock(),t.createElementBlock("div",xht,o[8]||(o[8]=[t.createElementVNode("div",{class:"overlay-loading__spinner"},[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),t.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)]))):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.templateLosMejoresClass)},[t.createElementVNode("section",{class:t.normalizeClass(e.containerSectionClass),id:"container-section"},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.comdescubreVideosClass)},[t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionParentHeaderClass)},[t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersParentClass)},[t.createElementVNode("div",{class:t.normalizeClass(e.topFiltersClass),id:"top-filters"},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.teamBarParent)},[U.optionSelected!="Scouting"&&U.optionSelected!="Equipos"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[t.createVNode(a,{data:U.teams,"team-id":s.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:m.clickTeam,onClickAll:m.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.containerFilters),id:"container-filters",style:t.normalizeStyle(U.showfiltersPc?"":B.elementSize.width>760?"display: none;":"")},[t.createElementVNode("div",{class:t.normalizeClass(e.menuSectionClass),id:"menu-section"},[B.elementSize.width>760&&U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.closeFiltersPc),onClick:o[1]||(o[1]=(...h)=>m.clickCloseFilters&&m.clickCloseFilters(...h))},o[9]||(o[9]=[t.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1)]),2)):t.createCommentVNode("",!0),U.optionSelected!=="Scouting"?(t.openBlock(),t.createBlock(y,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":U.optionSelectedSubmenu,"font-size":e.sizeTabsFontMS,width:e.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:m.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):t.createCommentVNode("",!0)],2),t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnCloseFilters),style:t.normalizeStyle(U.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:o[3]||(o[3]=(...h)=>m.openMenuFilters&&m.openMenuFilters(...h))},null,6),[[t.vShow,B.elementSize.width<760&&U.openMenuMobil]]),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.containerMenuClass),id:"container-menu"},[U.optionSelectedSubmenu=="Todas las jugadas"&&U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.withDirectives(t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersPlays,filters:U.categoriesPlaysTypes,onApply:m.applyFiltersBtn,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply","provider-id","is-dev-apis"]),[[t.vShow,!U.showFullTable]]),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{key:U.updateFilterField,"filter-type":U.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersField,filters:U.fVzone,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"])),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersDetails,filters:U.detailsObject,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"]),U.optionSelected==="Jugadores"?(t.openBlock(),t.createBlock(v,t.mergeProps({key:0,ref:"personalDataFilterPlayers","button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:U.tournamentSelectedObj.value},token:U.token,"onUpdate:filters":m.onFiltersData,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","season","token","onUpdate:filters","provider-id","is-dev-apis"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),U.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[B.elementSize.width>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:U.tournamentsToFilter,key:U.keyTournamentValue,"onUpdate:filters":m.onFiltersTournaments,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters","provider-id","is-dev-apis"])),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:U.filterScounting.seasonId,tournamentId:U.filterScounting.tournaments[0]},ref:"personalDataFilter","onUpdate:filters":m.onFiltersPersonalData,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","season","onUpdate:filters","provider-id","is-dev-apis"]),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:U.universeData,"onUpdate:filters":m.onFiltersUniverse,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters","provider-id","is-dev-apis"]),t.createVNode(v,t.mergeProps({"button-filter-props":m.filterButtonProps},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":m.onFiltersProductivity,filters:U.detaildProductivityCategories,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"])],64)):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(e.$style.BtnSearchScountingcom),onClick:o[4]||(o[4]=(...h)=>m.getScoutingData&&m.getScoutingData(...h))},"Buscar",2)],64)):t.createCommentVNode("",!0),U.optionSelectedSubmenu=="Predeterminados"&&U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:2},[(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModePropsTypePlays,{"filter-type":U.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:U.updateFilterPlaytypesGolstats,"onUpdate:filters":m.onFiltersPlaysTypes,filters:U.categoriesDefault,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"])),(t.openBlock(),t.createBlock(v,t.mergeProps({"button-filter-props":m.filterButtonProps,modalHeight:"300px"},B.elementSize.width<420?U.expansionPanelModePropsMobil270:B.elementSize.width<760?U.expansionPanelModePropsMobil:U.expansionPanelModeProps,{"filter-type":U.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:U.updateFilterGolstats,"onUpdate:filters":m.onFiltersGolStats,filters:m.filterGolstats,"provider-id":e.$store.getters.getProviderId,"is-dev-apis":e.$store.getters.getIsDevApis}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","provider-id","is-dev-apis"]))],64)):t.createCommentVNode("",!0)],2),[[t.vShow,B.elementSize.width>760||U.openMenuMobil]]),U.optionSelected=="Scouting"?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.teamBar),id:"team-bar"},[U.filterScounting.tournaments.length>1&&U.rowScoutingData.length>0?(t.openBlock(),t.createElementBlock("div",wht,[o[10]||(o[10]=t.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1)),t.createElementVNode("div",{class:t.normalizeClass(e.comextleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(t.openBlock(),t.createBlock(a,{data:U.teamsscouting,"team-id":U.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:U.updateFilterTeamsScouting,onClickTeam:m.clickTeamScouting,onClickAll:m.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):t.createCommentVNode("",!0)],6)],2)],2),t.createElementVNode("div",{class:t.normalizeClass(e.containerTheBestClass),id:"container-the-best"},[t.createElementVNode("div",{class:t.normalizeClass(e.titleSectionClass)},[U.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.commejoresJugadoresClass)},[U.arrayFiltersPlays.length>0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.optionSelected!="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Mejores jugadores: ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores más productivos: ")],64))],64)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),U.optionSelected!="Scouting"&&U.optionSelectedSubmenu!="Predeterminados"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[U.showFullTable?(t.openBlock(),t.createElementBlock("div",kht,[t.createVNode(p,{"text-value":"Categoría - "+U.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:m.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.arrayFiltersPlays,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:n,style:{"margin-left":"10px"}},[t.createVNode(p,{"text-value":h.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:m.deleteLabelFilter,id:h.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:B.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),U.rowScoutingData.length!=0||U.optionSelectedSubmenu=="Predeterminados"&&U.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPredefined")!==-1?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.comquitarFiltrosClass),onClick:o[5]||(o[5]=(...h)=>m.onClickDeleteFilter&&m.onClickDeleteFilter(...h))}," Quitar filtros ",2)):t.createCommentVNode("",!0),t.createCommentVNode("",!0)],2),s.seasonActive!=0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.containerTablesClass),id:"container-tables",style:t.normalizeStyle(U.showFullTable?"gap: 0px!important;":"")},[U.optionSelected!=="Scouting"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.optionSelectedSubmenu=="Todas las jugadas"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.categoriesDefault,(h,n)=>(t.openBlock(),t.createElementBlock("div",{key:h.id,style:t.normalizeStyle(!U.showOnlyCategories&&U.arrayCategoryFilter.includes(h.id)?"":"display:none !important;")},[t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(e.toniKroosWrapperClass)},[(t.openBlock(),t.createBlock(r,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":U.isTeam,onMore:m.onShowFullTable,"border-width":0,onIntervalidtops:m.intervalidtops,"can-play-videos":s.canPlayVideos,"border-radius":"12px","game-id":s.gameId,game:s.game,typeData:s.typeData,"filters-prop":m.filterChange,category:h.id,"type-table":U.typeTable,categoryName:h.name,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:U.updateTables,onClickprofile:m.clickprofile,onSetopenmedia:m.setOpenMedia},null,8,["is-widget","team-widget","time-live-comparative-avanced","is-team","onMore","onIntervalidtops","can-play-videos","game-id","game","typeData","filters-prop","category","type-table","categoryName","season-selected","season","filter-team","onClickprofile","onSetopenmedia"]))],2),[[t.vShow,!U.showOnlyCategories&&U.arrayCategoryFilter.includes(h.id)&&!U.showFullTable]])],4))),128)),U.showFullTable?(t.openBlock(),t.createBlock(r,{"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"is-team":U.isTeam,"is-widget":s.isWidget,"team-widget":s.teamWidget,"border-width":0,"border-radius":"12px","game-id":s.gameId,onIntervalidtops:m.intervalidtops,game:s.game,typeData:s.typeData,category:U.showFullCategory,type:1,"type-table":U.typeTable,categoryName:"","filters-prop":m.filterChange,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:U.updateTablesfull,onClickprofile:m.clickprofile,onSetopenmedia:m.setOpenMedia},null,8,["time-live-comparative-avanced","is-team","is-widget","team-widget","game-id","onIntervalidtops","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):t.createCommentVNode("",!0)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[U.categoryPredefinedActive?(t.openBlock(),t.createBlock(r,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"is-team":U.isTeam,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,onIntervalidtops:m.intervalidtops,"border-width":0,"border-radius":"12px","can-play-videos":s.canPlayVideos,"game-id":s.gameId,game:s.game,typeData:s.typeData,category:U.categoryPredefined,type:1,"type-table":U.typeTable,categoryName:"","filters-prop":m.filterChangePredefined,"season-selected":s.seasonSelected,season:s.seasonActive,"filter-team":s.teamselect,key:U.updateTables,onClickprofile:m.clickprofile,onSetopenmedia:m.setOpenMedia},null,8,["is-widget","team-widget","is-team","time-live-comparative-avanced","onIntervalidtops","can-play-videos","game-id","game","typeData","category","type-table","filters-prop","season-selected","season","filter-team","onClickprofile","onSetopenmedia"])):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedcom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.titleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("No has seleccionado ningún filtro")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Para visualizar resultados selecciona un")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("No existen resultados con los filtros")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[o[12]||(o[12]=t.createElementVNode("span",null,"Tipo de Jugada",-1)),o[13]||(o[13]=t.createTextVNode(" y un ")),o[14]||(o[14]=t.createElementVNode("span",null,"Filtro GolStats",-1)),o[15]||(o[15]=t.createTextVNode(" en la"))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("que has seleccionado.")],64))],2),t.createElementVNode("div",{class:t.normalizeClass(e.$style.subtitleContainerPredefinedcom)},[U.arrayFiltersPlays.length==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("parte superior.")],64)):t.createCommentVNode("",!0)],2)],2))],64))],64)):(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.containerPredefinedScountingcom),style:t.normalizeStyle(U.rowScoutingData.length>0?"height: auto;":"")},[U.loadingActive?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[U.rowScoutingData.length>0?(t.openBlock(),t.createBlock(_,{key:0,background:"#183143",type:2})):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.rowScoutingData,(h,n)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[U.teamselectrec==0||U.teamselectrec==h.team_id?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(b,{type:2,"is-expanded":U.playerexpand==h.id&&U.expand,onMediadata:m.setMediaData,data:{position:h.position,player_name:h.player_name,player_photo:h.player_photo,total:h.total,id:h.id,player_age:h.player_age,team_abrev:h.team_abrev,team_logo:h.team_logo,player_position:U.positions[h.player_position-1].fullname,player_country_flag:h.player_country_flag,player_games:h.player_games,player_min:h.player_min,league_name:h.league_name,seasons:h.seasons,season_id:h.season_id},height:"71px",background:n%2===0?s.backgroundOdd:s.backgroundEven,onExpand:m.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),U.expand&&U.playerexpand==h.id?(t.openBlock(),t.createBlock(x,{key:0,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:h.team_name,age:h.player_age,dataofbirth:h.date,nationality:h.nationality_name,countryFlag:h.player_country_flag,position:U.positions[h.player_position-1].name,games:h.player_games,min:h.player_min,goals:h.total,effectiveness:"-",category:"total",id:h.id},onViewprofile:i=>m.viewprofile(i,h.season_id,h.team_id),background:n%2===0?s.backgroundOdd:s.backgroundEven},null,8,["data","onViewprofile","background"])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],64))),128))],64)),U.rowScoutingData.length==0&&!U.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(e.$style.btnLeyendTxtcom)},' Haz click en "Buscar" para aplicar tus filtros ',2)):t.createCommentVNode("",!0),U.rowScoutingData.length==0&&!U.loadingActive?(t.openBlock(),t.createElementBlock("div",{key:2,class:t.normalizeClass(e.$style.containerScountingBtncom)},[t.createElementVNode("div",{class:t.normalizeClass(e.$style.btnDeleteAplicacom),onClick:o[6]||(o[6]=(...h)=>m.onClickDeleteFilter&&m.onClickDeleteFilter(...h))}," Eliminar filtros aplicados ",2),U.rowScoutingData.length==0?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.$style.SearchBtnBarcom),onClick:o[7]||(o[7]=(...h)=>m.getScoutingData&&m.getScoutingData(...h))}," Buscar ",2)):t.createCommentVNode("",!0)],2)):t.createCommentVNode("",!0),U.loadingActive?(t.openBlock(),t.createElementBlock("div",Sht)):t.createCommentVNode("",!0)],6))],6)):t.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const Tht=Ki(bht,[["render",Cht],["__cssModules",{$style:yht}]]),zta="";let AV=null;const Aht={components:{GSCDatosGSMain:Nct,GSCCheckbox:j1,GSCRadioToggle:dF,GSCTopFull:Tht},props:{isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},timeLiveComparativeBestPlayers:{type:Number,default:6e4},timeLiveComparativeAvanced:{type:Number,default:6e4},seasonSelected:{type:Object,default:()=>({})},tournamentSelected:{type:Object,default:()=>({})},tournamentSelectProps:{type:Object,default:null},game:{type:Object,default:()=>{}},playVideosPrivileges:{type:Object,default:null},canPlayVideos:{type:Boolean,default:!1},isFemaleMode:{type:Boolean,default:!1}},data(){return{updateHomeCheck:0,updateAwayCheck:0,activeSection:"destacados",widthSection:0,teamactive:0,update:0,homeTeamCheck:!0,awayTeamCheck:!0,typeViewData:1}},watch:{game:{deep:!0,immediate:!0,handler(e){e&&(e.game_status==1||e.is_live==1||e.game_status==0?this.typeViewData=1:this.typeViewData=0),this.update+=1}}},computed:{},methods:{preventChange(e){e.preventDefault(),this.homeTeamCheck=!0},intervalidgs(e){this.$emit("intervalidgs",e)},onOpenProfileTeam(e){this.$emit("openProfileTeam",e)},intervalidtops(e){this.$emit("intervalidtops",e)},onOpenProfilePlayer(e){this.$emit("onOpenProfile",e)},ChangeRadio(e){typeof e=="string"&&(e==="Este partido"?this.typeViewData=1:this.typeViewData=0)},onCheckInactiveHome(e){e?(this.homeTeamCheck=!0,this.awayTeamCheck?this.teamactive=0:this.teamactive=this.game.homeTeam.team_id):this.awayTeamCheck?(this.homeTeamCheck=!1,this.teamactive=this.game.awayTeam.team_id):(this.updateHomeCheck+=1,this.homeTeamCheck=!0,this.teamactive=this.game.homeTeam.team_id)},onCheckInactiveAway(e){e?(this.awayTeamCheck=!0,this.homeTeamCheck?this.teamactive=0:this.teamactive=this.game.awayTeam.team_id):this.homeTeamCheck?(this.awayTeamCheck=!1,this.teamactive=this.game.homeTeam.team_id):(this.updateAwayCheck+=1,this.teamactive=this.game.awayTeam.team_id,this.awayTeamCheck=!0)},setUpResizeObserver(){if(window.ResizeObserver)AV=new ResizeObserver(()=>{this.widthSection=this.$refs.comparative.clientWidth}),AV.observe(this.$refs.comparative);else throw new Error("Resize observer not supported!")},clickOptSection(e){this.activeSection=e},openmedia(e){this.typeViewData===1?(e.gameIdsToFilter=[this.game.gameId],this.$emit("openmedia",e)):(e.isLiveAccumulated=!0,this.$emit("openmedia",e))}},async mounted(){setTimeout(()=>{this.setUpResizeObserver()},1e3)}},Eht={class:"container-comparative",ref:"comparative"},Mht={class:"container-btn"},Iht={class:"items-container-btn"},Pht={class:"container-sections"},Lht={key:0,class:"container-teams-menu"},Bht={class:"container-team-menu-home"},zht=["src"],Oht={class:"container-team-menu-away"},Dht=["src"],Nht={key:1,class:"container-switch-menu"},Fht={class:"container-leyend"},Rht={class:"container-tops"};function Vht(e,o,s,B,U,m){const y=t.resolveComponent("GSCDatosGSMain"),a=t.resolveComponent("GSCCheckbox"),v=t.resolveComponent("GSCRadioToggle"),p=t.resolveComponent("GSCTopFull");return t.openBlock(),t.createElementBlock("div",Eht,[t.createElementVNode("div",Mht,[t.createElementVNode("div",Iht,[t.createElementVNode("div",{class:t.normalizeClass([U.widthSection>480?"btn-destacados":"btn-destacados-movil",U.activeSection=="destacados"?"active":""]),onClick:o[0]||(o[0]=r=>m.clickOptSection("destacados"))},[s.game.status==1||s.game.is_live==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados")],64))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("General")],64))],2),t.createElementVNode("div",{class:t.normalizeClass([U.widthSection>480?"btn-avanced":"btn-avanced-movil",U.activeSection=="avanzado"?"active":""]),onClick:o[1]||(o[1]=r=>m.clickOptSection("avanzado"))}," Avanzado ",2)])]),t.createElementVNode("div",Pht,[U.activeSection=="destacados"?(t.openBlock(),t.createBlock(y,{key:0,"is-widget":s.isWidget,"team-widget":s.teamWidget,"tournament-selected":s.tournamentSelected,"time-live-comparative-best-players":s.timeLiveComparativeBestPlayers,game:s.game,"play-videos-privileges":s.playVideosPrivileges,onOpenmedia:m.openmedia,onIntervalidgs:m.intervalidgs},null,8,["is-widget","team-widget","tournament-selected","time-live-comparative-best-players","game","play-videos-privileges","onOpenmedia","onIntervalidgs"])):t.createCommentVNode("",!0),U.activeSection=="avanzado"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.isWidget?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Lht,[t.createElementVNode("div",Bht,[(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactiveHome,"label-color":"#8c9399",width:"25",key:U.updateHomeCheck,"model-value":U.homeTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"])),t.createElementVNode("img",{class:"img-teams-selector-home",width:"23",src:s.game.homeTeam.logo},null,8,zht),t.createElementVNode("div",{class:t.normalizeClass(U.widthSection>390?"label-team-home":"label-team-home-movil")},t.toDisplayString(s.game.homeTeam.colloquial_name),3)]),o[2]||(o[2]=t.createElementVNode("div",{class:"container-team-menu-separator"},null,-1)),t.createElementVNode("div",Oht,[t.createElementVNode("div",{class:t.normalizeClass(U.widthSection>390?"label-team-away":"label-team-away-movil")},t.toDisplayString(s.game.awayTeam.colloquial_name),3),t.createElementVNode("img",{class:"img-teams-selector-away",width:"23",src:s.game.awayTeam.logo},null,8,Dht),(t.openBlock(),t.createBlock(a,{fontFamily:"Poppins-Regular","onUpdate:modelValue":m.onCheckInactiveAway,"label-color":"#8c9399",width:"25",key:U.updateAwayCheck,"model-value":U.awayTeamCheck,height:"25",style:{"margin-top":"-4px"}},null,8,["onUpdate:modelValue","model-value"]))])])),s.game.is_live||s.game.status===1||s.game.status===0?(t.openBlock(),t.createElementBlock("div",Nht,[t.createVNode(v,{height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":U.typeViewData==1?"Este partido":"Acumulado",textOptionLeft:"Este partido",textOptionRight:"Acumulado",onChange:m.ChangeRadio},null,8,["value-default","onChange"])])):t.createCommentVNode("",!0),t.createElementVNode("div",Fht,[U.typeViewData==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante este partido ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.game.status==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(" Jugadas destacadas durante el torneo ")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[s.tournamentSelected.is_female==1?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode("Jugadoras destacadas durante lo que va del torneo")],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode("Jugadores destacados durante lo que va del torneo")],64))],64))],64))]),t.createElementVNode("div",Rht,[t.createVNode(p,{"is-widget":s.isWidget,"team-widget":s.teamWidget,"tournament-select-props":s.tournamentSelectProps,"time-live-comparative-avanced":s.timeLiveComparativeAvanced,"can-play-videos":s.canPlayVideos,onOpenmedia:m.openmedia,onOpenProfileTeam:m.onOpenProfileTeam,onIntervalidtops:m.intervalidtops,onOpenProfilePlayer:m.onOpenProfilePlayer,"type-data":U.typeViewData,"game-id":s.game.gameId,game:s.game,"current-season-id":s.game.seasonId,"team-id":U.teamactive,"season-active":s.game.seasonId,"season-selected":s.seasonSelected,teamselect:U.teamactive,"is-female-mode":s.isFemaleMode},null,8,["is-widget","team-widget","tournament-select-props","time-live-comparative-avanced","can-play-videos","onOpenmedia","onOpenProfileTeam","onIntervalidtops","onOpenProfilePlayer","type-data","game-id","game","current-season-id","team-id","season-active","season-selected","teamselect","is-female-mode"])])],64)):t.createCommentVNode("",!0)])],512)}const jht=Ki(Aht,[["render",Vht],["__scopeId","data-v-e09a9fa2"]]);var Uht=Object.defineProperty,Ght=(e,o,s)=>o in e?Uht(e,o,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[o]=s,$S=(e,o,s)=>Ght(e,typeof o!="symbol"?o+"":o,s);function EV(e,o){return function(){return e.apply(o,arguments)}}const{toString:Hht}=Object.prototype,{getPrototypeOf:KS}=Object,{iterator:d4,toStringTag:MV}=Symbol,h4=(e=>o=>{const s=Hht.call(o);return e[s]||(e[s]=s.slice(8,-1).toLowerCase())})(Object.create(null)),Kf=e=>(e=e.toLowerCase(),o=>h4(o)===e),p4=e=>o=>typeof o===e,{isArray:Rv}=Array,Ub=p4("undefined");function Zht(e){return e!==null&&!Ub(e)&&e.constructor!==null&&!Ub(e.constructor)&&Cp(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const IV=Kf("ArrayBuffer");function Wht(e){let o;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?o=ArrayBuffer.isView(e):o=e&&e.buffer&&IV(e.buffer),o}const qht=p4("string"),Cp=p4("function"),PV=p4("number"),f4=e=>e!==null&&typeof e=="object",Jht=e=>e===!0||e===!1,m4=e=>{if(h4(e)!=="object")return!1;const o=KS(e);return(o===null||o===Object.prototype||Object.getPrototypeOf(o)===null)&&!(MV in e)&&!(d4 in e)},Yht=Kf("Date"),Xht=Kf("File"),$ht=Kf("Blob"),Kht=Kf("FileList"),Qht=e=>f4(e)&&Cp(e.pipe),ept=e=>{let o;return e&&(typeof FormData=="function"&&e instanceof FormData||Cp(e.append)&&((o=h4(e))==="formdata"||o==="object"&&Cp(e.toString)&&e.toString()==="[object FormData]"))},tpt=Kf("URLSearchParams"),[apt,rpt,npt,ipt]=["ReadableStream","Request","Response","Headers"].map(Kf),opt=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Gb(e,o,{allOwnKeys:s=!1}={}){if(e===null||typeof e>"u")return;let B,U;if(typeof e!="object"&&(e=[e]),Rv(e))for(B=0,U=e.length;B<U;B++)o.call(null,e[B],B,e);else{const m=s?Object.getOwnPropertyNames(e):Object.keys(e),y=m.length;let a;for(B=0;B<y;B++)a=m[B],o.call(null,e[a],a,e)}}function LV(e,o){o=o.toLowerCase();const s=Object.keys(e);let B=s.length,U;for(;B-- >0;)if(U=s[B],o===U.toLowerCase())return U;return null}const pg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,BV=e=>!Ub(e)&&e!==pg;function QS(){const{caseless:e}=BV(this)&&this||{},o={},s=(B,U)=>{const m=e&&LV(o,U)||U;m4(o[m])&&m4(B)?o[m]=QS(o[m],B):m4(B)?o[m]=QS({},B):Rv(B)?o[m]=B.slice():o[m]=B};for(let B=0,U=arguments.length;B<U;B++)arguments[B]&&Gb(arguments[B],s);return o}const spt=(e,o,s,{allOwnKeys:B}={})=>(Gb(o,(U,m)=>{s&&Cp(U)?e[m]=EV(U,s):e[m]=U},{allOwnKeys:B}),e),lpt=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cpt=(e,o,s,B)=>{e.prototype=Object.create(o.prototype,B),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:o.prototype}),s&&Object.assign(e.prototype,s)},upt=(e,o,s,B)=>{let U,m,y;const a={};if(o=o||{},e==null)return o;do{for(U=Object.getOwnPropertyNames(e),m=U.length;m-- >0;)y=U[m],(!B||B(y,e,o))&&!a[y]&&(o[y]=e[y],a[y]=!0);e=s!==!1&&KS(e)}while(e&&(!s||s(e,o))&&e!==Object.prototype);return o},dpt=(e,o,s)=>{e=String(e),(s===void 0||s>e.length)&&(s=e.length),s-=o.length;const B=e.indexOf(o,s);return B!==-1&&B===s},hpt=e=>{if(!e)return null;if(Rv(e))return e;let o=e.length;if(!PV(o))return null;const s=new Array(o);for(;o-- >0;)s[o]=e[o];return s},ppt=(e=>o=>e&&o instanceof e)(typeof Uint8Array<"u"&&KS(Uint8Array)),fpt=(e,o)=>{const s=(e&&e[d4]).call(e);let B;for(;(B=s.next())&&!B.done;){const U=B.value;o.call(e,U[0],U[1])}},mpt=(e,o)=>{let s;const B=[];for(;(s=e.exec(o))!==null;)B.push(s);return B},gpt=Kf("HTMLFormElement"),ypt=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(o,s,B){return s.toUpperCase()+B}),zV=(({hasOwnProperty:e})=>(o,s)=>e.call(o,s))(Object.prototype),vpt=Kf("RegExp"),OV=(e,o)=>{const s=Object.getOwnPropertyDescriptors(e),B={};Gb(s,(U,m)=>{let y;(y=o(U,m,e))!==!1&&(B[m]=y||U)}),Object.defineProperties(e,B)},bpt=e=>{OV(e,(o,s)=>{if(Cp(e)&&["arguments","caller","callee"].indexOf(s)!==-1)return!1;const B=e[s];if(Cp(B)){if(o.enumerable=!1,"writable"in o){o.writable=!1;return}o.set||(o.set=()=>{throw Error("Can not rewrite read-only method '"+s+"'")})}})},_pt=(e,o)=>{const s={},B=U=>{U.forEach(m=>{s[m]=!0})};return Rv(e)?B(e):B(String(e).split(o)),s},xpt=()=>{},wpt=(e,o)=>e!=null&&Number.isFinite(e=+e)?e:o;function kpt(e){return!!(e&&Cp(e.append)&&e[MV]==="FormData"&&e[d4])}const Spt=e=>{const o=new Array(10),s=(B,U)=>{if(f4(B)){if(o.indexOf(B)>=0)return;if(!("toJSON"in B)){o[U]=B;const m=Rv(B)?[]:{};return Gb(B,(y,a)=>{const v=s(y,U+1);!Ub(v)&&(m[a]=v)}),o[U]=void 0,m}}return B};return s(e,0)},Cpt=Kf("AsyncFunction"),Tpt=e=>e&&(f4(e)||Cp(e))&&Cp(e.then)&&Cp(e.catch),DV=((e,o)=>e?setImmediate:o?((s,B)=>(pg.addEventListener("message",({source:U,data:m})=>{U===pg&&m===s&&B.length&&B.shift()()},!1),U=>{B.push(U),pg.postMessage(s,"*")}))(`axios@${Math.random()}`,[]):s=>setTimeout(s))(typeof setImmediate=="function",Cp(pg.postMessage)),Apt=typeof queueMicrotask<"u"?queueMicrotask.bind(pg):typeof process<"u"&&process.nextTick||DV,Ept=e=>e!=null&&Cp(e[d4]),On={isArray:Rv,isArrayBuffer:IV,isBuffer:Zht,isFormData:ept,isArrayBufferView:Wht,isString:qht,isNumber:PV,isBoolean:Jht,isObject:f4,isPlainObject:m4,isReadableStream:apt,isRequest:rpt,isResponse:npt,isHeaders:ipt,isUndefined:Ub,isDate:Yht,isFile:Xht,isBlob:$ht,isRegExp:vpt,isFunction:Cp,isStream:Qht,isURLSearchParams:tpt,isTypedArray:ppt,isFileList:Kht,forEach:Gb,merge:QS,extend:spt,trim:opt,stripBOM:lpt,inherits:cpt,toFlatObject:upt,kindOf:h4,kindOfTest:Kf,endsWith:dpt,toArray:hpt,forEachEntry:fpt,matchAll:mpt,isHTMLForm:gpt,hasOwnProperty:zV,hasOwnProp:zV,reduceDescriptors:OV,freezeMethods:bpt,toObjectSet:_pt,toCamelCase:ypt,noop:xpt,toFiniteNumber:wpt,findKey:LV,global:pg,isContextDefined:BV,isSpecCompliantForm:kpt,toJSONObject:Spt,isAsyncFn:Cpt,isThenable:Tpt,setImmediate:DV,asap:Apt,isIterable:Ept};function kl(e,o,s,B,U){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",o&&(this.code=o),s&&(this.config=s),B&&(this.request=B),U&&(this.response=U,this.status=U.status?U.status:null)}On.inherits(kl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:On.toJSONObject(this.config),code:this.code,status:this.status}}});const NV=kl.prototype,FV={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{FV[e]={value:e}}),Object.defineProperties(kl,FV),Object.defineProperty(NV,"isAxiosError",{value:!0}),kl.from=(e,o,s,B,U,m)=>{const y=Object.create(NV);return On.toFlatObject(e,y,function(a){return a!==Error.prototype},a=>a!=="isAxiosError"),kl.call(y,e.message,o,s,B,U),y.cause=e,y.name=e.name,m&&Object.assign(y,m),y};const Mpt=null;function eC(e){return On.isPlainObject(e)||On.isArray(e)}function RV(e){return On.endsWith(e,"[]")?e.slice(0,-2):e}function VV(e,o,s){return e?e.concat(o).map(function(B,U){return B=RV(B),!s&&U?"["+B+"]":B}).join(s?".":""):o}function Ipt(e){return On.isArray(e)&&!e.some(eC)}const Ppt=On.toFlatObject(On,{},null,function(e){return/^is[A-Z]/.test(e)});function g4(e,o,s){if(!On.isObject(e))throw new TypeError("target must be an object");o=o||new FormData,s=On.toFlatObject(s,{metaTokens:!0,dots:!1,indexes:!1},!1,function(x,h){return!On.isUndefined(h[x])});const B=s.metaTokens,U=s.visitor||p,m=s.dots,y=s.indexes,a=(s.Blob||typeof Blob<"u"&&Blob)&&On.isSpecCompliantForm(o);if(!On.isFunction(U))throw new TypeError("visitor must be a function");function v(x){if(x===null)return"";if(On.isDate(x))return x.toISOString();if(On.isBoolean(x))return x.toString();if(!a&&On.isBlob(x))throw new kl("Blob is not supported. Use a Buffer instead.");return On.isArrayBuffer(x)||On.isTypedArray(x)?a&&typeof Blob=="function"?new Blob([x]):Buffer.from(x):x}function p(x,h,n){let i=x;if(x&&!n&&typeof x=="object"){if(On.endsWith(h,"{}"))h=B?h:h.slice(0,-2),x=JSON.stringify(x);else if(On.isArray(x)&&Ipt(x)||(On.isFileList(x)||On.endsWith(h,"[]"))&&(i=On.toArray(x)))return h=RV(h),i.forEach(function(c,l){!(On.isUndefined(c)||c===null)&&o.append(y===!0?VV([h],l,m):y===null?h:h+"[]",v(c))}),!1}return eC(x)?!0:(o.append(VV(n,h,m),v(x)),!1)}const r=[],_=Object.assign(Ppt,{defaultVisitor:p,convertValue:v,isVisitable:eC});function b(x,h){if(!On.isUndefined(x)){if(r.indexOf(x)!==-1)throw Error("Circular reference detected in "+h.join("."));r.push(x),On.forEach(x,function(n,i){(!(On.isUndefined(n)||n===null)&&U.call(o,n,On.isString(i)?i.trim():i,h,_))===!0&&b(n,h?h.concat(i):[i])}),r.pop()}}if(!On.isObject(e))throw new TypeError("data must be an object");return b(e),o}function jV(e){const o={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(s){return o[s]})}function tC(e,o){this._pairs=[],e&&g4(e,this,o)}const UV=tC.prototype;UV.append=function(e,o){this._pairs.push([e,o])},UV.toString=function(e){const o=e?function(s){return e.call(this,s,jV)}:jV;return this._pairs.map(function(s){return o(s[0])+"="+o(s[1])},"").join("&")};function Lpt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function GV(e,o,s){if(!o)return e;const B=s&&s.encode||Lpt;On.isFunction(s)&&(s={serialize:s});const U=s&&s.serialize;let m;if(U?m=U(o,s):m=On.isURLSearchParams(o)?o.toString():new tC(o,s).toString(B),m){const y=e.indexOf("#");y!==-1&&(e=e.slice(0,y)),e+=(e.indexOf("?")===-1?"?":"&")+m}return e}let HV=class{constructor(){this.handlers=[]}use(o,s,B){return this.handlers.push({fulfilled:o,rejected:s,synchronous:B?B.synchronous:!1,runWhen:B?B.runWhen:null}),this.handlers.length-1}eject(o){this.handlers[o]&&(this.handlers[o]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(o){On.forEach(this.handlers,function(s){s!==null&&o(s)})}};const ZV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Bpt=typeof URLSearchParams<"u"?URLSearchParams:tC,zpt=typeof FormData<"u"?FormData:null,Opt=typeof Blob<"u"?Blob:null,Dpt={isBrowser:!0,classes:{URLSearchParams:Bpt,FormData:zpt,Blob:Opt},protocols:["http","https","file","blob","url","data"]},aC=typeof window<"u"&&typeof document<"u",rC=typeof navigator=="object"&&navigator||void 0,Npt=aC&&(!rC||["ReactNative","NativeScript","NS"].indexOf(rC.product)<0),Fpt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Rpt=aC&&window.location.href||"http://localhost",Vpt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:aC,hasStandardBrowserEnv:Npt,hasStandardBrowserWebWorkerEnv:Fpt,navigator:rC,origin:Rpt},Symbol.toStringTag,{value:"Module"})),Bh={...Vpt,...Dpt};function jpt(e,o){return g4(e,new Bh.classes.URLSearchParams,Object.assign({visitor:function(s,B,U,m){return Bh.isNode&&On.isBuffer(s)?(this.append(B,s.toString("base64")),!1):m.defaultVisitor.apply(this,arguments)}},o))}function Upt(e){return On.matchAll(/\w+|\[(\w*)]/g,e).map(o=>o[0]==="[]"?"":o[1]||o[0])}function Gpt(e){const o={},s=Object.keys(e);let B;const U=s.length;let m;for(B=0;B<U;B++)m=s[B],o[m]=e[m];return o}function WV(e){function o(s,B,U,m){let y=s[m++];if(y==="__proto__")return!0;const a=Number.isFinite(+y),v=m>=s.length;return y=!y&&On.isArray(U)?U.length:y,v?(On.hasOwnProp(U,y)?U[y]=[U[y],B]:U[y]=B,!a):((!U[y]||!On.isObject(U[y]))&&(U[y]=[]),o(s,B,U[y],m)&&On.isArray(U[y])&&(U[y]=Gpt(U[y])),!a)}if(On.isFormData(e)&&On.isFunction(e.entries)){const s={};return On.forEachEntry(e,(B,U)=>{o(Upt(B),U,s,0)}),s}return null}function Hpt(e,o,s){if(On.isString(e))try{return(o||JSON.parse)(e),On.trim(e)}catch(B){if(B.name!=="SyntaxError")throw B}return(s||JSON.stringify)(e)}const Hb={transitional:ZV,adapter:["xhr","http","fetch"],transformRequest:[function(e,o){const s=o.getContentType()||"",B=s.indexOf("application/json")>-1,U=On.isObject(e);if(U&&On.isHTMLForm(e)&&(e=new FormData(e)),On.isFormData(e))return B?JSON.stringify(WV(e)):e;if(On.isArrayBuffer(e)||On.isBuffer(e)||On.isStream(e)||On.isFile(e)||On.isBlob(e)||On.isReadableStream(e))return e;if(On.isArrayBufferView(e))return e.buffer;if(On.isURLSearchParams(e))return o.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let m;if(U){if(s.indexOf("application/x-www-form-urlencoded")>-1)return jpt(e,this.formSerializer).toString();if((m=On.isFileList(e))||s.indexOf("multipart/form-data")>-1){const y=this.env&&this.env.FormData;return g4(m?{"files[]":e}:e,y&&new y,this.formSerializer)}}return U||B?(o.setContentType("application/json",!1),Hpt(e)):e}],transformResponse:[function(e){const o=this.transitional||Hb.transitional,s=o&&o.forcedJSONParsing,B=this.responseType==="json";if(On.isResponse(e)||On.isReadableStream(e))return e;if(e&&On.isString(e)&&(s&&!this.responseType||B)){const U=!(o&&o.silentJSONParsing)&&B;try{return JSON.parse(e)}catch(m){if(U)throw m.name==="SyntaxError"?kl.from(m,kl.ERR_BAD_RESPONSE,this,null,this.response):m}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Bh.classes.FormData,Blob:Bh.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};On.forEach(["delete","get","head","post","put","patch"],e=>{Hb.headers[e]={}});const Zpt=On.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Wpt=e=>{const o={};let s,B,U;return e&&e.split(`
4137
4137
  `).forEach(function(m){U=m.indexOf(":"),s=m.substring(0,U).trim().toLowerCase(),B=m.substring(U+1).trim(),!(!s||o[s]&&Zpt[s])&&(s==="set-cookie"?o[s]?o[s].push(B):o[s]=[B]:o[s]=o[s]?o[s]+", "+B:B)}),o},qV=Symbol("internals");function Zb(e){return e&&String(e).trim().toLowerCase()}function y4(e){return e===!1||e==null?e:On.isArray(e)?e.map(y4):String(e)}function qpt(e){const o=Object.create(null),s=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let B;for(;B=s.exec(e);)o[B[1]]=B[2];return o}const Jpt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function nC(e,o,s,B,U){if(On.isFunction(B))return B.call(this,o,s);if(U&&(o=s),!!On.isString(o)){if(On.isString(B))return o.indexOf(B)!==-1;if(On.isRegExp(B))return B.test(o)}}function Ypt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(o,s,B)=>s.toUpperCase()+B)}function Xpt(e,o){const s=On.toCamelCase(" "+o);["get","set","has"].forEach(B=>{Object.defineProperty(e,B+s,{value:function(U,m,y){return this[B].call(this,o,U,m,y)},configurable:!0})})}let Tp=class{constructor(o){o&&this.set(o)}set(o,s,B){const U=this;function m(a,v,p){const r=Zb(v);if(!r)throw new Error("header name must be a non-empty string");const _=On.findKey(U,r);(!_||U[_]===void 0||p===!0||p===void 0&&U[_]!==!1)&&(U[_||v]=y4(a))}const y=(a,v)=>On.forEach(a,(p,r)=>m(p,r,v));if(On.isPlainObject(o)||o instanceof this.constructor)y(o,s);else if(On.isString(o)&&(o=o.trim())&&!Jpt(o))y(Wpt(o),s);else if(On.isObject(o)&&On.isIterable(o)){let a={},v,p;for(const r of o){if(!On.isArray(r))throw TypeError("Object iterator must return a key-value pair");a[p=r[0]]=(v=a[p])?On.isArray(v)?[...v,r[1]]:[v,r[1]]:r[1]}y(a,s)}else o!=null&&m(s,o,B);return this}get(o,s){if(o=Zb(o),o){const B=On.findKey(this,o);if(B){const U=this[B];if(!s)return U;if(s===!0)return qpt(U);if(On.isFunction(s))return s.call(this,U,B);if(On.isRegExp(s))return s.exec(U);throw new TypeError("parser must be boolean|regexp|function")}}}has(o,s){if(o=Zb(o),o){const B=On.findKey(this,o);return!!(B&&this[B]!==void 0&&(!s||nC(this,this[B],B,s)))}return!1}delete(o,s){const B=this;let U=!1;function m(y){if(y=Zb(y),y){const a=On.findKey(B,y);a&&(!s||nC(B,B[a],a,s))&&(delete B[a],U=!0)}}return On.isArray(o)?o.forEach(m):m(o),U}clear(o){const s=Object.keys(this);let B=s.length,U=!1;for(;B--;){const m=s[B];(!o||nC(this,this[m],m,o,!0))&&(delete this[m],U=!0)}return U}normalize(o){const s=this,B={};return On.forEach(this,(U,m)=>{const y=On.findKey(B,m);if(y){s[y]=y4(U),delete s[m];return}const a=o?Ypt(m):String(m).trim();a!==m&&delete s[m],s[a]=y4(U),B[a]=!0}),this}concat(...o){return this.constructor.concat(this,...o)}toJSON(o){const s=Object.create(null);return On.forEach(this,(B,U)=>{B!=null&&B!==!1&&(s[U]=o&&On.isArray(B)?B.join(", "):B)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([o,s])=>o+": "+s).join(`
4138
4138
  `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(o){return o instanceof this?o:new this(o)}static concat(o,...s){const B=new this(o);return s.forEach(U=>B.set(U)),B}static accessor(o){const s=(this[qV]=this[qV]={accessors:{}}).accessors,B=this.prototype;function U(m){const y=Zb(m);s[y]||(Xpt(B,m),s[y]=!0)}return On.isArray(o)?o.forEach(U):U(o),this}};Tp.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),On.reduceDescriptors(Tp.prototype,({value:e},o)=>{let s=o[0].toUpperCase()+o.slice(1);return{get:()=>e,set(B){this[s]=B}}}),On.freezeMethods(Tp);function iC(e,o){const s=this||Hb,B=o||s,U=Tp.from(B.headers);let m=B.data;return On.forEach(e,function(y){m=y.call(s,m,U.normalize(),o?o.status:void 0)}),U.normalize(),m}function JV(e){return!!(e&&e.__CANCEL__)}function Vv(e,o,s){kl.call(this,e??"canceled",kl.ERR_CANCELED,o,s),this.name="CanceledError"}On.inherits(Vv,kl,{__CANCEL__:!0});function YV(e,o,s){const B=s.config.validateStatus;!s.status||!B||B(s.status)?e(s):o(new kl("Request failed with status code "+s.status,[kl.ERR_BAD_REQUEST,kl.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}function $pt(e){const o=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return o&&o[1]||""}function Kpt(e,o){e=e||10;const s=new Array(e),B=new Array(e);let U=0,m=0,y;return o=o!==void 0?o:1e3,function(a){const v=Date.now(),p=B[m];y||(y=v),s[U]=a,B[U]=v;let r=m,_=0;for(;r!==U;)_+=s[r++],r=r%e;if(U=(U+1)%e,U===m&&(m=(m+1)%e),v-y<o)return;const b=p&&v-p;return b?Math.round(_*1e3/b):void 0}}function Qpt(e,o){let s=0,B=1e3/o,U,m;const y=(a,v=Date.now())=>{s=v,U=null,m&&(clearTimeout(m),m=null),e.apply(null,a)};return[(...a)=>{const v=Date.now(),p=v-s;p>=B?y(a,v):(U=a,m||(m=setTimeout(()=>{m=null,y(U)},B-p)))},()=>U&&y(U)]}const v4=(e,o,s=3)=>{let B=0;const U=Kpt(50,250);return Qpt(m=>{const y=m.loaded,a=m.lengthComputable?m.total:void 0,v=y-B,p=U(v),r=y<=a;B=y;const _={loaded:y,total:a,progress:a?y/a:void 0,bytes:v,rate:p||void 0,estimated:p&&a&&r?(a-y)/p:void 0,event:m,lengthComputable:a!=null,[o?"download":"upload"]:!0};e(_)},s)},XV=(e,o)=>{const s=e!=null;return[B=>o[0]({lengthComputable:s,total:e,loaded:B}),o[1]]},$V=e=>(...o)=>On.asap(()=>e(...o)),eft=Bh.hasStandardBrowserEnv?((e,o)=>s=>(s=new URL(s,Bh.origin),e.protocol===s.protocol&&e.host===s.host&&(o||e.port===s.port)))(new URL(Bh.origin),Bh.navigator&&/(msie|trident)/i.test(Bh.navigator.userAgent)):()=>!0,tft=Bh.hasStandardBrowserEnv?{write(e,o,s,B,U,m){const y=[e+"="+encodeURIComponent(o)];On.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),On.isString(B)&&y.push("path="+B),On.isString(U)&&y.push("domain="+U),m===!0&&y.push("secure"),document.cookie=y.join("; ")},read(e){const o=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function aft(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rft(e,o){return o?e.replace(/\/?\/$/,"")+"/"+o.replace(/^\/+/,""):e}function KV(e,o,s){let B=!aft(o);return e&&(B||s==!1)?rft(e,o):o}const QV=e=>e instanceof Tp?{...e}:e;function fg(e,o){o=o||{};const s={};function B(p,r,_,b){return On.isPlainObject(p)&&On.isPlainObject(r)?On.merge.call({caseless:b},p,r):On.isPlainObject(r)?On.merge({},r):On.isArray(r)?r.slice():r}function U(p,r,_,b){if(On.isUndefined(r)){if(!On.isUndefined(p))return B(void 0,p,_,b)}else return B(p,r,_,b)}function m(p,r){if(!On.isUndefined(r))return B(void 0,r)}function y(p,r){if(On.isUndefined(r)){if(!On.isUndefined(p))return B(void 0,p)}else return B(void 0,r)}function a(p,r,_){if(_ in o)return B(p,r);if(_ in e)return B(void 0,p)}const v={url:m,method:m,data:m,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:a,headers:(p,r,_)=>U(QV(p),QV(r),_,!0)};return On.forEach(Object.keys(Object.assign({},e,o)),function(p){const r=v[p]||U,_=r(e[p],o[p],p);On.isUndefined(_)&&r!==a||(s[p]=_)}),s}const ej=e=>{const o=fg({},e);let{data:s,withXSRFToken:B,xsrfHeaderName:U,xsrfCookieName:m,headers:y,auth:a}=o;o.headers=y=Tp.from(y),o.url=GV(KV(o.baseURL,o.url,o.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&y.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):"")));let v;if(On.isFormData(s)){if(Bh.hasStandardBrowserEnv||Bh.hasStandardBrowserWebWorkerEnv)y.setContentType(void 0);else if((v=y.getContentType())!==!1){const[p,...r]=v?v.split(";").map(_=>_.trim()).filter(Boolean):[];y.setContentType([p||"multipart/form-data",...r].join("; "))}}if(Bh.hasStandardBrowserEnv&&(B&&On.isFunction(B)&&(B=B(o)),B||B!==!1&&eft(o.url))){const p=U&&m&&tft.read(m);p&&y.set(U,p)}return o},nft=typeof XMLHttpRequest<"u",ift=nft&&function(e){return new Promise(function(o,s){const B=ej(e);let U=B.data;const m=Tp.from(B.headers).normalize();let{responseType:y,onUploadProgress:a,onDownloadProgress:v}=B,p,r,_,b,x;function h(){b&&b(),x&&x(),B.cancelToken&&B.cancelToken.unsubscribe(p),B.signal&&B.signal.removeEventListener("abort",p)}let n=new XMLHttpRequest;n.open(B.method.toUpperCase(),B.url,!0),n.timeout=B.timeout;function i(){if(!n)return;const l=Tp.from("getAllResponseHeaders"in n&&n.getAllResponseHeaders()),d={data:!y||y==="text"||y==="json"?n.responseText:n.response,status:n.status,statusText:n.statusText,headers:l,config:e,request:n};YV(function(g){o(g),h()},function(g){s(g),h()},d),n=null}"onloadend"in n?n.onloadend=i:n.onreadystatechange=function(){!n||n.readyState!==4||n.status===0&&!(n.responseURL&&n.responseURL.indexOf("file:")===0)||setTimeout(i)},n.onabort=function(){n&&(s(new kl("Request aborted",kl.ECONNABORTED,e,n)),n=null)},n.onerror=function(){s(new kl("Network Error",kl.ERR_NETWORK,e,n)),n=null},n.ontimeout=function(){let l=B.timeout?"timeout of "+B.timeout+"ms exceeded":"timeout exceeded";const d=B.transitional||ZV;B.timeoutErrorMessage&&(l=B.timeoutErrorMessage),s(new kl(l,d.clarifyTimeoutError?kl.ETIMEDOUT:kl.ECONNABORTED,e,n)),n=null},U===void 0&&m.setContentType(null),"setRequestHeader"in n&&On.forEach(m.toJSON(),function(l,d){n.setRequestHeader(d,l)}),On.isUndefined(B.withCredentials)||(n.withCredentials=!!B.withCredentials),y&&y!=="json"&&(n.responseType=B.responseType),v&&([_,x]=v4(v,!0),n.addEventListener("progress",_)),a&&n.upload&&([r,b]=v4(a),n.upload.addEventListener("progress",r),n.upload.addEventListener("loadend",b)),(B.cancelToken||B.signal)&&(p=l=>{n&&(s(!l||l.type?new Vv(null,e,n):l),n.abort(),n=null)},B.cancelToken&&B.cancelToken.subscribe(p),B.signal&&(B.signal.aborted?p():B.signal.addEventListener("abort",p)));const c=$pt(B.url);if(c&&Bh.protocols.indexOf(c)===-1){s(new kl("Unsupported protocol "+c+":",kl.ERR_BAD_REQUEST,e));return}n.send(U||null)})},oft=(e,o)=>{const{length:s}=e=e?e.filter(Boolean):[];if(o||s){let B=new AbortController,U;const m=function(p){if(!U){U=!0,a();const r=p instanceof Error?p:this.reason;B.abort(r instanceof kl?r:new Vv(r instanceof Error?r.message:r))}};let y=o&&setTimeout(()=>{y=null,m(new kl(`timeout ${o} of ms exceeded`,kl.ETIMEDOUT))},o);const a=()=>{e&&(y&&clearTimeout(y),y=null,e.forEach(p=>{p.unsubscribe?p.unsubscribe(m):p.removeEventListener("abort",m)}),e=null)};e.forEach(p=>p.addEventListener("abort",m));const{signal:v}=B;return v.unsubscribe=()=>On.asap(a),v}},sft=function*(e,o){let s=e.byteLength;if(s<o){yield e;return}let B=0,U;for(;B<s;)U=B+o,yield e.slice(B,U),B=U},lft=async function*(e,o){for await(const s of cft(e))yield*sft(s,o)},cft=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const o=e.getReader();try{for(;;){const{done:s,value:B}=await o.read();if(s)break;yield B}}finally{await o.cancel()}},tj=(e,o,s,B)=>{const U=lft(e,o);let m=0,y,a=v=>{y||(y=!0,B&&B(v))};return new ReadableStream({async pull(v){try{const{done:p,value:r}=await U.next();if(p){a(),v.close();return}let _=r.byteLength;if(s){let b=m+=_;s(b)}v.enqueue(new Uint8Array(r))}catch(p){throw a(p),p}},cancel(v){return a(v),U.return()}},{highWaterMark:2})},b4=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",aj=b4&&typeof ReadableStream=="function",uft=b4&&(typeof TextEncoder=="function"?(e=>o=>e.encode(o))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),rj=(e,...o)=>{try{return!!e(...o)}catch{return!1}},dft=aj&&rj(()=>{let e=!1;const o=new Request(Bh.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!o}),nj=64*1024,oC=aj&&rj(()=>On.isReadableStream(new Response("").body)),_4={stream:oC&&(e=>e.body)};b4&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(o=>{!_4[o]&&(_4[o]=On.isFunction(e[o])?s=>s[o]():(s,B)=>{throw new kl(`Response type '${o}' is not supported`,kl.ERR_NOT_SUPPORT,B)})})})(new Response);const hft=async e=>{if(e==null)return 0;if(On.isBlob(e))return e.size;if(On.isSpecCompliantForm(e))return(await new Request(Bh.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(On.isArrayBufferView(e)||On.isArrayBuffer(e))return e.byteLength;if(On.isURLSearchParams(e)&&(e=e+""),On.isString(e))return(await uft(e)).byteLength},pft=async(e,o)=>On.toFiniteNumber(e.getContentLength())??hft(o),fft=b4&&(async e=>{let{url:o,method:s,data:B,signal:U,cancelToken:m,timeout:y,onDownloadProgress:a,onUploadProgress:v,responseType:p,headers:r,withCredentials:_="same-origin",fetchOptions:b}=ej(e);p=p?(p+"").toLowerCase():"text";let x=oft([U,m&&m.toAbortSignal()],y),h;const n=x&&x.unsubscribe&&(()=>{x.unsubscribe()});let i;try{if(v&&dft&&s!=="get"&&s!=="head"&&(i=await pft(r,B))!==0){let w=new Request(o,{method:"POST",body:B,duplex:"half"}),C;if(On.isFormData(B)&&(C=w.headers.get("content-type"))&&r.setContentType(C),w.body){const[E,A]=XV(i,v4($V(v)));B=tj(w.body,nj,E,A)}}On.isString(_)||(_=_?"include":"omit");const c="credentials"in Request.prototype;h=new Request(o,{...b,signal:x,method:s.toUpperCase(),headers:r.normalize().toJSON(),body:B,duplex:"half",credentials:c?_:void 0});let l=await fetch(h,b);const d=oC&&(p==="stream"||p==="response");if(oC&&(a||d&&n)){const w={};["status","statusText","headers"].forEach(P=>{w[P]=l[P]});const C=On.toFiniteNumber(l.headers.get("content-length")),[E,A]=a&&XV(C,v4($V(a),!0))||[];l=new Response(tj(l.body,nj,E,()=>{A&&A(),n&&n()}),w)}p=p||"text";let g=await _4[On.findKey(_4,p)||"text"](l,e);return!d&&n&&n(),await new Promise((w,C)=>{YV(w,C,{data:g,headers:Tp.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:h})})}catch(c){throw n&&n(),c&&c.name==="TypeError"&&/Load failed|fetch/i.test(c.message)?Object.assign(new kl("Network Error",kl.ERR_NETWORK,e,h),{cause:c.cause||c}):kl.from(c,c&&c.code,e,h)}}),sC={http:Mpt,xhr:ift,fetch:fft};On.forEach(sC,(e,o)=>{if(e){try{Object.defineProperty(e,"name",{value:o})}catch{}Object.defineProperty(e,"adapterName",{value:o})}});const ij=e=>`- ${e}`,mft=e=>On.isFunction(e)||e===null||e===!1,oj={getAdapter:e=>{e=On.isArray(e)?e:[e];const{length:o}=e;let s,B;const U={};for(let m=0;m<o;m++){s=e[m];let y;if(B=s,!mft(s)&&(B=sC[(y=String(s)).toLowerCase()],B===void 0))throw new kl(`Unknown adapter '${y}'`);if(B)break;U[y||"#"+m]=B}if(!B){const m=Object.entries(U).map(([a,v])=>`adapter ${a} `+(v===!1?"is not supported by the environment":"is not available in the build"));let y=o?m.length>1?`since :
4139
4139
  `+m.map(ij).join(`
@@ -8201,4 +8201,4 @@ uniform ${Fe} ${Ge} u_${rt};
8201
8201
  * vuex v4.0.2
8202
8202
  * (c) 2021 Evan You
8203
8203
  * @license MIT
8204
- */var aW="store";function Ljt(e){return e===void 0&&(e=null),t.inject(e!==null?e:aW)}function Ng(e,o){Object.keys(e).forEach(function(s){return o(e[s],s)})}function rW(e){return e!==null&&typeof e=="object"}function Bjt(e){return e&&typeof e.then=="function"}function n0(e,o){if(!e)throw new Error("[vuex] "+o)}function zjt(e,o){return function(){return e(o)}}function nW(e,o,s){return o.indexOf(e)<0&&(s&&s.prepend?o.unshift(e):o.push(e)),function(){var B=o.indexOf(e);B>-1&&o.splice(B,1)}}function iW(e,o){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var s=e.state;Rw(e,s,[],e._modules.root,!0),eA(e,s,o)}function eA(e,o,s){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var U=e._wrappedGetters,m={};Ng(U,function(y,a){m[a]=zjt(y,e),Object.defineProperty(e.getters,a,{get:function(){return m[a]()},enumerable:!0})}),e._state=t.reactive({data:o}),e.strict&&Rjt(e),B&&s&&e._withCommit(function(){B.data=null})}function Rw(e,o,s,B,U){var m=!s.length,y=e._modules.getNamespace(s);if(B.namespaced&&(e._modulesNamespaceMap[y]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+y+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[y]=B),!m&&!U){var a=tA(o,s.slice(0,-1)),v=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&v in a&&console.warn('[vuex] state field "'+v+'" was overridden by a module with the same name at "'+s.join(".")+'"'),a[v]=B.state})}var p=B.context=Ojt(e,y,s);B.forEachMutation(function(r,_){var b=y+_;Djt(e,b,r,p)}),B.forEachAction(function(r,_){var b=r.root?_:y+_,x=r.handler||r;Njt(e,b,x,p)}),B.forEachGetter(function(r,_){var b=y+_;Fjt(e,b,r,p)}),B.forEachChild(function(r,_){Rw(e,o,s.concat(_),r,U)})}function Ojt(e,o,s){var B=o==="",U={dispatch:B?e.dispatch:function(m,y,a){var v=Vw(m,y,a),p=v.payload,r=v.options,_=v.type;if((!r||!r.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._actions[_])){console.error("[vuex] unknown local action type: "+v.type+", global type: "+_);return}return e.dispatch(_,p)},commit:B?e.commit:function(m,y,a){var v=Vw(m,y,a),p=v.payload,r=v.options,_=v.type;if((!r||!r.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._mutations[_])){console.error("[vuex] unknown local mutation type: "+v.type+", global type: "+_);return}e.commit(_,p,r)}};return Object.defineProperties(U,{getters:{get:B?function(){return e.getters}:function(){return oW(e,o)}},state:{get:function(){return tA(e.state,s)}}}),U}function oW(e,o){if(!e._makeLocalGettersCache[o]){var s={},B=o.length;Object.keys(e.getters).forEach(function(U){if(U.slice(0,B)===o){var m=U.slice(B);Object.defineProperty(s,m,{get:function(){return e.getters[U]},enumerable:!0})}}),e._makeLocalGettersCache[o]=s}return e._makeLocalGettersCache[o]}function Djt(e,o,s,B){var U=e._mutations[o]||(e._mutations[o]=[]);U.push(function(m){s.call(e,B.state,m)})}function Njt(e,o,s,B){var U=e._actions[o]||(e._actions[o]=[]);U.push(function(m){var y=s.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},m);return Bjt(y)||(y=Promise.resolve(y)),e._devtoolHook?y.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):y})}function Fjt(e,o,s,B){if(e._wrappedGetters[o]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+o);return}e._wrappedGetters[o]=function(U){return s(B.state,B.getters,U.state,U.getters)}}function Rjt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&n0(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function tA(e,o){return o.reduce(function(s,B){return s[B]},e)}function Vw(e,o,s){return rW(e)&&e.type&&(s=o,o=e,e=e.type),process.env.NODE_ENV!=="production"&&n0(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:o,options:s}}var Vjt="vuex bindings",sW="vuex:mutations",aA="vuex:actions",f2="vuex",jjt=0;function Ujt(e,o){Pjt({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Vjt]},function(s){s.addTimelineLayer({id:sW,label:"Vuex Mutations",color:lW}),s.addTimelineLayer({id:aA,label:"Vuex Actions",color:lW}),s.addInspector({id:f2,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===f2)if(B.filter){var U=[];hW(U,o._modules.root,B.filter,""),B.rootNodes=U}else B.rootNodes=[dW(o._modules.root,"")]}),s.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===f2){var U=B.nodeId;oW(o,U),B.state=Zjt(qjt(o._modules,U),U==="root"?o.getters:o._makeLocalGettersCache,U)}}),s.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===f2){var U=B.nodeId,m=B.path;U!=="root"&&(m=U.split("/").filter(Boolean).concat(m)),o._withCommit(function(){B.set(o._state.data,m,B.state.value)})}}),o.subscribe(function(B,U){var m={};B.payload&&(m.payload=B.payload),m.state=U,s.notifyComponentUpdate(),s.sendInspectorTree(f2),s.sendInspectorState(f2),s.addTimelineEvent({layerId:sW,event:{time:Date.now(),title:B.type,data:m}})}),o.subscribeAction({before:function(B,U){var m={};B.payload&&(m.payload=B.payload),B._id=jjt++,B._time=Date.now(),m.state=U,s.addTimelineEvent({layerId:aA,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:m}})},after:function(B,U){var m={},y=Date.now()-B._time;m.duration={_custom:{type:"duration",display:y+"ms",tooltip:"Action duration",value:y}},B.payload&&(m.payload=B.payload),m.state=U,s.addTimelineEvent({layerId:aA,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:m}})}})})}var lW=8702998,Gjt=6710886,Hjt=16777215,cW={label:"namespaced",textColor:Hjt,backgroundColor:Gjt};function uW(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function dW(e,o){return{id:o||"root",label:uW(o),tags:e.namespaced?[cW]:[],children:Object.keys(e._children).map(function(s){return dW(e._children[s],o+s+"/")})}}function hW(e,o,s,B){B.includes(s)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:o.namespaced?[cW]:[]}),Object.keys(o._children).forEach(function(U){hW(e,o._children[U],s,B+U+"/")})}function Zjt(e,o,s){o=s==="root"?o:o[s];var B=Object.keys(o),U={state:Object.keys(e.state).map(function(y){return{key:y,editable:!0,value:e.state[y]}})};if(B.length){var m=Wjt(o);U.getters=Object.keys(m).map(function(y){return{key:y.endsWith("/")?uW(y):y,editable:!1,value:rA(function(){return m[y]})}})}return U}function Wjt(e){var o={};return Object.keys(e).forEach(function(s){var B=s.split("/");if(B.length>1){var U=o,m=B.pop();B.forEach(function(y){U[y]||(U[y]={_custom:{value:{},display:y,tooltip:"Module",abstract:!0}}),U=U[y]._custom.value}),U[m]=rA(function(){return e[s]})}else o[s]=rA(function(){return e[s]})}),o}function qjt(e,o){var s=o.split("/").filter(function(B){return B});return s.reduce(function(B,U,m){var y=B[U];if(!y)throw new Error('Missing module "'+U+'" for path "'+o+'".');return m===s.length-1?y:y._children},o==="root"?e:e.root._children)}function rA(e){try{return e()}catch(o){return o}}var i0=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},pW={namespaced:{configurable:!0}};pW.namespaced.get=function(){return!!this._rawModule.namespaced},i0.prototype.addChild=function(e,o){this._children[e]=o},i0.prototype.removeChild=function(e){delete this._children[e]},i0.prototype.getChild=function(e){return this._children[e]},i0.prototype.hasChild=function(e){return e in this._children},i0.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},i0.prototype.forEachChild=function(e){Ng(this._children,e)},i0.prototype.forEachGetter=function(e){this._rawModule.getters&&Ng(this._rawModule.getters,e)},i0.prototype.forEachAction=function(e){this._rawModule.actions&&Ng(this._rawModule.actions,e)},i0.prototype.forEachMutation=function(e){this._rawModule.mutations&&Ng(this._rawModule.mutations,e)},Object.defineProperties(i0.prototype,pW);var Fg=function(e){this.register([],e,!1)};Fg.prototype.get=function(e){return e.reduce(function(o,s){return o.getChild(s)},this.root)},Fg.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(s,B){return o=o.getChild(B),s+(o.namespaced?B+"/":"")},"")},Fg.prototype.update=function(e){fW([],this.root,e)},Fg.prototype.register=function(e,o,s){var B=this;s===void 0&&(s=!0),process.env.NODE_ENV!=="production"&&yW(e,o);var U=new i0(o,s);if(e.length===0)this.root=U;else{var m=this.get(e.slice(0,-1));m.addChild(e[e.length-1],U)}o.modules&&Ng(o.modules,function(y,a){B.register(e.concat(a),y,s)})},Fg.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1],B=o.getChild(s);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}B.runtime&&o.removeChild(s)},Fg.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1];return o?o.hasChild(s):!1};function fW(e,o,s){if(process.env.NODE_ENV!=="production"&&yW(e,s),o.update(s),s.modules)for(var B in s.modules){if(!o.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}fW(e.concat(B),o.getChild(B),s.modules[B])}}var mW={assert:function(e){return typeof e=="function"},expected:"function"},Jjt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},gW={getters:mW,mutations:mW,actions:Jjt};function yW(e,o){Object.keys(gW).forEach(function(s){if(o[s]){var B=gW[s];Ng(o[s],function(U,m){n0(B.assert(U),Yjt(e,s,m,U,B.expected))})}})}function Yjt(e,o,s,B,U){var m=o+" should be "+U+' but "'+o+"."+s+'"';return e.length>0&&(m+=' in module "'+e.join(".")+'"'),m+=" is "+JSON.stringify(B)+".",m}var Jp=function e(o){var s=this;o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&(n0(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),n0(this instanceof e,"store must be called with the new operator."));var B=o.plugins;B===void 0&&(B=[]);var U=o.strict;U===void 0&&(U=!1);var m=o.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Fg(o),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=m;var y=this,a=this,v=a.dispatch,p=a.commit;this.dispatch=function(_,b){return v.call(y,_,b)},this.commit=function(_,b,x){return p.call(y,_,b,x)},this.strict=U;var r=this._modules.root.state;Rw(this,r,[],this._modules.root),eA(this,r),B.forEach(function(_){return _(s)})},nA={state:{configurable:!0}};Jp.prototype.install=function(e,o){e.provide(o||aW,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;s&&Ujt(e,this)},nA.state.get=function(){return this._state.data},nA.state.set=function(e){process.env.NODE_ENV!=="production"&&n0(!1,"use store.replaceState() to explicit replace store state.")},Jp.prototype.commit=function(e,o,s){var B=this,U=Vw(e,o,s),m=U.type,y=U.payload,a=U.options,v={type:m,payload:y},p=this._mutations[m];if(!p){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+m);return}this._withCommit(function(){p.forEach(function(r){r(y)})}),this._subscribers.slice().forEach(function(r){return r(v,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+m+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Jp.prototype.dispatch=function(e,o){var s=this,B=Vw(e,o),U=B.type,m=B.payload,y={type:U,payload:m},a=this._actions[U];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+U);return}try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(y,s.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(p))}var v=a.length>1?Promise.all(a.map(function(p){return p(m)})):a[0](m);return new Promise(function(p,r){v.then(function(_){try{s._actionSubscribers.filter(function(b){return b.after}).forEach(function(b){return b.after(y,s.state)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(b))}p(_)},function(_){try{s._actionSubscribers.filter(function(b){return b.error}).forEach(function(b){return b.error(y,s.state,_)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(b))}r(_)})})},Jp.prototype.subscribe=function(e,o){return nW(e,this._subscribers,o)},Jp.prototype.subscribeAction=function(e,o){var s=typeof e=="function"?{before:e}:e;return nW(s,this._actionSubscribers,o)},Jp.prototype.watch=function(e,o,s){var B=this;return process.env.NODE_ENV!=="production"&&n0(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},o,Object.assign({},s))},Jp.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._state.data=e})},Jp.prototype.registerModule=function(e,o,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(n0(Array.isArray(e),"module path must be a string or an Array."),n0(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),Rw(this,this.state,e,this._modules.get(e),s.preserveState),eA(this,this.state)},Jp.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&n0(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var s=tA(o.state,e.slice(0,-1));delete s[e[e.length-1]]}),iW(this)},Jp.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&n0(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Jp.prototype.hotUpdate=function(e){this._modules.update(e),iW(this,!0)},Jp.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o},Object.defineProperties(Jp.prototype,nA);var Xjt=Kjt(function(e,o){var s={};return process.env.NODE_ENV!=="production"&&!vW(o)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),$jt(o).forEach(function(B){var U=B.key,m=B.val;s[U]=function(){for(var y=[],a=arguments.length;a--;)y[a]=arguments[a];var v=this.$store.commit;if(e){var p=Qjt(this.$store,"mapMutations",e);if(!p)return;v=p.context.commit}return typeof m=="function"?m.apply(this,[v].concat(y)):v.apply(this.$store,[m].concat(y))}}),s});function $jt(e){return vW(e)?Array.isArray(e)?e.map(function(o){return{key:o,val:o}}):Object.keys(e).map(function(o){return{key:o,val:e[o]}}):[]}function vW(e){return Array.isArray(e)||rW(e)}function Kjt(e){return function(o,s){return typeof o!="string"?(s=o,o=""):o.charAt(o.length-1)!=="/"&&(o+="/"),e(o,s)}}function Qjt(e,o,s){var B=e._modulesNamespaceMap[s];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+o+"(): "+s),B}const eUt={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){},closeClick:function(e){this.data.link="",this.data.visible=!1}}};function tUt(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",m.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",m.showTooltip]),onClick:o[1]||(o[1]=(...y)=>m.tooltipClick&&m.tooltipClick(...y))},[t.createElementVNode("span",{class:"box-tooltip-close",onClick:o[0]||(o[0]=(...y)=>m.closeClick&&m.closeClick(...y))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const aUt=v_(eUt,[["render",tUt],["__scopeId","data-v-cc97d3a4"]]),rUt=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*)\//,nUt=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,iUt="https://apis.golstats.com",oUt="https://dev-apis.golstats.com";function sUt(e,o,s=!1){if(!o||o===1)return e;const B=s?oUt:iUt,U=e.match(rUt);if(U){const y=e.replace(U[0],"");return`${B}/${o}/${y}`}const m=e.match(nUt);if(m){const y=e.replace(m[0],"");return`${B}/${o}/${y}`}return e}const lUt=1e3,bW=lUt*60,iA=bW*60,_W=iA*24,cUt={data(){return{timeLeft:"",currentTime:new Date().valueOf(),interval:null,gameDateTime:new Date,now:new Date}},computed:{isToday(){return`${this.now.getFullYear()}.${this.now.getMonth()}.${this.now.getDate()}`==`${this.gameDateTime.getFullYear()}.${this.gameDateTime.getMonth()}.${this.gameDateTime.getDate()}`},gameStart(){return this.gameDateTime.toTimeString().slice(0,5)}},methods:{checkTimeLeft(){const e=new Date(this.gameData.dateTimeUTC).valueOf();e>this.currentTime?(this.timeLeft=this.getTimeLeft(e),this.interval=setInterval(()=>{this.timeLeft=this.getTimeLeft(e)},6e4)):this.timeLeft="00:00 hrs"},getTimeLeft(e){let o=e.valueOf()-this.currentTime;const s=Math.floor(o/_W);o=o-s*_W;const B=Math.floor(o/iA);o=o-B*iA;const U=Math.floor(o/bW);return`${s?`${s} dias `:""}${B<10?`0${B}`:B}:${U<10?`0${U}`:U} hrs.`}},beforeDestroy(){this.interval&&clearInterval(this.interval)}};function uUt(e,o){return`${o==1?{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/":"https://golstatsimages.blob.core.windows.net/teams-80/"+o+"/"}${e}.png`}function dUt(e,o){return`${o==1?{}.PROFILE_PHOTO_PLAYER||"https://golstatsimages.blob.core.windows.net/players-profile/":"https://golstatsimages.blob.core.windows.net/players-profile/"+o+"/"}${e}.png`}const oA={GOAL_IDS:["1-1","1-2","1-3","1-4","1-5","1-6","1-7","1-12","1-13","1-16","4-14"],YELLOW_CARD_IDS:["2-8"],RED_CARD_IDS:["2-9"]},hUt="/icn-play.svg",pUt="/icn-tiros-de-esquina.svg",fUt="/icn-tiro-a-porteria.svg",mUt="/icn-cambio.svg",gUt="/icn-falta.svg",yUt="/atajada.svg",vUt="/fuera-de-lugar.svg",sA="/gol.svg",bUt="/var.png",_Ut="/tiempo-agregado.svg",xUt="/jugada-peligrosa.svg",wUt="/penal-marcado.svg",kUt="/penal-fallado.svg",SUt="/inicia-el-partido.svg",CUt="/fin-del-partido.svg",TUt="/icn-tarjeta-amarilla.svg",AUt="/icn-tarjeta-roja.svg",EUt=[1,2,3,4,6],MUt={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},provider:{type:Number,default:0},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],o=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return oA.GOAL_IDS.includes(o)?(e.push("is-main-event"),e.push("goal")):oA.YELLOW_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("yellow-card")):oA.RED_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(o=>dUt(o,this.provider))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||EUt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Xjt("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,o]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(o),teamId:this.gameEvent.team_id})}}},IUt=e=>(t.pushScopeId("data-v-dff2f5b8"),e=e(),t.popScopeId(),e),PUt={class:"time-line-event__details"},LUt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},BUt=["src"],zUt=IUt(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),OUt={class:"time-line-event__details__info"},DUt={key:0,class:"time-line-event__details__info__header__players"},NUt={class:"time-line-event__details__info__header__players__div-img"},FUt=["src"],RUt={class:"time-line-event__details__info__body"},VUt={class:"time-line-event__details__info__body__comment"},jUt={class:"time-line-event__minute__container"},UUt={class:"time-line-event__minute__container__text"},GUt={class:"time-line-event__minute__container__icon-container"},HUt={class:"time-line-event__minute__container__icon-container__icon"},ZUt={key:0,src:pUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},WUt={key:1,src:fUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qUt={key:2,src:mUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},JUt={key:3,src:gUt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},YUt={key:4,src:yUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},XUt={key:5,src:vUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$Ut={key:6,src:sA,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},KUt={key:7,src:sA,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},QUt={key:8,src:sA,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eGt={key:9,src:bUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tGt={key:10,src:_Ut,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aGt={key:11,src:xUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rGt={key:12,src:wUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nGt={key:13,src:kUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iGt={key:14,src:SUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oGt={key:15,src:CUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sGt={key:16,src:TUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lGt={key:17,src:AUt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},cGt={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function uGt(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",m.teamTypeClasses]),style:t.normalizeStyle({width:`${s.width}px`}),key:U.gameEventKey},[t.createElementVNode("div",PUt,[s.canPlayVideos&&s.gameEvent.video_link!=="-"&&s.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:o[0]||(o[0]=y=>m.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[t.createElementVNode("video",LUt,[t.createElementVNode("source",{src:s.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,BUt)]),zUt])):t.createCommentVNode("",!0),t.createElementVNode("div",OUt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",m.teamTypeClasses2])},[s.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",DUt,[m.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.srcImgPlayers,(y,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",NUt,[t.createElementVNode("img",{src:y,alt:""},null,8,FUt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",m.nameClasses]),onClick:o[1]||(o[1]=y=>m.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[s.canPlayVideos&&s.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:hUt,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(s.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${s.gameEvent.event_type_name}`:s.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.gameEvent.category_id?s.gameEvent.event_type_id===5?s.gameEvent.category_name:s.gameEvent.event_type_name==="Gol"?`${[13,16].includes(s.gameEvent.category_id)?"Autogol":"Gol"} de `+s.gameEvent.team_name:s.gameEvent.event_type_name:s.gameEvent.comments),1)],2)],2),t.createElementVNode("div",RUt,[t.createElementVNode("div",VUt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",m.minuteClasses])},[t.createElementVNode("div",jUt,[t.createElementVNode("div",UUt,t.toDisplayString(s.gameEvent.minute)+"'",1),t.createElementVNode("div",GUt,[t.createElementVNode("div",HUt,[s.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",ZUt)):s.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",WUt)):s.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",qUt)):s.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",JUt)):s.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",YUt)):s.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",XUt)):s.gameEvent.category_id==6&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==5&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==1&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==2&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==3&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==7&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==12&&s.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",$Ut)):s.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",KUt)):s.gameEvent.category_id==13||s.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",QUt)):s.gameEvent.category_id==30||s.gameEvent.category_id==31||s.gameEvent.category_id==32||s.gameEvent.category_id==33||s.gameEvent.category_id==34||s.gameEvent.category_id==35||s.gameEvent.category_id==36||s.gameEvent.category_id==37||s.gameEvent.category_id==38||s.gameEvent.category_id==39||s.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",eGt)):s.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",tGt)):s.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",aGt)):s.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",rGt)):s.gameEvent.category_id==15||s.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",nGt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==16||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==18||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==20||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",iGt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==13||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==17||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==19||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==21||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",oGt)):s.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",sGt)):s.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",lGt)):(t.openBlock(),t.createElementBlock("img",cGt))])])])],2)],6)}const dGt=v_(MUt,[["render",uGt],["__scopeId","data-v-dff2f5b8"]]),hGt={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},pGt={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let jw=null;const fGt={name:"TimeLine",components:{Tooltip:aUt,TimeLineEvent:dGt},mixins:[cUt],props:{gameData:{type:Object,required:!0},providerId:{type:Number,default:0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const o=await this.fetchGameEvents(e);o?(this.gameEvents=[...o],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(o){throw new Error(o)}},getGameEventClassAndSetIcon(e,o){return e.icon=o===0?"inicio_del_partido":hGt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,B=sUt(`${this.gameEventsUrl}${e}`,o,s),{data:{plays:U}}=await eW.get(B);return U}catch(o){throw new Error(o)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)jw=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),jw.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,o){const s=this.$refs[`gameEventDiv${o}`][0],B=this.$refs[`gameEventLine${o}`]?this.$refs[`gameEventLine${o}`][0]:null,U=e+12;s&&(s.style.height=`${U}px`),B&&(B.style.height=`${U}px`)},sortGameEvents(){this.gameEvents.sort((e,o)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(o.match_lapse)+Number(o.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let o=0;switch(e){case 1:o=0;break;case 2:o=45;break;case 3:o=90;break;case 4:o=105;break;case 5:o=120;break}return o},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const o=this.gameEvents.findIndex(s=>s.play_id===e.play_id);o&&this.gameEvents.splice(o,1)},checkTimeLineStatus(){this.gameEvents.forEach(o=>{const s=pGt[o.game_status];s&&this.timeLineStatuses.push({...s,gameEvent:o})}),this.timeLineStatuses.sort((o,s)=>s.weight-o.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const o=this.gameData[e].team_id;return uUt(o,this.$store.getters.getProviderId)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){jw&&jw.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,o]){this.channelName===e&&this.addGameEventFromChannel(o)},update_mxm([e,o]){this.channelName===e&&(this.deleteGameEventFromChannel(o),this.addGameEventFromChannel(o))},delete_mxm([e,o]){this.channelName===e&&this.deleteGameEventFromChannel(o)}}},xW=e=>(t.pushScopeId("data-v-a81f7bcf"),e=e(),t.popScopeId(),e),mGt={ref:"timeLine",class:"time-line"},gGt={class:"time-line__header"},yGt={class:"time-line__header__dot"},vGt={class:"time-line__header__dot__home-team team-logo"},bGt=["src"],_Gt={class:"time-line__header__dot__away-team team-logo"},xGt=["src"],wGt={key:1,class:"start-line"},kGt=xW(()=>t.createElementVNode("div",null,null,-1)),SGt=xW(()=>t.createElementVNode("div",null,null,-1)),CGt=[kGt,SGt],TGt={key:1,class:"noEventText"},AGt={class:"tooltip-data"},EGt=["src"];function MGt(e,o,s,B,U,m){const y=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",mGt,[t.createElementVNode("div",gGt,[t.createElementVNode("div",yGt,[t.createElementVNode("div",vGt,[t.createElementVNode("img",{src:m.getTeamLogoSrc("homeTeam"),alt:""},null,8,bGt)]),t.createElementVNode("div",_Gt,[t.createElementVNode("img",{src:m.getTeamLogoSrc("awayTeam"),alt:""},null,8,xGt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${U.gameEvents.length}`},[s.gameData.status!==4||s.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:U.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.gameEventsToShow,(v,p)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:v.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${p}`,class:t.normalizeClass(m.getGameEventClassAndSetIcon(v,p))},[t.createElementVNode("div",{class:t.normalizeClass(m.getEventContainerClass(v))},[t.createVNode(y,{"game-event":v,"is-mobile":m.isMobile,provider:e.$store.getters.getProviderId,"time-line-width":U.timeLineWidth,width:m.gameEventWidth,"can-play-videos":s.canPlayVideos,onEventHeight:r=>m.updateContainerHeight(r,p),onPlayerChanged:o[0]||(o[0]=r=>e.$emit("player-changed",r)),onThumbnailClick:m.thumbnailClick},null,8,["game-event","is-mobile","provider","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),p>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${p}`,class:"line"},null,512)):t.createCommentVNode("",!0),s.gameData.status===1&&p===m.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",wGt,CGt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",TGt,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:U.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",AGt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:U.dataVideo.link,format:"video/mp4"},null,8,EGt)])])]),_:1},8,["data"])],64)}const IGt=v_(fGt,[["render",MGt],["__scopeId","data-v-a81f7bcf"]]),PGt={class:"game-time-line__options"},LGt={class:"game-time-line__timeline"},BGt={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},setup(e){const o=e;eW.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const s=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),B=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let U=null;const m=Ljt();m.commit("setProviderId",o.providerId),m.commit("setIsDevApis",o.isDevApis);const y=t.ref(["Todo","1er tiempo","2do tiempo"]),a=t.ref("Todo"),v=t.ref({}),p=t.ref(null),r=t.ref(0),_=t.computed(()=>{let i="all";return a.value==="1er tiempo"||a.value==="1er"?i="firstHalf":(a.value==="2do tiempo"||a.value==="2do")&&(i="secondHalf"),i}),b=t.computed(()=>r.value<500);function x(i){a.value=i}function h(i){v.value=i}function n(){if(window.ResizeObserver)U=new ResizeObserver(()=>{r.value=p.value.clientWidth}),U.observe(p.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{n()}),t.onBeforeUnmount(()=>{U&&U.unobserve(p.value)}),(i,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:p,class:"game-time-line"},[t.createElementVNode("div",PGt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(xRt,t.mergeProps(r.value<390?B.value:s.value,{text:l=="Todo"?l:r.value<390?l.substring(0,3):l,"is-active":a.value===l,onClick:d=>x(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",LGt,[t.createVNode(IGt,{"game-data":e.game,"time-line-period":_.value,"is-mobile":b.value,socket:e.socket,provider:e.providerId,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:h},null,8,["game-data","time-line-period","is-mobile","socket","provider","can-play-videos"])])],512))}},zGt=v_(BGt,[["__scopeId","data-v-691198f5"]]),jta="",OGt={class:"game-data__header"},DGt={class:"game-data__header__tournament-season-dropdown"},NGt={class:"game-data__header__teams-carousel"},FGt={class:"game-data__body"},RGt={key:0,class:"no-stats-container"},VGt={key:1,class:"no-stats-container-mobile"},jGt={class:"game-data__body__menu"},UGt={class:"game-data__body__menu__contmenuswitch"};pu.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const GGt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Yue,GSCGameTimeLine:zGt,GscSwitchComponent:XS,GSCLineupsMain:y4e,GSCPositining:p_t,GSCDatosGSMain:qEe,GSCVideoGame:Aje,ModalEvents:mN,GSCTacticaFijaMain:bRt,GSCProminentMain:Oct,GSCComparative:jht}}),HGt=Ki(Object.assign(GGt,{props:{tournamentsApiUrl:{type:String,default:""},tournamentSelectProps:{type:Object,default:null},areFemaleTournamentsVisible:{type:Boolean,default:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1},isFemaleMode:{type:Boolean,default:!1},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:o}){const s=fp();let B=null;Vd.on("socket-connected",()=>{s.commit("nextGeneral/updateIsSocketConnected",U.socket.connected)});const U=e,m=t.ref(B2(kx));t.watch(()=>U.providerId,async mt=>{s.commit("setProviderId",mt),s.commit("setIsDevApis",U.isDevApis),m.value=await rie(mt)},{immediate:!0}),t.provide("playOffAbbreviationsStructure",m);const y=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),a=t.ref({season:[]}),v=t.ref({}),p=t.ref(!1),r=t.ref({}),_=t.ref(1),b=t.ref(0),x=3e4,h=3e4,n=3e4,i=3e4,c=3e4,l=3e4,d=3e4,g=3e4,w=6e4,C=t.ref(null),E=t.ref(null),A=t.ref(null),P=t.ref([]),L=t.ref(null),T=t.ref(!0),I=t.ref(new Set([1,2])),M=t.ref({}),S=t.ref({minute:"",recent_lapse:0,score:{}}),z=t.ref(0),k=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),O=t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),j=t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const G=t.ref(0);let H=null;const Z=t.ref(null),$=t.ref(0),ne=t.ref(N.value[0]),q=t.ref([]);let K=t.ref("");const ee={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},X=t.computed(()=>{const mt=[];return v.value&&v.value.id&&(mt.push({id:v.value.id,name:v.value.name,type:v.value.type}),v.value.related_seasons&&v.value.related_seasons.forEach(bt=>{mt.push({id:bt.id,type:bt.type})})),mt}),Q=t.computed(()=>{if(U.clientPrivilegesBySeasons){const mt=U.clientPrivilegesBySeasons.seasonsAndPrivileges.get(v.value.id);if(mt)return mt.teamId}return 0});function ce(){p.value=!1}function de(mt){const bt=mt.split(",");return!(bt.length<2||bt[1].split(" ").length<2)}function he(mt){C.value=mt}function pe(mt){P.value.push(mt)}function re(mt){L.value=mt}function se(mt){A.value=mt}function ie(mt){E.value=mt}function me(mt){if(!de(mt))return"";const bt=ve(mt);return`${ye(mt)}. ${bt}`}function ye(mt){return mt.split(",")[1].split(" ")[1][0]}function ve(mt){const bt=mt.split(",")[0].split(" ");return bt[0].length<=3&&bt.length>1?`${bt[0]} ${bt[1]}`:bt[0]}async function we(mt){if(!(!mt||!mt.game_id))try{const bt=pu.create({headers:{Authorization:`${y.value}`}});M.value={};const It=await bt.get(uu("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+mt.game_id,U.providerId,U.isDevApis));if(M.value[mt.home_team.team_id]=[],M.value[mt.home_team.team_id].team={name:mt.home_team.acronym,logo:mt.home_team.logo},M.value[mt.home_team.team_id].goals=[],M.value[mt.home_team.team_id].red=[],M.value[mt.home_team.team_id].yellow=[],M.value[mt.visiting_team.team_id]=[],M.value[mt.visiting_team.team_id].team={name:mt.visiting_team.acronym,logo:mt.visiting_team.logo},M.value[mt.visiting_team.team_id].goals=[],M.value[mt.visiting_team.team_id].red=[],M.value[mt.visiting_team.team_id].yellow=[],It.data.minute!=null&&(S.value={minute:It.data.minute,recent_lapse:It.data.recent_lapse,score:It.data.score}),It.data.plays)for(let Ot=0;Ot<It.data.plays.length;Ot++)It.data.plays[Ot].category_name=="Roja"&&It.data.plays[Ot].status==1&&(mt.home_team.team_id==It.data.plays[Ot].team_id?(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].red||(M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].red||(M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute))),It.data.plays[Ot].category_name=="Amarilla"&&It.data.plays[Ot].status==1&&(mt.home_team.team_id==It.data.plays[Ot].team_id?(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].yellow||(M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].yellow||(M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute))),It.data.plays[Ot].event_type_name=="Gol"&&It.data.plays[Ot].status==1&&(mt.home_team.team_id==It.data.plays[Ot].team_id?It.data.plays[Ot].category_name=="Autogol"?(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].goals||(M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].goals||(M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):It.data.plays[Ot].category_name=="Autogol"?(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].goals||(M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].goals||(M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)))}catch(bt){return Promise.reject(bt)}}function Se(mt){p.value=!0,mt.is_live!=1&&mt.game_status!=0&&(mt.game_status==4||Object.keys(mt.minutes).length>0)?(z.value=1,M.value={plays:mt.minutes,home_team:mt.home_team,visiting_team:mt.visiting_team}):(z.value=0,we(mt))}function Ce(){H=new ResizeObserver(mt=>{for(const bt of mt)$.value=bt.contentRect.width}),H.observe(Z.value)}const Me=t.computed(()=>{let mt={};return r.value&&r.value.game_id&&(mt={gameId:r.value.game_id,id:r.value.game_id,seasonId:r.value.season_id,regularSeasonId:r.value.regularSeasonId,matchday_name:r.value.matchday_name,status:r.value.game_status,score:r.value.score,game_status:r.value.game_status,dateTimeUTC:r.value.date_time_utc,homeTeam:r.value.home_team,awayTeam:r.value.visiting_team,is_live:r.value.is_live,minutes:r.value.minutes}),mt});t.watch(()=>r.value.game_id,He,{immediate:!0}),t.watch(()=>r.value.is_live,Pe,{immediate:!0}),t.watch(()=>s.state.nextGeneral.gameForAnalysis,()=>{s.commit("nextGeneral/updateIsSocketConnected",U.socket.connected)},{deep:!0,immediate:!0});function Le(mt){_.value=mt.is_captured,b.value=mt.is_female,T.value=mt.is_captured!==0,a.value.id!==mt.id&&(a.value=mt,s.commit("gameGlobal/setTournamentType",mt.tournament_type))}const ze=o;function He(mt,bt){s.commit("nextGeneral/updateShowLiveData",!0);const It=b.value?"Destacados":"Destacadas";N.value.forEach(Ot=>{Ot.name===It&&(Ot.name=b.value?"Destacadas":"Destacados")}),we({game_id:r.value.game_id,home_team:r.value.home_team,visiting_team:r.value.visiting_team}),Ie(),G.value+=1}function Pe(mt,bt){if(Ie(),s.state.nextGeneral.gameForAnalysis.is_live!==mt&&s.commit("nextGeneral/updateGameForAnalysis",{...s.state.nextGeneral.gameForAnalysis,is_live:r.value.is_live,game_status:r.value.game_status}),mt){const It=e8();It.disconnected?t8():It.connected&&r.value.game_id&&r8(`game.${r.value.game_id}.v2`),Ve(),B=setInterval(()=>{z.value=0,we({game_id:r.value.game_id,home_team:r.value.home_team,visiting_team:r.value.visiting_team})},6e4)}else Ve(),a8();mt!==bt&&(G.value+=1)}function Ve(){B&&clearInterval(B)}function Ie(){N.value=[],r.value.is_live||r.value.game_status===4?N.value=[...O.value]:N.value=[...j.value],U.isWidget||((v.value.is_tactic_available===0||r.value.is_live||r.value.game_status===0)&&N.value.pop(),r.value.has_tracking===1&&!(r.value.is_live||r.value.game_status===4)&&N.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),ne.value=N.value[0]}function ge(mt){mt.gameSeasonId=r.value.season_id,mt.gameRegularSeasonId=r.value.regularSeasonId,!(!mt.auxwidget&&Be.value&&!Be.value.canPrivilegesTeamPlayVideos)&&((r.value.is_live||r.value.game_status===0||r.value.game_status===1)&&(mt.gameIdsToFilter=[r.value.game_id]),mt.isLiveAccumulated&&(mt.gameIdsToFilter=null),(r.value.is_live||r.value.game_status===0)&&!mt.isLiveAccumulated&&(mt.liveGameConfig={gameId:r.value.game_id}),mt.fakeLiveConfig={gameId:r.value.game_id},ze("openmedia",mt))}function Ae(mt){ze("onOpenProfile",mt)}function ke(mt){ze("openProfileTeam",mt)}function je(mt){ze("openProfilePlayer",mt)}function De(mt){et(mt),mt=="Estadísticas"&&(K.value="Comparativa")}function Ne(){K.value=""}function qe(mt){v.value.id!==mt.id&&(v.value=mt,ze("change-season-id",mt.id))}const Ze=t.computed(()=>N.value.reduce((mt,bt)=>(U.disabledSectionsIds.includes(bt.id)||Be.value&&!Be.value.isVideoTabVisible&&bt.id===2||U.clientPrivilegesBySeasons&&bt.id===7||(T.value||bt.id!==5&&bt.id!==6)&&mt.push(bt.name),mt),[]));function _e(mt){if(r.value.is_live||r.value.game_status===1||r.value.game_status===0){const bt=mt.playingAs.has(r.value.playingAs);return U.clientPrivilegesBySeasons.canPlayVideos&&bt}else{const bt=Re.value.filter(It=>mt.playingAs.has(It.playingAs));return U.clientPrivilegesBySeasons.canPlayVideos&&bt.length>0}}const Be=t.computed(()=>{if(U.clientPrivilegesBySeasons){if(v.value&&r.value&&r.value.game_id){const mt=U.clientPrivilegesBySeasons.seasonsAndPrivileges.get(v.value.id);if(mt)if(We(mt.playingAs),(r.value.is_live||r.value.game_status===1||r.value.game_status===0)&&s.state.nextGeneral.showLiveData){const bt=mt.playingAs.has(r.value.playingAs);return{seasonAndPrivileges:mt,canPrivilegesTeamPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&bt,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:r.value.home_team.team_id===mt.teamId,homeTeamDetails:{canPlayVideos:bt,team:r.value.home_team},awayTeamDetails:{canPlayVideos:bt,team:r.value.visiting_team},isVideoTabVisible:_e(mt)}}else{const bt=r.value.home_team.team_id===mt.teamId,It=Re.value.filter(Gt=>mt.playingAs.has(Gt.playingAs));return{seasonAndPrivileges:mt,canPrivilegesTeamPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&It.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:bt,homeTeamDetails:{canPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&bt&&It.length>0,team:r.value.home_team},awayTeamDetails:{canPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&!bt&&It.length>0,team:r.value.visiting_team},isVideoTabVisible:_e(mt)}}We(new Set)}return ee}return null}),Re=t.computed(()=>{if(U.clientPrivilegesBySeasons){if(v.value){const mt=U.clientPrivilegesBySeasons.seasonsAndPrivileges.get(v.value.id);if(mt)return q.value.filter(bt=>bt.game_status===1&&mt.playingAs.has(bt.playingAs))}return[]}return[]});t.watch(Ze,()=>{Be.value&&!Be.value.canPrivilegesTeamPlayVideos&&(ne.value.id===2||ne.value.id===7||ne.value.id===8)&&et("Resumen")},{deep:!0,immediate:!0});function We(mt){I.value=mt}function et(mt){if(s.commit("nextGeneral/updateShowLiveData",!0),C.value!=null&&(clearInterval(C.value),C.value=null),E.value!=null&&(clearInterval(E.value),E.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),L.value!=null&&(clearInterval(L.value),L.value=null),P.value.length>0){for(let bt of P.value)clearInterval(bt);P.value=[]}U.isWidget?ne.value=N.value.find(bt=>bt.name===mt)||N.value[1]:ne.value=N.value.find(bt=>bt.name===mt)||N.value[0]}t.onMounted(()=>{Ce(),t.nextTick(()=>{U.isSynchronization&&et("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(H&&H.disconnect(),C.value!=null&&(clearInterval(C.value),C.value=null),E.value!=null&&(clearInterval(E.value),E.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),L.value!=null&&(clearInterval(L.value),L.value=null),P.value.length>0){for(let mt of P.value)clearInterval(mt);P.value=[]}n8()});function tt(mt){if(mt.playingAs||(mt.playingAs=Q.value?mt.home_team.team_id===Q.value?1:2:0),C.value!=null&&(clearInterval(C.value),C.value=null),E.value!=null&&(clearInterval(E.value),E.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),L.value!=null&&(clearInterval(L.value),L.value=null),P.value.length>0){for(let bt of P.value)clearInterval(bt);P.value=[]}r.value=mt,mt.is_live&&mt.game_status===4?t8():a8()}function ht(mt){q.value=mt.map(bt=>{const It={...bt};return Q.value&&(It.playingAs=It.home_team.team_id===Q.value?1:2),It})}return(mt,bt)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:Z},[t.createElementVNode("div",OGt,[t.withDirectives(t.createElementVNode("div",DGt,[t.createVNode(t.unref(TA),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentSelectProps?void 0:e.tournamentsApiUrl,items:e.tournamentSelectProps?e.tournamentSelectProps.items:void 0,"default-item-by-prop":e.tournamentSelectProps?e.tournamentSelectProps.defaultItemByProp:void 0,"list-height":"370px","are-female-visible":e.areFemaleTournamentsVisible,"is-clubes-active":e.isClubes,"is-female-mode":e.isFemaleMode,token:e.token,onInput:Le,onChangeTournaments:Le},null,8,["current-season-id","tournaments-ids-to-include","api-url","items","default-item-by-prop","are-female-visible","is-clubes-active","is-female-mode","token"]),t.createVNode(t.unref(MA),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:a.value.seasons,onInput:qe},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",NGt,[t.createVNode(t.unref(Pee),{"plays-live":M.value,"info-live":S.value,token:k.value,is_captured:_.value,"await-for-seasons":"",seasons:X.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":Q.value,"only-games-team-id":Q.value,"tournament-type":t.unref(s).state.gameGlobal.tournamentType,"provider-id":t.unref(s).getters.getProviderId,"is-dev-apis":t.unref(s).getters.getIsDevApis,onChangeGameCarousel:tt,onOpenModalEvent:Se,onChangeGamesByClientPrivileges:ht},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type","provider-id","is-dev-apis"])])]),p.value?(t.openBlock(),t.createBlock(mN,{key:0,width:$.value,onCloseModalEventsLive:ce,plays:M.value,game:r.value,type:z.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",FGt,[r.value&&"live_stats"in r.value&&r.value.live_stats==0&&r.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[$.value>500?(t.openBlock(),t.createElementBlock("div",RGt,bt[0]||(bt[0]=[t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1)]))):(t.openBlock(),t.createElementBlock("div",VGt,bt[1]||(bt[1]=[t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1)])))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",jGt,[t.createElementVNode("div",UGt,[t.createVNode(t.unref(XS),{type:2,buttons:Ze.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":ne.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:et},null,8,["buttons","width","selected-option"])])]),Me.value&&Me.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(ne.value.componentName),{key:G.value,game:Me.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ie,onIntervalidhighlive:se,onIntervalidtops:pe,onIntervalidgs:re,subsection:t.unref(K),seasonSelected:v.value,tournamentSelected:a.value,showLineups:T.value,socket:e.socket,"time-live-prominent-data":x,"time-live-highlights-prominent-and-video":h,"time-live-possesion":n,"time-live-video-goals":i,"time-live-video-best-plays":c,"time-live-video-this-game":l,"time-live-video-specific-plays":d,"time-live-comparative-best-players":g,"time-live-comparative-avanced":w,is_captured:_.value,"is-tactic-visible":!!v.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Be.value?Be.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":I.value,"client-privileges-team-id":Q.value,"play-videos-privileges":Be.value,token:k.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"is-female-mode":e.isFemaleMode,"provider-id":t.unref(s).getters.getProviderId,"is-dev-apis":t.unref(s).getters.getIsDevApis,onResetSubsection:Ne,onOpenmedia:ge,onOnOpenProfile:Ae,onOpenProfileTeam:ke,onOpenProfilePlayer:je,onChangeToTab:De,onOpenMediaPlayer:ge,onIntervalid:he},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes","is-female-mode","provider-id","is-dev-apis"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-2b1731fe"]]);async function wW({seasonId:e,providerId:o,isDevApis:s},B=!0){try{const U=`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`;return(await(await fetch(qy(U,o))).json()).data}catch(U){if(B)return wW({seasonId:e,providerId:o,isDevApis:s},!1);throw new Error(U)}}async function ZGt({seasonId:e,providerId:o,isDevApis:s}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`,providerId:o,isDevApis:s})).data.data}catch(B){return Promise.reject(B)}}async function WGt({seasonId:e,providerId:o,isDevApis:s}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`,providerId:o,isDevApis:s})).data.data}catch(B){return Promise.reject(B)}}function qGt(e,o,s,B,U,m,y=!1){const a=s.map(v=>v===1?2:v===2?1:3);return e.filter(v=>{const p=m&&v[U.teamId]?v[U.teamId]!==m:!1,r=o===1?2:1;return(y||B.includes(v[U.gameId]))&&(!o||(p?r:o)===v[U.playingAs])&&(s.includes(v[U.matchResult])&&v[U.teamId]===m||a.includes(v[U.matchResult])&&v[U.teamId]!==m)})}function kW(e,o,s,B,U){return o.length===2&&s.length===3&&B.length===6?e:e.filter(m=>o.includes(m[U.playingAs])&&s.includes(m[U.matchResult])&&B.includes(m[U.section]))}async function SW({seasonId:e,providerId:o,isDevApis:s}){try{const B=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:B,providerId:o,isDevApis:s})).data}catch(B){return Promise.reject(B)}}async function JGt({seasonId:e,gameId:o,providerId:s,isDevApis:B}){try{const U=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${o}`,{data:m}=await Uu({url:U,providerId:s,isDevApis:B});return m}catch(U){return Promise.reject(U)}}async function YGt({gameId:e,providerId:o,isDevApis:s}){try{const B=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:B,providerId:o,isDevApis:s})).data.data}catch(B){return Promise.reject(B)}}async function XGt({gameId:e,providerId:o,isDevApis:s}){try{const B=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:B,providerId:o,isDevApis:s})).data.data||[]}catch(B){return Promise.reject(B)}}const $Gt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let lA=null;function CW(){return lA||(lA=Yy($Gt)),lA}async function KGt(e){try{const o=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:o,providerId:e.providerId,isDevApis:e.isDevApis})).data}catch(o){return Promise.reject(o)}}async function TW({seasonId:e,teamId:o,providerId:s,isDevApis:B}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${o}`,providerId:s,isDevApis:B})}catch(U){return Promise.reject(U)}}async function QGt(e){try{const o=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:o,providerId:e.providerId,isDevApis:e.isDevApis})}catch(o){return Promise.reject(o)}}async function eHt(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`,providerId:e.providerId,isDevApis:e.isDevApis})}catch(o){return Promise.reject(o)}}const tHt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,o,s,B){return qGt(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],CW(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const o=e.currentSeasonGames.reduce((s,B)=>{const U={...B};return U.home_team=e.currentSeasonTeams.find(m=>m.team_id===B.home_team),U.visiting_team=e.currentSeasonTeams.find(m=>m.team_id===B.visiting_team),s[B.matchday_abbreviation]?s[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?s[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(U):s[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[U]:s[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[U]},s},{});for(let[s,B]of Object.entries(o))o[s]=Object.entries(B).map(([U,m])=>({date:U,games:m})),o[s].sort((U,m)=>U.date<m.date?-1:U.date>m.date?1:0);return o},matchdaysDates(e,o){let s=[];if(o.nextGamesSchedule){let B=Object.keys(o.nextGamesSchedule);for(let U of B){let m=Number(U.replace("M","")),y=o.nextGamesSchedule[U].map(a=>({matchday:m,date:new Date(a.date)}));s=s.concat(y)}}return s},closestMatchDay(e,o){let s=new Date,B=0,U=-new Date(0,0,0).valueOf(),m=o.matchdaysDates,y=m.length;for(let a=0;a<m.length;a++)B=Math.abs(m[a].date-s),B<U&&(y=a,U=B);return m[y]?m[y].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,o){e.booleanIsLiveGamesModalOpen=o},setBooleanAreLiveGames(e,o){e.booleanAreLiveGames=o},updateSeasonPlays(e,o){e.seasonPlays=o},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateSelectedRound(e,o){e.selectedRound=o}},actions:{async getSeasonPlays({commit:e,rootGetters:o},s=!1){try{const B=o.getProviderId,U=o.getIsDevApis,m=await wW({seasonId:o["filterGeneral/getSeasonId"],providerId:B,isDevApis:U});if(s)return m;e("updateSeasonPlays",m)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:o}){try{const s=o.getProviderId,B=o.getIsDevApis,U=await SW({seasonId:o["loginGeneral/seasonId"],providerId:s,isDevApis:B});e("updateCurrentSeasonGames",U)}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,rootGetters:o}){try{const s=o.getProviderId,B=o.getIsDevApis,U=await KGt({seasonId:o["loginGeneral/seasonId"],providerId:s,isDevApis:B});e("updateCurrentSeasonTeams",U.teams)}catch(s){return Promise.reject(s)}},async isDataFilled({state:e,dispatch:o,commit:s}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return s("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=o("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=o("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function aHt({filter:e,providerId:o,isDevApis:s}){try{const B=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:U}=await Uu({url:B,providerId:o,isDevApis:s});return U}catch(B){return Promise.reject(B)}}const rHt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let cA=null;function nHt(){return cA||(cA=Yy(rHt)),cA}const uA=6;let AW=uA;function iHt(e){AW=Math.max(uA,Number(e)||uA)}class Uw{constructor(){_u(this,"maximumLiveSection",1);_u(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});_u(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(o){o>this.maximumLiveSection&&(this.maximumLiveSection=o)}getZeroTotalsTrendSections(){return new Array(AW).fill(0)}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(o,s,B){B&&(this.setMaximumLiveSection(o),this.accomplished.totalLive+=s,this.accomplished.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s)),this.accomplished.totalPostGame+=s,this.accomplished.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,o,s)}increaseReceivedByOne(o,s,B){B&&(this.setMaximumLiveSection(o),this.received.totalLive+=s,this.received.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s)),this.received.totalPostGame+=s,this.received.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,o,s)}increaseTrendLiveAccumulatedByOne(o,s,B){for(;o.accumulated.length<s;)o.accumulated.push(0);for(let U=s-1;U<o.accumulated.length;U++)o.accumulated[U]+=B}decreaseAccomplishedLiveByOne(o,s){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=s),this.accomplished.totalsLiveTrendLive.sections[o-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s))}decreaseReceivedLiveByOne(o,s){this.received.totalLive>0&&(this.received.totalLive-=s),this.received.totalsLiveTrendLive.sections[o-1]>0&&(this.received.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s))}decreaseTotalsLiveTrendLiveAccumulatedByOne(o,s,B){for(let U=o.accumulated.length-1;U>=s-1;U--)o.accumulated[U]-=B}calculateAvg(o){o&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/o,this.received.avgPostGame=this.received.totalPostGame/o,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,o),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,o),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,o),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,o))}getAvgPostGameTrendLiveAvg(o,s){return o.map(B=>B/s)}calculateRanking(o,s,B,U,m,y,a,v){let p=[];U===3&&o&&o.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?p=Array.from(o.reduce((_,b)=>{const x=b[s.playingAs]===1,h=x?"1":"2",n=_.get(b[s.gameId]);if(n)n[h]?n[h].arrayPlays.push(b):n[h]={numberTeamId:b[s.teamId],arrayPlays:[b]};else{const i={numberMatchResult:b[s.matchResult]};x&&(i[1]={numberTeamId:b[s.teamId],arrayPlays:[b]}),_.set(b[s.gameId],i)}return _},new Map).values()).reduce((_,b)=>{const x=B.playingAs.length===2?"both":B.playingAs[0].toString();return(x==="both"&&(b[1].numberTeamId===B.teamId||b[2].numberTeamId===B.teamId)||x!=="both"&&b[x].numberTeamId===B.teamId)&&B.matchResult.includes(b.numberMatchResult)&&_.push(...b[1].arrayPlays,...b[2].arrayPlays),_},[]).filter(_=>B.sections.includes(_[s.section])):(p=o?[...o]:[],a&&o&&(p=o.filter(r=>B.playingAs.includes(r[s.playingAs])&&B.matchResult.includes(r[s.matchResult])&&B.sections.includes(r[s.section])))),this.setTeamRanking(p,U,s,B.teamId,y,"accomplished",v)}setTeamRanking(o,s,B,U,m,y,a){let v=null,p=null;s===3&&(v=new Map,p={},o.forEach(b=>{const x=v.get(b[B.gameId]);x?x[b[B.teamId.toString()]]?x[b[B.teamId.toString()]]+=b[B.total]:x[b[B.teamId.toString()]]=b[B.total]:v.set(b[B.gameId],{[b[B.teamId.toString()]]:b[B.total]})}),Array.from(v.values()).forEach(b=>{const[x,h]=Object.keys(b).map(i=>i),n=b[x]+b[h];this.addPassesAvgByTeam(p,x,n?b[x]/n:0),this.addPassesAvgByTeam(p,h,n?b[h]/n:0)}));const r=m.sort((b,x)=>b.team_id-x.team_id).map(b=>{if(s===3){const x=p[b.team_id.toString()];return{teamId:b.team_id,points:x?x.numberTotalPassesAvg/x.numberGamesCount:0,total:x?x.numberTotalPassesAvg:0}}else{const x=o.reduce((h,n)=>n[B.teamId]===b.team_id&&s===n[B.categoryId]?h+n[B.total]:h,0);return{teamId:b.team_id,points:b[`${a}FilterGames`]?x/b[`${a}FilterGames`]:0,total:x}}}).sort((b,x)=>x.points-b.points);this.accomplished.arrayRankings=r;const _=r.findIndex(b=>b.teamId===U);s===3&&(this.accomplished.avgPreGame=r[_].points),this[y].ranking=_+1,this[y].leader=r[0]}addPassesAvgByTeam(o,s,B){o[s]?(o[s].numberGamesCount+=1,o[s].numberTotalPassesAvg+=B):o[s]={numberGamesCount:1,numberTotalPassesAvg:B}}}class oHt{constructor(o,s,B,U,m,y,a,v,p,r,_=!0){_u(this,"id","");_u(this,"generalId",0);_u(this,"name","");_u(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});_u(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});_u(this,"accomplishedCategoryIds",[]);_u(this,"receivedCategoryIds",[]);_u(this,"generalCategoriesIds",{accomplished:0,received:0});_u(this,"specialMention","");_u(this,"homeTeam",new Uw);_u(this,"visitingTeam",new Uw);_u(this,"isLeagueDataCalculated",!1);_u(this,"leagueAccomplishedMax",0);_u(this,"leagueReceivedMax",0);_u(this,"leagueAccomplishedAvg",0);_u(this,"leagueReceivedAvg",0);_u(this,"leagueAccomplishedAccumulator",0);_u(this,"leagueReceivedAccumulator",0);_u(this,"homeTeamType","homeTeam");_u(this,"visitingTeamType","visitingTeam");_u(this,"betOnly",!1);_u(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=o||[],this.receivedCategoryIds=s||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=U,this.names["0-0"]=U||"",this.names["1-1"]=m||"",this.names["0-1"]=y||"",this.names["1-0"]=a||"",this.generalId=v||0,this.betOnly=p||!1,this.isPercent=r||!1,this.isVisible=_}addLeaguePlays(o,s,B){o.length===0||!B||this.isLeagueDataCalculated||(o.forEach(U=>{this.isAccomplishedLeaguePlay(U[s.categoryId])&&(this.leagueAccomplishedAccumulator+=U[s.total]),this.isReceivedLeaguePlay(U[s.categoryId])&&(this.leagueReceivedAccumulator+=U[s.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(o,s,B){let U="-";for(const[m,y]of Object.entries(this.generalCategoriesIds))o===y&&(U=`${m==="accomplished"?"0":"1"}${U}`),s===y&&(U=`${U}${m==="accomplished"?"0":"1"}`);U.length===3&&(this.mentions[U]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(o,s,B,U,m){!B||!m||o!==this.homeTeamType&&o!==this.visitingTeamType||(B.forEach(y=>{this.isAccomplishedPlay(y[U.categoryId])?this[o].increaseAccomplishedByOne(y[U.section],y[U.total]):this.isReceivedPlay(y[U.categoryId])&&this[o].increaseReceivedByOne(y[U.section],y[U.total])}),this[o].calculateAvg(m))}addLivePlay(o,s,B,U,m=!1,y=!1){(o===this.homeTeamType||o===this.visitingTeamType)&&B[U.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[o].increaseAccomplishedByOne(B[U.section],B[U.total],!0)}subtractLivePlay(o,s,B,U,m){(o===this.homeTeamType||o===this.visitingTeamType)&&(this.isAccomplishedPlay(B[U.categoryId])&&!m?this[o].decreaseAccomplishedLiveByOne(B[U.section],B[U.total]):this.isReceivedPlay(B[U.categoryId])&&m&&this[o].decreaseReceivedLiveByOne(B[U.section],B[U.total]))}isAccomplishedLeaguePlay(o){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>o===B||`${o}_r`===B)}isReceivedLeaguePlay(o){return!!this.receivedCategoryIds.find(s=>o===s)}isAccomplishedPlay(o){return this.generalCategoriesIds.accomplished===o}isReceivedPlay(o){return this.generalCategoriesIds.received===o}calcRankingLeague(o,s,B,U,m,y=!1){this[this.homeTeamType].calculateRanking(o,s,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,m,y,this.homeTeamType),this[this.visitingTeamType].calculateRanking(o,s,U,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,m,y,this.visitingTeamType)}resetData(){this.homeTeam=new Uw,this.visitingTeam=new Uw,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(o){return this.generalCategoriesIds.accomplished===o||this.generalCategoriesIds.received===o}}function sHt(e){for(const o of Object.values(e))for(let s of Object.keys(o.subcategories)){const B=o.subcategories[s];o.subcategories[s]=new oHt(B.accomplishedCategoryIds,B.receivedCategoryIds,B.generalCategoriesIds,B.accomplishedName,B.receivedName,B.accomplishedReceivedName,B.receivedAccomplishedName,B.generalId,B.betOnly,B.isPercent,B.isVisible===void 0?!0:B.isVisible)}return e}const lHt=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],cHt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let dA=null;function uHt(){return dA||(dA=Yy(cHt)),dA}const dHt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let hA=null;function hHt(){return hA||(hA=Yy(dHt)),hA}function Gw(e,o,s){return[s.get(e[o.categoryId])||[],e[o.teamId],e[o.matchResult],e[o.playingAs],e[o.matchLapse],e[o.section],e[o.total]]}function EW(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function pA(e,o,s){let B=[...o];return e[s.categoryId]===2&&(B[0]=14),e[s.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}function MW(e){const o=e.indexesTSP.section;let s=0;for(const B of[e.homeTeamPlays,e.visitingTeamPlays])if(Array.isArray(B))for(const U of B){const m=U[o];m>s&&(s=m)}iHt(s)}const pHt=e8(),fHt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],mHt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:CW(),indexesTSP:nHt(),indexesLS:uHt(),indexesTLP:hHt(),nextGamesDataStructure:{},currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(o=>o.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return lHt.filter(o=>o.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return kW(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return kW(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(o=>o.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(o=>e.homeTeamFilter.playingAs.includes(o[0])).filter(o=>e.homeTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(o=>e.visitingTeamFilter.playingAs.includes(o[0])).filter(o=>e.visitingTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},filledDataStructure(e,o){if(e.currentSeasonPlays)for(const s of Object.values(e.nextGamesDataStructure))for(const B of Object.values(s.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,o.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,o.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,o){return Object.values(o.filledDataStructure).sort((s,B)=>s.priority-B.priority)},statisticData(e,o){for(const s of Object.values(o.filledDataStructure))if(s.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&s.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return s.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateNextGamesDataStructure(e,o){e.nextGamesDataStructure=o},updateGameForAnalysisByProps(e,o){for(const[s,B]of Object.entries(o))e.gameForAnalysis[s]=B},setCurrentTournamentName(e,o){e.currentTournamentName=o},setBetSubcategoriesObjects(e,o){e.betSubcategoriesObjects=o},setRegularSeasonName(e,o){e.regularSeasonName=o},setBetSubcategories(e,o){e.betSubcategories=o},setBetDescription(e,o){e.betDescription=o},setSeasonId(e,o){e.seasonId=Number(o)},setHome(e,o){e.homeTeamInfo=o},setAway(e,o){e.awayTeamInfo=o},setMenuOptionActive(e,o){e.menuOptionActive=o},setPastSeasonId(e,o){e.pastSeasonId=o},setUsePastSeasonId(e,o){e.usePastSeasonId=o,o&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,o){e.showPostMatch=o},setHomeResultGame(e,o){e.homeResultGame=o},setAwayResultGame(e,o){e.awayResultGame=o},updateIsSocketConnected(e,o){e.isSocketConnected=o,o&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&e.gameForAnalysis.game_id&&r8(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o,e.currentSeasonTeams.forEach(s=>{s.playedGames=e.currentSeasonGames.reduce((B,U)=>{if(U.game_status===1&&(U.home_team===s.team_id||U.visiting_team===s.team_id)){const m=U.score[0]-U.score[1],y=U.home_team===s.team_id;B.push({playingAs:y?1:2,matchResult:m===0?3:y?m>0?1:2:m<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateGameId(e,o){e.gameId=o},updateGameForAnalysis(e,o){e.gameForAnalysis=o,e.isLive=!!o.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.isSocketConnected&&o.is_live&&o.game_status===4&&o.game_id&&r8(`game.${o.game_id}.v2`)},updateSelectedAnalysis(e,o){e.selectedAnalysis=o},updateShowLiveData(e,o){e.showLiveData=o},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,o){e.idAssetSelected=o},updateStats(e,o){e.currentSeasonPlays=o},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:o,needsFormat:s=!1}){if(s){if(!o||!o.local||!o.local.statistics||!o.visit||!o.visit.statistics)return;e.homeTeamFilter=kI(e.homeTeamFilter,o.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=kI(e.visitingTeamFilter,o.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==o.local.statistics.block&&(e.selectedStatisticTypeBlock=o.local.statistics.block)}else e.homeTeamFilter={...o.homeTeamFilter,statistics:0},e.visitingTeamFilter={...o.visitingTeamFilter,statistics:0}},updateFinishedGames(e,o){e.totalSeasonFinishedGames=o},updateHomeTeamPlays(e,o){e.homeTeamPlays=o,MW(e)},updateVisitingTeamPlays(e,o){e.visitingTeamPlays=o,MW(e)},addSpecialMentions(e,o){const s=Object.values(e.nextGamesDataStructure);s.forEach(B=>{for(const U of Object.values(B.subcategories))U.resetMentions()}),s.forEach(B=>{for(const U of o)for(const m of Object.values(B.subcategories))m.addSpecialMention(U[0],U[1],U[2])})},setDefaultFilter(e,o){e.defaultFilter={homeTeamFilter:{...o.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...o.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,o){if(!e.livePlays.has(o[e.indexesTLP.playId])){e.livePlays.set(o[e.indexesTLP.playId],o);const B=Gw(o,e.indexesTLP,e.categoriesMap);for(const U of Object.values(e.nextGamesDataStructure))for(const m of Object.values(U.subcategories))m.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],B=e.livePlays.get(o[e.indexesTLP.playId]);if(qie(B,o))return;let U="";const m=e.gameForAnalysis.home_team===o[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(U=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const y=Gw(B,e.indexesTLP,e.categoriesMap),a=pA(B,y,e.indexesTLP),v=Gw(o,e.indexesTLP,e.categoriesMap),p=pA(o,v,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(r.subcategories))B&&(_.subtractLivePlay(U,y[e.indexesTSP.teamId],y,e.indexesTSP,s),a&&_.subtractLivePlay(U,a[e.indexesTSP.teamId],a,e.indexesTSP,s)),_.addLivePlay(m,v[e.indexesTSP.teamId],v,e.indexesTSP,e.isLive,s),p&&_.addLivePlay(m,p[e.indexesTSP.teamId],p,e.indexesTSP,e.isLive,s);e.livePlays.set(o[e.indexesTLP.playId],o)},deleteLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],B=e.livePlays.get(o[e.indexesTLP.playId]);let U="";if(B){U=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const m=Gw(B,e.indexesTLP,e.categoriesMap),y=pA(o,m,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const v of Object.values(a.subcategories))v.subtractLivePlay(U,m[e.indexesTSP.teamId],m,e.indexesTSP,s),y&&v.subtractLivePlay(U,y[e.indexesTSP.teamId],y,e.indexesTSP,s)}},clearLiveTotals(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,o){e.statistics=o},updateOldSeasonId(e,o){e.oldSeasonId=o},addRankingInSubcategories(e,{getters:o,isPremiumAccount:s}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(m=>{m.homeTeamFilterGames=m.playedGames.filter(y=>e.homeTeamFilter.playingAs.includes(y.playingAs)&&e.homeTeamFilter.matchResult.includes(y.matchResult)).length,m.visitingTeamFilterGames=m.playedGames.filter(y=>e.visitingTeamFilter.playingAs.includes(y.playingAs)&&e.visitingTeamFilter.matchResult.includes(y.matchResult)).length});const B=[],U=new Map;for(const m of Object.values(e.nextGamesDataStructure))for(const y of Object.values(m.subcategories))B.push(y);o.rankingData.forEach(m=>{for(const y of B)if(y.isInGeneralCategory(m[e.indexesLS.categoryId])){U.has(y.id)?U.get(y.id).push(m):U.set(y.id,[m]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,o){e.homeGames=EW(o)},setVisitingGames(e,o){e.visitingGames=EW(o)},generateCategoriesMap(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.accomplishedCategoryIds.forEach(B=>{const U=e.categoriesMap.get(B);U?U.push(s.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[s.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.resetData()}},actions:{async fillNextGameDataStructure({commit:e},{provider:o}){try{const s=await Kne(o),B=sHt(s);e("updateNextGamesDataStructure",B)}catch(s){return Promise.reject(s)}},turnOnOffDefaultFilters({state:e,commit:o},{command:s}){s==="on"?o("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):o("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e,rootGetters:o},s){try{const a=o.getProviderId,v=o.getIsDevApis,p=await eHt({gameId:s.gameId,providerId:a,isDevApis:v});if(p){var B=[],U=[],m={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},y={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};if(Object.keys(p.data).length!==0){const r=_=>{const b=_.slice(),x=Number(b[0]);return Number.isNaN(x)||(b[0]=x),b};B=p.data.data.filter(_=>_[1]==s.homeTeam).map(r),U=p.data.data.filter(_=>_[1]==s.awayTeam).map(r),m=p.data.games,y=p.data.games}e("updateHomeTeamPlays",B),e("updateVisitingTeamPlays",U),e("setHomeGames",m),e("setVisitingGames",y)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(a){return Promise.reject(a)}},async fillStatisticDataPostMatch({commit:e,dispatch:o},s){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",s.gameInfo),B.push(o("setAndGetStatsPostMatch",{gameId:s.game,homeTeam:s.homeTeam,awayTeam:s.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:o,commit:s,rootGetters:B},{gameId:U,isTeamsAnalysis:m,currentSeasonId:y,isLoginChanged:a=!1,defaultFilter:v=null,gameInfo:p=null,isCupGame:r=!1}){try{let _={},b=e.seasonId!==Number(y);const x=B.getProviderId;await o("fillNextGameDataStructure",{provider:x});const h=[];s("setIsSectionLoading",!0,{root:!0}),s("setUsePastSeasonId",!1),b&&s("setSeasonId",y),s("updateGameId",Number(U)),e.oldSeasonId!==e.seasonId&&s("resetNextGamesDataStructure");const n=await o("getCurrentSeasonGames",Number(U));if(s("leagueGeneral/updateCurrentSeasonGames",n,{root:!0}),_=n.find(i=>i.game_id===Number(U)),!_&&p&&(_=p),_&&p&&(_.game_status=_.game_status??p.game_status,_.is_live=_.is_live??p.is_live),_&&s("updateGameForAnalysis",_),_.game_status!==1&&((a||e.categoriesMap.size===0)&&s("generateCategoriesMap"),r||await o("checkTeamsData",{gameId:U,isFromBet:!!v}),(a||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&h.push(o("getSeasonStatistics"))),e.usePastSeasonId){const i=await o("getCurrentSeasonGamesLast");s("leagueGeneral/updateCurrentSeasonGames",i,{root:!0})}(a||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(i=>_.home_team===i.team_id))&&h.push(o("getCurrentSeasonTeams")),s("setHomeResultGame",_.score[0]),s("setAwayResultGame",_.score[1]),m?_.game_status!==1?(await o("fillStatisticData",{gameId:U,gameinfo:_,promises:h,defaultFilter:v}),s("updateShowPostMatchData",!1)):(s("updateStats",[]),s("updateShowPostMatchData",!0),h.push(o("fillStatisticDataPostMatch",{game:U,homeTeam:_.home_team,awayTeam:_.visiting_team,gameInfo:_})),await Promise.all(h)):s("setIsSectionLoading",!1,{root:!0})}catch(_){return Promise.reject(_)}},async fillStatisticData({commit:e,dispatch:o,getters:s,rootGetters:B,state:U},{gameId:m,gameinfo:y,promises:a=[],defaultFilter:v=null}){let p=null;try{const r=B.getProviderId,_=B.getIsDevApis;e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",y),(y.is_live||y.game_status===0)&&a.push(o("getCurrentLiveGamePlays",m)),a.push(o("getSpecialMentionsByGame",m)),a.push(o("getHomeTeamPlays")),a.push(o("getVisitingTeamPlays")),a.push(o("getCurrentSeasonPlays")),v&&a.push(aHt({...v,providerId:r,isDevApis:_})),p=await Promise.all(a)}catch(r){throw new Error(r)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:s,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),v){const[r]=p.pop();r&&(e("setBetSubcategories",r.categories),e("setBetDescription",r.sectionDescription),e("setDefaultFilter",r.params),e("updateFilterAux"),e("updateFilters",{filters:U.defaultFilter,needsFormat:!1}),o("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:o,rootState:s,commit:B},{gameId:U,isFromBet:m}){try{const y=Number(U);if(e.pastSeasonId){B("setPastSeasonId",e.pastSeasonId,{root:!0});const a=s.leagueGeneral.currentSeasonGames.find(v=>v.game_id===y);a&&B("updateGameForAnalysis",a),await Promise.all([o("getHomeTeamPlays"),o("getVisitingTeamPlays")]),B("setUsePastSeasonId",m||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else B("setUsePastSeasonId",!1)}catch(y){throw new Error(y)}},async getSpecialMentionsByGame({commit:e,rootGetters:o},s){try{const B=o.getProviderId,U=o.getIsDevApis,m=await XGt({gameId:s,providerId:B,isDevApis:U});e("addSpecialMentions",m)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,state:o,rootGetters:s},B){try{const U=s.getProviderId,m=s.getIsDevApis,{teams:y,games:a,past_season_id:v,tournament_id:p}=await JGt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,gameId:B,providerId:U,isDevApis:m}),r=fHt.find(_=>_.id===p);return r&&e("setCurrentTournamentName",r.name),e("setHome",y[0]),e("setAway",y[1]),o.usePastSeasonId||e("setPastSeasonId",v),await e("updateCurrentSeasonGames",a),a&&Array.isArray(a)&&e("updateFinishedGames",a.reduce((_,b)=>(b.game_status===1&&(_+=1),_),0)),a}catch(U){return Promise.reject(U)}},async getCurrentSeasonGamesLast({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,{games:m,past_season_id:y}=await SW({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,providerId:B,isDevApis:U});return o.usePastSeasonId||e("setPastSeasonId",y),await e("updateCurrentSeasonGames",m),m&&Array.isArray(m)&&e("updateFinishedGames",m.reduce((a,v)=>(v.game_status===1&&(a+=1),a),0)),m}catch(B){return Promise.reject(B)}},async getCurrentSeasonTeams({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await QGt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,providerId:B,isDevApis:U});e("updateCurrentSeasonTeams",m.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=o.usePastSeasonId?o.pastSeasonId:o.seasonId,y=await WGt({seasonId:m,providerId:B,isDevApis:U});e("updateSeasonStatistics",y),e("updateOldSeasonId",m)}catch(B){return Promise.reject(B)}},updateRankingInSubcategories({state:e,commit:o,getters:s,rootGetters:B}){e.currentSeasonGames.length>0&&o("addRankingInSubcategories",{getters:s,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await TW({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.home_team,providerId:B,isDevApis:U});m.data&&(e("updateHomeTeamPlays",m.data.data),e("setHomeGames",m.data.games))}catch(B){return Promise.reject(B)}},async getVisitingTeamPlays({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await TW({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.visiting_team,providerId:B,isDevApis:U});m.data&&(e("updateVisitingTeamPlays",m.data.data),e("setVisitingGames",m.data.games))}catch(B){return Promise.reject(B)}},async getCurrentSeasonPlays({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await ZGt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,providerId:B,isDevApis:U});e("updateStats",m)}catch(B){return Promise.reject(new Error(B))}},async getCurrentLiveGamePlays({state:e,commit:o,rootGetters:s},B){try{const U=s.getProviderId,m=s.getIsDevApis,y=await YGt({gameId:B,providerId:U,isDevApis:m});e.livePlays=new Map,y.forEach(a=>{e.gameForAnalysis.game_id===a[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===a[e.indexesTLP.teamId])&&o("addLiveGamePlay",a)})}catch(U){throw new Error(U)}},socket_new({state:e,commit:o},s){const B=s[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&o("addLiveGamePlay",B)},socket_update({state:e,commit:o},s){const B=s[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&o("updateLiveGamePlay",B)},socket_delete({state:e,commit:o},s){const B=s[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&o("deleteLiveGamePlay",B)},exitChannel({state:e,getters:o,rootState:s,rootGetters:B,commit:U}){const m=B["loginGeneral/getPremiumAccount"];o.isLive&&m&&(U("updateShowLiveData",!0),U("clearLiveTotals"),e.livePlays.clear(),pHt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const B of Object.values(s.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const B of Object.values(s.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const B of Object.values(s.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const B of Object.values(s.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function gHt({providerId:e,isDevApis:o}={}){try{const{data:s}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments",providerId:e,isDevApis:o});return s}catch(s){throw new Error(s)}}const yHt={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,o){e.booleanIsStatisticModalOpen=o},setTournamentType(e,o){e.tournamentType=o},setSectionRef(e,o){e.sectionRef=o},setSectionAnalytics(e,o){e.sectionAnalytics=o},setSeccionBetsGolTipster(e,o){e.seccionBetsGolTipster=o},setPreviewSectionAnalytics(e,o){e.previewSectionAnalytics=o},setVideoSrc(e,o){e.videoSrc=o},setVideoModalVisibility(e,o){e.isVideoModalVisible=o},setSelectedTournament(e,o){e.selectedTournament=o},setTournaments(e,o){e.tournaments=o.map(s=>({...s.tournament,seasons:s.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,o){e.tournamentSelected=o}},actions:{async fetchTournaments({state:e,commit:o,rootGetters:s}){try{if(e.tournaments.length===0){const B=s.getProviderId,U=s.getIsDevApis,m=await gHt({providerId:B,isDevApis:U});o("setTournaments",m)}}catch(B){throw new Error(B)}}}}};async function vHt({seasonId:e,localTeamId:o,visitingTeamId:s,providerId:B,isDevApis:U}){try{const m=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${o}/${s}`;return(await Uu({url:m,providerId:B,isDevApis:U})).data}catch(m){return Promise.reject(m)}}async function bHt({seasonId:e,localTeamId:o,visitingTeamId:s,providerId:B,isDevApis:U}){try{const m=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${o}/${s}`;return(await Uu({url:m,providerId:B,isDevApis:U})).data}catch(m){return Promise.reject(m)}}const IW=(e,o)=>{let s={};return e.forEach((B,U)=>{U==3&&(o[0]==35||o[0]==54)&&(o[U]==2?o[U]=1:o[U]=2),U==2&&(o[0]==35||o[0]==54)&&(o[U]==1?o[U]=2:o[U]==2&&(o[U]=1)),s[B]=o[U]}),s},PW=(e,o)=>e.filter(B=>{const U=o.playingAs.includes(B.playing_as),m=o.matchResult.includes(B.match_result),y=o.sections.includes(B.section);return U&&m&&y});(function(){function e(o,s,B){return typeof B>"u"||+B==0?Math[o](s):(s=+s,B=+B,isNaN(s)||!(typeof B=="number"&&B%1===0)?NaN:(s=s.toString().split("e"),s=Math[o](+(s[0]+"e"+(s[1]?+s[1]-B:-B))),s=s.toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+B:B))))}Math.ceil10||(Math.ceil10=function(o,s){return e("ceil",o,s)})})();function LW(e,o){let s=o*-1;return Math.ceil10(e,s)}const Pf={goals:"Goles",shots:"Tiros a gol",head:"Remates con cabeza",penalties:"Penales"};function Lf(e,o){const s=(e||[]).find(B=>B.name===o);return new Set((s==null?void 0:s.categories)||[])}const _Ht={...yHt,...tHt,...mHt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[],xgCategories:z2},getters:{playsLocal:(e,o,s)=>{const B=e.xGLocalPlays,U="homeTeamFilter",m=s.nextGeneral[U];return PW(B,m)||[]},playsAway:(e,o,s)=>{const B=e.xGVisitingPlays,U="visitingTeamFilter",m=s.nextGeneral[U];return PW(B,m)},getXgCategories:e=>e.xgCategories||[],goalsQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.goals);return o.playsLocal.filter(B=>s.has(B.category_id)).length},goalsQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.goals);return o.playsAway.filter(B=>s.has(B.category_id)).length},shotsOnGoalQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.shots);return o.playsLocal.filter(B=>s.has(B.category_id)).length},shotsOnGoalQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.shots);return o.playsAway.filter(B=>s.has(B.category_id)).length},headQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.head);return o.playsLocal.filter(B=>s.has(B.category_id)).length},headQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.head);return o.playsAway.filter(B=>s.has(B.category_id)).length},penaltiesQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.penalties);return o.playsLocal.filter(B=>s.has(B.category_id)).length},penaltiesQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.penalties);return o.playsAway.filter(B=>s.has(B.category_id)).length},xGLocal:(e,o)=>{const s=new Set;let B=o.playsLocal.reduce((U,m)=>(s.has(m.moment_of_play)||(s.add(m.moment_of_play),U+=m.xG2),U),0);return LW(B,2)},xGAway:(e,o)=>{const s=new Set;let B=o.playsAway.reduce((U,m)=>(s.has(m.moment_of_play)||(s.add(m.moment_of_play),U+=m.xG2),U),0);return LW(B,2)}},mutations:{setTeamSelected(e,o){e.teamSelected=o},setXgCategories(e,o){e.xgCategories=o},setPlays(e,o){const s=Lf(e.xgCategories,Pf.goals),B=Lf(e.xgCategories,Pf.shots),U=Lf(e.xgCategories,Pf.head),m=Lf(e.xgCategories,Pf.penalties),y=o.local_team.map(l=>IW(o.data_headers,l)),a=[],v=[],p=[],r=[],_=new Set;y.forEach(l=>{s.has(l.category_id)?_.has(l.moment_of_play)||(_.add(l.moment_of_play),a.push(l)):B.has(l.category_id)?v.push(l):U.has(l.category_id)?p.push(l):m.has(l.category_id)&&r.push(l)}),e.xGLocalPlays=[...v,...a,...p,...r];const b=o.visiting_team.map(l=>IW(o.data_headers,l)),x=new Set,h=[],n=[],i=[],c=[];b.forEach(l=>{s.has(l.category_id)?x.has(l.moment_of_play)||(x.add(l.moment_of_play),h.push(l)):B.has(l.category_id)?n.push(l):U.has(l.category_id)?i.push(l):m.has(l.category_id)&&c.push(l)}),e.xGVisitingPlays=[...n,...h,...i,...c]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async loadXgCategories({commit:e,rootGetters:o}){const s=o.getProviderId,B=await aie(s);e("setXgCategories",(B==null?void 0:B.categories)??z2)},async getXgPlays({commit:e,dispatch:o,rootGetters:s},{seasonId:B,localTeamId:U,visitingTeamId:m,postMatch:y=!1}){try{if(!B||!U||!m)return;const a=s.getProviderId,v=s.getIsDevApis;await o("loadXgCategories");let p={};y?p=await bHt({seasonId:B,localTeamId:U,visitingTeamId:m,providerId:a,isDevApis:v}):p=await vHt({seasonId:B,localTeamId:U,visitingTeamId:m,providerId:a,isDevApis:v}),e("setPlays",p)}catch(a){return Promise.reject(a)}}}}}};function xHt(e){for(const[o,s]of Object.entries(_Ht))e.hasModule(o)||e.registerModule(o,s)}const wHt={class:"subcategory-group"},kHt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",wHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Zl),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":U=>B.isSelected=U,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},SHt=ic(kHt,[["__scopeId","data-v-ae6f3d72"]]),CHt={class:"filter-subcategories"},THt=Object.freeze(Object.defineProperty({__proto__:null,default:ic({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",CHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(SHt,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Hw=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),AHt={class:"details__header"},EHt=Hw(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),MHt={class:"details__header__checkbox"},IHt={class:"details__body"},PHt={class:"details__body__playing-as"},LHt=["onClick"],BHt={class:"details__header"},zHt=Hw(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),OHt={class:"details__header__checkbox"},DHt={class:"details__body"},NHt=Hw(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),FHt={class:"details__body__game-section"},RHt=["onClick"],VHt={class:"details__body"},jHt=Hw(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),UHt={class:"details__body__game-section"},GHt=["onClick"],HHt=Object.freeze(Object.defineProperty({__proto__:null,default:ic({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(r=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(r=>r.isSelected)),B=t.computed(()=>o.gameSections.every(r=>r.isSelected)),U=t.computed(()=>o.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),m=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function y(r){r?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,b)=>{_.isSelected=b===0})}function a(r){o.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function v(r){o.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function p(r){r?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,b)=>{_.isSelected=b===0})}return(r,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",AHt,[EHt,t.createElementVNode("div",MHt,[t.createVNode(t.unref(Zl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":y},null,8,["model-value"])])]),t.createElementVNode("div",IHt,[t.createElementVNode("div",PHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>a(b)},t.toDisplayString(b.name),11,LHt))),128))])]),t.createElementVNode("div",BHt,[zHt,t.createElementVNode("div",OHt,[t.createVNode(t.unref(Zl),{label:"Todos","model-value":B.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),t.createElementVNode("div",DHt,[NHt,t.createElementVNode("div",FHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.firstHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,RHt))),128))])]),t.createElementVNode("div",VHt,[jHt,t.createElementVNode("div",UHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.secondHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,GHt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),ZHt={class:"filter-field"},WHt=Object.freeze(Object.defineProperty({__proto__:null,default:ic({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(B,U)=>U+1));function s(){}return(B,U)=>(t.openBlock(),t.createElementBlock("div",ZHt,[t.createVNode(t.unref(OF),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),qHt={class:"subcategory-group"},JHt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",qHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Wl),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":U=>B.isSelected=U,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},YHt=oc(JHt,[["__scopeId","data-v-85bc2114"]]),XHt={class:"filter-subcategories"},$Ht=Object.freeze(Object.defineProperty({__proto__:null,default:oc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",XHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(YHt,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-74a77bab"]])},Symbol.toStringTag,{value:"Module"})),Zw=e=>(t.pushScopeId("data-v-893b389d"),e=e(),t.popScopeId(),e),KHt={class:"details__header"},QHt=Zw(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),eZt={class:"details__header__checkbox"},tZt={class:"details__body"},aZt={class:"details__body__playing-as"},rZt=["onClick"],nZt={class:"details__header"},iZt=Zw(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),oZt={class:"details__header__checkbox"},sZt={class:"details__body"},lZt=Zw(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),cZt={class:"details__body__game-section"},uZt=["onClick"],dZt={class:"details__body"},hZt=Zw(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),pZt={class:"details__body__game-section"},fZt=["onClick"],mZt=Object.freeze(Object.defineProperty({__proto__:null,default:oc({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(r=>({"2715f84a":e.buttonsBackgroundColor,"97bea92a":e.buttonsTextColor,"544788ef":e.buttonsBorderWidth,"53308a8c":e.buttonsBorderColor,e844f820:e.buttonsBackgroundColorActive,"76839a51":e.buttonsTextColorActive,"2bf17656":e.buttonsBorderWidthActive,a4c4469c:e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(r=>r.isSelected)),B=t.computed(()=>o.gameSections.every(r=>r.isSelected)),U=t.computed(()=>o.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),m=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function y(r){r?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,b)=>{_.isSelected=b===0})}function a(r){o.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function v(r){o.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function p(r){r?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,b)=>{_.isSelected=b===0})}return(r,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",KHt,[QHt,t.createElementVNode("div",eZt,[t.createVNode(t.unref(Wl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":y},null,8,["model-value"])])]),t.createElementVNode("div",tZt,[t.createElementVNode("div",aZt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>a(b)},t.toDisplayString(b.name),11,rZt))),128))])]),t.createElementVNode("div",nZt,[iZt,t.createElementVNode("div",oZt,[t.createVNode(t.unref(Wl),{label:"Todos","model-value":B.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),t.createElementVNode("div",sZt,[lZt,t.createElementVNode("div",cZt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.firstHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,uZt))),128))])]),t.createElementVNode("div",dZt,[hZt,t.createElementVNode("div",pZt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.secondHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,fZt))),128))])])],4))}},[["__scopeId","data-v-893b389d"]])},Symbol.toStringTag,{value:"Module"})),gZt={class:"filter-field"},yZt=Object.freeze(Object.defineProperty({__proto__:null,default:oc({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(B,U)=>U+1));function s(){}return(B,U)=>(t.openBlock(),t.createElementBlock("div",gZt,[t.createVNode(t.unref(MG),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-ef90fbbd"]])},Symbol.toStringTag,{value:"Module"}));Nd.GSCGameData=HGt,Nd.connectSocket=t8,Nd.disconnectSocket=a8,Nd.getSocket=e8,Nd.registerStoreModules=xHt,Object.defineProperty(Nd,Symbol.toStringTag,{value:"Module"})});
8204
+ */var aW="store";function Ljt(e){return e===void 0&&(e=null),t.inject(e!==null?e:aW)}function Ng(e,o){Object.keys(e).forEach(function(s){return o(e[s],s)})}function rW(e){return e!==null&&typeof e=="object"}function Bjt(e){return e&&typeof e.then=="function"}function n0(e,o){if(!e)throw new Error("[vuex] "+o)}function zjt(e,o){return function(){return e(o)}}function nW(e,o,s){return o.indexOf(e)<0&&(s&&s.prepend?o.unshift(e):o.push(e)),function(){var B=o.indexOf(e);B>-1&&o.splice(B,1)}}function iW(e,o){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var s=e.state;Rw(e,s,[],e._modules.root,!0),eA(e,s,o)}function eA(e,o,s){var B=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var U=e._wrappedGetters,m={};Ng(U,function(y,a){m[a]=zjt(y,e),Object.defineProperty(e.getters,a,{get:function(){return m[a]()},enumerable:!0})}),e._state=t.reactive({data:o}),e.strict&&Rjt(e),B&&s&&e._withCommit(function(){B.data=null})}function Rw(e,o,s,B,U){var m=!s.length,y=e._modules.getNamespace(s);if(B.namespaced&&(e._modulesNamespaceMap[y]&&process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate namespace "+y+" for the namespaced module "+s.join("/")),e._modulesNamespaceMap[y]=B),!m&&!U){var a=tA(o,s.slice(0,-1)),v=s[s.length-1];e._withCommit(function(){process.env.NODE_ENV!=="production"&&v in a&&console.warn('[vuex] state field "'+v+'" was overridden by a module with the same name at "'+s.join(".")+'"'),a[v]=B.state})}var p=B.context=Ojt(e,y,s);B.forEachMutation(function(r,_){var b=y+_;Djt(e,b,r,p)}),B.forEachAction(function(r,_){var b=r.root?_:y+_,x=r.handler||r;Njt(e,b,x,p)}),B.forEachGetter(function(r,_){var b=y+_;Fjt(e,b,r,p)}),B.forEachChild(function(r,_){Rw(e,o,s.concat(_),r,U)})}function Ojt(e,o,s){var B=o==="",U={dispatch:B?e.dispatch:function(m,y,a){var v=Vw(m,y,a),p=v.payload,r=v.options,_=v.type;if((!r||!r.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._actions[_])){console.error("[vuex] unknown local action type: "+v.type+", global type: "+_);return}return e.dispatch(_,p)},commit:B?e.commit:function(m,y,a){var v=Vw(m,y,a),p=v.payload,r=v.options,_=v.type;if((!r||!r.root)&&(_=o+_,process.env.NODE_ENV!=="production"&&!e._mutations[_])){console.error("[vuex] unknown local mutation type: "+v.type+", global type: "+_);return}e.commit(_,p,r)}};return Object.defineProperties(U,{getters:{get:B?function(){return e.getters}:function(){return oW(e,o)}},state:{get:function(){return tA(e.state,s)}}}),U}function oW(e,o){if(!e._makeLocalGettersCache[o]){var s={},B=o.length;Object.keys(e.getters).forEach(function(U){if(U.slice(0,B)===o){var m=U.slice(B);Object.defineProperty(s,m,{get:function(){return e.getters[U]},enumerable:!0})}}),e._makeLocalGettersCache[o]=s}return e._makeLocalGettersCache[o]}function Djt(e,o,s,B){var U=e._mutations[o]||(e._mutations[o]=[]);U.push(function(m){s.call(e,B.state,m)})}function Njt(e,o,s,B){var U=e._actions[o]||(e._actions[o]=[]);U.push(function(m){var y=s.call(e,{dispatch:B.dispatch,commit:B.commit,getters:B.getters,state:B.state,rootGetters:e.getters,rootState:e.state},m);return Bjt(y)||(y=Promise.resolve(y)),e._devtoolHook?y.catch(function(a){throw e._devtoolHook.emit("vuex:error",a),a}):y})}function Fjt(e,o,s,B){if(e._wrappedGetters[o]){process.env.NODE_ENV!=="production"&&console.error("[vuex] duplicate getter key: "+o);return}e._wrappedGetters[o]=function(U){return s(B.state,B.getters,U.state,U.getters)}}function Rjt(e){t.watch(function(){return e._state.data},function(){process.env.NODE_ENV!=="production"&&n0(e._committing,"do not mutate vuex store state outside mutation handlers.")},{deep:!0,flush:"sync"})}function tA(e,o){return o.reduce(function(s,B){return s[B]},e)}function Vw(e,o,s){return rW(e)&&e.type&&(s=o,o=e,e=e.type),process.env.NODE_ENV!=="production"&&n0(typeof e=="string","expects string as the type, but found "+typeof e+"."),{type:e,payload:o,options:s}}var Vjt="vuex bindings",sW="vuex:mutations",aA="vuex:actions",f2="vuex",jjt=0;function Ujt(e,o){Pjt({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[Vjt]},function(s){s.addTimelineLayer({id:sW,label:"Vuex Mutations",color:lW}),s.addTimelineLayer({id:aA,label:"Vuex Actions",color:lW}),s.addInspector({id:f2,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),s.on.getInspectorTree(function(B){if(B.app===e&&B.inspectorId===f2)if(B.filter){var U=[];hW(U,o._modules.root,B.filter,""),B.rootNodes=U}else B.rootNodes=[dW(o._modules.root,"")]}),s.on.getInspectorState(function(B){if(B.app===e&&B.inspectorId===f2){var U=B.nodeId;oW(o,U),B.state=Zjt(qjt(o._modules,U),U==="root"?o.getters:o._makeLocalGettersCache,U)}}),s.on.editInspectorState(function(B){if(B.app===e&&B.inspectorId===f2){var U=B.nodeId,m=B.path;U!=="root"&&(m=U.split("/").filter(Boolean).concat(m)),o._withCommit(function(){B.set(o._state.data,m,B.state.value)})}}),o.subscribe(function(B,U){var m={};B.payload&&(m.payload=B.payload),m.state=U,s.notifyComponentUpdate(),s.sendInspectorTree(f2),s.sendInspectorState(f2),s.addTimelineEvent({layerId:sW,event:{time:Date.now(),title:B.type,data:m}})}),o.subscribeAction({before:function(B,U){var m={};B.payload&&(m.payload=B.payload),B._id=jjt++,B._time=Date.now(),m.state=U,s.addTimelineEvent({layerId:aA,event:{time:B._time,title:B.type,groupId:B._id,subtitle:"start",data:m}})},after:function(B,U){var m={},y=Date.now()-B._time;m.duration={_custom:{type:"duration",display:y+"ms",tooltip:"Action duration",value:y}},B.payload&&(m.payload=B.payload),m.state=U,s.addTimelineEvent({layerId:aA,event:{time:Date.now(),title:B.type,groupId:B._id,subtitle:"end",data:m}})}})})}var lW=8702998,Gjt=6710886,Hjt=16777215,cW={label:"namespaced",textColor:Hjt,backgroundColor:Gjt};function uW(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function dW(e,o){return{id:o||"root",label:uW(o),tags:e.namespaced?[cW]:[],children:Object.keys(e._children).map(function(s){return dW(e._children[s],o+s+"/")})}}function hW(e,o,s,B){B.includes(s)&&e.push({id:B||"root",label:B.endsWith("/")?B.slice(0,B.length-1):B||"Root",tags:o.namespaced?[cW]:[]}),Object.keys(o._children).forEach(function(U){hW(e,o._children[U],s,B+U+"/")})}function Zjt(e,o,s){o=s==="root"?o:o[s];var B=Object.keys(o),U={state:Object.keys(e.state).map(function(y){return{key:y,editable:!0,value:e.state[y]}})};if(B.length){var m=Wjt(o);U.getters=Object.keys(m).map(function(y){return{key:y.endsWith("/")?uW(y):y,editable:!1,value:rA(function(){return m[y]})}})}return U}function Wjt(e){var o={};return Object.keys(e).forEach(function(s){var B=s.split("/");if(B.length>1){var U=o,m=B.pop();B.forEach(function(y){U[y]||(U[y]={_custom:{value:{},display:y,tooltip:"Module",abstract:!0}}),U=U[y]._custom.value}),U[m]=rA(function(){return e[s]})}else o[s]=rA(function(){return e[s]})}),o}function qjt(e,o){var s=o.split("/").filter(function(B){return B});return s.reduce(function(B,U,m){var y=B[U];if(!y)throw new Error('Missing module "'+U+'" for path "'+o+'".');return m===s.length-1?y:y._children},o==="root"?e:e.root._children)}function rA(e){try{return e()}catch(o){return o}}var i0=function(e,o){this.runtime=o,this._children=Object.create(null),this._rawModule=e;var s=e.state;this.state=(typeof s=="function"?s():s)||{}},pW={namespaced:{configurable:!0}};pW.namespaced.get=function(){return!!this._rawModule.namespaced},i0.prototype.addChild=function(e,o){this._children[e]=o},i0.prototype.removeChild=function(e){delete this._children[e]},i0.prototype.getChild=function(e){return this._children[e]},i0.prototype.hasChild=function(e){return e in this._children},i0.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},i0.prototype.forEachChild=function(e){Ng(this._children,e)},i0.prototype.forEachGetter=function(e){this._rawModule.getters&&Ng(this._rawModule.getters,e)},i0.prototype.forEachAction=function(e){this._rawModule.actions&&Ng(this._rawModule.actions,e)},i0.prototype.forEachMutation=function(e){this._rawModule.mutations&&Ng(this._rawModule.mutations,e)},Object.defineProperties(i0.prototype,pW);var Fg=function(e){this.register([],e,!1)};Fg.prototype.get=function(e){return e.reduce(function(o,s){return o.getChild(s)},this.root)},Fg.prototype.getNamespace=function(e){var o=this.root;return e.reduce(function(s,B){return o=o.getChild(B),s+(o.namespaced?B+"/":"")},"")},Fg.prototype.update=function(e){fW([],this.root,e)},Fg.prototype.register=function(e,o,s){var B=this;s===void 0&&(s=!0),process.env.NODE_ENV!=="production"&&yW(e,o);var U=new i0(o,s);if(e.length===0)this.root=U;else{var m=this.get(e.slice(0,-1));m.addChild(e[e.length-1],U)}o.modules&&Ng(o.modules,function(y,a){B.register(e.concat(a),y,s)})},Fg.prototype.unregister=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1],B=o.getChild(s);if(!B){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to unregister module '"+s+"', which is not registered");return}B.runtime&&o.removeChild(s)},Fg.prototype.isRegistered=function(e){var o=this.get(e.slice(0,-1)),s=e[e.length-1];return o?o.hasChild(s):!1};function fW(e,o,s){if(process.env.NODE_ENV!=="production"&&yW(e,s),o.update(s),s.modules)for(var B in s.modules){if(!o.getChild(B)){process.env.NODE_ENV!=="production"&&console.warn("[vuex] trying to add a new module '"+B+"' on hot reloading, manual reload is needed");return}fW(e.concat(B),o.getChild(B),s.modules[B])}}var mW={assert:function(e){return typeof e=="function"},expected:"function"},Jjt={assert:function(e){return typeof e=="function"||typeof e=="object"&&typeof e.handler=="function"},expected:'function or object with "handler" function'},gW={getters:mW,mutations:mW,actions:Jjt};function yW(e,o){Object.keys(gW).forEach(function(s){if(o[s]){var B=gW[s];Ng(o[s],function(U,m){n0(B.assert(U),Yjt(e,s,m,U,B.expected))})}})}function Yjt(e,o,s,B,U){var m=o+" should be "+U+' but "'+o+"."+s+'"';return e.length>0&&(m+=' in module "'+e.join(".")+'"'),m+=" is "+JSON.stringify(B)+".",m}var Jp=function e(o){var s=this;o===void 0&&(o={}),process.env.NODE_ENV!=="production"&&(n0(typeof Promise<"u","vuex requires a Promise polyfill in this browser."),n0(this instanceof e,"store must be called with the new operator."));var B=o.plugins;B===void 0&&(B=[]);var U=o.strict;U===void 0&&(U=!1);var m=o.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Fg(o),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=m;var y=this,a=this,v=a.dispatch,p=a.commit;this.dispatch=function(_,b){return v.call(y,_,b)},this.commit=function(_,b,x){return p.call(y,_,b,x)},this.strict=U;var r=this._modules.root.state;Rw(this,r,[],this._modules.root),eA(this,r),B.forEach(function(_){return _(s)})},nA={state:{configurable:!0}};Jp.prototype.install=function(e,o){e.provide(o||aW,this),e.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:process.env.NODE_ENV!=="production"||!1;s&&Ujt(e,this)},nA.state.get=function(){return this._state.data},nA.state.set=function(e){process.env.NODE_ENV!=="production"&&n0(!1,"use store.replaceState() to explicit replace store state.")},Jp.prototype.commit=function(e,o,s){var B=this,U=Vw(e,o,s),m=U.type,y=U.payload,a=U.options,v={type:m,payload:y},p=this._mutations[m];if(!p){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown mutation type: "+m);return}this._withCommit(function(){p.forEach(function(r){r(y)})}),this._subscribers.slice().forEach(function(r){return r(v,B.state)}),process.env.NODE_ENV!=="production"&&a&&a.silent&&console.warn("[vuex] mutation type: "+m+". Silent option has been removed. Use the filter functionality in the vue-devtools")},Jp.prototype.dispatch=function(e,o){var s=this,B=Vw(e,o),U=B.type,m=B.payload,y={type:U,payload:m},a=this._actions[U];if(!a){process.env.NODE_ENV!=="production"&&console.error("[vuex] unknown action type: "+U);return}try{this._actionSubscribers.slice().filter(function(p){return p.before}).forEach(function(p){return p.before(y,s.state)})}catch(p){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in before action subscribers: "),console.error(p))}var v=a.length>1?Promise.all(a.map(function(p){return p(m)})):a[0](m);return new Promise(function(p,r){v.then(function(_){try{s._actionSubscribers.filter(function(b){return b.after}).forEach(function(b){return b.after(y,s.state)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in after action subscribers: "),console.error(b))}p(_)},function(_){try{s._actionSubscribers.filter(function(b){return b.error}).forEach(function(b){return b.error(y,s.state,_)})}catch(b){process.env.NODE_ENV!=="production"&&(console.warn("[vuex] error in error action subscribers: "),console.error(b))}r(_)})})},Jp.prototype.subscribe=function(e,o){return nW(e,this._subscribers,o)},Jp.prototype.subscribeAction=function(e,o){var s=typeof e=="function"?{before:e}:e;return nW(s,this._actionSubscribers,o)},Jp.prototype.watch=function(e,o,s){var B=this;return process.env.NODE_ENV!=="production"&&n0(typeof e=="function","store.watch only accepts a function."),t.watch(function(){return e(B.state,B.getters)},o,Object.assign({},s))},Jp.prototype.replaceState=function(e){var o=this;this._withCommit(function(){o._state.data=e})},Jp.prototype.registerModule=function(e,o,s){s===void 0&&(s={}),typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&(n0(Array.isArray(e),"module path must be a string or an Array."),n0(e.length>0,"cannot register the root module by using registerModule.")),this._modules.register(e,o),Rw(this,this.state,e,this._modules.get(e),s.preserveState),eA(this,this.state)},Jp.prototype.unregisterModule=function(e){var o=this;typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&n0(Array.isArray(e),"module path must be a string or an Array."),this._modules.unregister(e),this._withCommit(function(){var s=tA(o.state,e.slice(0,-1));delete s[e[e.length-1]]}),iW(this)},Jp.prototype.hasModule=function(e){return typeof e=="string"&&(e=[e]),process.env.NODE_ENV!=="production"&&n0(Array.isArray(e),"module path must be a string or an Array."),this._modules.isRegistered(e)},Jp.prototype.hotUpdate=function(e){this._modules.update(e),iW(this,!0)},Jp.prototype._withCommit=function(e){var o=this._committing;this._committing=!0,e(),this._committing=o},Object.defineProperties(Jp.prototype,nA);var Xjt=Kjt(function(e,o){var s={};return process.env.NODE_ENV!=="production"&&!vW(o)&&console.error("[vuex] mapMutations: mapper parameter must be either an Array or an Object"),$jt(o).forEach(function(B){var U=B.key,m=B.val;s[U]=function(){for(var y=[],a=arguments.length;a--;)y[a]=arguments[a];var v=this.$store.commit;if(e){var p=Qjt(this.$store,"mapMutations",e);if(!p)return;v=p.context.commit}return typeof m=="function"?m.apply(this,[v].concat(y)):v.apply(this.$store,[m].concat(y))}}),s});function $jt(e){return vW(e)?Array.isArray(e)?e.map(function(o){return{key:o,val:o}}):Object.keys(e).map(function(o){return{key:o,val:e[o]}}):[]}function vW(e){return Array.isArray(e)||rW(e)}function Kjt(e){return function(o,s){return typeof o!="string"?(s=o,o=""):o.charAt(o.length-1)!=="/"&&(o+="/"),e(o,s)}}function Qjt(e,o,s){var B=e._modulesNamespaceMap[s];return process.env.NODE_ENV!=="production"&&!B&&console.error("[vuex] module namespace not found in "+o+"(): "+s),B}const eUt={name:"tooltip",props:{data:{type:Object,required:!0}},computed:{showTooltip(){return{visible:this.data.visible}}},methods:{tooltipClick:function(e){},closeClick:function(e){this.data.link="",this.data.visible=!1}}};function tUt(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["back-tooltip",m.showTooltip])},[t.createElementVNode("div",{class:t.normalizeClass(["box-tooltip",m.showTooltip]),onClick:o[1]||(o[1]=(...y)=>m.tooltipClick&&m.tooltipClick(...y))},[t.createElementVNode("span",{class:"box-tooltip-close",onClick:o[0]||(o[0]=(...y)=>m.closeClick&&m.closeClick(...y))},"×"),t.renderSlot(e.$slots,"default",{},void 0,!0)],2)],2)}const aUt=v_(eUt,[["render",tUt],["__scopeId","data-v-cc97d3a4"]]),rUt=/^https:\/\/[a-z0-9]+\.execute-api\.[a-z0-9-]+\.amazonaws\.com\/(prod|qa\d*)\//,nUt=/^https:\/\/golstats-microservices\.s3[.-]us-west-2\.amazonaws\.com\//,iUt="https://apis.golstats.com",oUt="https://dev-apis.golstats.com";function sUt(e,o,s=!1){if(!o||o===1)return e;const B=s?oUt:iUt,U=e.match(rUt);if(U){const y=e.replace(U[0],"");return`${B}/${o}/${y}`}const m=e.match(nUt);if(m){const y=e.replace(m[0],"");return`${B}/${o}/${y}`}return e}const lUt=1e3,bW=lUt*60,iA=bW*60,_W=iA*24,cUt={data(){return{timeLeft:"",currentTime:new Date().valueOf(),interval:null,gameDateTime:new Date,now:new Date}},computed:{isToday(){return`${this.now.getFullYear()}.${this.now.getMonth()}.${this.now.getDate()}`==`${this.gameDateTime.getFullYear()}.${this.gameDateTime.getMonth()}.${this.gameDateTime.getDate()}`},gameStart(){return this.gameDateTime.toTimeString().slice(0,5)}},methods:{checkTimeLeft(){const e=new Date(this.gameData.dateTimeUTC).valueOf();e>this.currentTime?(this.timeLeft=this.getTimeLeft(e),this.interval=setInterval(()=>{this.timeLeft=this.getTimeLeft(e)},6e4)):this.timeLeft="00:00 hrs"},getTimeLeft(e){let o=e.valueOf()-this.currentTime;const s=Math.floor(o/_W);o=o-s*_W;const B=Math.floor(o/iA);o=o-B*iA;const U=Math.floor(o/bW);return`${s?`${s} dias `:""}${B<10?`0${B}`:B}:${U<10?`0${U}`:U} hrs.`}},beforeDestroy(){this.interval&&clearInterval(this.interval)}};function uUt(e,o){return`${o==1?{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/":"https://golstatsimages.blob.core.windows.net/teams-80/"+o+"/"}${e}.png`}function dUt(e,o){return`${o==1?{}.PROFILE_PHOTO_PLAYER||"https://golstatsimages.blob.core.windows.net/players-profile/":"https://golstatsimages.blob.core.windows.net/players-profile/"+o+"/"}${e}.png`}const oA={GOAL_IDS:["1-1","1-2","1-3","1-4","1-5","1-6","1-7","1-12","1-13","1-16","4-14"],YELLOW_CARD_IDS:["2-8"],RED_CARD_IDS:["2-9"]},hUt="/icn-play.svg",pUt="/icn-tiros-de-esquina.svg",fUt="/icn-tiro-a-porteria.svg",mUt="/icn-cambio.svg",gUt="/icn-falta.svg",yUt="/atajada.svg",vUt="/fuera-de-lugar.svg",sA="/gol.svg",bUt="/var.png",_Ut="/tiempo-agregado.svg",xUt="/jugada-peligrosa.svg",wUt="/penal-marcado.svg",kUt="/penal-fallado.svg",SUt="/inicia-el-partido.svg",CUt="/fin-del-partido.svg",TUt="/icn-tarjeta-amarilla.svg",AUt="/icn-tarjeta-roja.svg",EUt=[1,2,3,4,6],MUt={name:"TimeLineEvent",props:{gameEvent:{type:Object,required:!0},isMobile:{type:Boolean,default:!1},provider:{type:Number,default:0},width:{type:Number,default:352},timeLineWidth:{type:Number,default:0},canPlayVideos:{type:Boolean,default:!0}},data(){return{lastHeight:0,gameEventKey:0}},computed:{nameClasses(){const e=[],o=`${this.gameEvent.event_type_id}-${this.gameEvent.category_id}`;return oA.GOAL_IDS.includes(o)?(e.push("is-main-event"),e.push("goal")):oA.YELLOW_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("yellow-card")):oA.RED_CARD_IDS.includes(o)?(e.push("is-main-event"),e.push("red-card")):this.gameEvent.video_link!=="-"&&(e.push("is-main-event"),e.push("normal-video")),this.gameEvent.teamType===1?e.push("time-line-event--home-team"):e.push("time-line-event--away-team"),e},srcImgPlayers(){let e=null;return this.gameEvent.player_id&&this.gameEvent.player_id!=="-"&&(e=this.gameEvent.player_id.split("@"),e=e.map(o=>dUt(o,this.provider))),e},teamTypeClasses(){const e=`time-line-event--${this.gameEvent.teamType===1?"home":"away"}-team`;return[e,`${e}-desktop`]},teamTypeClasses2(){return[`time-line-event--info--${this.gameEvent.teamType===1?"home":"away"}-team`]},minuteClasses(){const e=[`time-line-event__minute--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`];return e.push("time-line-event__minute--desktop"),e},playerName(){return this.gameEvent.category_id===28||EUt.includes(this.gameEvent.event_type_id)?"":this.gameEvent.player_name}},watch:{width(){this.emitHeight()},gameEvent:{deep:!0,handler(){this.gameEventKey++}}},methods:{...Xjt("general",["setVideoModalVisibility","setVideoSrc"]),thumbnailClick(e){e!=="-"&&this.$emit("thumbnail-click",e)},showVideoTimeline(e){this.setVideoSrc(e),this.setVideoModalVisibility(!0)},getIconClasses(){return["time-line-event__icon--desktop",`time-line-event__icon--desktop-${this.gameEvent.teamType===1?"home":"away"}-team`]},emitHeight(){setTimeout(()=>{this.$refs.timeLineEvent&&this.$refs.timeLineEvent.clientHeight&&this.$refs.timeLineEvent.clientHeight!==this.lastHeight&&(this.lastHeight=this.$refs.timeLineEvent.clientHeight,this.$emit("event-height",this.lastHeight))},500)}},mounted(){if(this.emitHeight(),this.gameEvent.event_type_id===3){const[e,o]=this.gameEvent.player_id.split("@");this.$emit("player-changed",{playerOut:Number(e),playerIn:Number(o),teamId:this.gameEvent.team_id})}}},IUt=e=>(t.pushScopeId("data-v-dff2f5b8"),e=e(),t.popScopeId(),e),PUt={class:"time-line-event__details"},LUt={width:"127",preload:"metadata",style:{"border-radius":"8px"}},BUt=["src"],zUt=IUt(()=>t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient"},[t.createElementVNode("div",{class:"time-line-event__details__video-thumbnail__gradient__button-play"},[t.createElementVNode("svg",{xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none"},[t.createElementVNode("path",{d:"M6.6041 22.8554C6.42105 22.7512 6.26805 22.5956 6.1616 22.4053C6.05515 22.215 5.99927 21.9973 6.00001 21.7755V2.22137C6.00026 2.00039 6.0565 1.78362 6.16274 1.59409C6.26899 1.40456 6.42127 1.24936 6.6034 1.14499C6.78553 1.04062 6.9907 0.990981 7.1971 1.00135C7.4035 1.01171 7.60342 1.0817 7.77561 1.20386L21.4907 10.9821C21.6473 11.0935 21.7758 11.2446 21.8646 11.4219C21.9535 11.5992 22 11.7973 22 11.9985C22 12.1996 21.9535 12.3977 21.8646 12.575C21.7758 12.7523 21.6473 12.9034 21.4907 13.0148L7.77561 22.7954C7.60369 22.9178 7.40392 22.988 7.19761 22.9986C6.9913 23.0092 6.78617 22.9597 6.6041 22.8554ZM7.14347 21.7779L20.8585 11.9996L7.14347 21.7779Z",fill:"#CBEE6B"})])])],-1)),OUt={class:"time-line-event__details__info"},DUt={key:0,class:"time-line-event__details__info__header__players"},NUt={class:"time-line-event__details__info__header__players__div-img"},FUt=["src"],RUt={class:"time-line-event__details__info__body"},VUt={class:"time-line-event__details__info__body__comment"},jUt={class:"time-line-event__minute__container"},UUt={class:"time-line-event__minute__container__text"},GUt={class:"time-line-event__minute__container__icon-container"},HUt={class:"time-line-event__minute__container__icon-container__icon"},ZUt={key:0,src:pUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},WUt={key:1,src:fUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},qUt={key:2,src:mUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},JUt={key:3,src:gUt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},YUt={key:4,src:yUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},XUt={key:5,src:vUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},$Ut={key:6,src:sA,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},KUt={key:7,src:sA,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},QUt={key:8,src:sA,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},eGt={key:9,src:bUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},tGt={key:10,src:_Ut,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},aGt={key:11,src:xUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},rGt={key:12,src:wUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},nGt={key:13,src:kUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},iGt={key:14,src:SUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},oGt={key:15,src:CUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},sGt={key:16,src:TUt,alt:"Event icon",class:"time-line-event__minute__container__icon-container__icon__img"},lGt={key:17,src:AUt,class:"time-line-event__minute__container__icon-container__icon__img",alt:"Event icon"},cGt={key:18,src:"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3Csvg id='Layer_2' data-name='Layer 2' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cdefs%3E%3Cstyle%3E .cls-1 %7B fill: %23fff; %7D .cls-2 %7B fill: %23172531; %7D %3C/style%3E%3C/defs%3E%3Cg id='Layer_1-2' data-name='Layer 1'%3E%3Cg%3E%3Cg id='Oval'%3E%3Ccircle class='cls-2' cx='24' cy='24' r='24'/%3E%3C/g%3E%3Cg id='Group-19'%3E%3Cg id='Path-16'%3E%3Cpath class='cls-1' d='M32.85,36.6H15.15c-.41,0-.75-.34-.75-.75s.34-.75,.75-.75h17.69c.41,0,.75,.34,.75,.75s-.34,.75-.75,.75Z'/%3E%3C/g%3E%3C/g%3E%3Cg id='Rectangle'%3E%3Cg id='path-1'%3E%3Cpath class='cls-1' d='M38.02,32.62H9.98V13.43h28.04v19.19Zm-26.54-1.5h25.04V14.93H11.48V31.12Z'/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E",alt:"Event icon"};function uGt(e,o,s,B,U,m){return t.openBlock(),t.createElementBlock("div",{ref:"timeLineEvent",class:t.normalizeClass(["time-line-event",m.teamTypeClasses]),style:t.normalizeStyle({width:`${s.width}px`}),key:U.gameEventKey},[t.createElementVNode("div",PUt,[s.canPlayVideos&&s.gameEvent.video_link!=="-"&&s.timeLineWidth>700?(t.openBlock(),t.createElementBlock("div",{key:0,class:"time-line-event__details__video-thumbnail",onClick:o[0]||(o[0]=y=>m.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[t.createElementVNode("video",LUt,[t.createElementVNode("source",{src:s.gameEvent.video_link+"#t=0.1",type:"video/mp4"},null,8,BUt)]),zUt])):t.createCommentVNode("",!0),t.createElementVNode("div",OUt,[t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header",m.teamTypeClasses2])},[s.gameEvent.video_link=="-"?(t.openBlock(),t.createElementBlock("div",DUt,[m.srcImgPlayers?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(m.srcImgPlayers,(y,a)=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["img-player",{"second-player":a===1}]),key:a},[t.createElementVNode("div",NUt,[t.createElementVNode("img",{src:y,alt:""},null,8,FUt)])],2))),128)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__details__info__header__event-name",m.nameClasses]),onClick:o[1]||(o[1]=y=>m.thumbnailClick(s.gameEvent.video_link,s.gameEvent.event_type_name))},[s.canPlayVideos&&s.gameEvent.video_link!=="-"?(t.openBlock(),t.createElementBlock("img",{key:0,src:hUt,class:t.normalizeClass(`time-line-event__details__info__header__event-play ${[1,2].includes(s.gameEvent.event_type_id)?`time-line-event__details__info__header__event-play__${s.gameEvent.event_type_name}`:s.gameEvent.video_link!=="-"?"time-line-event__details__info__header__event-play__normal-video":""}`)},null,2)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(s.gameEvent.category_id?s.gameEvent.event_type_id===5?s.gameEvent.category_name:s.gameEvent.event_type_name==="Gol"?`${[13,16].includes(s.gameEvent.category_id)?"Autogol":"Gol"} de `+s.gameEvent.team_name:s.gameEvent.event_type_name:s.gameEvent.comments),1)],2)],2),t.createElementVNode("div",RUt,[t.createElementVNode("div",VUt,t.toDisplayString(this.gameEvent.category_id?`${this.gameEvent.comments}`:""),1)])])]),t.createElementVNode("div",{class:t.normalizeClass(["time-line-event__minute",m.minuteClasses])},[t.createElementVNode("div",jUt,[t.createElementVNode("div",UUt,t.toDisplayString(s.gameEvent.minute)+"'",1),t.createElementVNode("div",GUt,[t.createElementVNode("div",HUt,[s.gameEvent.category_id==18?(t.openBlock(),t.createElementBlock("img",ZUt)):s.gameEvent.category_id==20?(t.openBlock(),t.createElementBlock("img",WUt)):s.gameEvent.category_id==10?(t.openBlock(),t.createElementBlock("img",qUt)):s.gameEvent.category_id==21?(t.openBlock(),t.createElementBlock("img",JUt)):s.gameEvent.category_id==27?(t.openBlock(),t.createElementBlock("img",YUt)):s.gameEvent.category_id==17?(t.openBlock(),t.createElementBlock("img",XUt)):s.gameEvent.category_id==6&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==5&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==1&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==2&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==3&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==7&&s.gameEvent.event_type_id==1||s.gameEvent.category_id==12&&s.gameEvent.event_type_id==1?(t.openBlock(),t.createElementBlock("img",$Ut)):s.gameEvent.category_id==4?(t.openBlock(),t.createElementBlock("img",KUt)):s.gameEvent.category_id==13||s.gameEvent.category_id==16?(t.openBlock(),t.createElementBlock("img",QUt)):s.gameEvent.category_id==30||s.gameEvent.category_id==31||s.gameEvent.category_id==32||s.gameEvent.category_id==33||s.gameEvent.category_id==34||s.gameEvent.category_id==35||s.gameEvent.category_id==36||s.gameEvent.category_id==37||s.gameEvent.category_id==38||s.gameEvent.category_id==39||s.gameEvent.category_id==40?(t.openBlock(),t.createElementBlock("img",eGt)):s.gameEvent.category_id==28?(t.openBlock(),t.createElementBlock("img",tGt)):s.gameEvent.category_id==26?(t.openBlock(),t.createElementBlock("img",aGt)):s.gameEvent.category_id==22?(t.openBlock(),t.createElementBlock("img",rGt)):s.gameEvent.category_id==15||s.gameEvent.category_id==23?(t.openBlock(),t.createElementBlock("img",nGt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==16||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==18||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==20||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==22?(t.openBlock(),t.createElementBlock("img",iGt)):s.gameEvent.category_id==0&&s.gameEvent.game_status_id==13||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==17||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==19||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==21||s.gameEvent.category_id==0&&s.gameEvent.game_status_id==23?(t.openBlock(),t.createElementBlock("img",oGt)):s.gameEvent.category_id==8?(t.openBlock(),t.createElementBlock("img",sGt)):s.gameEvent.category_id==9?(t.openBlock(),t.createElementBlock("img",lGt)):(t.openBlock(),t.createElementBlock("img",cGt))])])])],2)],6)}const dGt=v_(MUt,[["render",uGt],["__scopeId","data-v-dff2f5b8"]]),hGt={"1-1":"gol","1-2":"gol","1-3":"gol","1-4":"gol","1-5":"gol","1-6":"gol","1-7":"gol","1-12":"gol","1-13":"gol","1-16":"gol","2-8":"amonestacion","2-9":"expulsion","3-10":"cambio_de_jugador","3-11":"cambio_de_jugador","4-14":"gol","4-15":"penal_fallado","5-17":"fuera_de_lugar","5-18":"tiro_de_esquina","5-20":"tiro_a_gol","5-21":"falta_cometida","5-22":"penal_marcado","5-23":"penal_fallado","5-24":"","5-25":"","5-26":"jugada_peligro_dentro_area","5-27":"atajada","5-28":"tiempo_agregado","5-29":"presion_para_anotar","7-30":"revision_var","7-31":"revision_var","7-32":"revision_var","7-33":"revision_var","7-34":"revision_var"},pGt={3:{name:"Inicia Primer Tiempo",weight:1,playTimer:1,abbreviation:"1T:"},4:{name:"Final Primer Tiempo",weight:2,playTimer:0,abbreviation:"1T:"},5:{name:"Inicia Segundo Tiempo",weight:3,playTimer:1,abbreviation:"2T:"},8:{name:"Final Segundo Tiempo",weight:4,playTimer:0,abbreviation:"2T:"},9:{name:"Inicia Primer Tiempo Extra",weight:5,playTimer:1,abbreviation:"1T extra:"},12:{name:"Final Primer Tiempo Extra",weight:6,playTimer:0,abbreviation:"1T extra:"},10:{name:"Inicia Segundo Tiempo Extra",weight:7,playTimer:1,abbreviation:"2T extra:"},13:{name:"Final Segundo Tiempo Extra",weight:8,playTimer:0,abbreviation:"2T extra:"},11:{name:"Inicia Tanda de Penales",weight:9,playTimer:1,abbreviation:"Penales:"},15:{name:"Final Tanda de Penales",weight:10,playTimer:0,abbreviation:"Penales:"},6:{name:"Marcador Final",weight:11,playTimer:0,abbreviation:"Final"}};let jw=null;const fGt={name:"TimeLine",components:{Tooltip:aUt,TimeLineEvent:dGt},mixins:[cUt],props:{gameData:{type:Object,required:!0},providerId:{type:Number,default:0},timeLinePeriod:{type:String,default:"all"},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0}},data(){return{gameEvents:[],gameEventsByPeriod:{firstHalf:[],secondHalf:[]},dataVideo:{visible:!1,link:""},gameEventsQueue:[],gameEventsUrl:"https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/",transitionName:"",subscriptionInfo:{gameId:0,isSubscribed:!1},areGameEventsFilled:!1,timeLineWidth:812,eventContainerWidth:0,channelName:"",timeLineStatus:"awaiting",timeLeft:"",lastMinute:0,timeLineStatuses:[],currentStatus:{abbreviation:""},timer:"00:00"}},computed:{isMobile(){return this.timeLineWidth<580},gameEventWidth(){return this.timeLineWidth/2-30},gameEventsToShow(){return this.timeLinePeriod==="all"?this.gameEvents:this.gameEventsByPeriod[this.timeLinePeriod]}},watch:{gameData:{deep:!0,immediate:!0,handler(e){e&&e.id&&(this.gameDateTime=new Date(this.gameData.dateTimeUTC),this.gameEventsQueue=[],this.timeLineStatuses=[],this.transitionName="",this.checkTimeLeft(),e.status!==1&&this.socket&&this.socket.connected?this.subscribeToMXMChannel():this.timeLineStatus="finished",this.fillGameEvents(e.id))}},"socket.connected":{immediate:!0,handler(e){e&&this.gameData.id&&this.gameData.status!==1&&this.subscribeToMXMChannel()}},gameEvents(e){e.length&&this.gameData.status!==1&&(this.timeLineStatus="live")}},methods:{async fillGameEvents(e){try{const o=await this.fetchGameEvents(e);o?(this.gameEvents=[...o],this.checkGameEventsQueue(),this.sortGameEvents(),setTimeout(()=>{this.transitionName="list"},500)):this.gameEvents=[],this.gameData.status===1?this.lastMinute=`${this.gameEvents[this.gameEvents.length-1].minute}'`:this.checkTimeLineStatus()}catch(o){throw new Error(o)}},getGameEventClassAndSetIcon(e,o){return e.icon=o===0?"inicio_del_partido":hGt[`${e.event_type_id}-${e.category_id}`],e.team_id===this.gameData.homeTeam.team_id||!e.team_id?(e.teamType=1,["home-team-event"]):(e.teamType=2,["away-team-event"])},getEventContainerClass(){return this.isMobile,["time-line-event__container--desktop"]},async fetchGameEvents(e){try{const o=this.$store.getters.getProviderId,s=this.$store.getters.getIsDevApis,B=sUt(`${this.gameEventsUrl}${e}`,o,s),{data:{plays:U}}=await eW.get(B);return U}catch(o){throw new Error(o)}},subscribeToMXMChannel(){this.channelName=`mxm.game.${this.gameData.id}`,this.socket.emit("subscribe",{channel:this.channelName}),this.isSubscribed=!0},checkGameEventsQueue(){this.gameEventsQueue.length&&this.gameEvents.push(...this.gameEventsQueue),this.areGameEventsFilled=!0},setUpResizeObserver(){if(window.ResizeObserver)jw=new ResizeObserver(()=>{this.timeLineWidth=this.$refs.timeLine.clientWidth}),jw.observe(this.$refs.timeLine);else throw new Error("Resize observer not supported!")},updateContainerHeight(e,o){const s=this.$refs[`gameEventDiv${o}`][0],B=this.$refs[`gameEventLine${o}`]?this.$refs[`gameEventLine${o}`][0]:null,U=e+12;s&&(s.style.height=`${U}px`),B&&(B.style.height=`${U}px`)},sortGameEvents(){this.gameEvents.sort((e,o)=>this.getMatchLapseMinutes(e.match_lapse)+Number(e.minute)-(this.getMatchLapseMinutes(o.match_lapse)+Number(o.minute))),this.gameEventsByPeriod={firstHalf:[],secondHalf:[]},this.gameEvents.forEach(e=>{this.gameEventsByPeriod[e.match_lapse===1?"firstHalf":"secondHalf"].push(e)})},getMatchLapseMinutes(e){let o=0;switch(e){case 1:o=0;break;case 2:o=45;break;case 3:o=90;break;case 4:o=105;break;case 5:o=120;break}return o},addGameEventFromChannel(e){this.areGameEventsFilled?(this.gameEvents.push(e),this.sortGameEvents()):this.gameEventsQueue.push(e)},deleteGameEventFromChannel(e){const o=this.gameEvents.findIndex(s=>s.play_id===e.play_id);o&&this.gameEvents.splice(o,1)},checkTimeLineStatus(){this.gameEvents.forEach(o=>{const s=pGt[o.game_status];s&&this.timeLineStatuses.push({...s,gameEvent:o})}),this.timeLineStatuses.sort((o,s)=>s.weight-o.weight);const e=this.timeLineStatuses[0];e&&(this.currentStatus=e,e.playTimer&&this.startTimer())},startTimer(){},getTeamLogoSrc(e="homeTeam"){const o=this.gameData[e].team_id;return uUt(o,this.$store.getters.getProviderId)},thumbnailClick(e){this.canPlayVideos&&(this.dataVideo.link=e,this.dataVideo.visible=!0)}},mounted(){this.$nextTick(()=>{this.setUpResizeObserver()})},beforeUnmount(){jw&&jw.unobserve(this.$refs.timeLine)},sockets:{new_mxm([e,o]){this.channelName===e&&this.addGameEventFromChannel(o)},update_mxm([e,o]){this.channelName===e&&(this.deleteGameEventFromChannel(o),this.addGameEventFromChannel(o))},delete_mxm([e,o]){this.channelName===e&&this.deleteGameEventFromChannel(o)}}},xW=e=>(t.pushScopeId("data-v-a81f7bcf"),e=e(),t.popScopeId(),e),mGt={ref:"timeLine",class:"time-line"},gGt={class:"time-line__header"},yGt={class:"time-line__header__dot"},vGt={class:"time-line__header__dot__home-team team-logo"},bGt=["src"],_Gt={class:"time-line__header__dot__away-team team-logo"},xGt=["src"],wGt={key:1,class:"start-line"},kGt=xW(()=>t.createElementVNode("div",null,null,-1)),SGt=xW(()=>t.createElementVNode("div",null,null,-1)),CGt=[kGt,SGt],TGt={key:1,class:"noEventText"},AGt={class:"tooltip-data"},EGt=["src"];function MGt(e,o,s,B,U,m){const y=t.resolveComponent("TimeLineEvent"),a=t.resolveComponent("Tooltip");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createElementVNode("div",mGt,[t.createElementVNode("div",gGt,[t.createElementVNode("div",yGt,[t.createElementVNode("div",vGt,[t.createElementVNode("img",{src:m.getTeamLogoSrc("homeTeam"),alt:""},null,8,bGt)]),t.createElementVNode("div",_Gt,[t.createElementVNode("img",{src:m.getTeamLogoSrc("awayTeam"),alt:""},null,8,xGt)])])]),(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events",key:`tlk-${U.gameEvents.length}`},[s.gameData.status!==4||s.gameData.is_live?(t.openBlock(),t.createBlock(t.TransitionGroup,{key:0,name:U.transitionName,tag:"div"},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.gameEventsToShow,(v,p)=>(t.openBlock(),t.createElementBlock("div",{class:"time-line__game-events__grid",key:v.play_id},[t.createElementVNode("div",{ref_for:!0,ref:`gameEventDiv${p}`,class:t.normalizeClass(m.getGameEventClassAndSetIcon(v,p))},[t.createElementVNode("div",{class:t.normalizeClass(m.getEventContainerClass(v))},[t.createVNode(y,{"game-event":v,"is-mobile":m.isMobile,provider:e.$store.getters.getProviderId,"time-line-width":U.timeLineWidth,width:m.gameEventWidth,"can-play-videos":s.canPlayVideos,onEventHeight:r=>m.updateContainerHeight(r,p),onPlayerChanged:o[0]||(o[0]=r=>e.$emit("player-changed",r)),onThumbnailClick:m.thumbnailClick},null,8,["game-event","is-mobile","provider","time-line-width","width","can-play-videos","onEventHeight","onThumbnailClick"])],2),p>0?(t.openBlock(),t.createElementBlock("div",{key:0,ref_for:!0,ref:`gameEventLine${p}`,class:"line"},null,512)):t.createCommentVNode("",!0),s.gameData.status===1&&p===m.gameEventsToShow.length-1?(t.openBlock(),t.createElementBlock("div",wGt,CGt)):t.createCommentVNode("",!0)],2)]))),128))]),_:1},8,["name"])):(t.openBlock(),t.createElementBlock("div",TGt,"Aún no comienza el partido"))]))],512),t.createVNode(a,{data:U.dataVideo},{default:t.withCtx(()=>[t.createElementVNode("div",AGt,[t.createElementVNode("div",null,[t.createElementVNode("video",{class:"tooltip-video",controls:"",autoplay:"",src:U.dataVideo.link,format:"video/mp4"},null,8,EGt)])])]),_:1},8,["data"])],64)}const IGt=v_(fGt,[["render",MGt],["__scopeId","data-v-a81f7bcf"]]),PGt={class:"game-time-line__options"},LGt={class:"game-time-line__timeline"},BGt={__name:"GSC-GameTimeLine",props:{game:{type:Object,default:()=>({id:79601,seasonId:1772,status:1,dateTimeUTC:"2023-10-01T22:20:00Z",is_live:0,homeTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/18.png",team_id:18,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/18.png",colloquial_name:"Toluca",acronym:"TOL",team_name:"Toluca"},awayTeam:{logo:"https://golstatsimages.blob.core.windows.net/teams-80/1.png",team_id:1,provisional_logo:"https://golstatsimages.blob.core.windows.net/teams-provisional/1.png",colloquial_name:"Chivas",acronym:"CHI",team_name:"Guadalajara"}})},socket:{type:Object,default:()=>({})},canPlayVideos:{type:Boolean,default:!0},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1}},setup(e){const o=e;eW.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const s=t.ref({width:"103px",height:"30px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"}),B=t.ref({width:"auto",height:"30px",padding:"0px 20px",borderRadius:"50px",borderColor:"#8a8a8a",borderWidth:"0.5px",backgroundColor:"rgba(255, 255, 255, 0.04)",fontSize:"14px",fontFamily:"Poppins-Regular, sans-serif",fontColor:"rgba(255, 255, 255, 0.5)",activeFontColor:"#FFFFFF",activeBorderColor:"#cbee6b"});let U=null;const m=Ljt();m.commit("setProviderId",o.providerId),m.commit("setIsDevApis",o.isDevApis);const y=t.ref(["Todo","1er tiempo","2do tiempo"]),a=t.ref("Todo"),v=t.ref({}),p=t.ref(null),r=t.ref(0),_=t.computed(()=>{let i="all";return a.value==="1er tiempo"||a.value==="1er"?i="firstHalf":(a.value==="2do tiempo"||a.value==="2do")&&(i="secondHalf"),i}),b=t.computed(()=>r.value<500);function x(i){a.value=i}function h(i){v.value=i}function n(){if(window.ResizeObserver)U=new ResizeObserver(()=>{r.value=p.value.clientWidth}),U.observe(p.value);else throw new Error("Resize observer not supported!")}return t.onMounted(()=>{n()}),t.onBeforeUnmount(()=>{U&&U.unobserve(p.value)}),(i,c)=>(t.openBlock(),t.createElementBlock("div",{ref_key:"gameTimeLine",ref:p,class:"game-time-line"},[t.createElementVNode("div",PGt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(y.value,l=>(t.openBlock(),t.createElementBlock("div",{key:l,class:"game-time-line__options__option"},[t.createVNode(xRt,t.mergeProps(r.value<390?B.value:s.value,{text:l=="Todo"?l:r.value<390?l.substring(0,3):l,"is-active":a.value===l,onClick:d=>x(l)}),null,16,["text","is-active","onClick"])]))),128))]),t.createElementVNode("div",LGt,[t.createVNode(IGt,{"game-data":e.game,"time-line-period":_.value,"is-mobile":b.value,socket:e.socket,provider:e.providerId,"can-play-videos":e.canPlayVideos,onGameEventsByPeriodFilled:h},null,8,["game-data","time-line-period","is-mobile","socket","provider","can-play-videos"])])],512))}},zGt=v_(BGt,[["__scopeId","data-v-691198f5"]]),jta="",OGt={class:"game-data__header"},DGt={class:"game-data__header__tournament-season-dropdown"},NGt={class:"game-data__header__teams-carousel"},FGt={class:"game-data__body"},RGt={key:0,class:"no-stats-container"},VGt={key:1,class:"no-stats-container-mobile"},jGt={class:"game-data__body__menu"},UGt={class:"game-data__body__menu__contmenuswitch"};pu.defaults.headers.common.Authorization="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE";const GGt=t.defineComponent({name:"GSC-GameData",components:{StatisticsMain:Yue,GSCGameTimeLine:zGt,GscSwitchComponent:XS,GSCLineupsMain:y4e,GSCPositining:p_t,GSCDatosGSMain:qEe,GSCVideoGame:Aje,ModalEvents:mN,GSCTacticaFijaMain:bRt,GSCProminentMain:Oct,GSCComparative:jht}}),HGt=Ki(Object.assign(GGt,{props:{tournamentsApiUrl:{type:String,default:""},tournamentSelectProps:{type:Object,default:null},areFemaleTournamentsVisible:{type:Boolean,default:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!1},defaultGameId:{type:Number,default:0,validator(e){return!Number.isNaN(e)&&e>=0}},sortCalendar:{type:Boolean,default:!0},isWidget:{type:Boolean,default:!1},teamWidget:{type:Number,default:0},socket:{type:Object,default:()=>null},isSynchronization:{type:Boolean,default:!1},isTeamGamePerPage:{type:Boolean,default:!1},clientPrivilegesBySeasons:{type:Object,default:()=>null},areTournamentAndSeasonSelectsVisible:{type:Boolean,default:!0},disabledSectionsIds:{type:Array,default:()=>[]},tournamentsIdsToInclude:{type:Set,default:()=>new Set},volumetricFieldIntervalMinutes:{type:Number,default:2},chalkboardIntervalMinutes:{type:Number,default:2},gameEventsIntervalMinutes:{type:Number,default:1},isFemaleMode:{type:Boolean,default:!1},providerId:{type:Number,default:0},isDevApis:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","change-season-id","onOpenProfile","openProfileTeam","openProfilePlayer"],setup(e,{emit:o}){const s=fp();let B=null;Vd.on("socket-connected",()=>{s.commit("nextGeneral/updateIsSocketConnected",U.socket.connected)});const U=e,m=t.ref(B2(kx));t.watch(()=>U.providerId,async mt=>{s.commit("setProviderId",mt),s.commit("setIsDevApis",U.isDevApis),m.value=await rie(mt)},{immediate:!0}),t.provide("playOffAbbreviationsStructure",m);const y=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),a=t.ref({season:[]}),v=t.ref({}),p=t.ref(!1),r=t.ref({}),_=t.ref(1),b=t.ref(0),x=3e4,h=3e4,n=3e4,i=3e4,c=3e4,l=3e4,d=3e4,g=3e4,w=6e4,C=t.ref(null),E=t.ref(null),A=t.ref(null),P=t.ref([]),L=t.ref(null),T=t.ref(!0),I=t.ref(new Set([1,2])),M=t.ref({}),S=t.ref({minute:"",recent_lapse:0,score:{}}),z=t.ref(0),k=t.ref("eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"),O=t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:4},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:3},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),N=t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]),j=t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);t.ref(U.isWidget?[{componentName:"GSCProminentMain",name:"Generales",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6}]:[{componentName:"GSCProminentMain",name:"Destacado",id:1},{componentName:"GSCVideoGame",name:"Más Videos",id:2},{componentName:"StatisticsMain",name:"Estadísticas",id:3},{componentName:"GSCComparative",name:U.isWidget?"Destacados":"Comparativa",id:4},{componentName:"GSCGameTimeLine",name:"Minuto a Minuto",id:5},{componentName:"GSCLineupsMain",name:"Alineaciones",id:6},{componentName:"GSCTacticaFijaMain",name:"Táctica Fija",id:7}]);const G=t.ref(0);let H=null;const Z=t.ref(null),$=t.ref(0),ne=t.ref(N.value[0]),q=t.ref([]);let K=t.ref("");const ee={seasonAndPrivileges:null,canPrivilegesTeamPlayVideos:!1,homeTeamDetails:{canPlayVideos:!1,team:{}},awayTeamDetails:{canPlayVideos:!1,team:{}}},X=t.computed(()=>{const mt=[];return v.value&&v.value.id&&(mt.push({id:v.value.id,name:v.value.name,type:v.value.type}),v.value.related_seasons&&v.value.related_seasons.forEach(bt=>{mt.push({id:bt.id,type:bt.type})})),mt}),Q=t.computed(()=>{if(U.clientPrivilegesBySeasons){const mt=U.clientPrivilegesBySeasons.seasonsAndPrivileges.get(v.value.id);if(mt)return mt.teamId}return 0});function ce(){p.value=!1}function de(mt){const bt=mt.split(",");return!(bt.length<2||bt[1].split(" ").length<2)}function he(mt){C.value=mt}function pe(mt){P.value.push(mt)}function re(mt){L.value=mt}function se(mt){A.value=mt}function ie(mt){E.value=mt}function me(mt){if(!de(mt))return"";const bt=ve(mt);return`${ye(mt)}. ${bt}`}function ye(mt){return mt.split(",")[1].split(" ")[1][0]}function ve(mt){const bt=mt.split(",")[0].split(" ");return bt[0].length<=3&&bt.length>1?`${bt[0]} ${bt[1]}`:bt[0]}async function we(mt){if(!(!mt||!mt.game_id))try{const bt=pu.create({headers:{Authorization:`${y.value}`}});M.value={};const It=await bt.get(uu("https://al2nv2dmkc.execute-api.us-west-2.amazonaws.com/prod/mxm/"+mt.game_id,U.providerId,U.isDevApis));if(M.value[mt.home_team.team_id]=[],M.value[mt.home_team.team_id].team={name:mt.home_team.acronym,logo:mt.home_team.logo},M.value[mt.home_team.team_id].goals=[],M.value[mt.home_team.team_id].red=[],M.value[mt.home_team.team_id].yellow=[],M.value[mt.visiting_team.team_id]=[],M.value[mt.visiting_team.team_id].team={name:mt.visiting_team.acronym,logo:mt.visiting_team.logo},M.value[mt.visiting_team.team_id].goals=[],M.value[mt.visiting_team.team_id].red=[],M.value[mt.visiting_team.team_id].yellow=[],It.data.minute!=null&&(S.value={minute:It.data.minute,recent_lapse:It.data.recent_lapse,score:It.data.score}),It.data.plays)for(let Ot=0;Ot<It.data.plays.length;Ot++)It.data.plays[Ot].category_name=="Roja"&&It.data.plays[Ot].status==1&&(mt.home_team.team_id==It.data.plays[Ot].team_id?(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].red||(M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].red[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].red||(M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].red[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute))),It.data.plays[Ot].category_name=="Amarilla"&&It.data.plays[Ot].status==1&&(mt.home_team.team_id==It.data.plays[Ot].team_id?(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].yellow||(M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].yellow||(M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].yellow[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute))),It.data.plays[Ot].event_type_name=="Gol"&&It.data.plays[Ot].status==1&&(mt.home_team.team_id==It.data.plays[Ot].team_id?It.data.plays[Ot].category_name=="Autogol"?(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].goals||(M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].goals||(M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):It.data.plays[Ot].category_name=="Autogol"?(me(It.data.plays[Ot].player_name)in M.value[mt.home_team.team_id].goals||(M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.home_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)):(me(It.data.plays[Ot].player_name)in M.value[mt.visiting_team.team_id].goals||(M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)]={},M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event=[],M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].name=me(It.data.plays[Ot].player_name)),M.value[mt.visiting_team.team_id].goals[me(It.data.plays[Ot].player_name)].event.push(It.data.plays[Ot].minute)))}catch(bt){return Promise.reject(bt)}}function Se(mt){p.value=!0,mt.is_live!=1&&mt.game_status!=0&&(mt.game_status==4||Object.keys(mt.minutes).length>0)?(z.value=1,M.value={plays:mt.minutes,home_team:mt.home_team,visiting_team:mt.visiting_team}):(z.value=0,we(mt))}function Ce(){H=new ResizeObserver(mt=>{for(const bt of mt)$.value=bt.contentRect.width}),H.observe(Z.value)}const Me=t.computed(()=>{let mt={};return r.value&&r.value.game_id&&(mt={gameId:r.value.game_id,id:r.value.game_id,seasonId:r.value.season_id,regularSeasonId:r.value.regularSeasonId,matchday_name:r.value.matchday_name,status:r.value.game_status,score:r.value.score,game_status:r.value.game_status,dateTimeUTC:r.value.date_time_utc,homeTeam:r.value.home_team,awayTeam:r.value.visiting_team,is_live:r.value.is_live,minutes:r.value.minutes}),mt});t.watch(()=>r.value.game_id,He,{immediate:!0}),t.watch(()=>r.value.is_live,Pe,{immediate:!0}),t.watch(()=>s.state.nextGeneral.gameForAnalysis,()=>{s.commit("nextGeneral/updateIsSocketConnected",U.socket.connected)},{deep:!0,immediate:!0});function Le(mt){_.value=mt.is_captured,b.value=mt.is_female,T.value=mt.is_captured!==0,a.value.id!==mt.id&&(a.value=mt,s.commit("gameGlobal/setTournamentType",mt.tournament_type))}const ze=o;function He(mt,bt){s.commit("nextGeneral/updateShowLiveData",!0);const It=b.value?"Destacados":"Destacadas";N.value.forEach(Ot=>{Ot.name===It&&(Ot.name=b.value?"Destacadas":"Destacados")}),we({game_id:r.value.game_id,home_team:r.value.home_team,visiting_team:r.value.visiting_team}),Ie(),G.value+=1}function Pe(mt,bt){if(Ie(),s.state.nextGeneral.gameForAnalysis.is_live!==mt&&s.commit("nextGeneral/updateGameForAnalysis",{...s.state.nextGeneral.gameForAnalysis,is_live:r.value.is_live,game_status:r.value.game_status}),mt){const It=e8();It.disconnected?t8():It.connected&&r.value.game_id&&r8(`game.${r.value.game_id}.v2`),Ve(),B=setInterval(()=>{z.value=0,we({game_id:r.value.game_id,home_team:r.value.home_team,visiting_team:r.value.visiting_team})},6e4)}else Ve(),a8();mt!==bt&&(G.value+=1)}function Ve(){B&&clearInterval(B)}function Ie(){N.value=[],r.value.is_live||r.value.game_status===4?N.value=[...O.value]:N.value=[...j.value],U.isWidget||((v.value.is_tactic_available===0||r.value.is_live||r.value.game_status===0)&&N.value.pop(),r.value.has_tracking===1&&!(r.value.is_live||r.value.game_status===4)&&N.value.push({componentName:"GSCPositining",name:"Posicionamiento",id:8})),ne.value=N.value[0]}function ge(mt){mt.gameSeasonId=r.value.season_id,mt.gameRegularSeasonId=r.value.regularSeasonId,!(!mt.auxwidget&&Be.value&&!Be.value.canPrivilegesTeamPlayVideos)&&((r.value.is_live||r.value.game_status===0||r.value.game_status===1)&&(mt.gameIdsToFilter=[r.value.game_id]),mt.isLiveAccumulated&&(mt.gameIdsToFilter=null),(r.value.is_live||r.value.game_status===0)&&!mt.isLiveAccumulated&&(mt.liveGameConfig={gameId:r.value.game_id}),mt.fakeLiveConfig={gameId:r.value.game_id},ze("openmedia",mt))}function Ae(mt){ze("onOpenProfile",mt)}function ke(mt){ze("openProfileTeam",mt)}function je(mt){ze("openProfilePlayer",mt)}function De(mt){et(mt),mt=="Estadísticas"&&(K.value="Comparativa")}function Ne(){K.value=""}function qe(mt){v.value.id!==mt.id&&(v.value=mt,ze("change-season-id",mt.id))}const Ze=t.computed(()=>N.value.reduce((mt,bt)=>(U.disabledSectionsIds.includes(bt.id)||Be.value&&!Be.value.isVideoTabVisible&&bt.id===2||U.clientPrivilegesBySeasons&&bt.id===7||(T.value||bt.id!==5&&bt.id!==6)&&mt.push(bt.name),mt),[]));function _e(mt){if(r.value.is_live||r.value.game_status===1||r.value.game_status===0){const bt=mt.playingAs.has(r.value.playingAs);return U.clientPrivilegesBySeasons.canPlayVideos&&bt}else{const bt=Re.value.filter(It=>mt.playingAs.has(It.playingAs));return U.clientPrivilegesBySeasons.canPlayVideos&&bt.length>0}}const Be=t.computed(()=>{if(U.clientPrivilegesBySeasons){if(v.value&&r.value&&r.value.game_id){const mt=U.clientPrivilegesBySeasons.seasonsAndPrivileges.get(v.value.id);if(mt)if(We(mt.playingAs),(r.value.is_live||r.value.game_status===1||r.value.game_status===0)&&s.state.nextGeneral.showLiveData){const bt=mt.playingAs.has(r.value.playingAs);return{seasonAndPrivileges:mt,canPrivilegesTeamPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&bt,isPrivilegesTeamOnly:!1,isPrivilegesTeamHome:r.value.home_team.team_id===mt.teamId,homeTeamDetails:{canPlayVideos:bt,team:r.value.home_team},awayTeamDetails:{canPlayVideos:bt,team:r.value.visiting_team},isVideoTabVisible:_e(mt)}}else{const bt=r.value.home_team.team_id===mt.teamId,It=Re.value.filter(Gt=>mt.playingAs.has(Gt.playingAs));return{seasonAndPrivileges:mt,canPrivilegesTeamPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&It.length>0,isPrivilegesTeamOnly:!0,isPrivilegesTeamHome:bt,homeTeamDetails:{canPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&bt&&It.length>0,team:r.value.home_team},awayTeamDetails:{canPlayVideos:U.clientPrivilegesBySeasons.canPlayVideos&&!bt&&It.length>0,team:r.value.visiting_team},isVideoTabVisible:_e(mt)}}We(new Set)}return ee}return null}),Re=t.computed(()=>{if(U.clientPrivilegesBySeasons){if(v.value){const mt=U.clientPrivilegesBySeasons.seasonsAndPrivileges.get(v.value.id);if(mt)return q.value.filter(bt=>bt.game_status===1&&mt.playingAs.has(bt.playingAs))}return[]}return[]});t.watch(Ze,()=>{Be.value&&!Be.value.canPrivilegesTeamPlayVideos&&(ne.value.id===2||ne.value.id===7||ne.value.id===8)&&et("Resumen")},{deep:!0,immediate:!0});function We(mt){I.value=mt}function et(mt){if(s.commit("nextGeneral/updateShowLiveData",!0),C.value!=null&&(clearInterval(C.value),C.value=null),E.value!=null&&(clearInterval(E.value),E.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),L.value!=null&&(clearInterval(L.value),L.value=null),P.value.length>0){for(let bt of P.value)clearInterval(bt);P.value=[]}U.isWidget?ne.value=N.value.find(bt=>bt.name===mt)||N.value[1]:ne.value=N.value.find(bt=>bt.name===mt)||N.value[0]}t.onMounted(()=>{Ce(),t.nextTick(()=>{U.isSynchronization&&et("Táctica Fija")})}),t.onBeforeUnmount(()=>{if(H&&H.disconnect(),C.value!=null&&(clearInterval(C.value),C.value=null),E.value!=null&&(clearInterval(E.value),E.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),L.value!=null&&(clearInterval(L.value),L.value=null),P.value.length>0){for(let mt of P.value)clearInterval(mt);P.value=[]}n8()});function tt(mt){if(mt.playingAs||(mt.playingAs=Q.value?mt.home_team.team_id===Q.value?1:2:0),C.value!=null&&(clearInterval(C.value),C.value=null),E.value!=null&&(clearInterval(E.value),E.value=null),A.value!=null&&(clearInterval(A.value),A.value=null),L.value!=null&&(clearInterval(L.value),L.value=null),P.value.length>0){for(let bt of P.value)clearInterval(bt);P.value=[]}r.value=mt,mt.is_live&&mt.game_status===4?t8():a8()}function ht(mt){q.value=mt.map(bt=>{const It={...bt};return Q.value&&(It.playingAs=It.home_team.team_id===Q.value?1:2),It})}return(mt,bt)=>(t.openBlock(),t.createElementBlock("div",{class:"game-data",ref_key:"gamedata",ref:Z},[t.createElementVNode("div",OGt,[t.withDirectives(t.createElementVNode("div",DGt,[t.createVNode(t.unref(TA),{"current-season-id":e.currentSeasonId,"tournaments-ids-to-include":e.tournamentsIdsToInclude,"api-url":e.tournamentSelectProps?void 0:e.tournamentsApiUrl,items:e.tournamentSelectProps?e.tournamentSelectProps.items:void 0,"default-item-by-prop":e.tournamentSelectProps?e.tournamentSelectProps.defaultItemByProp:void 0,"list-height":"370px","are-female-visible":e.areFemaleTournamentsVisible,"is-clubes-active":e.isClubes,"is-female-mode":e.isFemaleMode,token:e.token,onInput:Le,onChangeTournaments:Le},null,8,["current-season-id","tournaments-ids-to-include","api-url","items","default-item-by-prop","are-female-visible","is-clubes-active","is-female-mode","token"]),t.createVNode(t.unref(MA),{"current-season-id":e.currentSeasonId,"list-height":"370px",seasons:a.value.seasons,onInput:qe},null,8,["current-season-id","seasons"])],512),[[t.vShow,e.areTournamentAndSeasonSelectsVisible]]),t.createElementVNode("div",NGt,[t.createVNode(t.unref(Pee),{"plays-live":M.value,"info-live":S.value,token:k.value,is_captured:_.value,"await-for-seasons":"",seasons:X.value,"is-pagination-visible":!1,"are-games-carousel-type":"","default-game-id":e.defaultGameId,"sort-calendar":e.sortCalendar,"is-team-game-per-page":e.isTeamGamePerPage,"client-privileges-team-id":Q.value,"only-games-team-id":Q.value,"tournament-type":t.unref(s).state.gameGlobal.tournamentType,"provider-id":t.unref(s).getters.getProviderId,"is-dev-apis":t.unref(s).getters.getIsDevApis,onChangeGameCarousel:tt,onOpenModalEvent:Se,onChangeGamesByClientPrivileges:ht},null,8,["plays-live","info-live","token","is_captured","seasons","default-game-id","sort-calendar","is-team-game-per-page","client-privileges-team-id","only-games-team-id","tournament-type","provider-id","is-dev-apis"])])]),p.value?(t.openBlock(),t.createBlock(mN,{key:0,width:$.value,onCloseModalEventsLive:ce,plays:M.value,game:r.value,type:z.value},null,8,["width","plays","game","type"])):t.createCommentVNode("",!0),t.createElementVNode("div",FGt,[r.value&&"live_stats"in r.value&&r.value.live_stats==0&&r.value.game_status==0?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[$.value>500?(t.openBlock(),t.createElementBlock("div",RGt,bt[0]||(bt[0]=[t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1)]))):(t.openBlock(),t.createElementBlock("div",VGt,bt[1]||(bt[1]=[t.createElementVNode("div",{class:"no-stats-content"},[t.createElementVNode("h2",{class:"no-stats-title"}," Este partido se publicará en un plazo de hasta 72 horas después de finalizada la jornada. ")],-1)])))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createElementVNode("div",jGt,[t.createElementVNode("div",UGt,[t.createVNode(t.unref(XS),{type:2,buttons:Ze.value,"font-family":"Poppins-Regular","font-size":"16px",width:$.value<400||$.value<700?"max-content":$.value<840||$.value<1050?"155px":"165px","selected-option":ne.value.name,borderWidth:"1px",arrow:!1,height:"30px",onInput:et},null,8,["buttons","width","selected-option"])])]),Me.value&&Me.value.gameId?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(ne.value.componentName),{key:G.value,game:Me.value,"is-widget":e.isWidget,"team-widget":e.teamWidget,onIntervalidpossesion:ie,onIntervalidhighlive:se,onIntervalidtops:pe,onIntervalidgs:re,subsection:t.unref(K),seasonSelected:v.value,tournamentSelected:a.value,"tournament-select-props":e.tournamentSelectProps,showLineups:T.value,socket:e.socket,"time-live-prominent-data":x,"time-live-highlights-prominent-and-video":h,"time-live-possesion":n,"time-live-video-goals":i,"time-live-video-best-plays":c,"time-live-video-this-game":l,"time-live-video-specific-plays":d,"time-live-comparative-best-players":g,"time-live-comparative-avanced":w,is_captured:_.value,"is-tactic-visible":!!v.value.show_tactic,"is-synchronization":e.isSynchronization,"can-play-videos":Be.value?Be.value.canPrivilegesTeamPlayVideos:!0,"video-privileges-playing-as":I.value,"client-privileges-team-id":Q.value,"play-videos-privileges":Be.value,token:k.value,"game-events-interval-minutes":e.gameEventsIntervalMinutes,"volumetric-field-interval-minutes":e.volumetricFieldIntervalMinutes,"chalkboard-interval-minutes":e.chalkboardIntervalMinutes,"is-female-mode":e.isFemaleMode,"provider-id":t.unref(s).getters.getProviderId,"is-dev-apis":t.unref(s).getters.getIsDevApis,onResetSubsection:Ne,onOpenmedia:ge,onOnOpenProfile:Ae,onOpenProfileTeam:ke,onOpenProfilePlayer:je,onChangeToTab:De,onOpenMediaPlayer:ge,onIntervalid:he},null,40,["game","is-widget","team-widget","subsection","seasonSelected","tournamentSelected","tournament-select-props","showLineups","socket","is_captured","is-tactic-visible","is-synchronization","can-play-videos","video-privileges-playing-as","client-privileges-team-id","play-videos-privileges","token","game-events-interval-minutes","volumetric-field-interval-minutes","chalkboard-interval-minutes","is-female-mode","provider-id","is-dev-apis"])):t.createCommentVNode("",!0)],64))])],512))}}),[["__scopeId","data-v-ce7f3d66"]]);async function wW({seasonId:e,providerId:o,isDevApis:s},B=!0){try{const U=`https://golstats-microservices.s3-us-west-2.amazonaws.com/statsLeagueBySeason-${e}.json`;return(await(await fetch(qy(U,o))).json()).data}catch(U){if(B)return wW({seasonId:e,providerId:o,isDevApis:s},!1);throw new Error(U)}}async function ZGt({seasonId:e,providerId:o,isDevApis:s}){try{return(await Uu({url:`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}`,providerId:o,isDevApis:s})).data.data}catch(B){return Promise.reject(B)}}async function WGt({seasonId:e,providerId:o,isDevApis:s}){try{return(await Uu({url:`https://sqf4rkvoge.execute-api.us-west-2.amazonaws.com/prod/v3/statisticsGroupedBySeason/${e}`,providerId:o,isDevApis:s})).data.data}catch(B){return Promise.reject(B)}}function qGt(e,o,s,B,U,m,y=!1){const a=s.map(v=>v===1?2:v===2?1:3);return e.filter(v=>{const p=m&&v[U.teamId]?v[U.teamId]!==m:!1,r=o===1?2:1;return(y||B.includes(v[U.gameId]))&&(!o||(p?r:o)===v[U.playingAs])&&(s.includes(v[U.matchResult])&&v[U.teamId]===m||a.includes(v[U.matchResult])&&v[U.teamId]!==m)})}function kW(e,o,s,B,U){return o.length===2&&s.length===3&&B.length===6?e:e.filter(m=>o.includes(m[U.playingAs])&&s.includes(m[U.matchResult])&&B.includes(m[U.section]))}async function SW({seasonId:e,providerId:o,isDevApis:s}){try{const B=`https://8tvo5bp9ai.execute-api.us-west-2.amazonaws.com/prod/gamesBySeason/${e}`;return(await Uu({url:B,providerId:o,isDevApis:s})).data}catch(B){return Promise.reject(B)}}async function JGt({seasonId:e,gameId:o,providerId:s,isDevApis:B}){try{const U=`https://iwxfzq6e2h.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsLeagueBySeason/${e}/games/${o}`,{data:m}=await Uu({url:U,providerId:s,isDevApis:B});return m}catch(U){return Promise.reject(U)}}async function YGt({gameId:e,providerId:o,isDevApis:s}){try{const B=`https://2uj7ojhmt5.execute-api.us-west-2.amazonaws.com/prod/V2/statisticsLive/${e}`;return(await Uu({url:B,providerId:o,isDevApis:s})).data.data}catch(B){return Promise.reject(B)}}async function XGt({gameId:e,providerId:o,isDevApis:s}){try{const B=`https://55sbpmq0f5.execute-api.us-west-2.amazonaws.com/prod/specialMentions/${e}`;return(await Uu({url:B,providerId:o,isDevApis:s})).data.data||[]}catch(B){return Promise.reject(B)}}const $Gt=["categoryId","matchLapse","section","matchResult","playingAs","total"];let lA=null;function CW(){return lA||(lA=Yy($Gt)),lA}async function KGt(e){try{const o=`https://d2oco6mqmc.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return(await Uu({url:o,providerId:e.providerId,isDevApis:e.isDevApis})).data}catch(o){return Promise.reject(o)}}async function TW({seasonId:e,teamId:o,providerId:s,isDevApis:B}){try{return await Uu({url:`https://a4dcb6avog.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsTeamBySeason/${e}/${o}`,providerId:s,isDevApis:B})}catch(U){return Promise.reject(U)}}async function QGt(e){try{const o=`https://yjeig444bb.execute-api.us-west-2.amazonaws.com/prod/teamsBySeason/${e.seasonId}`;return await Uu({url:o,providerId:e.providerId,isDevApis:e.isDevApis})}catch(o){return Promise.reject(o)}}async function eHt(e){try{return await Uu({url:`https://nckawv8v3b.execute-api.us-west-2.amazonaws.com/prod/v2/statisticsByGame/${e.gameId}`,providerId:e.providerId,isDevApis:e.isDevApis})}catch(o){return Promise.reject(o)}}const tHt={leagueGeneral:{namespaced:!0,state:{seasonPlays:[],currentSeasonGames:[],currentSeasonTeams:[],selectedRound:1,booleanAreLiveGames:!1,booleanIsLiveGamesModalOpen:!1},getters:{seasonPlays:e=>e.seasonPlays,filteredPlaysStack(e,o,s,B){return qGt(e.seasonPlays,B["filterGeneral/getPlayingAs"],B["filterGeneral/getResults"],B["filterGeneral/getSelectedGamesIds"],CW(),B["teamsGeneral/team"].team_id,!0)},nextGamesSchedule(e){const o=e.currentSeasonGames.reduce((s,B)=>{const U={...B};return U.home_team=e.currentSeasonTeams.find(m=>m.team_id===B.home_team),U.visiting_team=e.currentSeasonTeams.find(m=>m.team_id===B.visiting_team),s[B.matchday_abbreviation]?s[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]?s[B.matchday_abbreviation][B.game_status===3?"canceled":B.date].push(U):s[B.matchday_abbreviation][B.game_status===3?"canceled":B.date]=[U]:s[B.matchday_abbreviation]={[B.game_status===3?"canceled":B.date]:[U]},s},{});for(let[s,B]of Object.entries(o))o[s]=Object.entries(B).map(([U,m])=>({date:U,games:m})),o[s].sort((U,m)=>U.date<m.date?-1:U.date>m.date?1:0);return o},matchdaysDates(e,o){let s=[];if(o.nextGamesSchedule){let B=Object.keys(o.nextGamesSchedule);for(let U of B){let m=Number(U.replace("M","")),y=o.nextGamesSchedule[U].map(a=>({matchday:m,date:new Date(a.date)}));s=s.concat(y)}}return s},closestMatchDay(e,o){let s=new Date,B=0,U=-new Date(0,0,0).valueOf(),m=o.matchdaysDates,y=m.length;for(let a=0;a<m.length;a++)B=Math.abs(m[a].date-s),B<U&&(y=a,U=B);return m[y]?m[y].matchday:1}},mutations:{setBooleanIsLiveGamesModalOpen(e,o){e.booleanIsLiveGamesModalOpen=o},setBooleanAreLiveGames(e,o){e.booleanAreLiveGames=o},updateSeasonPlays(e,o){e.seasonPlays=o},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateSelectedRound(e,o){e.selectedRound=o}},actions:{async getSeasonPlays({commit:e,rootGetters:o},s=!1){try{const B=o.getProviderId,U=o.getIsDevApis,m=await wW({seasonId:o["filterGeneral/getSeasonId"],providerId:B,isDevApis:U});if(s)return m;e("updateSeasonPlays",m)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,rootGetters:o}){try{const s=o.getProviderId,B=o.getIsDevApis,U=await SW({seasonId:o["loginGeneral/seasonId"],providerId:s,isDevApis:B});e("updateCurrentSeasonGames",U)}catch(s){return Promise.reject(s)}},async getCurrentSeasonTeams({commit:e,rootGetters:o}){try{const s=o.getProviderId,B=o.getIsDevApis,U=await KGt({seasonId:o["loginGeneral/seasonId"],providerId:s,isDevApis:B});e("updateCurrentSeasonTeams",U.teams)}catch(s){return Promise.reject(s)}},async isDataFilled({state:e,dispatch:o,commit:s}){try{if(e.currentSeasonGames.length>0&&e.currentSeasonTeams.length>0)return s("setIsSectionLoading",!1,{root:!0}),!0;const B=[void 0,void 0];return e.currentSeasonGames.length===0&&(B[0]=o("getCurrentSeasonGames")),e.currentSeasonTeams.length===0&&(B[1]=o("getCurrentSeasonTeams")),await Promise.all(B),!1}catch(B){throw new Error(B)}}}}};async function aHt({filter:e,providerId:o,isDevApis:s}){try{const B=`https://n7ielynjxk.execute-api.us-east-2.amazonaws.com/qa/filters?filters=${e}`,{data:U}=await Uu({url:B,providerId:o,isDevApis:s});return U}catch(B){return Promise.reject(B)}}const rHt=["categoryId","teamId","matchResult","playingAs","matchLapse","section","total"];let cA=null;function nHt(){return cA||(cA=Yy(rHt)),cA}const uA=6;let AW=uA;function iHt(e){AW=Math.max(uA,Number(e)||uA)}class Uw{constructor(){_u(this,"maximumLiveSection",1);_u(this,"accomplished",{totalPostGame:0,avgPostGame:0,avgPreGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{},arrayRankings:[]});_u(this,"received",{totalPostGame:0,avgPostGame:0,totalLive:0,avgPostGameTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},totalsLiveTrendLive:{accumulated:this.getZeroTotalsTrendSections(),sections:this.getZeroTotalsTrendSections()},ranking:null,leader:{}})}setMaximumLiveSection(o){o>this.maximumLiveSection&&(this.maximumLiveSection=o)}getZeroTotalsTrendSections(){return new Array(AW).fill(0)}resetTotals(){this.accomplished.totalPostGame=0,this.accomplished.avgPostGame=0,this.received.totalPostGame=0,this.received.avgPostGame=0,this.accomplished.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.avgPostGameTrendLive.accumulated=this.getZeroTotalsTrendSections()}resetTotalsLive(){this.accomplished.totalLive=0,this.received.totalLive=0,this.accomplished.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.accomplished.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.sections=this.getZeroTotalsTrendSections(),this.received.totalsLiveTrendLive.accumulated=this.getZeroTotalsTrendSections()}increaseAccomplishedByOne(o,s,B){B&&(this.setMaximumLiveSection(o),this.accomplished.totalLive+=s,this.accomplished.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s)),this.accomplished.totalPostGame+=s,this.accomplished.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.accomplished.avgPostGameTrendLive,o,s)}increaseReceivedByOne(o,s,B){B&&(this.setMaximumLiveSection(o),this.received.totalLive+=s,this.received.totalsLiveTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s)),this.received.totalPostGame+=s,this.received.avgPostGameTrendLive.sections[o-1]+=s,this.increaseTrendLiveAccumulatedByOne(this.received.avgPostGameTrendLive,o,s)}increaseTrendLiveAccumulatedByOne(o,s,B){for(;o.accumulated.length<s;)o.accumulated.push(0);for(let U=s-1;U<o.accumulated.length;U++)o.accumulated[U]+=B}decreaseAccomplishedLiveByOne(o,s){this.accomplished.totalLive>0&&(this.accomplished.totalLive-=s),this.accomplished.totalsLiveTrendLive.sections[o-1]>0&&(this.accomplished.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.accomplished.totalsLiveTrendLive,o,s))}decreaseReceivedLiveByOne(o,s){this.received.totalLive>0&&(this.received.totalLive-=s),this.received.totalsLiveTrendLive.sections[o-1]>0&&(this.received.totalsLiveTrendLive.sections[o-1]-=s,this.decreaseTotalsLiveTrendLiveAccumulatedByOne(this.received.totalsLiveTrendLive,o,s))}decreaseTotalsLiveTrendLiveAccumulatedByOne(o,s,B){for(let U=o.accumulated.length-1;U>=s-1;U--)o.accumulated[U]-=B}calculateAvg(o){o&&(this.accomplished.avgPostGame=this.accomplished.totalPostGame/o,this.received.avgPostGame=this.received.totalPostGame/o,this.accomplished.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.sections,o),this.accomplished.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.accomplished.avgPostGameTrendLive.accumulated,o),this.received.avgPostGameTrendLive.sections=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.sections,o),this.received.avgPostGameTrendLive.accumulated=this.getAvgPostGameTrendLiveAvg(this.received.avgPostGameTrendLive.accumulated,o))}getAvgPostGameTrendLiveAvg(o,s){return o.map(B=>B/s)}calculateRanking(o,s,B,U,m,y,a,v){let p=[];U===3&&o&&o.length&&(B.playingAs.length!==2||B.matchResult.length!==3)?p=Array.from(o.reduce((_,b)=>{const x=b[s.playingAs]===1,h=x?"1":"2",n=_.get(b[s.gameId]);if(n)n[h]?n[h].arrayPlays.push(b):n[h]={numberTeamId:b[s.teamId],arrayPlays:[b]};else{const i={numberMatchResult:b[s.matchResult]};x&&(i[1]={numberTeamId:b[s.teamId],arrayPlays:[b]}),_.set(b[s.gameId],i)}return _},new Map).values()).reduce((_,b)=>{const x=B.playingAs.length===2?"both":B.playingAs[0].toString();return(x==="both"&&(b[1].numberTeamId===B.teamId||b[2].numberTeamId===B.teamId)||x!=="both"&&b[x].numberTeamId===B.teamId)&&B.matchResult.includes(b.numberMatchResult)&&_.push(...b[1].arrayPlays,...b[2].arrayPlays),_},[]).filter(_=>B.sections.includes(_[s.section])):(p=o?[...o]:[],a&&o&&(p=o.filter(r=>B.playingAs.includes(r[s.playingAs])&&B.matchResult.includes(r[s.matchResult])&&B.sections.includes(r[s.section])))),this.setTeamRanking(p,U,s,B.teamId,y,"accomplished",v)}setTeamRanking(o,s,B,U,m,y,a){let v=null,p=null;s===3&&(v=new Map,p={},o.forEach(b=>{const x=v.get(b[B.gameId]);x?x[b[B.teamId.toString()]]?x[b[B.teamId.toString()]]+=b[B.total]:x[b[B.teamId.toString()]]=b[B.total]:v.set(b[B.gameId],{[b[B.teamId.toString()]]:b[B.total]})}),Array.from(v.values()).forEach(b=>{const[x,h]=Object.keys(b).map(i=>i),n=b[x]+b[h];this.addPassesAvgByTeam(p,x,n?b[x]/n:0),this.addPassesAvgByTeam(p,h,n?b[h]/n:0)}));const r=m.sort((b,x)=>b.team_id-x.team_id).map(b=>{if(s===3){const x=p[b.team_id.toString()];return{teamId:b.team_id,points:x?x.numberTotalPassesAvg/x.numberGamesCount:0,total:x?x.numberTotalPassesAvg:0}}else{const x=o.reduce((h,n)=>n[B.teamId]===b.team_id&&s===n[B.categoryId]?h+n[B.total]:h,0);return{teamId:b.team_id,points:b[`${a}FilterGames`]?x/b[`${a}FilterGames`]:0,total:x}}}).sort((b,x)=>x.points-b.points);this.accomplished.arrayRankings=r;const _=r.findIndex(b=>b.teamId===U);s===3&&(this.accomplished.avgPreGame=r[_].points),this[y].ranking=_+1,this[y].leader=r[0]}addPassesAvgByTeam(o,s,B){o[s]?(o[s].numberGamesCount+=1,o[s].numberTotalPassesAvg+=B):o[s]={numberGamesCount:1,numberTotalPassesAvg:B}}}class oHt{constructor(o,s,B,U,m,y,a,v,p,r,_=!0){_u(this,"id","");_u(this,"generalId",0);_u(this,"name","");_u(this,"names",{"0-0":"","1-1":"","0-1":"","1-0":""});_u(this,"mentions",{"0-0":"","1-1":"","0-1":"","1-0":""});_u(this,"accomplishedCategoryIds",[]);_u(this,"receivedCategoryIds",[]);_u(this,"generalCategoriesIds",{accomplished:0,received:0});_u(this,"specialMention","");_u(this,"homeTeam",new Uw);_u(this,"visitingTeam",new Uw);_u(this,"isLeagueDataCalculated",!1);_u(this,"leagueAccomplishedMax",0);_u(this,"leagueReceivedMax",0);_u(this,"leagueAccomplishedAvg",0);_u(this,"leagueReceivedAvg",0);_u(this,"leagueAccomplishedAccumulator",0);_u(this,"leagueReceivedAccumulator",0);_u(this,"homeTeamType","homeTeam");_u(this,"visitingTeamType","visitingTeam");_u(this,"betOnly",!1);_u(this,"isPercent",!1);this.id=`${B.accomplished}-${B.received}`,this.accomplishedCategoryIds=o||[],this.receivedCategoryIds=s||[],this.generalCategoriesIds=B||{accomplished:0,received:0},this.name=U,this.names["0-0"]=U||"",this.names["1-1"]=m||"",this.names["0-1"]=y||"",this.names["1-0"]=a||"",this.generalId=v||0,this.betOnly=p||!1,this.isPercent=r||!1,this.isVisible=_}addLeaguePlays(o,s,B){o.length===0||!B||this.isLeagueDataCalculated||(o.forEach(U=>{this.isAccomplishedLeaguePlay(U[s.categoryId])&&(this.leagueAccomplishedAccumulator+=U[s.total]),this.isReceivedLeaguePlay(U[s.categoryId])&&(this.leagueReceivedAccumulator+=U[s.total])}),this.leagueAccomplishedAvg=(this.leagueAccomplishedAccumulator/(2*B)).toFixed(2),this.leagueAccomplishedMax=Math.round(this.leagueAccomplishedAvg*1.5),this.leagueReceivedAvg=(this.leagueReceivedAccumulator/(2*B)).toFixed(2),this.leagueReceivedMax=Math.round(this.leagueReceivedAvg*1.5),this.isLeagueDataCalculated=!0)}addSpecialMention(o,s,B){let U="-";for(const[m,y]of Object.entries(this.generalCategoriesIds))o===y&&(U=`${m==="accomplished"?"0":"1"}${U}`),s===y&&(U=`${U}${m==="accomplished"?"0":"1"}`);U.length===3&&(this.mentions[U]=B)}resetMentions(){this.mentions={"0-0":"","1-1":"","0-1":"","1-0":""}}addTeamPlays(o,s,B,U,m){!B||!m||o!==this.homeTeamType&&o!==this.visitingTeamType||(B.forEach(y=>{this.isAccomplishedPlay(y[U.categoryId])?this[o].increaseAccomplishedByOne(y[U.section],y[U.total]):this.isReceivedPlay(y[U.categoryId])&&this[o].increaseReceivedByOne(y[U.section],y[U.total])}),this[o].calculateAvg(m))}addLivePlay(o,s,B,U,m=!1,y=!1){(o===this.homeTeamType||o===this.visitingTeamType)&&B[U.categoryId].includes(this.generalCategoriesIds.accomplished)&&this[o].increaseAccomplishedByOne(B[U.section],B[U.total],!0)}subtractLivePlay(o,s,B,U,m){(o===this.homeTeamType||o===this.visitingTeamType)&&(this.isAccomplishedPlay(B[U.categoryId])&&!m?this[o].decreaseAccomplishedLiveByOne(B[U.section],B[U.total]):this.isReceivedPlay(B[U.categoryId])&&m&&this[o].decreaseReceivedLiveByOne(B[U.section],B[U.total]))}isAccomplishedLeaguePlay(o){return!!(this.receivedCategoryIds[0]===40?this.receivedCategoryIds:this.accomplishedCategoryIds).find(B=>o===B||`${o}_r`===B)}isReceivedLeaguePlay(o){return!!this.receivedCategoryIds.find(s=>o===s)}isAccomplishedPlay(o){return this.generalCategoriesIds.accomplished===o}isReceivedPlay(o){return this.generalCategoriesIds.received===o}calcRankingLeague(o,s,B,U,m,y=!1){this[this.homeTeamType].calculateRanking(o,s,B,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,m,y,this.homeTeamType),this[this.visitingTeamType].calculateRanking(o,s,U,this.generalCategoriesIds.accomplished,this.generalCategoriesIds.received,m,y,this.visitingTeamType)}resetData(){this.homeTeam=new Uw,this.visitingTeam=new Uw,this.isLeagueDataCalculated=!1,this.leagueAccomplishedMax=0,this.leagueReceivedMax=0,this.leagueAccomplishedAvg=0,this.leagueReceivedAvg=0,this.leagueAccomplishedAccumulator=0,this.leagueReceivedAccumulator=0}isInGeneralCategory(o){return this.generalCategoriesIds.accomplished===o||this.generalCategoriesIds.received===o}}function sHt(e){for(const o of Object.values(e))for(let s of Object.keys(o.subcategories)){const B=o.subcategories[s];o.subcategories[s]=new oHt(B.accomplishedCategoryIds,B.receivedCategoryIds,B.generalCategoriesIds,B.accomplishedName,B.receivedName,B.accomplishedReceivedName,B.receivedAccomplishedName,B.generalId,B.betOnly,B.isPercent,B.isVisible===void 0?!0:B.isVisible)}return e}const lHt=[{parentAnalysis:[1,2,3],value:0,text:"Realizado",block:1},{parentAnalysis:[1,2,3],value:1,text:"Recibido",block:1},{parentAnalysis:[1],value:0,text:"Posesión",block:2},{parentAnalysis:[1,2],value:0,text:"Origen de gol realizado",block:3},{parentAnalysis:[1,2],value:1,text:"Origen de gol recibido",block:3}],cHt=["teamId","categoryId","matchlapse","section","matchResult","playingAs","total","gameId"];let dA=null;function uHt(){return dA||(dA=Yy(cHt)),dA}const dHt=["playId","gameId","teamId","playerId","momentOfPlay","categoryId","categoryType","matchLapse","section","matchResult","playingAs","total","coordinate1X","coordinate1Y","coordinate2X","coordinate2Y","coordinate3X","coordinate3Y"];let hA=null;function hHt(){return hA||(hA=Yy(dHt)),hA}function Gw(e,o,s){return[s.get(e[o.categoryId])||[],e[o.teamId],e[o.matchResult],e[o.playingAs],e[o.matchLapse],e[o.section],e[o.total]]}function EW(e){return[[1,1,e.local.win],[1,2,e.local.lose],[1,3,e.local.draw],[2,1,e.visit.win],[2,2,e.visit.lose],[2,3,e.visit.draw]]}function pA(e,o,s){let B=[...o];return e[s.categoryId]===2&&(B[0]=14),e[s.categoryId]===20&&(B[0]=15),[14,15].includes(B[0])?B:null}function MW(e){const o=e.indexesTSP.section;let s=0;for(const B of[e.homeTeamPlays,e.visitingTeamPlays])if(Array.isArray(B))for(const U of B){const m=U[o];m>s&&(s=m)}iHt(s)}const pHt=e8(),fHt=[{name:"Liga MX",id:1},{name:"Liga MX Femenil",id:1001},{name:"Liga Expansión MX",id:1071}],mHt={nextGeneral:{namespaced:!0,state:{seasonId:0,pastSeasonId:0,usePastSeasonId:!1,isSocketConnected:!1,indexesLP:CW(),indexesTSP:nHt(),indexesLS:uHt(),indexesTLP:hHt(),nextGamesDataStructure:{},currentSeasonGames:[],currentSeasonTeams:[],gameForAnalysis:{},showPostMatch:!1,homeResultGame:null,awayResultGame:null,selectedAnalysis:{},selectedStatisticTypeBlock:1,gameId:null,game:{},games:[],homeTeamPlays:[],visitingTeamPlays:[],currentSeasonPlays:[],livePlays:new Map,totalSeasonFinishedGames:0,totalHomeTeamFinishedGames:0,totalVisitingTeamFinishedGames:0,homeGames:[],homeTeamInfo:{},awayTeamInfo:{},visitingGames:[],idAssetSelected:1,isLive:!1,menuOptionActive:"",showLiveData:!0,showAdvanceFilter:!1,homeTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},visitingTeamFilter:{teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},oldSeasonId:0,statistics:[],isRankingCalculating:!0,categoriesMap:new Map,defaultFilter:null,filterAux:null,betSubcategories:[],betDescription:{},regularSeasonName:"",betSubcategoriesObjects:[],currentTournamentName:"",toBackRouteName:"home"},getters:{betSubcategoriesIds(e){return e.betSubcategories.map(o=>o.id)},showPostMatchData:e=>e.showPostMatch,getHomeResultGame:e=>e.homeResultGame,getAwayResultGame:e=>e.awayResultGame,getSeasonId:e=>e.seasonId,getGameForAnalysis:e=>e.gameForAnalysis,isLive:e=>e.isLive,showLive:e=>e.gameForAnalysis.game_status===4&&e.gameForAnalysis.is_live,menuOptionActive:e=>e.menuOptionActive,showLiveData:e=>e.showLiveData,showAdvanceFilter:e=>e.showAdvanceFilter,idAssetSelected:e=>e.idAssetSelected,gameId:e=>e.gameId,game:e=>e.game,homeTeam(e){return e.homeTeamInfo},visitingTeam(e){return e.awayTeamInfo},rankingData(e){return e.statistics},homeTeamStatisticsType(e){return e.homeTeamFilter.statistics?"received":"accomplished"},visitingTeamStatisticsType(e){return e.visitingTeamFilter.statistics?"received":"accomplished"},subcategoryName(e){return`${e.homeTeamFilter.statistics}-${e.visitingTeamFilter.statistics}`},statisticsTypes(e){return lHt.filter(o=>o.parentAnalysis.includes(e.selectedAnalysis.id))},homeTeamFilteredPlays(e){if(e.homeTeamFilter.requiresPlaysFiltering)return kW(e.homeTeamPlays,e.homeTeamFilter.playingAs,e.homeTeamFilter.matchResult,e.homeTeamFilter.sections,e.indexesTSP)},visitingTeamFilteredPlays(e){if(e.visitingTeamFilter.requiresPlaysFiltering)return kW(e.visitingTeamPlays,e.visitingTeamFilter.playingAs,e.visitingTeamFilter.matchResult,e.visitingTeamFilter.sections,e.indexesTSP)},currentSeasonTeamsIds(e){return e.currentSeasonTeams.map(o=>o.team_id)},canFilledStructure(e){return e.homeTeamFilter.requiresPlaysFiltering||e.visitingTeamFilter.requiresPlaysFiltering},totalFilteredHomeGames(e){return e.homeGames.filter(o=>e.homeTeamFilter.playingAs.includes(o[0])).filter(o=>e.homeTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},totalFilteredVisitingGames(e){return e.visitingGames.filter(o=>e.visitingTeamFilter.playingAs.includes(o[0])).filter(o=>e.visitingTeamFilter.matchResult.includes(o[1])).reduce((o,s)=>o+s[2],0)},filledDataStructure(e,o){if(e.currentSeasonPlays)for(const s of Object.values(e.nextGamesDataStructure))for(const B of Object.values(s.subcategories))e.homeTeamFilter.requiresPlaysFiltering&&B.homeTeam.resetTotals(),e.visitingTeamFilter.requiresPlaysFiltering&&B.visitingTeam.resetTotals(),B.addLeaguePlays(e.currentSeasonPlays,e.indexesLP,e.totalSeasonFinishedGames),B.addTeamPlays(B.homeTeamType,e.gameForAnalysis.home_team,o.homeTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredHomeGames),B.addTeamPlays(B.visitingTeamType,e.gameForAnalysis.visiting_team,o.visitingTeamFilteredPlays,e.indexesTSP,e.showPostMatch?1:o.totalFilteredVisitingGames);return e.nextGamesDataStructure},arrayFilledDataSortedByPriority(e,o){return Object.values(o.filledDataStructure).sort((s,B)=>s.priority-B.priority)},statisticData(e,o){for(const s of Object.values(o.filledDataStructure))if(s.parentInfo.parentAnalysis.includes(e.selectedAnalysis.id)&&s.parentInfo.analysisTypeBlocks.includes(e.selectedStatisticTypeBlock))return s.subcategories;return{}},accomplished(e){return e.homeTeamFilter.statistics===0}},mutations:{updateNextGamesDataStructure(e,o){e.nextGamesDataStructure=o},updateGameForAnalysisByProps(e,o){for(const[s,B]of Object.entries(o))e.gameForAnalysis[s]=B},setCurrentTournamentName(e,o){e.currentTournamentName=o},setBetSubcategoriesObjects(e,o){e.betSubcategoriesObjects=o},setRegularSeasonName(e,o){e.regularSeasonName=o},setBetSubcategories(e,o){e.betSubcategories=o},setBetDescription(e,o){e.betDescription=o},setSeasonId(e,o){e.seasonId=Number(o)},setHome(e,o){e.homeTeamInfo=o},setAway(e,o){e.awayTeamInfo=o},setMenuOptionActive(e,o){e.menuOptionActive=o},setPastSeasonId(e,o){e.pastSeasonId=o},setUsePastSeasonId(e,o){e.usePastSeasonId=o,o&&(e.oldSeasonId=e.pastSeasonId)},updateShowPostMatchData(e,o){e.showPostMatch=o},setHomeResultGame(e,o){e.homeResultGame=o},setAwayResultGame(e,o){e.awayResultGame=o},updateIsSocketConnected(e,o){e.isSocketConnected=o,o&&e.gameForAnalysis.is_live&&e.gameForAnalysis.game_status===4&&e.gameForAnalysis.game_id&&r8(`game.${e.gameForAnalysis.game_id}.v2`)},updateCurrentSeasonTeams(e,o){e.currentSeasonTeams=o,e.currentSeasonTeams.forEach(s=>{s.playedGames=e.currentSeasonGames.reduce((B,U)=>{if(U.game_status===1&&(U.home_team===s.team_id||U.visiting_team===s.team_id)){const m=U.score[0]-U.score[1],y=U.home_team===s.team_id;B.push({playingAs:y?1:2,matchResult:m===0?3:y?m>0?1:2:m<0?1:2})}return B},[])})},updateCurrentSeasonGames(e,o){e.currentSeasonGames=o},updateGameId(e,o){e.gameId=o},updateGameForAnalysis(e,o){e.gameForAnalysis=o,e.isLive=!!o.is_live,e.homeTeamFilter.teamId=e.gameForAnalysis.home_team,e.visitingTeamFilter.teamId=e.gameForAnalysis.visiting_team,e.isSocketConnected&&o.is_live&&o.game_status===4&&o.game_id&&r8(`game.${o.game_id}.v2`)},updateSelectedAnalysis(e,o){e.selectedAnalysis=o},updateShowLiveData(e,o){e.showLiveData=o},toggleAdvanceFilter(e){e.showAdvanceFilter=!e.showAdvanceFilter},updateIdAssetSelected(e,o){e.idAssetSelected=o},updateStats(e,o){e.currentSeasonPlays=o},updateFilterAux(e){e.filterAux||(e.filterAux={homeTeamFilter:{...e.homeTeamFilter},visitingTeamFilter:{...e.visitingTeamFilter}})},updateFilters(e,{filters:o,needsFormat:s=!1}){if(s){if(!o||!o.local||!o.local.statistics||!o.visit||!o.visit.statistics)return;e.homeTeamFilter=kI(e.homeTeamFilter,o.local,e.gameForAnalysis.home_team),e.visitingTeamFilter=kI(e.visitingTeamFilter,o.visit,e.gameForAnalysis.visiting_team),e.selectedStatisticTypeBlock!==o.local.statistics.block&&(e.selectedStatisticTypeBlock=o.local.statistics.block)}else e.homeTeamFilter={...o.homeTeamFilter,statistics:0},e.visitingTeamFilter={...o.visitingTeamFilter,statistics:0}},updateFinishedGames(e,o){e.totalSeasonFinishedGames=o},updateHomeTeamPlays(e,o){e.homeTeamPlays=o,MW(e)},updateVisitingTeamPlays(e,o){e.visitingTeamPlays=o,MW(e)},addSpecialMentions(e,o){const s=Object.values(e.nextGamesDataStructure);s.forEach(B=>{for(const U of Object.values(B.subcategories))U.resetMentions()}),s.forEach(B=>{for(const U of o)for(const m of Object.values(B.subcategories))m.addSpecialMention(U[0],U[1],U[2])})},setDefaultFilter(e,o){e.defaultFilter={homeTeamFilter:{...o.homeTeamFilter,teamId:e.gameForAnalysis.home_team},visitingTeamFilter:{...o.awayTeamFilter,teamId:e.gameForAnalysis.visiting_team}}},addLiveGamePlay(e,o){if(!e.livePlays.has(o[e.indexesTLP.playId])){e.livePlays.set(o[e.indexesTLP.playId],o);const B=Gw(o,e.indexesTLP,e.categoriesMap);for(const U of Object.values(e.nextGamesDataStructure))for(const m of Object.values(U.subcategories))m.addLivePlay(e.gameForAnalysis.home_team===B[e.indexesTSP.teamId]?"homeTeam":"visitingTeam",B[e.indexesTSP.teamId],B,e.indexesTSP,e.isLive,!1)}},updateLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],B=e.livePlays.get(o[e.indexesTLP.playId]);if(qie(B,o))return;let U="";const m=e.gameForAnalysis.home_team===o[e.indexesTLP.teamId]?"homeTeam":"visitingTeam";B&&(U=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam");const y=Gw(B,e.indexesTLP,e.categoriesMap),a=pA(B,y,e.indexesTLP),v=Gw(o,e.indexesTLP,e.categoriesMap),p=pA(o,v,e.indexesTLP);for(const r of Object.values(e.nextGamesDataStructure))for(const _ of Object.values(r.subcategories))B&&(_.subtractLivePlay(U,y[e.indexesTSP.teamId],y,e.indexesTSP,s),a&&_.subtractLivePlay(U,a[e.indexesTSP.teamId],a,e.indexesTSP,s)),_.addLivePlay(m,v[e.indexesTSP.teamId],v,e.indexesTSP,e.isLive,s),p&&_.addLivePlay(m,p[e.indexesTSP.teamId],p,e.indexesTSP,e.isLive,s);e.livePlays.set(o[e.indexesTLP.playId],o)},deleteLiveGamePlay(e,o){const s=!!o[e.indexesTLP.length],B=e.livePlays.get(o[e.indexesTLP.playId]);let U="";if(B){U=e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]?"homeTeam":"visitingTeam",e.livePlays.delete(B[e.indexesTLP.playId]);const m=Gw(B,e.indexesTLP,e.categoriesMap),y=pA(o,m,e.indexesTLP);for(const a of Object.values(e.nextGamesDataStructure))for(const v of Object.values(a.subcategories))v.subtractLivePlay(U,m[e.indexesTSP.teamId],m,e.indexesTSP,s),y&&v.subtractLivePlay(U,y[e.indexesTSP.teamId],y,e.indexesTSP,s)}},clearLiveTotals(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.homeTeam.resetTotalsLive(),s.visitingTeam.resetTotalsLive()},updateSeasonStatistics(e,o){e.statistics=o},updateOldSeasonId(e,o){e.oldSeasonId=o},addRankingInSubcategories(e,{getters:o,isPremiumAccount:s}){if(!(e.homeTeamFilter.teamId&&e.visitingTeamFilter.teamId))return;e.isRankingCalculating=!1,e.currentSeasonTeams.forEach(m=>{m.homeTeamFilterGames=m.playedGames.filter(y=>e.homeTeamFilter.playingAs.includes(y.playingAs)&&e.homeTeamFilter.matchResult.includes(y.matchResult)).length,m.visitingTeamFilterGames=m.playedGames.filter(y=>e.visitingTeamFilter.playingAs.includes(y.playingAs)&&e.visitingTeamFilter.matchResult.includes(y.matchResult)).length});const B=[],U=new Map;for(const m of Object.values(e.nextGamesDataStructure))for(const y of Object.values(m.subcategories))B.push(y);o.rankingData.forEach(m=>{for(const y of B)if(y.isInGeneralCategory(m[e.indexesLS.categoryId])){U.has(y.id)?U.get(y.id).push(m):U.set(y.id,[m]);break}})},prepareCleanAllStatistics(e){e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0},setHomeGames(e,o){e.homeGames=EW(o)},setVisitingGames(e,o){e.visitingGames=EW(o)},generateCategoriesMap(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.accomplishedCategoryIds.forEach(B=>{const U=e.categoriesMap.get(B);U?U.push(s.generalCategoriesIds.accomplished):e.categoriesMap.set(B,[s.generalCategoriesIds.accomplished])})},resetNextGamesDataStructure(e){for(const o of Object.values(e.nextGamesDataStructure))for(const s of Object.values(o.subcategories))s.resetData()}},actions:{async fillNextGameDataStructure({commit:e},{provider:o}){try{const s=await Kne(o),B=sHt(s);e("updateNextGamesDataStructure",B)}catch(s){return Promise.reject(s)}},turnOnOffDefaultFilters({state:e,commit:o},{command:s}){s==="on"?o("updateFilters",{filters:e.defaultFilter,needsFormat:!1}):o("updateFilters",{filters:e.filterAux,needsFormat:!1})},async setAndGetStatsPostMatch({commit:e,rootGetters:o},s){try{const a=o.getProviderId,v=o.getIsDevApis,p=await eHt({gameId:s.gameId,providerId:a,isDevApis:v});if(p){var B=[],U=[],m={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}},y={season:0,total:0,visit:{total:0,draw:0,win:0,lose:0},played:0,local:{total:0,draw:0,win:0,lose:0}};if(Object.keys(p.data).length!==0){const r=_=>{const b=_.slice(),x=Number(b[0]);return Number.isNaN(x)||(b[0]=x),b};B=p.data.data.filter(_=>_[1]==s.homeTeam).map(r),U=p.data.data.filter(_=>_[1]==s.awayTeam).map(r),m=p.data.games,y=p.data.games}e("updateHomeTeamPlays",B),e("updateVisitingTeamPlays",U),e("setHomeGames",m),e("setVisitingGames",y)}else e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[])}catch(a){return Promise.reject(a)}},async fillStatisticDataPostMatch({commit:e,dispatch:o},s){e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("setIsSectionLoading",!0,{root:!0});try{let B=[];e("updateGameForAnalysis",s.gameInfo),B.push(o("setAndGetStatsPostMatch",{gameId:s.game,homeTeam:s.homeTeam,awayTeam:s.awayTeam})),await Promise.all(B)}catch(B){throw new Error(B)}finally{e("setIsSectionLoading",!1,{root:!0})}},async checkState({state:e,dispatch:o,commit:s,rootGetters:B},{gameId:U,isTeamsAnalysis:m,currentSeasonId:y,isLoginChanged:a=!1,defaultFilter:v=null,gameInfo:p=null,isCupGame:r=!1}){try{let _={},b=e.seasonId!==Number(y);const x=B.getProviderId;await o("fillNextGameDataStructure",{provider:x});const h=[];s("setIsSectionLoading",!0,{root:!0}),s("setUsePastSeasonId",!1),b&&s("setSeasonId",y),s("updateGameId",Number(U)),e.oldSeasonId!==e.seasonId&&s("resetNextGamesDataStructure");const n=await o("getCurrentSeasonGames",Number(U));if(s("leagueGeneral/updateCurrentSeasonGames",n,{root:!0}),_=n.find(i=>i.game_id===Number(U)),!_&&p&&(_=p),_&&p&&(_.game_status=_.game_status??p.game_status,_.is_live=_.is_live??p.is_live),_&&s("updateGameForAnalysis",_),_.game_status!==1&&((a||e.categoriesMap.size===0)&&s("generateCategoriesMap"),r||await o("checkTeamsData",{gameId:U,isFromBet:!!v}),(a||e.oldSeasonId!==e.seasonId||e.statistics.length===0)&&h.push(o("getSeasonStatistics"))),e.usePastSeasonId){const i=await o("getCurrentSeasonGamesLast");s("leagueGeneral/updateCurrentSeasonGames",i,{root:!0})}(a||e.currentSeasonTeams.length===0||!e.currentSeasonTeams.find(i=>_.home_team===i.team_id))&&h.push(o("getCurrentSeasonTeams")),s("setHomeResultGame",_.score[0]),s("setAwayResultGame",_.score[1]),m?_.game_status!==1?(await o("fillStatisticData",{gameId:U,gameinfo:_,promises:h,defaultFilter:v}),s("updateShowPostMatchData",!1)):(s("updateStats",[]),s("updateShowPostMatchData",!0),h.push(o("fillStatisticDataPostMatch",{game:U,homeTeam:_.home_team,awayTeam:_.visiting_team,gameInfo:_})),await Promise.all(h)):s("setIsSectionLoading",!1,{root:!0})}catch(_){return Promise.reject(_)}},async fillStatisticData({commit:e,dispatch:o,getters:s,rootGetters:B,state:U},{gameId:m,gameinfo:y,promises:a=[],defaultFilter:v=null}){let p=null;try{const r=B.getProviderId,_=B.getIsDevApis;e("setIsSectionLoading",!0,{root:!0}),e("prepareCleanAllStatistics"),e("updateHomeTeamPlays",[]),e("updateVisitingTeamPlays",[]),e("updateGameForAnalysis",y),(y.is_live||y.game_status===0)&&a.push(o("getCurrentLiveGamePlays",m)),a.push(o("getSpecialMentionsByGame",m)),a.push(o("getHomeTeamPlays")),a.push(o("getVisitingTeamPlays")),a.push(o("getCurrentSeasonPlays")),v&&a.push(aHt({...v,providerId:r,isDevApis:_})),p=await Promise.all(a)}catch(r){throw new Error(r)}finally{setTimeout(()=>{if(e("addRankingInSubcategories",{getters:s,isPremiumAccount:B["loginGeneral/getPremiumAccount"]}),v){const[r]=p.pop();r&&(e("setBetSubcategories",r.categories),e("setBetDescription",r.sectionDescription),e("setDefaultFilter",r.params),e("updateFilterAux"),e("updateFilters",{filters:U.defaultFilter,needsFormat:!1}),o("updateRankingInSubcategories"))}},100),e("setIsSectionLoading",!1,{root:!0})}},async checkTeamsData({state:e,dispatch:o,rootState:s,commit:B},{gameId:U,isFromBet:m}){try{const y=Number(U);if(e.pastSeasonId){B("setPastSeasonId",e.pastSeasonId,{root:!0});const a=s.leagueGeneral.currentSeasonGames.find(v=>v.game_id===y);a&&B("updateGameForAnalysis",a),await Promise.all([o("getHomeTeamPlays"),o("getVisitingTeamPlays")]),B("setUsePastSeasonId",m||(!e.homeTeamPlays||e.homeTeamPlays.length===0)&&(!e.visitingTeamPlays||e.visitingTeamPlays.length===0))}else B("setUsePastSeasonId",!1)}catch(y){throw new Error(y)}},async getSpecialMentionsByGame({commit:e,rootGetters:o},s){try{const B=o.getProviderId,U=o.getIsDevApis,m=await XGt({gameId:s,providerId:B,isDevApis:U});e("addSpecialMentions",m)}catch(B){return Promise.reject(B)}},async getCurrentSeasonGames({commit:e,state:o,rootGetters:s},B){try{const U=s.getProviderId,m=s.getIsDevApis,{teams:y,games:a,past_season_id:v,tournament_id:p}=await JGt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,gameId:B,providerId:U,isDevApis:m}),r=fHt.find(_=>_.id===p);return r&&e("setCurrentTournamentName",r.name),e("setHome",y[0]),e("setAway",y[1]),o.usePastSeasonId||e("setPastSeasonId",v),await e("updateCurrentSeasonGames",a),a&&Array.isArray(a)&&e("updateFinishedGames",a.reduce((_,b)=>(b.game_status===1&&(_+=1),_),0)),a}catch(U){return Promise.reject(U)}},async getCurrentSeasonGamesLast({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,{games:m,past_season_id:y}=await SW({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,providerId:B,isDevApis:U});return o.usePastSeasonId||e("setPastSeasonId",y),await e("updateCurrentSeasonGames",m),m&&Array.isArray(m)&&e("updateFinishedGames",m.reduce((a,v)=>(v.game_status===1&&(a+=1),a),0)),m}catch(B){return Promise.reject(B)}},async getCurrentSeasonTeams({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await QGt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,providerId:B,isDevApis:U});e("updateCurrentSeasonTeams",m.data.teams)}catch{}},async getSeasonStatistics({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=o.usePastSeasonId?o.pastSeasonId:o.seasonId,y=await WGt({seasonId:m,providerId:B,isDevApis:U});e("updateSeasonStatistics",y),e("updateOldSeasonId",m)}catch(B){return Promise.reject(B)}},updateRankingInSubcategories({state:e,commit:o,getters:s,rootGetters:B}){e.currentSeasonGames.length>0&&o("addRankingInSubcategories",{getters:s,isPremiumAccount:B["loginGeneral/getPremiumAccount"]})},async getHomeTeamPlays({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await TW({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.home_team,providerId:B,isDevApis:U});m.data&&(e("updateHomeTeamPlays",m.data.data),e("setHomeGames",m.data.games))}catch(B){return Promise.reject(B)}},async getVisitingTeamPlays({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await TW({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,teamId:o.gameForAnalysis.visiting_team,providerId:B,isDevApis:U});m.data&&(e("updateVisitingTeamPlays",m.data.data),e("setVisitingGames",m.data.games))}catch(B){return Promise.reject(B)}},async getCurrentSeasonPlays({commit:e,state:o,rootGetters:s}){try{const B=s.getProviderId,U=s.getIsDevApis,m=await ZGt({seasonId:o.usePastSeasonId?o.pastSeasonId:o.seasonId,providerId:B,isDevApis:U});e("updateStats",m)}catch(B){return Promise.reject(new Error(B))}},async getCurrentLiveGamePlays({state:e,commit:o,rootGetters:s},B){try{const U=s.getProviderId,m=s.getIsDevApis,y=await YGt({gameId:B,providerId:U,isDevApis:m});e.livePlays=new Map,y.forEach(a=>{e.gameForAnalysis.game_id===a[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===a[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===a[e.indexesTLP.teamId])&&o("addLiveGamePlay",a)})}catch(U){throw new Error(U)}},socket_new({state:e,commit:o},s){const B=s[1];(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&o("addLiveGamePlay",B)},socket_update({state:e,commit:o},s){const B=s[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visitingTeam===B[e.indexesTLP.teamId])&&o("updateLiveGamePlay",B)},socket_delete({state:e,commit:o},s){const B=s[1];e.gameForAnalysis.game_id===B[e.indexesTLP.gameId]&&(e.gameForAnalysis.home_team===B[e.indexesTLP.teamId]||e.gameForAnalysis.visiting_team===B[e.indexesTLP.teamId])&&o("deleteLiveGamePlay",B)},exitChannel({state:e,getters:o,rootState:s,rootGetters:B,commit:U}){const m=B["loginGeneral/getPremiumAccount"];o.isLive&&m&&(U("updateShowLiveData",!0),U("clearLiveTotals"),e.livePlays.clear(),pHt.emit("unsubscribe",{channel:`game.${e.gameForAnalysis.game_id}.v2`}))},cleanStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const B of Object.values(s.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.homeTeam.resetTotalsLive(),B.visitingTeam.resetTotalsLive(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const B of Object.values(s.subcategories))B.resetMentions()}),e.currentSeasonPlays=null,e.homeTeamPlays=[],e.visitingTeamPlays=[],e.homeTeamFilter.requiresPlaysFiltering=!0,e.visitingTeamFilter.requiresPlaysFiltering=!0,e.isRankingCalculating=!0},cleanAllStats({state:e}){for(const s of Object.values(e.nextGamesDataStructure))for(const B of Object.values(s.subcategories))B.homeTeam.resetTotals(),B.visitingTeam.resetTotals(),B.isBetMainSubcategory=!1;Object.values(e.nextGamesDataStructure).forEach(s=>{for(const B of Object.values(s.subcategories))B.resetMentions()}),e.currentSeasonGames=[],e.currentSeasonTeams=[],e.gameForAnalysis={},e.homeTeamPlays=[],e.visitingTeamPlays=[],e.currentSeasonPlays=null,e.totalSeasonFinishedGames=0,e.totalHomeTeamFinishedGames=0,e.totalVisitingTeamFinishedGames=0,e.homeGames=[],e.showPostMatch=!1,e.homeResultGame=null,e.awayResultGame=null,e.visitingGames=[],e.idAssetSelected=1,e.showAdvanceFilter=!1,e.selectedAnalysis={},e.homeTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.visitingTeamFilter={teamId:0,statistics:0,playingAs:[],matchResult:[],sections:[],requiresPlaysFiltering:!0},e.isRankingCalculating=!0}}}};async function gHt({providerId:e,isDevApis:o}={}){try{const{data:s}=await Uu({url:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments",providerId:e,isDevApis:o});return s}catch(s){throw new Error(s)}}const yHt={gameGlobal:{namespaced:!0,state:{videoSrc:null,isVideoModalVisible:!1,tournaments:[],seccionBetsGolTipster:1,tournamentSelected:{},tournamentType:0,sectionAnalytics:"Banner_Home",previewSectionAnalytics:"",sectionRef:"",booleanIsStatisticModalOpen:!1},getters:{getTournamentType:e=>e.tournamentType,getSectionAnalytics(e){return e.sectionAnalytics},getPreviewSectionAnalytics(e){return e.previewSectionAnalytics},getSeccionBetsGolTipster(e){return e.seccionBetsGolTipster}},mutations:{setBooleanIsStatisticModalOpen(e,o){e.booleanIsStatisticModalOpen=o},setTournamentType(e,o){e.tournamentType=o},setSectionRef(e,o){e.sectionRef=o},setSectionAnalytics(e,o){e.sectionAnalytics=o},setSeccionBetsGolTipster(e,o){e.seccionBetsGolTipster=o},setPreviewSectionAnalytics(e,o){e.previewSectionAnalytics=o},setVideoSrc(e,o){e.videoSrc=o},setVideoModalVisibility(e,o){e.isVideoModalVisible=o},setSelectedTournament(e,o){e.selectedTournament=o},setTournaments(e,o){e.tournaments=o.map(s=>({...s.tournament,seasons:s.seasons})),e.tournamentSelected=e.tournaments[0]},setTournamentSelected(e,o){e.tournamentSelected=o}},actions:{async fetchTournaments({state:e,commit:o,rootGetters:s}){try{if(e.tournaments.length===0){const B=s.getProviderId,U=s.getIsDevApis,m=await gHt({providerId:B,isDevApis:U});o("setTournaments",m)}}catch(B){throw new Error(B)}}}}};async function vHt({seasonId:e,localTeamId:o,visitingTeamId:s,providerId:B,isDevApis:U}){try{const m=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/seasons/${e}/teams/${o}/${s}`;return(await Uu({url:m,providerId:B,isDevApis:U})).data}catch(m){return Promise.reject(m)}}async function bHt({seasonId:e,localTeamId:o,visitingTeamId:s,providerId:B,isDevApis:U}){try{const m=`https://bzznnzehtf.execute-api.us-west-2.amazonaws.com/prod/xg/game/${e}/teams/${o}/${s}`;return(await Uu({url:m,providerId:B,isDevApis:U})).data}catch(m){return Promise.reject(m)}}const IW=(e,o)=>{let s={};return e.forEach((B,U)=>{U==3&&(o[0]==35||o[0]==54)&&(o[U]==2?o[U]=1:o[U]=2),U==2&&(o[0]==35||o[0]==54)&&(o[U]==1?o[U]=2:o[U]==2&&(o[U]=1)),s[B]=o[U]}),s},PW=(e,o)=>e.filter(B=>{const U=o.playingAs.includes(B.playing_as),m=o.matchResult.includes(B.match_result),y=o.sections.includes(B.section);return U&&m&&y});(function(){function e(o,s,B){return typeof B>"u"||+B==0?Math[o](s):(s=+s,B=+B,isNaN(s)||!(typeof B=="number"&&B%1===0)?NaN:(s=s.toString().split("e"),s=Math[o](+(s[0]+"e"+(s[1]?+s[1]-B:-B))),s=s.toString().split("e"),+(s[0]+"e"+(s[1]?+s[1]+B:B))))}Math.ceil10||(Math.ceil10=function(o,s){return e("ceil",o,s)})})();function LW(e,o){let s=o*-1;return Math.ceil10(e,s)}const Pf={goals:"Goles",shots:"Tiros a gol",head:"Remates con cabeza",penalties:"Penales"};function Lf(e,o){const s=(e||[]).find(B=>B.name===o);return new Set((s==null?void 0:s.categories)||[])}const _Ht={...yHt,...tHt,...mHt,...{xgGeneral:{namespaced:!0,state:{teamSelected:"Local",xGLocalPlays:[],xGVisitingPlays:[],xgCategories:z2},getters:{playsLocal:(e,o,s)=>{const B=e.xGLocalPlays,U="homeTeamFilter",m=s.nextGeneral[U];return PW(B,m)||[]},playsAway:(e,o,s)=>{const B=e.xGVisitingPlays,U="visitingTeamFilter",m=s.nextGeneral[U];return PW(B,m)},getXgCategories:e=>e.xgCategories||[],goalsQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.goals);return o.playsLocal.filter(B=>s.has(B.category_id)).length},goalsQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.goals);return o.playsAway.filter(B=>s.has(B.category_id)).length},shotsOnGoalQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.shots);return o.playsLocal.filter(B=>s.has(B.category_id)).length},shotsOnGoalQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.shots);return o.playsAway.filter(B=>s.has(B.category_id)).length},headQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.head);return o.playsLocal.filter(B=>s.has(B.category_id)).length},headQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.head);return o.playsAway.filter(B=>s.has(B.category_id)).length},penaltiesQtyLocal:(e,o)=>{const s=Lf(e.xgCategories,Pf.penalties);return o.playsLocal.filter(B=>s.has(B.category_id)).length},penaltiesQtyAway:(e,o)=>{const s=Lf(e.xgCategories,Pf.penalties);return o.playsAway.filter(B=>s.has(B.category_id)).length},xGLocal:(e,o)=>{const s=new Set;let B=o.playsLocal.reduce((U,m)=>(s.has(m.moment_of_play)||(s.add(m.moment_of_play),U+=m.xG2),U),0);return LW(B,2)},xGAway:(e,o)=>{const s=new Set;let B=o.playsAway.reduce((U,m)=>(s.has(m.moment_of_play)||(s.add(m.moment_of_play),U+=m.xG2),U),0);return LW(B,2)}},mutations:{setTeamSelected(e,o){e.teamSelected=o},setXgCategories(e,o){e.xgCategories=o},setPlays(e,o){const s=Lf(e.xgCategories,Pf.goals),B=Lf(e.xgCategories,Pf.shots),U=Lf(e.xgCategories,Pf.head),m=Lf(e.xgCategories,Pf.penalties),y=o.local_team.map(l=>IW(o.data_headers,l)),a=[],v=[],p=[],r=[],_=new Set;y.forEach(l=>{s.has(l.category_id)?_.has(l.moment_of_play)||(_.add(l.moment_of_play),a.push(l)):B.has(l.category_id)?v.push(l):U.has(l.category_id)?p.push(l):m.has(l.category_id)&&r.push(l)}),e.xGLocalPlays=[...v,...a,...p,...r];const b=o.visiting_team.map(l=>IW(o.data_headers,l)),x=new Set,h=[],n=[],i=[],c=[];b.forEach(l=>{s.has(l.category_id)?x.has(l.moment_of_play)||(x.add(l.moment_of_play),h.push(l)):B.has(l.category_id)?n.push(l):U.has(l.category_id)?i.push(l):m.has(l.category_id)&&c.push(l)}),e.xGVisitingPlays=[...n,...h,...i,...c]},cleanXgStore(e){e.localStorage="Local",e.xGLocalPlays=[],e.xGVisitingPlays=[]}},actions:{async loadXgCategories({commit:e,rootGetters:o}){const s=o.getProviderId,B=await aie(s);e("setXgCategories",(B==null?void 0:B.categories)??z2)},async getXgPlays({commit:e,dispatch:o,rootGetters:s},{seasonId:B,localTeamId:U,visitingTeamId:m,postMatch:y=!1}){try{if(!B||!U||!m)return;const a=s.getProviderId,v=s.getIsDevApis;await o("loadXgCategories");let p={};y?p=await bHt({seasonId:B,localTeamId:U,visitingTeamId:m,providerId:a,isDevApis:v}):p=await vHt({seasonId:B,localTeamId:U,visitingTeamId:m,providerId:a,isDevApis:v}),e("setPlays",p)}catch(a){return Promise.reject(a)}}}}}};function xHt(e){for(const[o,s]of Object.entries(_Ht))e.hasModule(o)||e.registerModule(o,s)}const wHt={class:"subcategory-group"},kHt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",wHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Zl),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":U=>B.isSelected=U,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},SHt=ic(kHt,[["__scopeId","data-v-ae6f3d72"]]),CHt={class:"filter-subcategories"},THt=Object.freeze(Object.defineProperty({__proto__:null,default:ic({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",CHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(SHt,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Hw=e=>(t.pushScopeId("data-v-80d9c265"),e=e(),t.popScopeId(),e),AHt={class:"details__header"},EHt=Hw(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),MHt={class:"details__header__checkbox"},IHt={class:"details__body"},PHt={class:"details__body__playing-as"},LHt=["onClick"],BHt={class:"details__header"},zHt=Hw(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),OHt={class:"details__header__checkbox"},DHt={class:"details__body"},NHt=Hw(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),FHt={class:"details__body__game-section"},RHt=["onClick"],VHt={class:"details__body"},jHt=Hw(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),UHt={class:"details__body__game-section"},GHt=["onClick"],HHt=Object.freeze(Object.defineProperty({__proto__:null,default:ic({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(r=>({"49cba245":e.buttonsBackgroundColor,"52f02da6":e.buttonsTextColor,"7d3f686a":e.buttonsBorderWidth,"7c286a07":e.buttonsBorderColor,"24a6f4aa":e.buttonsBackgroundColorActive,cd8d7768:e.buttonsTextColorActive,"35fa5c10":e.buttonsBorderWidthActive,"0cde1826":e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(r=>r.isSelected)),B=t.computed(()=>o.gameSections.every(r=>r.isSelected)),U=t.computed(()=>o.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),m=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function y(r){r?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,b)=>{_.isSelected=b===0})}function a(r){o.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function v(r){o.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function p(r){r?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,b)=>{_.isSelected=b===0})}return(r,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",AHt,[EHt,t.createElementVNode("div",MHt,[t.createVNode(t.unref(Zl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":y},null,8,["model-value"])])]),t.createElementVNode("div",IHt,[t.createElementVNode("div",PHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>a(b)},t.toDisplayString(b.name),11,LHt))),128))])]),t.createElementVNode("div",BHt,[zHt,t.createElementVNode("div",OHt,[t.createVNode(t.unref(Zl),{label:"Todos","model-value":B.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),t.createElementVNode("div",DHt,[NHt,t.createElementVNode("div",FHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.firstHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,RHt))),128))])]),t.createElementVNode("div",VHt,[jHt,t.createElementVNode("div",UHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.secondHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,GHt))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),ZHt={class:"filter-field"},WHt=Object.freeze(Object.defineProperty({__proto__:null,default:ic({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(B,U)=>U+1));function s(){}return(B,U)=>(t.openBlock(),t.createElementBlock("div",ZHt,[t.createVNode(t.unref(OF),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),qHt={class:"subcategory-group"},JHt={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",qHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroup,B=>(t.openBlock(),t.createBlock(t.unref(Wl),{key:B.id,modelValue:B.isSelected,"onUpdate:modelValue":U=>B.isSelected=U,label:B.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},YHt=oc(JHt,[["__scopeId","data-v-85bc2114"]]),XHt={class:"filter-subcategories"},$Ht=Object.freeze(Object.defineProperty({__proto__:null,default:oc({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(e){return(o,s)=>(t.openBlock(),t.createElementBlock("div",XHt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.subcategoryGroups,B=>(t.openBlock(),t.createElementBlock("div",{key:B.id,class:"filter-subcategories__group"},[t.createVNode(YHt,{subcategoryGroup:B},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-74a77bab"]])},Symbol.toStringTag,{value:"Module"})),Zw=e=>(t.pushScopeId("data-v-893b389d"),e=e(),t.popScopeId(),e),KHt={class:"details__header"},QHt=Zw(()=>t.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),eZt={class:"details__header__checkbox"},tZt={class:"details__body"},aZt={class:"details__body__playing-as"},rZt=["onClick"],nZt={class:"details__header"},iZt=Zw(()=>t.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),oZt={class:"details__header__checkbox"},sZt={class:"details__body"},lZt=Zw(()=>t.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),cZt={class:"details__body__game-section"},uZt=["onClick"],dZt={class:"details__body"},hZt=Zw(()=>t.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),pZt={class:"details__body__game-section"},fZt=["onClick"],mZt=Object.freeze(Object.defineProperty({__proto__:null,default:oc({__name:"FilterConditions",props:{playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},gameSections:{type:Array,default:()=>[{text:"0-15",value:1,isSelected:!0},{text:"16-30",value:2,isSelected:!0},{text:"31-45",value:3,isSelected:!0},{text:"46-60",value:4,isSelected:!0},{text:"61-75",value:5,isSelected:!0},{text:"76-90",value:6,isSelected:!0}]},buttonsBackgroundColor:{type:String,default:"rgba(255, 255, 255, 0)"},buttonsBackgroundColorActive:{type:String,default:"rgba(203, 238, 107, 0.05)"},buttonsTextColor:{type:String,default:"rgba(255, 255, 255, 0.8)"},buttonsTextColorActive:{type:String,default:"rgba(255, 255, 255, 1)"},buttonsBorderColor:{type:String,default:"#8ea2ab"},buttonsBorderColorActive:{type:String,default:"#cbee6b"},buttonsBorderWidth:{type:String,default:"0.8px"},buttonsBorderWidthActive:{type:String,default:"1px"},buttonsBorderRadius:{type:String,default:"4px"}},setup(e){const o=e;t.useCssVars(r=>({"2715f84a":e.buttonsBackgroundColor,"97bea92a":e.buttonsTextColor,"544788ef":e.buttonsBorderWidth,"53308a8c":e.buttonsBorderColor,e844f820:e.buttonsBackgroundColorActive,"76839a51":e.buttonsTextColorActive,"2bf17656":e.buttonsBorderWidthActive,a4c4469c:e.buttonsBorderColorActive}));const s=t.computed(()=>o.playingAs.every(r=>r.isSelected)),B=t.computed(()=>o.gameSections.every(r=>r.isSelected)),U=t.computed(()=>o.gameSections.reduce((r,_)=>(_.value<=3?r.firstHalf.push(_):r.secondHalf.push(_),r),{firstHalf:[],secondHalf:[]})),m=t.computed(()=>({"--border-radius-first-button":`${o.buttonsBorderRadius} 0 0 ${o.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${o.buttonsBorderRadius} ${o.buttonsBorderRadius} 0`}));function y(r){r?o.playingAs.forEach(_=>{_.isSelected=!0}):o.playingAs.forEach((_,b)=>{_.isSelected=b===0})}function a(r){o.playingAs.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function v(r){o.gameSections.filter(_=>_.isSelected).length===1&&r.isSelected||(r.isSelected=!r.isSelected)}function p(r){r?o.gameSections.forEach(_=>{_.isSelected=!0}):o.gameSections.forEach((_,b)=>{_.isSelected=b===0})}return(r,_)=>(t.openBlock(),t.createElementBlock("div",{class:"details",style:t.normalizeStyle(m.value)},[t.createElementVNode("div",KHt,[QHt,t.createElementVNode("div",eZt,[t.createVNode(t.unref(Wl),{label:"Todos","model-value":s.value,"onUpdate:modelValue":y},null,8,["model-value"])])]),t.createElementVNode("div",tZt,[t.createElementVNode("div",aZt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(o.playingAs,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>a(b)},t.toDisplayString(b.name),11,rZt))),128))])]),t.createElementVNode("div",nZt,[iZt,t.createElementVNode("div",oZt,[t.createVNode(t.unref(Wl),{label:"Todos","model-value":B.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),t.createElementVNode("div",sZt,[lZt,t.createElementVNode("div",cZt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.firstHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,uZt))),128))])]),t.createElementVNode("div",dZt,[hZt,t.createElementVNode("div",pZt,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(U.value.secondHalf,(b,x)=>(t.openBlock(),t.createElementBlock("div",{key:`pa${x}`,class:t.normalizeClass(["details__body__button",{active:b.isSelected}]),onClick:h=>v(b)},t.toDisplayString(b.text),11,fZt))),128))])])],4))}},[["__scopeId","data-v-893b389d"]])},Symbol.toStringTag,{value:"Module"})),gZt={class:"filter-field"},yZt=Object.freeze(Object.defineProperty({__proto__:null,default:oc({__name:"FilterField",setup(e){const o=t.ref(Array.from({length:16},(B,U)=>U+1));function s(){}return(B,U)=>(t.openBlock(),t.createElementBlock("div",gZt,[t.createVNode(t.unref(MG),{width:"100%","background-color":"#2E3B46",value:o.value,"onUpdate:modelValue":s},null,8,["value"])]))}},[["__scopeId","data-v-ef90fbbd"]])},Symbol.toStringTag,{value:"Module"}));Nd.GSCGameData=HGt,Nd.connectSocket=t8,Nd.disconnectSocket=a8,Nd.getSocket=e8,Nd.registerStoreModules=xHt,Object.defineProperty(Nd,Symbol.toStringTag,{value:"Module"})});