@golstats/gsc-players-tracking 1.0.19 → 1.0.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{FilterConditions-4d878591-d0a61ab2-Bn7FMD-C.js → FilterConditions-4d878591-e8e18fdb-LzotPMw9.js} +1 -1
- package/dist/{FilterConditions-ff9bf7f1-BrKqKws3-Ce5MH8py.js → FilterConditions-ff9bf7f1-BrKqKws3-bslaTf9E.js} +1 -1
- package/dist/{FilterField-ee58c12a-d0b41d6b-CsVxLgKG.js → FilterField-ee58c12a-a82d63c5-ks6ENNru.js} +1 -1
- package/dist/{FilterField-fabdc206-BJL74pKU-CC73kVsG.js → FilterField-fabdc206-BJL74pKU-B7FcYHcr.js} +1 -1
- package/dist/{FilterSubcategories-20bf8b05-CzVL-s0Z-9WjM733i.js → FilterSubcategories-20bf8b05-CzVL-s0Z-B07lE0Z8.js} +1 -1
- package/dist/{FilterSubcategories-26dcc199-ac0dbce5-DLMcrrvi.js → FilterSubcategories-26dcc199-aeb30193-DQKZwMuE.js} +1 -1
- package/dist/gsc-players-tracking.es.js +1 -1
- package/dist/gsc-players-tracking.umd.js +2 -2
- package/dist/{index-Dtj-OCe8.js → index-CdjdVsCq.js} +1258 -1248
- package/dist/style.css +1 -1
- package/package.json +2 -2
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
* Vue 3 Carousel 0.3.1
|
|
18
18
|
* (c) 2023
|
|
19
19
|
* @license MIT
|
|
20
|
-
*/const we={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"}},wd={itemsToShow:{default:we.itemsToShow,type:Number},itemsToScroll:{default:we.itemsToScroll,type:Number},wrapAround:{default:we.wrapAround,type:Boolean},throttle:{default:we.throttle,type:Number},snapAlign:{default:we.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:we.transition,type:Number},breakpoints:{default:we.breakpoints,type:Object},autoplay:{default:we.autoplay,type:Number},pauseAutoplayOnHover:{default:we.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:we.mouseDrag,type:Boolean},touchDrag:{default:we.touchDrag,type:Boolean},dir:{default:we.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:we.i18n,type:Object},settings:{default(){return{}},type:Object}};function sz({config:t,slidesCount:i}){const{snapAlign:a,wrapAround:o,itemsToShow:s=1}=t;if(o)return Math.max(i-1,0);let l;switch(a){case"start":l=i-s;break;case"end":l=i-1;break;case"center":case"center-odd":l=i-Math.ceil((s-.5)/2);break;case"center-even":l=i-Math.ceil(s/2);break;default:l=0;break}return Math.max(l,0)}function lz({config:t,slidesCount:i}){const{wrapAround:a,snapAlign:o,itemsToShow:s=1}=t;let l=0;if(a||s>i)return l;switch(o){case"start":l=0;break;case"end":l=s-1;break;case"center":case"center-odd":l=Math.floor((s-1)/2);break;case"center-even":l=Math.floor((s-2)/2);break;default:l=0;break}return l}function ds({val:t,max:i,min:a}){return i<a?t:Math.min(Math.max(t,a),i)}function rz({config:t,currentSlide:i,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:l=1}=t;let r=i;switch(o){case"center":case"center-odd":r-=(l-1)/2;break;case"center-even":r-=(l-2)/2;break;case"end":r-=l-1;break}return s?r:ds({val:r,max:a-l,min:0})}function kd(t){return t?t.reduce((i,a)=>{var o;return a.type===e.Fragment?[...i,...kd(a.children)]:((o=a.type)===null||o===void 0?void 0:o.name)==="CarouselSlide"?[...i,a]:i},[]):[]}function cs({val:t,max:i,min:a=0}){return t>i?cs({val:t-(i+1),max:i,min:a}):t<a?cs({val:t+(i+1),max:i,min:a}):t}function nz(t,i){let a;return i?function(...o){const s=this;a||(t.apply(s,o),a=!0,setTimeout(()=>a=!1,i))}:t}function dz(t,i){let a;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{t(...o),a=null},i)}}function cz(t="",i={}){return Object.entries(i).reduce((a,[o,s])=>a.replace(`{${o}}`,String(s)),t)}var pz=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},we))),i=e.inject("currentSlide",e.ref(0)),a=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},cz(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:a.value}))}}),mz=e.defineComponent({name:"Carousel",props:wd,setup(t,{slots:i,emit:a,expose:o}){var s;const l=e.ref(null),r=e.ref([]),n=e.ref(0),c=e.ref(0),p=e.reactive(Object.assign({},we));let y=Object.assign({},we),m;const h=e.ref((s=t.modelValue)!==null&&s!==void 0?s:0),d=e.ref(0),f=e.ref(0),u=e.ref(0),g=e.ref(0);let C,k;e.provide("config",p),e.provide("slidesCount",c),e.provide("currentSlide",h),e.provide("maxSlide",u),e.provide("minSlide",g),e.provide("slideWidth",n);function U(){m=Object.assign({},t.breakpoints),y=Object.assign(Object.assign(Object.assign({},y),t),{i18n:Object.assign(Object.assign({},y.i18n),t.i18n),breakpoints:void 0}),A(y)}function q(){if(!m||!Object.keys(m).length)return;const K=Object.keys(m).map(be=>Number(be)).sort((be,lt)=>+lt-+be);let ke=Object.assign({},y);K.some(be=>{const lt=window.matchMedia(`(min-width: ${be}px)`).matches;return lt&&(ke=Object.assign(Object.assign({},ke),m[be])),lt}),A(ke)}function A(K){Object.entries(K).forEach(([ke,be])=>p[ke]=be)}const v=dz(()=>{q(),Y()},16);function Y(){if(!l.value)return;const K=l.value.getBoundingClientRect();n.value=K.width/p.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),u.value=sz({config:p,slidesCount:c.value}),g.value=lz({config:p,slidesCount:c.value}),p.wrapAround||(h.value=ds({val:h.value,max:u.value,min:g.value})))}e.onMounted(()=>{e.nextTick(()=>Y()),setTimeout(()=>Y(),1e3),q(),O(),window.addEventListener("resize",v,{passive:!0}),a("init")}),e.onUnmounted(()=>{k&&clearTimeout(k),C&&clearInterval(C),window.removeEventListener("resize",v,{passive:!0})});let x=!1;const T={x:0,y:0},S={x:0,y:0},F=e.reactive({x:0,y:0}),P=e.ref(!1),H=e.ref(!1),Z=()=>{P.value=!0},de=()=>{P.value=!1};function ae(K){["INPUT","TEXTAREA","SELECT"].includes(K.target.tagName)||(x=K.type==="touchstart",x||K.preventDefault(),!(!x&&K.button!==0||W.value)&&(T.x=x?K.touches[0].clientX:K.clientX,T.y=x?K.touches[0].clientY:K.clientY,document.addEventListener(x?"touchmove":"mousemove",E,!0),document.addEventListener(x?"touchend":"mouseup",V,!0)))}const E=nz(K=>{H.value=!0,S.x=x?K.touches[0].clientX:K.clientX,S.y=x?K.touches[0].clientY:K.clientY;const ke=S.x-T.x,be=S.y-T.y;F.y=be,F.x=ke},p.throttle);function V(){const K=p.dir==="rtl"?-1:1,ke=Math.sign(F.x)*.4,be=Math.round(F.x/n.value+ke)*K;if(be&&!x){const lt=el=>{el.stopPropagation(),window.removeEventListener("click",lt,!0)};window.addEventListener("click",lt,!0)}z(h.value-be),F.x=0,F.y=0,H.value=!1,document.removeEventListener(x?"touchmove":"mousemove",E,!0),document.removeEventListener(x?"touchend":"mouseup",V,!0)}function O(){!p.autoplay||p.autoplay<=0||(C=setInterval(()=>{p.pauseAutoplayOnHover&&P.value||G()},p.autoplay))}function $(){C&&(clearInterval(C),C=null),O()}const W=e.ref(!1);function z(K){const ke=p.wrapAround?K:ds({val:K,max:u.value,min:g.value});h.value===ke||W.value||(a("slide-start",{slidingToIndex:K,currentSlideIndex:h.value,prevSlideIndex:d.value,slidesCount:c.value}),W.value=!0,d.value=h.value,h.value=ke,k=setTimeout(()=>{if(p.wrapAround){const be=cs({val:ke,max:u.value,min:0});be!==h.value&&(h.value=be,a("loop",{currentSlideIndex:h.value,slidingToIndex:K}))}a("update:modelValue",h.value),a("slide-end",{currentSlideIndex:h.value,prevSlideIndex:d.value,slidesCount:c.value}),W.value=!1,$()},p.transition))}function G(){z(h.value+p.itemsToScroll)}function j(){z(h.value-p.itemsToScroll)}const _={slideTo:z,next:G,prev:j};e.provide("nav",_),e.provide("isSliding",W);const b=e.computed(()=>rz({config:p,currentSlide:h.value,slidesCount:c.value}));e.provide("slidesToScroll",b);const w=e.computed(()=>{const K=p.dir==="rtl"?-1:1,ke=b.value*n.value*K;return{transform:`translateX(${F.x-ke}px)`,transition:`${W.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${c.value*n.value}px`:"",width:"100%"}});function D(){U(),q(),J(),Y(),$()}Object.keys(wd).forEach(K=>{["modelValue"].includes(K)||e.watch(()=>t[K],D)}),e.watch(()=>t.modelValue,K=>{K!==h.value&&z(Number(K))}),e.watch(c,J),a("before-init"),U();const _e={config:p,slidesCount:c,slideWidth:n,next:G,prev:j,slideTo:z,currentSlide:h,maxSlide:u,minSlide:g,middleSlide:f};o({updateBreakpointsConfigs:q,updateSlidesData:J,updateSlideWidth:Y,initDefaultConfigs:U,restartCarousel:D,slideTo:z,next:G,prev:j,nav:_,data:_e});const st=i.default||i.slides,De=i.addons,Oi=e.reactive(_e);return()=>{const K=kd(st==null?void 0:st(Oi)),ke=(De==null?void 0:De(Oi))||[];K.forEach((tl,al)=>tl.props.index=al);let be=K;if(p.wrapAround){const tl=K.map((il,Va)=>e.cloneVNode(il,{index:-K.length+Va,isClone:!0,key:`clone-before-${Va}`})),al=K.map((il,Va)=>e.cloneVNode(il,{index:K.length+Va,isClone:!0,key:`clone-after-${Va}`}));be=[...tl,...K,...al]}r.value=K,c.value=Math.max(K.length,1);const lt=e.h("ol",{class:"carousel__track",style:w.value,onMousedownCapture:p.mouseDrag?ae:null,onTouchstartPassiveCapture:p.touchDrag?ae:null},be),el=e.h("div",{class:"carousel__viewport"},lt);return e.h("section",{ref:l,class:{carousel:!0,"is-sliding":W.value,"is-dragging":H.value,"is-hover":P.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:Z,onMouseleave:de},[el,ke,e.h(pz)])}}}),Ed;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Ed||(Ed={}));var uz=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const a=e.inject("config",e.reactive(Object.assign({},we))),o=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesToScroll",e.ref(0)),l=e.inject("isSliding",e.ref(!1)),r=()=>t.index===o.value,n=()=>t.index===o.value-1,c=()=>t.index===o.value+1,p=()=>{const y=Math.floor(s.value),m=Math.ceil(s.value+a.itemsToShow-1);return t.index>=y&&t.index<=m};return()=>{var y;return e.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":p(),"carousel__slide--active":r(),"carousel__slide--prev":n(),"carousel__slide--next":c(),"carousel__slide--sliding":l.value},"aria-hidden":!p()},(y=i.default)===null||y===void 0?void 0:y.call(i))}}});const hz=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},yz=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),fz={class:"gsc-carousel"},gz={key:0},_z=yz(()=>e.createElementVNode("div",null,"no hay",-1)),bz=[_z],Sz={class:"gsc-carousel__2d__slides"},Cz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wz=["fill"],kz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ez=["fill"],Vz={class:"gsc-carousel__2d__navigation"},xz={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tz=["stroke"],Nz={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bz=["onClick"],Fz={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pz=["stroke"],$z={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(u=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const s=e.ref(null),l=e.ref({}),r=e.ref(0),n=e.ref(!1);e.watch(s,u=>{u&&n.value?(n.value=!1,c(o.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),e.watch(()=>o.currentItemIndex,u=>{r.value!==u&&h(u)}),e.watch(()=>o.defaultItemByIndex,u=>{r.value!==u&&h(u)}),e.watch(()=>o.items,u=>{s.value?c(u):n.value=!0},{immediate:!0});function c(u){u&&u.length&&s.value&&setTimeout(()=>{if(o.defaultItemByProp){const g=o.items.findIndex(C=>C[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,l.value=u[g]):(r.value=0,l.value=u[0])}else r.value=o.defaultItemByIndex,l.value=u[o.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),l.value&&r.value===0&&a("input",{selectedItem:l.value,selectedItemIndex:r.value})},500)}function p(){s.value&&s.value.next()}function y(){s.value&&s.value.prev()}function m(){s.value&&s.value.updateSlideWidth()}function h(u){s.value&&s.value.slideTo(u)}function d(u){s.value.slideTo(u)}function f(u){const g=u.slidingToIndex<0?o.items.length-1:u.slidingToIndex===o.items.length?0:u.slidingToIndex;r.value=g,l.value=o.items[g],a("update:currentItemIndex",g),a("input",{selectedItem:l.value,selectedItemIndex:r.value})}return i({prev:y,next:p,updateSlideWidth:m,slideTo:h}),(u,g)=>(e.openBlock(),e.createElementBlock("div",fz,[o.is3d?(e.openBlock(),e.createElementBlock("div",gz,bz)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",Sz,[e.createVNode(e.unref(mz),{ref_key:"carousel2d",ref:s,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:f},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(C,k)=>(e.openBlock(),e.createBlock(e.unref(uz),{key:k},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:g[0]||(g[0]=C=>s.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Cz,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:t.arrowsColor},null,8,wz)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:g[1]||(g[1]=C=>p())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",kz,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:t.arrowsColor},null,8,Ez)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",Vz,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:g[2]||(g[2]=C=>y())},[(e.openBlock(),e.createElementBlock("svg",xz,[e.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:o.arrowsColor},null,8,Tz)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",Nz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(C,k)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${o.navigationHeight}px`,width:`${r.value===k?o.navigationActiveWidth:o.navigationActiveWidth/2}px`,borderRadius:`${o.navigationBorderRadius}px`,backgroundColor:`${r.value===k?o.navigationActiveColor:o.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:U=>d(k)},null,12,Bz))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:g[3]||(g[3]=C=>s.value.next())},[(e.openBlock(),e.createElementBlock("svg",Fz,[e.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:o.arrowsColor},null,8,Pz)]))])):e.createCommentVNode("",!0)])],2))]))}},Vd=hz($z,[["__scopeId","data-v-54620d25"]]),ct={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"},ps={components:{GSCCarousel:Vd,GSCLeaders:a$,GSCRowTable:as,GSCTableHeader:Qo,GSCExpandedInfo:ns},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return this.type!==0&&(!this.filtersProp||Object.keys(this.filtersProp).length===0)?(this.changeStateLoading(!1),[]):Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,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,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],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"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{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]}[t]||[]},getCoordinatePointPerCategory(t){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}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p,h=t.player_id;let d=[],f=this.isTeam?t.id:this.filterTeam;h?this.isTeam?f=h:(d=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?f=t.id:(d=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:f||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p;let h=[],d=this.isTeam?t.id:this.filterTeam;this.isTeam?d=t.id:(h=[t.id],n=n.filter(u=>!u.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:d||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",f)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await me.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,p=n.teamName[0].acronym,y=a[n.teamName[0].team_id].name,m=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,d=this.positions[n.numberPositionId-1].name,f=n.countryId[0].nationality_id,u=n.effectiveness,g=n.min,C=n.games,k=n.date;n.arrayNationalities.forEach(U=>{l.add(U.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:c,team:p,teamname:y,teamid:m,position:h,positionfull:d,effectiveness:u,country:f,games_played:C,minutes_played:g,nationalityId:g,date:k,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.type==0?this.filtersSelect:this.filtersProp),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!c.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(c.numberPositionId))return!1;if(i.arrayAgeRange){const p=c.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&c.date<r||i.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},xd=()=>{e.useCssVars(t=>({"3d9f9459":t.borderRadius,"3c15711f":t.borderWidth,"3afe72bc":t.borderColor}))},Td=ps.setup;ps.setup=Td?(t,i)=>(xd(),Td(t,i)):xd;const pt=t=>(e.pushScopeId("data-v-5e87561f"),t=t(),e.popScopeId(),t),zz={ref:"myDivRef"},Az={class:"text"},Iz={class:"groupsLeague"},Mz={class:"row-table-carrousel"},Rz={key:1,class:"container-no-search-result"},Lz={key:0,class:"overlay-loading-top"},Oz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),Dz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),jz=[Oz,Dz],Wz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Uz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1)),vz={key:1,class:"container-no-search-result"},Gz={key:0,class:"overlay-loading-top"},Hz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),Jz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),qz=[Hz,Jz],Yz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Zz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function Kz(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",zz,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=m=>l.clickMore(a.category))},[e.createElementVNode("div",Az,[e.createElementVNode("div",Iz,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:m})=>[e.createElementVNode("div",Mz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(h,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onMediadata:i[1]||(i[1]=f=>l.emitEventMedia(f,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onMediadata:i[2]||(i[2]=f=>l.emitEventMedia(f,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:" Liga MX "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:d%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:f=>l.viewprofile(f,h.teamid),background:d%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",Rz,[t.isloading?(e.openBlock(),e.createElementBlock("div",Lz,jz)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Wz,Uz],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(y,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),l.displayData.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.displayData,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==d.id&&t.expand,onMediadata:i[3]||(i[3]=u=>l.emitEventMediaFullTable(u,a.category,a.categoryName)),data:a.typeTable==0?{position:d.top,player_name:d.name,player_short:d.name_short,player_photo:d.img,total:d.total,id:d.id,player_age:d.age,team_abrev:d.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.teamid+".png",player_position:d.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+d.country+".jpg",player_games:d.games,player_min:d.minutes,league_name:" Liga MX "}:{position:d.top,team_logo:d.img,team_abrev:d.name,frequency:d.frecuency,promthistournament:d.game_avg,promlasttournament:d.game_avg_last_season,category:a.category,team_games:d.games_played,total:d.total,id:d.id},height:"71px",background:((h+1)*5+f)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","data","background","onExpand"]),t.expand&&t.playerexpand==d.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":d.positionId!==1,data:a.typeTable==0?{teams:d.teamname,age:d.age,dataofbirth:d.date,nationality:d.nationality,countryFlag:d.player_country_flag,position:d.position,positionfull:d.positionfull,games:d.games,min:d.minutes,goals:d.originalTotal||d.total,effectiveness:d.effectiveness,category:l.getCategoryName(a.category),id:d.id}:{position:d.positiontable,goals:d.goals,goals_received:d.goalsrecived,games_played:d.games_played,category:a.categoryName,effectiveness:d.effectiveness,xg:d.xg,total:d.originalTotal||d.total,category:l.getCategoryName(a.category),attendance:"-",id:d.id},onViewprofile:u=>l.viewprofile(u,d.teamid),background:f%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128)):(e.openBlock(),e.createElementBlock("div",vz,[t.isloading?(e.openBlock(),e.createElementBlock("div",Gz,qz)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Yz,Zz],64)):e.createCommentVNode("",!0)]))],64))],512)],2)}const Xz=Se(ps,[["render",Kz],["__scopeId","data-v-5e87561f"]]),Qz=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},eA={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)}}},tA=["src"],aA=["src"];function iA(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.activeClickLabel?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.customStyle),class:"gsc-label",onClick:i[0]||(i[0]=(...r)=>l.btnLabel&&l.btnLabel(...r))},[e.createTextVNode(e.toDisplayString(a.numFilter)+" "+e.toDisplayString(a.textValue)+" ",1),a.iconVisible?(e.openBlock(),e.createElementBlock("img",{key:0,style:e.normalizeStyle(l.customIcon),class:"icon",src:a.icon},null,12,tA)):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-label",style:e.normalizeStyle(l.customStyle)},[e.createTextVNode(e.toDisplayString(a.numFilter)+" "+e.toDisplayString(a.textValue)+" ",1),a.iconVisible?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:i[1]||(i[1]=(...r)=>l.btnClose&&l.btnClose(...r)),style:e.normalizeStyle(l.customIcon),class:"icon",src:a.icon},null,12,aA)):e.createCommentVNode("",!0)],4))])}const Nd=Qz(eA,[["render",iA],["__scopeId","data-v-42ff544a"]]);function oA(t){const i=e.ref({width:0,height:0});function a(){const o=t.value.getBoundingClientRect();i.value.width=o.width,i.value.height=o.height}return e.onMounted(()=>{a(),window.addEventListener("resize",a)}),e.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:i}}const sA=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ms={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Bd=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Fd=ms.setup;ms.setup=Fd?(t,i)=>(Bd(),Fd(t,i)):Bd;const lA={ref:"gscScrollableContainer",class:"scrollable-container"},rA={class:"scrollable-arrows"},nA=["width","height","viewBox"],dA=["stroke"],cA={class:"scrollable-wrapper"},pA={class:"scrollable-arrows"},mA=["width","height","viewBox"],uA=["stroke"];function hA(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",lA,[a.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",l.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>l.scrollLeft&&l.scrollLeft(...r))},[e.createElementVNode("div",rA,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:a.arrowsColor},null,8,dA)],8,nA))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>l.getScroll&&l.getScroll(...r))},[e.createElementVNode("div",cA,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),a.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",l.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>l.scrollRight&&l.scrollRight(...r))},[e.createElementVNode("div",pA,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:a.arrowsColor},null,8,uA)],8,mA))])],2)):e.createCommentVNode("",!0)],512)}const yA=sA(ms,[["render",hA],["__scopeId","data-v-b548a08d"]]),fA=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},us={components:{GSCSlider:yA},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=oA(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Pd=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},$d=us.setup;us.setup=$d?(t,i)=>(Pd(),$d(t,i)):Pd;const gA={ref:"myDivRef"},_A={key:0,class:"gs-switch-container"},bA=["onClick"],SA={key:1,class:"gs-switch-container-type"},CA=["onClick"],wA={key:2,class:"gs-switch-container-carousel"},kA=["onClick"];function EA(t,i,a,o,s,l){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",gA,[a.type==0?(e.openBlock(),e.createElementBlock("div",_A,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:a.height},a.selectedOption==n?{borderColor:a.colorOptionActive,color:a.colorFont+"!important",background:a.backgroundOptionActive}:{borderColor:a.colorOptionDisable,color:"grey !important"}]),key:c,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,bA))),128))],4),e.renderSlot(t.$slots,a.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",SA,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:a.height},a.selectedOption==n?{borderColor:a.colorOptionActive,color:a.colorFont+"!important",background:a.backgroundOptionActive}:{borderColor:a.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:a.backgroundOptionDisable}]),key:c,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,CA))),128))],4)])):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",wA,[e.createVNode(r,{arrows:a.arrow,"background-color":a.background,"px-scroll":a.pxScroll,"scroll-color":a.scrollColor,"arrows-position":a.arrowsPosition,arrowsScrollHide:a.arrowsScrollHide,"arrows-background":a.arrowsBackground,"arrows-container-bg-l":a.arrowsContainerBgL,"arrows-container-bg-r":a.arrowsContainerBgR,"arrows-margin":a.arrowsMargin,"arrows-radius":a.arrowsRadius,"arrows-border":a.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:a.height},a.selectedOption==n?{borderColor:a.colorOptionActive,color:a.colorFont+"!important",background:a.backgroundOptionActive}:{borderColor:a.colorOptionDisable,color:"grey !important"}]),key:c,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,kA))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):e.createCommentVNode("",!0)],512)}const hs=fA(us,[["render",EA],["__scopeId","data-v-8a86dfaf"]]),ie={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},VA=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},xA={key:1},TA={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NA=["fill"],BA={key:0,class:"checkbox__teams"},FA={class:"checkbox__teams__logo"},PA=["src"],$A={class:"checkbox__teams__logo"},zA=["src"],AA={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",xA,[(e.openBlock(),e.createElementBlock("svg",TA,[e.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:t.boxValueColor},null,8,NA)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",BA,[e.createElementVNode("div",FA,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,PA)]),e.createElementVNode("div",$A,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,zA)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},oe=VA(AA,[["__scopeId","data-v-b6f124d8"]]),le=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},IA={class:"container"},MA={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},RA=["fill"],LA={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OA=["fill"],DA={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(t){return e.useCssVars(i=>({"563e5242":t.width,a529e9a4:t.height})),(i,a)=>(e.openBlock(),e.createElementBlock("div",IA,[t.isExpanded?(e.openBlock(),e.createElementBlock("svg",MA,[e.createElementVNode("rect",{width:"11",height:"1.7",fill:t.collapseIconColor},null,8,RA)])):(e.openBlock(),e.createElementBlock("svg",LA,[e.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:t.expandIconColor},null,8,OA)]))]))}},Nt=le(DA,[["__scopeId","data-v-166b6226"]]),ga=t=>(e.pushScopeId("data-v-259c96ad"),t=t(),e.popScopeId(),t),jA={class:"productivity"},WA={class:"productivity__body__offensive"},UA={class:"productivity__body__title"},vA={class:"productivity__body__title__info"},GA={class:"number-of-categories"},HA={class:"productivity__body__categories"},JA={class:"productivity__body__defensive-possession"},qA={class:"block"},YA={class:"productivity__body__title"},ZA={class:"productivity__body__title__info"},KA={class:"number-of-categories"},XA={class:"productivity__body__categories"},QA={class:"block"},eI={class:"productivity__body__title"},tI={class:"productivity__body__title__info"},aI={class:"number-of-categories"},iI={class:"productivity__body__categories"},oI={key:0,class:"productivity__footer"},sI={class:"productivity__footer__offenses"},lI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),rI={class:"productivity__footer__offenses__table"},nI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[e.createElementVNode("div"),e.createElementVNode("div",null,"Si"),e.createElementVNode("div",null,"No")],-1)),dI={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},cI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),pI={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},mI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),uI={class:"productivity__footer__offenses__table__row has-padding"},hI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),yI={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1}},emits:["update:offensesConditions"],setup(t,{emit:i}){const a=t,o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=e.computed(()=>({"--template-columns":a.isExpansionMode?"1fr":a.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":a.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":a.isForTemplateForm?"32px":"0","--width-block":a.isForTemplateForm?"unset":"100%"})),c=e.computed(()=>a.productivityCategories.offensive.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),p=e.computed(()=>a.productivityCategories.defensive.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),y=e.computed(()=>a.productivityCategories.possession.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),m=e.computed(()=>a.isFromTemplates||a.isForTemplateForm);e.watch(()=>a.productivityCategories,f=>{r.value.areYellowCardsSelected=f.offensesConditions.areYellowCardsSelected,r.value.areRedCardsSelected=f.offensesConditions.areRedCardsSelected,r.value.areFoulsCommittedSelected=f.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),e.watch(r,f=>{i("update:offensesConditions",f)},{deep:!0,immediate:!0});function h(f,u){u.isSelected=f,setTimeout(()=>{u.priority=a.numberOfCategoriesSelected},10)}function d(f){f==="offensive"?o.value=!o.value:f==="defensive"?s.value=!s.value:f==="possession"&&(l.value=!l.value)}return(f,u)=>(e.openBlock(),e.createElementBlock("div",jA,[e.createElementVNode("div",{class:"productivity__body",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",WA,[e.createElementVNode("div",UA,[e.createElementVNode("div",vA,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.offensive.title),1),e.createElementVNode("span",GA,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:u[0]||(u[0]=g=>d("offensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",HA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.offensive.categories,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"productivity__checkbox"},[e.createVNode(e.unref(oe),{label:g.name,fontFamily:t.fontFamily,"model-value":g.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&g.isSelected,"box-value":m.value?null:g.priority||0,"onUpdate:modelValue":C=>h(C,g)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]])]),e.createElementVNode("div",JA,[e.createElementVNode("div",qA,[e.createElementVNode("div",YA,[e.createElementVNode("div",ZA,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.defensive.title),1),e.createElementVNode("span",KA,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:u[1]||(u[1]=g=>d("defensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",XA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.defensive.categories,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"productivity__checkbox"},[e.createVNode(e.unref(oe),{label:g.name,fontFamily:t.fontFamily,"model-value":g.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&g.isSelected,"box-value":m.value?null:g.priority||0,"onUpdate:modelValue":C=>h(C,g)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]])]),e.createElementVNode("div",QA,[e.createElementVNode("div",eI,[e.createElementVNode("div",tI,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.possession.title),1),e.createElementVNode("span",aI,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:u[2]||(u[2]=g=>d("possession"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",iI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.possession.categories,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"productivity__checkbox"},[e.createVNode(e.unref(oe),{label:g.name,fontFamily:t.fontFamily,"model-value":g.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&g.isSelected,"box-value":m.value?null:g.priority||0,"onUpdate:modelValue":C=>h(C,g)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])])],4),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oI,[e.createElementVNode("div",sI,[lI,e.createElementVNode("div",rI,[nI,e.createElementVNode("div",dI,[cI,e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":r.value.areFoulsCommittedSelected,"avoid-interaction":r.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":u[3]||(u[3]=g=>r.value.areFoulsCommittedSelected=g)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":!r.value.areFoulsCommittedSelected,"avoid-interaction":!r.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":u[4]||(u[4]=g=>r.value.areFoulsCommittedSelected=!g)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",pI,[mI,e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":r.value.areYellowCardsSelected,"avoid-interaction":r.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":u[5]||(u[5]=g=>r.value.areYellowCardsSelected=g)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":!r.value.areYellowCardsSelected,"avoid-interaction":!r.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":u[6]||(u[6]=g=>r.value.areYellowCardsSelected=!g)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",uI,[hI,e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":r.value.areRedCardsSelected,"avoid-interaction":r.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":u[7]||(u[7]=g=>r.value.areRedCardsSelected=g)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":!r.value.areRedCardsSelected,"avoid-interaction":!r.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":u[8]||(u[8]=g=>r.value.areRedCardsSelected=!g)},null,8,["model-value","avoid-interaction"])])])])])]))]))}},fI=le(yI,[["__scopeId","data-v-259c96ad"]]),mt=t=>(e.pushScopeId("data-v-feb56031"),t=t(),e.popScopeId(),t),gI={class:"details__header"},_I=mt(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),bI={class:"details__header__checkbox"},SI={class:"details__body"},CI={class:"details__body__playing-as"},wI=["onClick"],kI={class:"details__header"},EI=mt(()=>e.createElementVNode("div",{class:"details__header__title"},[e.createTextVNode(" En: "),e.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),VI={class:"details__header__checkbox"},xI={class:"details__body"},TI=mt(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),NI={class:"details__body__game-section"},BI=["onClick"],FI={class:"details__body"},PI=mt(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$I={class:"details__body__game-section"},zI=["onClick"],AI={key:0,class:"details_body"},II=mt(()=>e.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),MI={class:"radios"},RI={class:"radio-input"},LI={class:"radio-input__radio"},OI=mt(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),DI={class:"radio-input"},jI={class:"radio-input__radio"},WI=mt(()=>e.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),UI={class:"radio-input"},vI={class:"radio-input__radio"},GI=mt(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),HI={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},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}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},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"}},emits:["change-statistic-type"],setup(t,{emit:i}){const a=t;e.useCssVars(h=>({"91d1a498":t.buttonsBackgroundColor,"562e8f56":t.buttonsTextColor,63400359:t.buttonsBorderWidth,"622904f6":t.buttonsBorderColor,"2e90fc4c":t.buttonsBackgroundColorActive,"0684cfbb":t.buttonsTextColorActive,"7e90c7bf":t.buttonsBorderWidthActive,"42275f9c":t.buttonsBorderColorActive}));const o=e.ref("");e.watch(()=>a.statisticType,h=>{o.value=h},{immediate:!0}),e.watch(()=>o.value,h=>{a.statisticType=h,i("change-statistic-type",h)});const s=e.computed(()=>a.playingAs.every(h=>h.isSelected)),l=e.computed(()=>a.gameSections.every(h=>h.isSelected)),r=e.computed(()=>a.gameSections.reduce((h,d)=>(d.value<=3?h.firstHalf.push(d):h.secondHalf.push(d),h),{firstHalf:[],secondHalf:[]})),n=e.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function c(h){h?a.playingAs.forEach(d=>{d.isSelected=!0}):a.playingAs.forEach((d,f)=>{d.isSelected=f===0})}function p(h){a.playingAs.filter(d=>d.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function y(h){a.gameSections.filter(d=>d.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function m(h){h?a.gameSections.forEach(d=>{d.isSelected=!0}):a.gameSections.forEach((d,f)=>{d.isSelected=f===0})}return(h,d)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(n.value)},[e.withDirectives(e.createElementVNode("div",gI,[_I,e.createElementVNode("div",bI,[e.createVNode(e.unref(oe),{label:"Todos",fontFamily:t.fontFamily,"model-value":s.value,"onUpdate:modelValue":c},null,8,["fontFamily","model-value"])])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.withDirectives(e.createElementVNode("div",SI,[e.createElementVNode("div",CI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.playingAs,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${u}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:g=>p(f)},e.toDisplayString(f.name),11,wI))),128))])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.createElementVNode("div",kI,[EI,e.createElementVNode("div",VI,[e.createVNode(e.unref(oe),{label:"Todos",fontFamily:t.fontFamily,"model-value":l.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])]),e.createElementVNode("div",xI,[TI,e.createElementVNode("div",NI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.firstHalf,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${u}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:g=>y(f)},e.toDisplayString(f.text),11,BI))),128))])]),e.createElementVNode("div",FI,[PI,e.createElementVNode("div",$I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.secondHalf,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${u}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:g=>y(f)},e.toDisplayString(f.text),11,zI))),128))])]),t.isStatisticTypeVisible?(e.openBlock(),e.createElementBlock("div",AI,[II,e.createElementVNode("div",MI,[e.createElementVNode("div",RI,[e.createElementVNode("div",LI,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[e.vModelRadio,o.value]]),OI])]),e.createElementVNode("div",DI,[e.createElementVNode("div",jI,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>o.value=f),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[e.vModelRadio,o.value]]),WI])]),e.createElementVNode("div",UI,[e.createElementVNode("div",vI,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[e.vModelRadio,o.value]]),GI])])])])):e.createCommentVNode("",!0)],4))}},JI=le(HI,[["__scopeId","data-v-feb56031"]]),qI={class:"scroll-container"},YI={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){return e.useCssVars(i=>({"6aab424d":t.height,39848040:t.width})),(i,a)=>(e.openBlock(),e.createElementBlock("div",qI,[e.renderSlot(i.$slots,"default",{},void 0,!0)]))}},zd=le(YI,[["__scopeId","data-v-218f5976"]]),ZI={class:"tournaments"},KI={key:0,class:"tournaments__tournament"},XI={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1}},emits:["change-filters-selected","update:filters"],setup(t,{emit:i}){const a=t,o=e.ref(!1),s=e.computed(()=>a.tournaments.filter(n=>n.isSelected).length);e.watch(()=>a.tournaments,n=>{const c=n.filter(p=>p.isSelected);o.value=c.length===n.length,i("change-filters-selected",c.length),i("update:filters",a.tournaments)},{immediate:!0,deep:!0});function l(n){a.tournaments.forEach((c,p)=>{c.isSelected=n||(p!==0?n:!0)})}function r(n,c){a.isOneTournamentOnly&&a.tournaments.forEach(p=>{p.isSelected=!1}),c.isSelected=n}return(n,c)=>(e.openBlock(),e.createElementBlock("div",ZI,[e.createVNode(zd,{height:"200px"},{default:e.withCtx(()=>[t.isOneTournamentOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",KI,[e.createVNode(e.unref(oe),{"model-value":o.value,label:"Todas las ligas",fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":l},null,8,["model-value","fontFamily"])])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tournaments,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id||p._id,class:"tournaments__tournament"},[e.createVNode(e.unref(oe),{"model-value":p.isSelected,label:p.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":s.value===1&&p.isSelected,"onUpdate:modelValue":y=>r(y,p)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},QI=le(XI,[["__scopeId","data-v-f2d7cddf"]]),N={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},eM={key:0,class:"plays-golstats__placeholder"},tM=["onClick"],aM={key:0,class:"plays-golstats__item__value"},iM={class:"plays-golstats__item__text"},oM={class:"plays-golstats__item__svg"},sM={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lM=["fill"],rM={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--grid-template-columns":a.type===N.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${a.svgWidth}px`,"--svg-height":`${a.svgHeight}px`}));e.watch(()=>a.categories,l=>{const r=l.filter(n=>n.isSelected);i("update:filters",r)},{immediate:!0,deep:!0});function s(l){l.isSelected||(a.categories.forEach(r=>{r.isSelected=!1}),l.isSelected=!0,a.type===N.GOLSTATS&&i("change-filters-selected",l.value))}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"plays-golstats",style:e.normalizeStyle(o.value)},[e.createVNode(zd,{height:t.height},{default:e.withCtx(()=>[t.type===e.unref(N).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",eM," Elige un tipo de jugada para filtrar: ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.categories,(n,c)=>(e.openBlock(),e.createElementBlock("div",{key:`k${c}`,class:"plays-golstats__item",onClick:p=>s(n)},[t.type===e.unref(N).GOLSTATS?(e.openBlock(),e.createElementBlock("div",aM,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",iM,e.toDisplayString(n.name),1),e.createElementVNode("div",oM,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",sM,[e.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:t.svgColor},null,8,lM)],512)),[[e.vShow,n.isSelected]])])],8,tM))),128))]),_:1},8,["height"])],4))}},Ad=le(rM,[["__scopeId","data-v-af3c1673"]]),nM=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ys={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(t){this.$emit("inputval",t.target.value)},onKeyDown(t){if(this.isNumbersOnly){const i=t.which?t.which:t.keyCode();i>31&&(i<48||i>57)&&t.preventDefault()}}}},Id=()=>{e.useCssVars(t=>({"53e1855a":t.textRightColor,da8ee600:t.textRightFontSize,"9fb876ba":t.textRightFontFamily}))},Md=ys.setup;ys.setup=Md?(t,i)=>(Id(),Md(t,i)):Id;const dM={class:"input-container"},cM=["type","placeholder","value"],pM={class:"right-text"};function mM(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",dM,[e.createElementVNode("input",{type:a.inputType,placeholder:a.placeholder,value:a.value,style:e.normalizeStyle(l.inputStyle),onKeydown:i[0]||(i[0]=(...r)=>l.onKeyDown&&l.onKeyDown(...r)),onInput:i[1]||(i[1]=(...r)=>l.updateInputValue&&l.updateInputValue(...r))},null,44,cM),e.createElementVNode("div",pM,e.toDisplayString(a.textRight),1)])}const Rd=nM(ys,[["render",mM],["__scopeId","data-v-b73049e7"]]),uM=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},fs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ld=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Od=fs.setup;fs.setup=Od?(t,i)=>(Ld(),Od(t,i)):Ld;const hM=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),yM=["src"],fM={key:1,class:"text"},gM=["src"],_M={class:"stats"},bM=hM(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),SM={class:"numstats"},CM={class:"leyend"};function wM(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,yM)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",fM,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,gM)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",_M,[bM,e.createElementVNode("div",SM,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",CM,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const kM=uM(fs,[["render",wM],["__scopeId","data-v-f3ee6b2b"]]),EM={class:"gsc-dropdown__main-container__item-selected"},VM=["height","width"],xM=["stroke"],TM={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NM=["fill"],BM={class:"gsc-dropdown__items-container"},FM=["onClick"],PM={key:0,class:"gsc-dropdown__items-footer"},He={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref({}),s=e.ref(null),l=e.ref(a.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>a.items,(d,f)=>{if(!a.modelValue&&(!a.onlyFirstTime||!f||!f.length)&&d&&d.length){if(a.defaultItemByProp){const u=a.items.findIndex(g=>g[a.defaultItemByProp.propName]===a.defaultItemByProp.value);u!==-1?(l.value=u,o.value=d[u]):(l.value=0,o.value=d[0])}else o.value=d[a.defaultItemByIndex];i("input",o.value)}},{immediate:!0}),e.watch(()=>a.modelValue,d=>{if(d){const f=a.items.findIndex(u=>typeof d=="object"?JSON.stringify(u)===JSON.stringify(d):u===d);f!==-1&&(l.value=f,o.value=a.items[f],i("update:modelValue",o.value))}},{immediate:!0});const n=e.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-container-padding":a.listContainerPadding,"--list-item-padding":a.listItemPadding,"--list-item-margin":a.listItemMargin,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-border-radius":a.listItemBorderRadius,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--list-margin-top":a.listMarginTop,"--list-left":a.listAlignment==="left"?"0":"auto","--list-right":a.listAlignment==="right"?"0":"auto","--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),c=e.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function p(){a.isDisabled||(r.value=!r.value)}function y(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function m(d,f){a.isMultipleOption?l.value=-1:(l.value=f,r.value=!1),o.value=d,i("input",o.value),i("update:modelValue",o.value)}function h(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",y)}),e.onBeforeMount(()=>{document.removeEventListener("click",y)}),(d,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:p},[e.createElementVNode("div",EM,[e.renderSlot(d.$slots,"default",{selectedItem:o.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(c.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,xM)],8,VM)):(e.openBlock(),e.createElementBlock("svg",TM,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,NM)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",BM,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(u,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===l.value}]),key:g,onClick:C=>m(u,g)},[e.renderSlot(d.$slots,"availableItem",{item:u})],10,FM)),[[e.vShow,!u.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",PM,[e.createVNode(e.unref(kM),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},ut={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},Ht=t=>(e.pushScopeId("data-v-b1fc2fa6"),t=t(),e.popScopeId(),t),$M={class:"universe"},zM=Ht(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),AM=Ht(()=>e.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),IM={class:"universe__inputs"},MM={class:"universe__inputs__input"},RM={class:"universe__inputs__checkbox"},LM=Ht(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),OM=Ht(()=>e.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),DM={class:"universe__inputs"},jM={class:"universe__inputs__input"},WM={class:"universe__inputs__checkbox"},UM=Ht(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),vM=Ht(()=>e.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),GM={class:"universe__dropdown"},HM={class:"selected-item"},Dd=11,JM={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref(!1),r=e.ref(!1),n=e.ref({statistics:{}});e.watch(()=>o.universeFilters,d=>{n.value={...d,lastMonths:d.selectedMonth?d.selectedMonth:d.lastMonths[Dd],statistics:{...d.statistics}}},{deep:!0,immediate:!0}),e.watch(()=>n,d=>{s.value=!d.value.minutesPlayed||Number(d.value.minutesPlayed)===0,l.value=!d.value.percentMinutesPlayed||Number(d.value.percentMinutesPlayed)===0,r.value=!d.value.lastMonths||Number(d.value.lastMonths)===0,a("update:universeFilters",d)},{deep:!0,immediate:!0});function c(d){n.value.minutesPlayed=d}function p(d){n.value.percentMinutesPlayed=d}function y(d,f){switch(f){case"minutes":s.value=d,d&&(n.value.minutesPlayed=0);break;case"percent":l.value=d,d&&(n.value.percentMinutesPlayed=0);break;case"months":r.value=d,d&&(n.value.lastMonths=0);break}}function m(){n.value={...o.universeFilters,lastMonths:o.universeFilters.lastMonths[Dd],statistics:{...o.universeFilters.statistics}}}function h(d){n.value.lastMonths=d}return i({resetFilters:m}),(d,f)=>(e.openBlock(),e.createElementBlock("div",$M,[zM,AM,e.createElementVNode("div",IM,[e.createElementVNode("div",MM,[e.createVNode(e.unref(Rd),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:c},null,8,["value"])]),e.createElementVNode("div",RM,[e.createVNode(e.unref(oe),{modelValue:s.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":f[0]||(f[0]=u=>y(u,"minutes"))},null,8,["modelValue","fontFamily"])])]),LM,OM,e.createElementVNode("div",DM,[e.createElementVNode("div",jM,[e.createVNode(e.unref(Rd),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:p},null,8,["value"])]),e.createElementVNode("div",WM,[e.createVNode(e.unref(oe),{modelValue:l.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":f[1]||(f[1]=u=>y(u,"percent"))},null,8,["modelValue","fontFamily"])])]),UM,vM,e.createElementVNode("div",GM,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{items:t.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:h}),{default:e.withCtx(({selectedItem:u})=>[e.createElementVNode("div",HM,e.toDisplayString(u)+" "+e.toDisplayString(u===1?"mes":"meses"),1)]),availableItem:e.withCtx(({item:u})=>[e.createElementVNode("div",null,e.toDisplayString(u)+" "+e.toDisplayString(u===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)]))}},qM=le(JM,[["__scopeId","data-v-b1fc2fa6"]]),jd=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},YM={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let t=this.labels||[],i=this.min===void 0?0:this.min,a=t.length?t.length-1:100,o=this.max===void 0?a:this.max,s=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(s=1);let l=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(l=t.length-2),o<=i)throw new Error("Invalid props min or max");if(s>l)throw new Error("Invalid props minValue or maxValue");let r=this.rangeMargin===void 0?this.step:this.rangeMargin,n=r%this.step;return n&&(r=r+this.step-n),{valueMin:s<i?i:s,valueMax:l>o?o:l,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:r}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(t){let i=parseFloat(t.target.value);i<=this.valueMax-this.rangeMarginValue&&i>=this.minimum?this.valueMin=i:t.target.value=this.valueMin},onInputMaxChange(t){let i=parseFloat(t.target.value);i>=this.valueMin+this.rangeMarginValue&&i<=this.maximum?this.valueMax=i:t.target.value=this.valueMax},onLeftThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let a=(i-this.startX)/this.barBox.width,o=this.barValue+(this.maximum-this.minimum)*a,s=o%this.step;o-=s,o<this.minimum?o=this.minimum:o>this.valueMax-this.rangeMarginValue&&(o=this.valueMax-this.rangeMarginValue),this.valueMin=o},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let a=(i-this.startX)/this.barBox.width,o=this.barValue+(this.maximum-this.minimum)*a,s=o%this.step;o-=s,o<this.valueMin+this.rangeMarginValue?o=this.valueMin+this.rangeMarginValue:o>this.maximum&&(o=this.maximum),this.valueMax=o},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(t){if(this.preventWheel===!0||!t.shiftKey&&!t.ctrlKey)return;let i=this.step;t.deltaY<0&&(i=-i),t.shiftKey&&t.ctrlKey?this.valueMin+i>=this.minimum&&this.valueMax+i<=this.maximum&&(this.valueMin=this.valueMin+i,this.valueMax=this.valueMax+i):t.ctrlKey?(i=this.valueMax+i,i<this.valueMin+this.rangeMarginValue?i=this.valueMin+this.rangeMarginValue:i>this.maximum&&(i=this.maximum),this.valueMax=i):t.shiftKey&&(i=this.valueMin+i,i<this.minimum?i=this.minimum:i>this.valueMax-this.rangeMarginValue&&(i=this.valueMax-this.rangeMarginValue),this.valueMin=i)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let i={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",i)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],i=t.length?t.length-1:100;return this.max===void 0?i:this.max},stepCount(){let t=this.labels||[];return t.length?t.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMin||0).toFixed(t)},barMaxVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMax||100).toFixed(t)},scaleLabels(){let t=this.labels||[];return t.length===0&&(t=[],t.push(this.minimum),t.push(this.maximum)),t}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(t){this.valueMin=t<this.minimum?this.minimum:t},maxValue(t){this.valueMax=t>this.maximum?this.maximum:t}},mounted(){}},ZM={class:"bar"},KM=["min","max","step","value"],XM={class:"caption"},QM={class:"min-caption"},eR={class:"bar-inner"},tR=["min","max","step","value"],aR={class:"caption"},iR={class:"max-caption"},oR={key:0,class:"ruler"},sR={key:1,class:"sub-ruler"},lR={key:2,class:"labels"};function rR(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([a.baseClassName,s.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:i[10]||(i[10]=e.withModifiers((...r)=>l.onMouseWheel&&l.onMouseWheel(...r),["prevent","stop"]))},[e.createElementVNode("div",ZM,[e.createElementVNode("div",{class:"bar-left",style:e.normalizeStyle({width:l.barMin+"%"}),onClick:i[0]||(i[0]=(...r)=>l.onBarLeftClick&&l.onBarLeftClick(...r))},null,4),e.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:l.minimum,max:l.maximum,step:a.step,value:s.valueMin,onInput:i[1]||(i[1]=e.withModifiers((...r)=>l.onInputMinChange&&l.onInputMinChange(...r),["stop","prevent"]))},null,40,KM),e.createElementVNode("div",{class:"thumb thumb-left",onMousedown:i[2]||(i[2]=(...r)=>l.onLeftThumbMousedown&&l.onLeftThumbMousedown(...r)),onTouchstart:i[3]||(i[3]=(...r)=>l.onLeftThumbMousedown&&l.onLeftThumbMousedown(...r))},[e.createElementVNode("div",XM,[e.createElementVNode("span",QM,e.toDisplayString(a.minCaption||l.barMinVal),1)])],32),e.createElementVNode("div",eR,[e.createElementVNode("div",{class:"bar-inner-left",onClick:i[4]||(i[4]=(...r)=>l.onInnerBarLeftClick&&l.onInnerBarLeftClick(...r))}),e.createElementVNode("div",{class:"bar-inner-right",onClick:i[5]||(i[5]=(...r)=>l.onInnerBarRightClick&&l.onInnerBarRightClick(...r))})]),e.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:l.minimum,max:l.maximum,step:a.step,value:s.valueMax,onInput:i[6]||(i[6]=e.withModifiers((...r)=>l.onInputMaxChange&&l.onInputMaxChange(...r),["stop","prevent"]))},null,40,tR),e.createElementVNode("div",{class:"thumb thumb-right",onMousedown:i[7]||(i[7]=(...r)=>l.onRightThumbMousedown&&l.onRightThumbMousedown(...r)),onTouchstart:i[8]||(i[8]=(...r)=>l.onRightThumbMousedown&&l.onRightThumbMousedown(...r))},[e.createElementVNode("div",aR,[e.createElementVNode("span",iR,e.toDisplayString(a.maxCaption||l.barMaxVal),1)])],32),e.createElementVNode("div",{class:"bar-right",style:e.normalizeStyle({width:l.barMax+"%"}),onClick:i[9]||(i[9]=(...r)=>l.onBarRightClick&&l.onBarRightClick(...r))},null,4)]),a.ruler?(e.openBlock(),e.createElementBlock("div",oR,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.stepCount,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"ruler-rule"}))),128))])):e.createCommentVNode("",!0),l.subStepCount?(e.openBlock(),e.createElementBlock("div",sR,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subStepCount,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"ruler-sub-rule"}))),128))])):e.createCommentVNode("",!0),a.label?(e.openBlock(),e.createElementBlock("div",lR,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.scaleLabels,r=>(e.openBlock(),e.createElementBlock("div",{class:"label",key:r},e.toDisplayString(r),1))),128))])):e.createCommentVNode("",!0)],34)}const nR=jd(YM,[["render",rR]]),gs={components:{MultiRangeSlider:nR},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(t){this.minValueLocal=t},immediate:!0},maxValue:{handler(t){this.maxValueLocal=t},immediate:!0}},methods:{onInput(t){this.minValueLocal=t.minValue,this.maxValueLocal=t.maxValue,this.$emit("input",t)}}},Wd=()=>{e.useCssVars(t=>({"318dc560":t.lineOutRangeColor,fcb35722:t.lineInRangeColor,"3edd517e":t.backgroundIndicador,"19ee7a09":t.widthIndicador,"482e6b68":t.heightIndicador,"48824d56":t.borderWidthIndicador,a51d4f50:t.borderColorIndicador,deb3b7b0:t.marginTopIndicador}))},Ud=gs.setup;gs.setup=Ud?(t,i)=>(Wd(),Ud(t,i)):Wd;const dR={class:"center"},cR={class:"bar-ref"},pR={class:"bar-ref-element-left"},mR={class:"bar-ref-element-right"};function uR(t,i,a,o,s,l){const r=e.resolveComponent("MultiRangeSlider");return e.openBlock(),e.createElementBlock("div",{class:"custom-range-slider",style:e.normalizeStyle(l.customStyle)},[e.createElementVNode("div",dR,[e.createElementVNode("div",cR,[e.createElementVNode("div",pR,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(l.customStyleText)},"De:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(l.customStyleValue)},e.toDisplayString(s.minValueLocal)+e.toDisplayString(a.minSuffix),5)]),e.createElementVNode("div",mR,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(l.customStyleText)},"A:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(l.customStyleValue)},e.toDisplayString(s.maxValueLocal)+e.toDisplayString(a.maxSuffix),5)])]),e.createVNode(r,{baseClassName:"multi-range-slider",min:a.minLimit,max:a.maxLimit,step:1,ruler:!1,label:!1,"min-value":s.minValueLocal,"max-value":s.maxValueLocal,"range-margin":0,onInput:l.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const vd=jd(gs,[["render",uR]]),hR={class:"template-distance"},yR={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(t,{emit:i}){const a=t,o=e.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});e.watch(()=>o.value,l=>{i("update:distanceFilters",l)},{deep:!0}),e.watch(()=>a.distance,l=>{o.value.minValue=l.minValue,o.value.maxValue=l.maxValue,o.value.minLimit=l.minLimit,o.value.maxLimit=l.maxLimit},{immediate:!0,deep:!0});function s(l){o.value.minValue=l.minValue,o.value.maxValue=l.maxValue}return(l,r)=>(e.openBlock(),e.createElementBlock("div",hR,[e.createVNode(e.unref(vd),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":o.value.minLimit,"max-limit":o.value.maxLimit,"min-value":o.value.minValue,"max-value":o.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:s},null,8,["min-limit","max-limit","min-value","max-value"])]))}},fR=t=>(e.pushScopeId("data-v-be32e3d8"),t=t(),e.popScopeId(),t),gR={class:"template-games"},_R={class:"template-games__header"},bR=fR(()=>e.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),SR={class:"template-games__header__all-games"},CR={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(t,{emit:i}){const a=t,o=e.ref(!1),s=e.computed(()=>a.gamesFilters.filter(r=>r.isSelected).length);e.watch(()=>a.gamesFilters,r=>{i("update:gamesFilters",r)},{deep:!0}),e.watch(s,r=>{o.value=r===a.gamesFilters.length,i("update:gamesFilters",a.gamesFilters)},{immediate:!0});const l=r=>{r?a.gamesFilters.forEach(n=>{n.isSelected=r}):a.gamesFilters.forEach((n,c)=>{n.isSelected=c===0}),o.value=r};return(r,n)=>(e.openBlock(),e.createElementBlock("div",gR,[e.createElementVNode("div",_R,[bR,e.createElementVNode("div",SR,[e.createVNode(e.unref(oe),{modelValue:o.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":l},null,8,["modelValue"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.gamesFilters,(c,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-games__game"},[e.createVNode(e.unref(oe),{modelValue:c.isSelected,"onUpdate:modelValue":y=>c.isSelected=y,label:c.label,"teams-ids":c.teamsIds,"avoid-interaction":s.value===1&&c.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},wR=le(CR,[["__scopeId","data-v-be32e3d8"]]),kR=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},_s={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Gd=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hd=_s.setup;_s.setup=Hd?(t,i)=>(Gd(),Hd(t,i)):Gd;const ER=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),VR=["src"],xR={key:1,class:"text"},TR=["src"],NR={class:"stats"},BR=ER(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),FR={class:"numstats"},PR={class:"leyend"};function $R(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,VR)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",xR,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,TR)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",NR,[BR,e.createElementVNode("div",FR,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",PR,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const gi=kR(_s,[["render",$R],["__scopeId","data-v-f3ee6b2b"]]),zR=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},bs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Jd=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},qd=bs.setup;bs.setup=qd?(t,i)=>(Jd(),qd(t,i)):Jd;const AR=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),IR=["src"],MR={key:1,class:"text"},RR=["src"],LR={class:"stats"},OR=AR(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),DR={class:"numstats"},jR={class:"leyend"};function WR(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,IR)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",MR,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,RR)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",LR,[OR,e.createElementVNode("div",DR,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",jR,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const UR=zR(bs,[["render",WR],["__scopeId","data-v-f3ee6b2b"]]),vR=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},GR={key:1},HR={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},JR=["fill"],qR={key:0,class:"checkbox__teams"},YR={class:"checkbox__teams__logo"},ZR=["src"],KR={class:"checkbox__teams__logo"},XR=["src"],QR={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",GR,[(e.openBlock(),e.createElementBlock("svg",HR,[e.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:t.boxValueColor},null,8,JR)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",qR,[e.createElementVNode("div",YR,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,ZR)]),e.createElementVNode("div",KR,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,XR)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},eL=vR(QR,[["__scopeId","data-v-b6f124d8"]]),tL=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Ss={components:{GSCButton:UR,GSCCheckbox:eL},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(t,i)=>({sector:i+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(t){const i=t.sort();JSON.stringify(i)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=i,this.sectors.forEach((a,o)=>{a.active=t.includes(o+1),this.validateField(o)}),this.$emit("update:modelValue",t))}},sectors:{handler(t){var i=[];for(let a=0;a<t.length;a++)t[a].active&&i.push(a+1);this.$emit("update:modelValue",i)},deep:!0}},computed:{translx(){var t=0;return this.widthField>305?t=this.widthField-305:this.widthField==268&&(t=-36),t},transly(){var t=0;return this.heightField>195?(t=this.heightField-195,t=t/2):this.heightField==180&&(t=-7),t},translxcircle(){var t=0;return this.widthField>305?(t=this.widthField-305,t=t/2):this.widthField==268&&(t=-18),t}},methods:{clickAll(t){if(t){for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!0,this.validateField(i);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!1,this.validateField(i),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(t){var i=0;this.sectors[t].active=!this.sectors[t].active;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0&&(this.sectors[t].active=!0),this.validateField(t)},btn14(t){this.sectors[0].active=t?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=t?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=t?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=t?this.sectors[3].active=!0:this.sectors[3].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,i==16&&(this.all=!0,this.update+=1)},btn24(t){this.sectors[4].active=t?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=t?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=t?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=t?this.sectors[7].active=!0:this.sectors[7].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,i==16&&(this.all=!0,this.update+=1)},btn34(t){this.sectors[8].active=t?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=t?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=t?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=t?this.sectors[11].active=!0:this.sectors[11].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,i==16&&(this.all=!0,this.update+=1)},btn44(t){this.sectors[12].active=t?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=t?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=t?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=t?this.sectors[15].active=!0:this.sectors[15].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,i==16&&(this.all=!0,this.update+=1)},validateField(t){(t===0||t===1||t===2||t===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(t===4||t===5||t===6||t===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(t===8||t===9||t===10||t===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(t===12||t===13||t===14||t===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},Yd=()=>{e.useCssVars(t=>({"4fe806fe":t.widthContainer,"91de7c52":t.heightContainer,"266afcdc":t.backgroundColor,"2b853536":t.titleFontSize,"986b6446":t.widthFieldGrid,"1af308b6":t.heightFieldGrid}))},Zd=Ss.setup;Ss.setup=Zd?(t,i)=>(Yd(),Zd(t,i)):Yd;const aL={class:"gsc-field"},iL={class:"gsc-field__title-checked"},oL={class:"gsc-field__title-checked__title"},sL={class:"gsc-field__container-field"},lL={class:"gsc-field__container-field__field"},rL={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},nL=["stroke"],dL=["stroke","stroke-width"],cL=["stroke","stroke-width"],pL=["stroke-width","stroke"],mL=["fill","fill-opacity","stroke","stroke-width"],uL=["fill","fill-opacity","stroke","stroke-width"],hL=["fill","fill-opacity","stroke","stroke-width"],yL=["fill","fill-opacity","stroke","stroke-width"],fL=["fill","fill-opacity","stroke","stroke-width"],gL=["fill","fill-opacity","stroke","stroke-width"],_L=["fill","fill-opacity","stroke","stroke-width"],bL=["fill","fill-opacity","stroke","stroke-width"],SL=["fill","fill-opacity","stroke","stroke-width"],CL=["fill","fill-opacity","stroke","stroke-width"],wL=["fill","fill-opacity","stroke","stroke-width"],kL=["fill","fill-opacity","stroke","stroke-width"],EL=["fill","fill-opacity","stroke","stroke-width"],VL=["fill","fill-opacity","stroke","stroke-width"],xL=["fill","fill-opacity","stroke","stroke-width"],TL=["fill","fill-opacity","stroke","stroke-width"],NL={class:"gsc-field__container-field__bar-buttons"};function BL(t,i,a,o,s,l){const r=e.resolveComponent("GSCCheckbox"),n=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",aL,[e.createElementVNode("div",iL,[e.createElementVNode("div",oL,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:e.normalizeStyle(a.widthField>=350?"min-width: 123px":"")},[(e.openBlock(),e.createBlock(r,{label:a.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":a.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:s.all,key:s.update,"model-value":s.all,"onUpdate:modelValue":l.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),e.createElementVNode("div",sL,[e.createElementVNode("div",lL,[(e.openBlock(),e.createElementBlock("svg",rL,[e.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:a.colorLineField},null,8,nL),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+l.translx+"px, "+l.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,dL),e.createElementVNode("path",{style:e.normalizeStyle("transform: translateY("+l.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,cL),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+l.translxcircle+"px, "+l.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":a.borderWidthLineField,stroke:a.colorLineField},null,12,pL),e.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:s.sectors[0].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[0]||(i[0]=c=>l.selectSector(0))},null,8,mL),e.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:s.sectors[1].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[1]||(i[1]=c=>l.selectSector(1))},null,8,uL),e.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:s.sectors[2].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[2]||(i[2]=c=>l.selectSector(2))},null,8,hL),e.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:s.sectors[3].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[3]||(i[3]=c=>l.selectSector(3))},null,8,yL),e.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:s.sectors[4].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[4]||(i[4]=c=>l.selectSector(4))},null,8,fL),e.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:s.sectors[5].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[5]||(i[5]=c=>l.selectSector(5))},null,8,gL),e.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:s.sectors[6].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[6]||(i[6]=c=>l.selectSector(6))},null,8,_L),e.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:s.sectors[7].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[7]||(i[7]=c=>l.selectSector(7))},null,8,bL),e.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:s.sectors[8].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[8]||(i[8]=c=>l.selectSector(8))},null,8,SL),e.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:s.sectors[9].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[9]||(i[9]=c=>l.selectSector(9))},null,8,CL),e.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:s.sectors[10].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[10]||(i[10]=c=>l.selectSector(10))},null,8,wL),e.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:s.sectors[11].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[11]||(i[11]=c=>l.selectSector(11))},null,8,kL),e.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:s.sectors[12].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[12]||(i[12]=c=>l.selectSector(12))},null,8,EL),e.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:s.sectors[13].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[13]||(i[13]=c=>l.selectSector(13))},null,8,VL),e.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:s.sectors[14].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[14]||(i[14]=c=>l.selectSector(14))},null,8,xL),e.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:s.sectors[15].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[15]||(i[15]=c=>l.selectSector(15))},null,8,TL)]))]),e.createElementVNode("div",NL,[(e.openBlock(),e.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:l.btn14,key:s.refreshBtn14,value:t.status14},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:l.btn24,key:s.refreshBtn24,value:t.status24},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:l.btn34,key:s.refreshBtn34,value:t.status34},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:l.btn44,key:s.refreshBtn44,value:t.status44},null,8,["onStatus","value"]))])])])}const Kd=tL(Ss,[["render",BL],["__scopeId","data-v-b85699b8"]]),FL={class:"toggle-buttons__background"},PL=["onClick"],$L={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(t,{emit:i}){const a=t;e.useCssVars(r=>({"0d588b39":t.height,"2a8da974":t.width,"6d34d30a":t.mainBackgroundColor,"3d50bf20":t.borderRadius,e8fc78a2:t.mainBorderWidth,eb2a7568:t.mainBorderColor,acdd84b6:t.fontFamily,"63d45e82":t.fontSize,b28ed67c:t.activeBorderWidth,b4bcd342:t.activeBorderColor,"7fa6e29d":t.activeBackgroundColor}));const o=e.ref(a.selectedButtonIndex),s=e.computed(()=>({"--grid-template-columns":`repeat(${a.buttons.length}, 1fr)`}));e.watch(()=>a.selectedButtonIndex,r=>{o.value=r}),e.watch(o,(r,n)=>{r!==n&&i("change",{index:r,button:a.buttons[r]})});function l(r){o.value=r}return(r,n)=>(e.openBlock(),e.createElementBlock("div",FL,[e.createElementVNode("div",{class:"toggle-buttons",style:e.normalizeStyle(s.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(c,p)=>(e.openBlock(),e.createElementBlock("div",{key:`b${p}`,class:e.normalizeClass(["toggle-buttons__button",{active:o.value===p}]),onClick:y=>l(p)},e.toDisplayString(c.text||c),11,PL))),128))],4)]))}},zL=le($L,[["__scopeId","data-v-ac2af001"]]);function Xd(t,i){return function(){return t.apply(i,arguments)}}const{toString:AL}=Object.prototype,{getPrototypeOf:Cs}=Object,_i=(t=>i=>{const a=AL.call(i);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Je=t=>(t=t.toLowerCase(),i=>_i(i)===t),bi=t=>i=>typeof i===t,{isArray:Jt}=Array,_a=bi("undefined");function IL(t){return t!==null&&!_a(t)&&t.constructor!==null&&!_a(t.constructor)&&Oe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Qd=Je("ArrayBuffer");function ML(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Qd(t.buffer),i}const RL=bi("string"),Oe=bi("function"),ec=bi("number"),Si=t=>t!==null&&typeof t=="object",LL=t=>t===!0||t===!1,Ci=t=>{if(_i(t)!=="object")return!1;const i=Cs(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},OL=Je("Date"),DL=Je("File"),jL=Je("Blob"),WL=Je("FileList"),UL=t=>Si(t)&&Oe(t.pipe),vL=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||Oe(t.append)&&((i=_i(t))==="formdata"||i==="object"&&Oe(t.toString)&&t.toString()==="[object FormData]"))},GL=Je("URLSearchParams"),[HL,JL,qL,YL]=["ReadableStream","Request","Response","Headers"].map(Je),ZL=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ba(t,i,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),Jt(t))for(o=0,s=t.length;o<s;o++)i.call(null,t[o],o,t);else{const l=a?Object.getOwnPropertyNames(t):Object.keys(t),r=l.length;let n;for(o=0;o<r;o++)n=l[o],i.call(null,t[n],n,t)}}function tc(t,i){i=i.toLowerCase();const a=Object.keys(t);let o=a.length,s;for(;o-- >0;)if(s=a[o],i===s.toLowerCase())return s;return null}const Bt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ac=t=>!_a(t)&&t!==Bt;function ws(){const{caseless:t}=ac(this)&&this||{},i={},a=(o,s)=>{const l=t&&tc(i,s)||s;Ci(i[l])&&Ci(o)?i[l]=ws(i[l],o):Ci(o)?i[l]=ws({},o):Jt(o)?i[l]=o.slice():i[l]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ba(arguments[o],a);return i}const KL=(t,i,a,{allOwnKeys:o}={})=>(ba(i,(s,l)=>{a&&Oe(s)?t[l]=Xd(s,a):t[l]=s},{allOwnKeys:o}),t),XL=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),QL=(t,i,a,o)=>{t.prototype=Object.create(i.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),a&&Object.assign(t.prototype,a)},eO=(t,i,a,o)=>{let s,l,r;const n={};if(i=i||{},t==null)return i;do{for(s=Object.getOwnPropertyNames(t),l=s.length;l-- >0;)r=s[l],(!o||o(r,t,i))&&!n[r]&&(i[r]=t[r],n[r]=!0);t=a!==!1&&Cs(t)}while(t&&(!a||a(t,i))&&t!==Object.prototype);return i},tO=(t,i,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=i.length;const o=t.indexOf(i,a);return o!==-1&&o===a},aO=t=>{if(!t)return null;if(Jt(t))return t;let i=t.length;if(!ec(i))return null;const a=new Array(i);for(;i-- >0;)a[i]=t[i];return a},iO=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Cs(Uint8Array)),oO=(t,i)=>{const a=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=a.next())&&!o.done;){const s=o.value;i.call(t,s[0],s[1])}},sO=(t,i)=>{let a;const o=[];for(;(a=t.exec(i))!==null;)o.push(a);return o},lO=Je("HTMLFormElement"),rO=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,o){return a.toUpperCase()+o}),ic=(({hasOwnProperty:t})=>(i,a)=>t.call(i,a))(Object.prototype),nO=Je("RegExp"),oc=(t,i)=>{const a=Object.getOwnPropertyDescriptors(t),o={};ba(a,(s,l)=>{let r;(r=i(s,l,t))!==!1&&(o[l]=r||s)}),Object.defineProperties(t,o)},dO=t=>{oc(t,(i,a)=>{if(Oe(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(Oe(o)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},cO=(t,i)=>{const a={},o=s=>{s.forEach(l=>{a[l]=!0})};return Jt(t)?o(t):o(String(t).split(i)),a},pO=()=>{},mO=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function uO(t){return!!(t&&Oe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const hO=t=>{const i=new Array(10),a=(o,s)=>{if(Si(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[s]=o;const l=Jt(o)?[]:{};return ba(o,(r,n)=>{const c=a(r,s+1);!_a(c)&&(l[n]=c)}),i[s]=void 0,l}}return o};return a(t,0)},yO=Je("AsyncFunction"),fO=t=>t&&(Si(t)||Oe(t))&&Oe(t.then)&&Oe(t.catch),sc=((t,i)=>t?setImmediate:i?((a,o)=>(Bt.addEventListener("message",({source:s,data:l})=>{s===Bt&&l===a&&o.length&&o.shift()()},!1),s=>{o.push(s),Bt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Oe(Bt.postMessage)),gO=typeof queueMicrotask<"u"?queueMicrotask.bind(Bt):typeof process<"u"&&process.nextTick||sc,L={isArray:Jt,isArrayBuffer:Qd,isBuffer:IL,isFormData:vL,isArrayBufferView:ML,isString:RL,isNumber:ec,isBoolean:LL,isObject:Si,isPlainObject:Ci,isReadableStream:HL,isRequest:JL,isResponse:qL,isHeaders:YL,isUndefined:_a,isDate:OL,isFile:DL,isBlob:jL,isRegExp:nO,isFunction:Oe,isStream:UL,isURLSearchParams:GL,isTypedArray:iO,isFileList:WL,forEach:ba,merge:ws,extend:KL,trim:ZL,stripBOM:XL,inherits:QL,toFlatObject:eO,kindOf:_i,kindOfTest:Je,endsWith:tO,toArray:aO,forEachEntry:oO,matchAll:sO,isHTMLForm:lO,hasOwnProperty:ic,hasOwnProp:ic,reduceDescriptors:oc,freezeMethods:dO,toObjectSet:cO,toCamelCase:rO,noop:pO,toFiniteNumber:mO,findKey:tc,global:Bt,isContextDefined:ac,isSpecCompliantForm:uO,toJSONObject:hO,isAsyncFn:yO,isThenable:fO,setImmediate:sc,asap:gO};function te(t,i,a,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),a&&(this.config=a),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}L.inherits(te,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:L.toJSONObject(this.config),code:this.code,status:this.status}}});const lc=te.prototype,rc={};["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(t=>{rc[t]={value:t}}),Object.defineProperties(te,rc),Object.defineProperty(lc,"isAxiosError",{value:!0}),te.from=(t,i,a,o,s,l)=>{const r=Object.create(lc);return L.toFlatObject(t,r,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),te.call(r,t.message,i,a,o,s),r.cause=t,r.name=t.name,l&&Object.assign(r,l),r};const _O=null;function ks(t){return L.isPlainObject(t)||L.isArray(t)}function nc(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function dc(t,i,a){return t?t.concat(i).map(function(o,s){return o=nc(o),!a&&s?"["+o+"]":o}).join(a?".":""):i}function bO(t){return L.isArray(t)&&!t.some(ks)}const SO=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(t,i,a){if(!L.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,a=L.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,f){return!L.isUndefined(f[d])});const o=a.metaTokens,s=a.visitor||p,l=a.dots,r=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(i);if(!L.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(L.isDate(d))return d.toISOString();if(!n&&L.isBlob(d))throw new te("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(d)||L.isTypedArray(d)?n&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function p(d,f,u){let g=d;if(d&&!u&&typeof d=="object"){if(L.endsWith(f,"{}"))f=o?f:f.slice(0,-2),d=JSON.stringify(d);else if(L.isArray(d)&&bO(d)||(L.isFileList(d)||L.endsWith(f,"[]"))&&(g=L.toArray(d)))return f=nc(f),g.forEach(function(C,k){!(L.isUndefined(C)||C===null)&&i.append(r===!0?dc([f],k,l):r===null?f:f+"[]",c(C))}),!1}return ks(d)?!0:(i.append(dc(u,f,l),c(d)),!1)}const y=[],m=Object.assign(SO,{defaultVisitor:p,convertValue:c,isVisitable:ks});function h(d,f){if(!L.isUndefined(d)){if(y.indexOf(d)!==-1)throw Error("Circular reference detected in "+f.join("."));y.push(d),L.forEach(d,function(u,g){(!(L.isUndefined(u)||u===null)&&s.call(i,u,L.isString(g)?g.trim():g,f,m))===!0&&h(u,f?f.concat(g):[g])}),y.pop()}}if(!L.isObject(t))throw new TypeError("data must be an object");return h(t),i}function cc(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Es(t,i){this._pairs=[],t&&wi(t,this,i)}const pc=Es.prototype;pc.append=function(t,i){this._pairs.push([t,i])},pc.toString=function(t){const i=t?function(a){return t.call(this,a,cc)}:cc;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function CO(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mc(t,i,a){if(!i)return t;const o=a&&a.encode||CO;L.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let l;if(s?l=s(i,a):l=L.isURLSearchParams(i)?i.toString():new Es(i,a).toString(o),l){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class wO{constructor(){this.handlers=[]}use(i,a,o){return this.handlers.push({fulfilled:i,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){L.forEach(this.handlers,function(a){a!==null&&i(a)})}}const uc=wO,hc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kO=typeof URLSearchParams<"u"?URLSearchParams:Es,EO=typeof FormData<"u"?FormData:null,VO=typeof Blob<"u"?Blob:null,xO={isBrowser:!0,classes:{URLSearchParams:kO,FormData:EO,Blob:VO},protocols:["http","https","file","blob","url","data"]},Vs=typeof window<"u"&&typeof document<"u",xs=typeof navigator=="object"&&navigator||void 0,TO=Vs&&(!xs||["ReactNative","NativeScript","NS"].indexOf(xs.product)<0),NO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BO=Vs&&window.location.href||"http://localhost",FO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vs,hasStandardBrowserEnv:TO,hasStandardBrowserWebWorkerEnv:NO,navigator:xs,origin:BO},Symbol.toStringTag,{value:"Module"})),Te={...FO,...xO};function PO(t,i){return wi(t,new Te.classes.URLSearchParams,Object.assign({visitor:function(a,o,s,l){return Te.isNode&&L.isBuffer(a)?(this.append(o,a.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},i))}function $O(t){return L.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function zO(t){const i={},a=Object.keys(t);let o;const s=a.length;let l;for(o=0;o<s;o++)l=a[o],i[l]=t[l];return i}function yc(t){function i(a,o,s,l){let r=a[l++];if(r==="__proto__")return!0;const n=Number.isFinite(+r),c=l>=a.length;return r=!r&&L.isArray(s)?s.length:r,c?(L.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!n):((!s[r]||!L.isObject(s[r]))&&(s[r]=[]),i(a,o,s[r],l)&&L.isArray(s[r])&&(s[r]=zO(s[r])),!n)}if(L.isFormData(t)&&L.isFunction(t.entries)){const a={};return L.forEachEntry(t,(o,s)=>{i($O(o),s,a,0)}),a}return null}function AO(t,i,a){if(L.isString(t))try{return(i||JSON.parse)(t),L.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const Ts={transitional:hc,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",o=a.indexOf("application/json")>-1,s=L.isObject(t);if(s&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(yc(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return PO(t,this.formSerializer).toString();if((l=L.isFileList(t))||a.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return wi(l?{"files[]":t}:t,r&&new r,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),AO(t)):t}],transformResponse:[function(t){const i=this.transitional||Ts.transitional,a=i&&i.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(a&&!this.responseType||o)){const s=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?te.from(l,te.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],t=>{Ts.headers[t]={}});const Ns=Ts,IO=L.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"]),MO=t=>{const i={};let a,o,s;return t&&t.split(`
|
|
20
|
+
*/const we={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"}},wd={itemsToShow:{default:we.itemsToShow,type:Number},itemsToScroll:{default:we.itemsToScroll,type:Number},wrapAround:{default:we.wrapAround,type:Boolean},throttle:{default:we.throttle,type:Number},snapAlign:{default:we.snapAlign,validator(t){return["start","end","center","center-even","center-odd"].includes(t)}},transition:{default:we.transition,type:Number},breakpoints:{default:we.breakpoints,type:Object},autoplay:{default:we.autoplay,type:Number},pauseAutoplayOnHover:{default:we.pauseAutoplayOnHover,type:Boolean},modelValue:{default:void 0,type:Number},mouseDrag:{default:we.mouseDrag,type:Boolean},touchDrag:{default:we.touchDrag,type:Boolean},dir:{default:we.dir,validator(t){return["rtl","ltr"].includes(t)}},i18n:{default:we.i18n,type:Object},settings:{default(){return{}},type:Object}};function sz({config:t,slidesCount:i}){const{snapAlign:a,wrapAround:o,itemsToShow:s=1}=t;if(o)return Math.max(i-1,0);let l;switch(a){case"start":l=i-s;break;case"end":l=i-1;break;case"center":case"center-odd":l=i-Math.ceil((s-.5)/2);break;case"center-even":l=i-Math.ceil(s/2);break;default:l=0;break}return Math.max(l,0)}function lz({config:t,slidesCount:i}){const{wrapAround:a,snapAlign:o,itemsToShow:s=1}=t;let l=0;if(a||s>i)return l;switch(o){case"start":l=0;break;case"end":l=s-1;break;case"center":case"center-odd":l=Math.floor((s-1)/2);break;case"center-even":l=Math.floor((s-2)/2);break;default:l=0;break}return l}function ds({val:t,max:i,min:a}){return i<a?t:Math.min(Math.max(t,a),i)}function rz({config:t,currentSlide:i,slidesCount:a}){const{snapAlign:o,wrapAround:s,itemsToShow:l=1}=t;let r=i;switch(o){case"center":case"center-odd":r-=(l-1)/2;break;case"center-even":r-=(l-2)/2;break;case"end":r-=l-1;break}return s?r:ds({val:r,max:a-l,min:0})}function kd(t){return t?t.reduce((i,a)=>{var o;return a.type===e.Fragment?[...i,...kd(a.children)]:((o=a.type)===null||o===void 0?void 0:o.name)==="CarouselSlide"?[...i,a]:i},[]):[]}function cs({val:t,max:i,min:a=0}){return t>i?cs({val:t-(i+1),max:i,min:a}):t<a?cs({val:t+(i+1),max:i,min:a}):t}function nz(t,i){let a;return i?function(...o){const s=this;a||(t.apply(s,o),a=!0,setTimeout(()=>a=!1,i))}:t}function dz(t,i){let a;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{t(...o),a=null},i)}}function cz(t="",i={}){return Object.entries(i).reduce((a,[o,s])=>a.replace(`{${o}}`,String(s)),t)}var pz=e.defineComponent({name:"ARIA",setup(){const t=e.inject("config",e.reactive(Object.assign({},we))),i=e.inject("currentSlide",e.ref(0)),a=e.inject("slidesCount",e.ref(0));return()=>e.h("div",{class:["carousel__liveregion","carousel__sr-only"],"aria-live":"polite","aria-atomic":"true"},cz(t.i18n.itemXofY,{currentSlide:i.value+1,slidesCount:a.value}))}}),mz=e.defineComponent({name:"Carousel",props:wd,setup(t,{slots:i,emit:a,expose:o}){var s;const l=e.ref(null),r=e.ref([]),n=e.ref(0),c=e.ref(0),p=e.reactive(Object.assign({},we));let y=Object.assign({},we),m;const h=e.ref((s=t.modelValue)!==null&&s!==void 0?s:0),d=e.ref(0),f=e.ref(0),u=e.ref(0),g=e.ref(0);let C,k;e.provide("config",p),e.provide("slidesCount",c),e.provide("currentSlide",h),e.provide("maxSlide",u),e.provide("minSlide",g),e.provide("slideWidth",n);function U(){m=Object.assign({},t.breakpoints),y=Object.assign(Object.assign(Object.assign({},y),t),{i18n:Object.assign(Object.assign({},y.i18n),t.i18n),breakpoints:void 0}),A(y)}function q(){if(!m||!Object.keys(m).length)return;const K=Object.keys(m).map(be=>Number(be)).sort((be,lt)=>+lt-+be);let ke=Object.assign({},y);K.some(be=>{const lt=window.matchMedia(`(min-width: ${be}px)`).matches;return lt&&(ke=Object.assign(Object.assign({},ke),m[be])),lt}),A(ke)}function A(K){Object.entries(K).forEach(([ke,be])=>p[ke]=be)}const v=dz(()=>{q(),Y()},16);function Y(){if(!l.value)return;const K=l.value.getBoundingClientRect();n.value=K.width/p.itemsToShow}function J(){c.value<=0||(f.value=Math.ceil((c.value-1)/2),u.value=sz({config:p,slidesCount:c.value}),g.value=lz({config:p,slidesCount:c.value}),p.wrapAround||(h.value=ds({val:h.value,max:u.value,min:g.value})))}e.onMounted(()=>{e.nextTick(()=>Y()),setTimeout(()=>Y(),1e3),q(),O(),window.addEventListener("resize",v,{passive:!0}),a("init")}),e.onUnmounted(()=>{k&&clearTimeout(k),C&&clearInterval(C),window.removeEventListener("resize",v,{passive:!0})});let x=!1;const T={x:0,y:0},S={x:0,y:0},F=e.reactive({x:0,y:0}),P=e.ref(!1),H=e.ref(!1),Z=()=>{P.value=!0},de=()=>{P.value=!1};function ae(K){["INPUT","TEXTAREA","SELECT"].includes(K.target.tagName)||(x=K.type==="touchstart",x||K.preventDefault(),!(!x&&K.button!==0||W.value)&&(T.x=x?K.touches[0].clientX:K.clientX,T.y=x?K.touches[0].clientY:K.clientY,document.addEventListener(x?"touchmove":"mousemove",E,!0),document.addEventListener(x?"touchend":"mouseup",V,!0)))}const E=nz(K=>{H.value=!0,S.x=x?K.touches[0].clientX:K.clientX,S.y=x?K.touches[0].clientY:K.clientY;const ke=S.x-T.x,be=S.y-T.y;F.y=be,F.x=ke},p.throttle);function V(){const K=p.dir==="rtl"?-1:1,ke=Math.sign(F.x)*.4,be=Math.round(F.x/n.value+ke)*K;if(be&&!x){const lt=el=>{el.stopPropagation(),window.removeEventListener("click",lt,!0)};window.addEventListener("click",lt,!0)}z(h.value-be),F.x=0,F.y=0,H.value=!1,document.removeEventListener(x?"touchmove":"mousemove",E,!0),document.removeEventListener(x?"touchend":"mouseup",V,!0)}function O(){!p.autoplay||p.autoplay<=0||(C=setInterval(()=>{p.pauseAutoplayOnHover&&P.value||G()},p.autoplay))}function $(){C&&(clearInterval(C),C=null),O()}const W=e.ref(!1);function z(K){const ke=p.wrapAround?K:ds({val:K,max:u.value,min:g.value});h.value===ke||W.value||(a("slide-start",{slidingToIndex:K,currentSlideIndex:h.value,prevSlideIndex:d.value,slidesCount:c.value}),W.value=!0,d.value=h.value,h.value=ke,k=setTimeout(()=>{if(p.wrapAround){const be=cs({val:ke,max:u.value,min:0});be!==h.value&&(h.value=be,a("loop",{currentSlideIndex:h.value,slidingToIndex:K}))}a("update:modelValue",h.value),a("slide-end",{currentSlideIndex:h.value,prevSlideIndex:d.value,slidesCount:c.value}),W.value=!1,$()},p.transition))}function G(){z(h.value+p.itemsToScroll)}function j(){z(h.value-p.itemsToScroll)}const _={slideTo:z,next:G,prev:j};e.provide("nav",_),e.provide("isSliding",W);const b=e.computed(()=>rz({config:p,currentSlide:h.value,slidesCount:c.value}));e.provide("slidesToScroll",b);const w=e.computed(()=>{const K=p.dir==="rtl"?-1:1,ke=b.value*n.value*K;return{transform:`translateX(${F.x-ke}px)`,transition:`${W.value?p.transition:0}ms`,margin:p.wrapAround?`0 -${c.value*n.value}px`:"",width:"100%"}});function D(){U(),q(),J(),Y(),$()}Object.keys(wd).forEach(K=>{["modelValue"].includes(K)||e.watch(()=>t[K],D)}),e.watch(()=>t.modelValue,K=>{K!==h.value&&z(Number(K))}),e.watch(c,J),a("before-init"),U();const _e={config:p,slidesCount:c,slideWidth:n,next:G,prev:j,slideTo:z,currentSlide:h,maxSlide:u,minSlide:g,middleSlide:f};o({updateBreakpointsConfigs:q,updateSlidesData:J,updateSlideWidth:Y,initDefaultConfigs:U,restartCarousel:D,slideTo:z,next:G,prev:j,nav:_,data:_e});const st=i.default||i.slides,De=i.addons,Oi=e.reactive(_e);return()=>{const K=kd(st==null?void 0:st(Oi)),ke=(De==null?void 0:De(Oi))||[];K.forEach((tl,al)=>tl.props.index=al);let be=K;if(p.wrapAround){const tl=K.map((il,Va)=>e.cloneVNode(il,{index:-K.length+Va,isClone:!0,key:`clone-before-${Va}`})),al=K.map((il,Va)=>e.cloneVNode(il,{index:K.length+Va,isClone:!0,key:`clone-after-${Va}`}));be=[...tl,...K,...al]}r.value=K,c.value=Math.max(K.length,1);const lt=e.h("ol",{class:"carousel__track",style:w.value,onMousedownCapture:p.mouseDrag?ae:null,onTouchstartPassiveCapture:p.touchDrag?ae:null},be),el=e.h("div",{class:"carousel__viewport"},lt);return e.h("section",{ref:l,class:{carousel:!0,"is-sliding":W.value,"is-dragging":H.value,"is-hover":P.value,"carousel--rtl":p.dir==="rtl"},dir:p.dir,"aria-label":p.i18n.ariaGallery,tabindex:"0",onMouseenter:Z,onMouseleave:de},[el,ke,e.h(pz)])}}}),Ed;(function(t){t.arrowUp="arrowUp",t.arrowDown="arrowDown",t.arrowRight="arrowRight",t.arrowLeft="arrowLeft"})(Ed||(Ed={}));var uz=e.defineComponent({name:"CarouselSlide",props:{index:{type:Number,default:1},isClone:{type:Boolean,default:!1}},setup(t,{slots:i}){const a=e.inject("config",e.reactive(Object.assign({},we))),o=e.inject("currentSlide",e.ref(0)),s=e.inject("slidesToScroll",e.ref(0)),l=e.inject("isSliding",e.ref(!1)),r=()=>t.index===o.value,n=()=>t.index===o.value-1,c=()=>t.index===o.value+1,p=()=>{const y=Math.floor(s.value),m=Math.ceil(s.value+a.itemsToShow-1);return t.index>=y&&t.index<=m};return()=>{var y;return e.h("li",{style:{width:`${100/a.itemsToShow}%`},class:{carousel__slide:!0,"carousel__slide--clone":t.isClone,"carousel__slide--visible":p(),"carousel__slide--active":r(),"carousel__slide--prev":n(),"carousel__slide--next":c(),"carousel__slide--sliding":l.value},"aria-hidden":!p()},(y=i.default)===null||y===void 0?void 0:y.call(i))}}});const hz=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},yz=t=>(e.pushScopeId("data-v-54620d25"),t=t(),e.popScopeId(),t),fz={class:"gsc-carousel"},gz={key:0},_z=yz(()=>e.createElementVNode("div",null,"no hay",-1)),bz=[_z],Sz={class:"gsc-carousel__2d__slides"},Cz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},wz=["fill"],kz={width:"9",height:"18",viewBox:"0 0 9 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ez=["fill"],Vz={class:"gsc-carousel__2d__navigation"},xz={width:"8",height:"15",viewBox:"0 0 8 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tz=["stroke"],Nz={key:1,class:"gsc-carousel__2d__navigation__pagination"},Bz=["onClick"],Fz={width:"7",height:"15",viewBox:"0 0 7 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pz=["stroke"],$z={__name:"GSC-Carousel",props:{currentItemIndex:{type:Number,default:0},items:{type:Array,default:()=>[]},is3d:{type:Boolean,default:!1},isPaginationVisible:{type:Boolean,default:!1},areNavigationArrowsVisible:{type:Boolean,default:!0},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},navigationHeight:{type:Number,default:4},navigationBorderRadius:{type:Number,default:4},navigationColor:{type:String,default:"rgba(255, 255, 255, 0.4)"},navigationActiveColor:{type:String,default:"#cbee6b"},navigationActiveWidth:{type:Number,default:30},arrowsColor:{type:String,default:"#cbee6b"},arrowsMaxWidth:{type:String,default:"20px"},wrapAround:{type:Boolean,default:!1},itemsToShow:{type:Number,default:1},isMainSlidePriority:{type:Boolean,default:!1},areSlidesArrowsVisible:{type:Boolean,default:!1},slideLeftArrowBackgroundImage:{type:String,default:"linear-gradient(to right, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},slideRightArrowBackgroundImage:{type:String,default:"linear-gradient(to left, rgba(13, 29, 41, 1), rgba(0, 0, 0, 0))"},areSlidesArrowsRounded:{type:Boolean,default:!1},slidesArrowsLeftAndRight:{type:String,default:"20px"},secondarySlidesOpacity:{type:Number,default:.8},marginTop:{type:String,default:"0"}},emits:["input","update:currentItemIndex"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(u=>({"2c72d674":t.slideLeftArrowBackgroundImage,"90a63f40":t.slidesArrowsLeftAndRight,"2627d097":t.slideRightArrowBackgroundImage,"1904d43f":t.marginTop,cfb58986:t.secondarySlidesOpacity}));const s=e.ref(null),l=e.ref({}),r=e.ref(0),n=e.ref(!1);e.watch(s,u=>{u&&n.value?(n.value=!1,c(o.items)):u&&u.slideTo&&u.slideTo(r.value)},{deep:!0}),e.watch(()=>o.currentItemIndex,u=>{r.value!==u&&h(u)}),e.watch(()=>o.defaultItemByIndex,u=>{r.value!==u&&h(u)}),e.watch(()=>o.items,u=>{s.value?c(u):n.value=!0},{immediate:!0});function c(u){u&&u.length&&s.value&&setTimeout(()=>{if(o.defaultItemByProp){const g=o.items.findIndex(C=>C[o.defaultItemByProp.propName]===o.defaultItemByProp.value);g!==-1?(r.value=g,l.value=u[g]):(r.value=0,l.value=u[0])}else r.value=o.defaultItemByIndex,l.value=u[o.defaultItemByIndex];s.value.slideTo&&s.value.slideTo(r.value),l.value&&r.value===0&&a("input",{selectedItem:l.value,selectedItemIndex:r.value})},500)}function p(){s.value&&s.value.next()}function y(){s.value&&s.value.prev()}function m(){s.value&&s.value.updateSlideWidth()}function h(u){s.value&&s.value.slideTo(u)}function d(u){s.value.slideTo(u)}function f(u){const g=u.slidingToIndex<0?o.items.length-1:u.slidingToIndex===o.items.length?0:u.slidingToIndex;r.value=g,l.value=o.items[g],a("update:currentItemIndex",g),a("input",{selectedItem:l.value,selectedItemIndex:r.value})}return i({prev:y,next:p,updateSlideWidth:m,slideTo:h}),(u,g)=>(e.openBlock(),e.createElementBlock("div",fz,[o.is3d?(e.openBlock(),e.createElementBlock("div",gz,bz)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["gsc-carousel__2d",{"main-slide-priority":t.isMainSlidePriority}])},[e.createElementVNode("div",Sz,[e.createVNode(e.unref(mz),{ref_key:"carousel2d",ref:s,"items-to-show":t.itemsToShow,"wrap-around":t.wrapAround,onSlideStart:f},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(C,k)=>(e.openBlock(),e.createBlock(e.unref(uz),{key:k},{default:e.withCtx(()=>[e.renderSlot(u.$slots,"default",{item:C},void 0,!0)]),_:2},1024))),128))]),_:3},8,["items-to-show","wrap-around"])]),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__arrow-left",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:g[0]||(g[0]=C=>s.value.prev())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",Cz,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.10399 9L8.62342 15.4393C9.12552 16.0251 9.12552 16.9749 8.62342 17.5607C8.12132 18.1464 7.30725 18.1464 6.80514 17.5607L0.376575 10.0607C-0.125528 9.47487 -0.125528 8.52512 0.376575 7.93934L6.80515 0.439339C7.30725 -0.146447 8.12132 -0.146447 8.62342 0.43934C9.12553 1.02513 9.12553 1.97487 8.62342 2.56066L3.10399 9Z",fill:t.arrowsColor},null,8,wz)]))],2)],4)):e.createCommentVNode("",!0),t.areSlidesArrowsVisible&&t.items.length>1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-carousel__2d__arrow-right",style:e.normalizeStyle("max-width:"+t.arrowsMaxWidth+"!important"),onClick:g[1]||(g[1]=C=>p())},[e.createElementVNode("div",{class:e.normalizeClass(["gsc-carousel__2d__slide-button",{rounded:t.areSlidesArrowsRounded}])},[(e.openBlock(),e.createElementBlock("svg",kz,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.89601 9L0.376575 2.56066C-0.125528 1.97487 -0.125528 1.02513 0.376575 0.439339C0.878675 -0.146447 1.69275 -0.146447 2.19486 0.43934L8.62343 7.93934C9.12553 8.52513 9.12553 9.47487 8.62343 10.0607L2.19486 17.5607C1.69275 18.1464 0.878675 18.1464 0.376575 17.5607C-0.125528 16.9749 -0.125528 16.0251 0.376575 15.4393L5.89601 9Z",fill:t.arrowsColor},null,8,Ez)]))],2)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",Vz,[t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gsc-carousel__2d__navigation__arrow-left",onClick:g[2]||(g[2]=C=>y())},[(e.openBlock(),e.createElementBlock("svg",xz,[e.createElementVNode("path",{d:"M6.72998 13.894L1.46621 8.63028C0.84457 8.00863 0.84457 6.9914 1.46621 6.36976L6.72998 1.10599",stroke:o.arrowsColor},null,8,Tz)]))])):e.createCommentVNode("",!0),t.isPaginationVisible?(e.openBlock(),e.createElementBlock("div",Nz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(C,k)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${k}`,class:"gsc-carousel__2d__navigation__pagination__item",style:e.normalizeStyle({height:`${o.navigationHeight}px`,width:`${r.value===k?o.navigationActiveWidth:o.navigationActiveWidth/2}px`,borderRadius:`${o.navigationBorderRadius}px`,backgroundColor:`${r.value===k?o.navigationActiveColor:o.navigationColor}`,transition:"all 0.1s ease-in-out"}),onClick:U=>d(k)},null,12,Bz))),128))])):e.createCommentVNode("",!0),t.areNavigationArrowsVisible?(e.openBlock(),e.createElementBlock("div",{key:2,class:"gsc-carousel__2d__navigation__arrow-right",onClick:g[3]||(g[3]=C=>s.value.next())},[(e.openBlock(),e.createElementBlock("svg",Fz,[e.createElementVNode("path",{d:"M0.72998 1.10599L5.99375 6.36975C6.61539 6.9914 6.61539 8.00863 5.99375 8.63027L0.72998 13.894",stroke:o.arrowsColor},null,8,Pz)]))])):e.createCommentVNode("",!0)])],2))]))}},Vd=hz($z,[["__scopeId","data-v-54620d25"]]),ct={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"},ps={components:{GSCCarousel:Vd,GSCLeaders:a$,GSCRowTable:as,GSCTableHeader:Qo,GSCExpandedInfo:ns},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return this.type!==0&&(!this.filtersProp||Object.keys(this.filtersProp).length===0)?(this.changeStateLoading(!1),[]):Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,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,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],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"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{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]}[t]||[]},getCoordinatePointPerCategory(t){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}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p,h=t.player_id;let d=[],f=this.isTeam?t.id:this.filterTeam;h?this.isTeam?f=h:(d=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?f=t.id:(d=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:f||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p;let h=[],d=this.isTeam?t.id:this.filterTeam;this.isTeam?d=t.id:(h=[t.id],n=n.filter(u=>!u.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:d||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",f)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await me.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,p=n.teamName[0].acronym,y=a[n.teamName[0].team_id].name,m=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,d=this.positions[n.numberPositionId-1].name,f=n.countryId[0].nationality_id,u=n.effectiveness,g=n.min,C=n.games,k=n.date;n.arrayNationalities.forEach(U=>{l.add(U.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:c,team:p,teamname:y,teamid:m,position:h,positionfull:d,effectiveness:u,country:f,games_played:C,minutes_played:g,nationalityId:g,date:k,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.type==0?this.filtersSelect:this.filtersProp),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!c.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(c.numberPositionId))return!1;if(i.arrayAgeRange){const p=c.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&c.date<r||i.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},xd=()=>{e.useCssVars(t=>({"1d255951":t.borderRadius,"32c72d27":t.borderWidth,"31b02ec4":t.borderColor}))},Td=ps.setup;ps.setup=Td?(t,i)=>(xd(),Td(t,i)):xd;const pt=t=>(e.pushScopeId("data-v-0a43dc5c"),t=t(),e.popScopeId(),t),zz={ref:"myDivRef"},Az={class:"text"},Iz={class:"groupsLeague"},Mz={class:"row-table-carrousel"},Rz={key:1,class:"container-no-search-result"},Lz={key:0,class:"overlay-loading-top"},Oz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),Dz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),jz=[Oz,Dz],Wz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Uz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1)),vz={key:1,class:"container-no-search-result"},Gz={key:0,class:"overlay-loading-top"},Hz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),Jz=pt(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),qz=[Hz,Jz],Yz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Zz=pt(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function Kz(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",zz,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=m=>l.clickMore(a.category))},[e.createElementVNode("div",Az,[e.createElementVNode("div",Iz,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:m})=>[e.createElementVNode("div",Mz,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(h,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onMediadata:i[1]||(i[1]=f=>l.emitEventMedia(f,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onMediadata:i[2]||(i[2]=f=>l.emitEventMedia(f,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:" Liga MX "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:d%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:f=>l.viewprofile(f,h.teamid),background:d%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",Rz,[t.isloading?(e.openBlock(),e.createElementBlock("div",Lz,jz)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Wz,Uz],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(y,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),l.displayData.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(l.displayData,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==d.id&&t.expand,onMediadata:i[3]||(i[3]=u=>l.emitEventMediaFullTable(u,a.category,a.categoryName)),data:a.typeTable==0?{position:d.top,player_name:d.name,player_short:d.name_short,player_photo:d.img,total:d.total,id:d.id,player_age:d.age,team_abrev:d.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.teamid+".png",player_position:d.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+d.country+".jpg",player_games:d.games,player_min:d.minutes,league_name:" Liga MX "}:{position:d.top,team_logo:d.img,team_abrev:d.name,frequency:d.frecuency,promthistournament:d.game_avg,promlasttournament:d.game_avg_last_season,category:a.category,team_games:d.games_played,total:d.total,id:d.id},height:"71px",background:((h+1)*5+f)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","data","background","onExpand"]),t.expand&&t.playerexpand==d.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":d.positionId!==1,data:a.typeTable==0?{teams:d.teamname,age:d.age,dataofbirth:d.date,nationality:d.nationality,countryFlag:d.player_country_flag,position:d.position,positionfull:d.positionfull,games:d.games,min:d.minutes,goals:d.originalTotal||d.total,effectiveness:d.effectiveness,category:l.getCategoryName(a.category),id:d.id}:{position:d.positiontable,goals:d.goals,goals_received:d.goalsrecived,games_played:d.games_played,category:a.categoryName,effectiveness:d.effectiveness,xg:d.xg,total:d.originalTotal||d.total,category:l.getCategoryName(a.category),attendance:"-",id:d.id},onViewprofile:u=>l.viewprofile(u,d.teamid),background:f%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128)):(e.openBlock(),e.createElementBlock("div",vz,[t.isloading?(e.openBlock(),e.createElementBlock("div",Gz,qz)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Yz,Zz],64)):e.createCommentVNode("",!0)]))],64))],512)],2)}const Xz=Se(ps,[["render",Kz],["__scopeId","data-v-0a43dc5c"]]),Qz=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},eA={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)}}},tA=["src"],aA=["src"];function iA(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.activeClickLabel?(e.openBlock(),e.createElementBlock("div",{key:0,style:e.normalizeStyle(l.customStyle),class:"gsc-label",onClick:i[0]||(i[0]=(...r)=>l.btnLabel&&l.btnLabel(...r))},[e.createTextVNode(e.toDisplayString(a.numFilter)+" "+e.toDisplayString(a.textValue)+" ",1),a.iconVisible?(e.openBlock(),e.createElementBlock("img",{key:0,style:e.normalizeStyle(l.customIcon),class:"icon",src:a.icon},null,12,tA)):e.createCommentVNode("",!0)],4)):(e.openBlock(),e.createElementBlock("div",{key:1,class:"gsc-label",style:e.normalizeStyle(l.customStyle)},[e.createTextVNode(e.toDisplayString(a.numFilter)+" "+e.toDisplayString(a.textValue)+" ",1),a.iconVisible?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:i[1]||(i[1]=(...r)=>l.btnClose&&l.btnClose(...r)),style:e.normalizeStyle(l.customIcon),class:"icon",src:a.icon},null,12,aA)):e.createCommentVNode("",!0)],4))])}const Nd=Qz(eA,[["render",iA],["__scopeId","data-v-42ff544a"]]);function oA(t){const i=e.ref({width:0,height:0});function a(){const o=t.value.getBoundingClientRect();i.value.width=o.width,i.value.height=o.height}return e.onMounted(()=>{a(),window.addEventListener("resize",a)}),e.onUnmounted(()=>{window.removeEventListener("resize",a)}),{elementSize:i}}const sA=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ms={name:"ScrollableContainer",props:{backgroundColor:{type:String,default:"#0D1D29"},pxScroll:{type:Number,default:100},arrows:{type:Boolean,default:!0},arrowsHideOnNoScroll:{type:Boolean,default:!1},arrowsScrollHide:{type:Boolean,default:!1},arrowsColor:{type:String,default:"#CBEE6B"},arrowsHeight:{type:Number,default:15},arrowsWidth:{type:Number,default:15},arrowsPadding:{type:Number,default:5},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},height:{type:String,default:"100%"}},data(){return{showLeftArrow:!1,showRightArrow:!0,intervalid1:""}},mounted(){this.getScroll(),this.arrowsHideOnNoScroll&&window.addEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&this.listenerLoad()},beforeUnmount(){this.arrowsHideOnNoScroll&&window.removeEventListener("resize",this.resizeSlider),this.arrowsHideOnNoScroll&&clearInterval(this.intervalid1)},computed:{getViewBox(){return`-2 0 ${this.arrowsWidth} ${this.arrowsHeight}`},hideShowLeftArrow(){let t="";return this.arrowsPosition=="absolute"?t="leftAbsolute":t="leftRelative",this.arrowsScrollHide?this.showLeftArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t},hideShowRightArrow(){let t="";return this.arrowsPosition=="absolute"?t="rightAbsolute":t="rightRelative",this.arrowsScrollHide?this.showRightArrow?t+=" showArrowSlide":t+=" hideArrowSlide":t+=" showArrowSlide",t}},methods:{scrollLeft(){this.$refs.content.scrollLeft-=this.pxScroll},scrollRight(){this.$refs.content.scrollLeft+=this.pxScroll},getScroll(){let t=0;this.arrowsPosition=="relative"?t=this.$refs.content.scrollWidth-this.$el.clientWidth+this.arrowsMargin*2+this.arrowsWidth*4:t=this.$refs.content.scrollWidth-this.$el.clientWidth,this.$refs.content.scrollLeft==0?this.showLeftArrow=!1:this.showLeftArrow=!0,t>0&&(this.$refs.content.scrollLeft==t?this.showRightArrow=!1:this.showRightArrow=!0),this.arrowsHideOnNoScroll&&this.$refs.content.clientWidth===this.$refs.content.scrollWidth&&(this.showRightArrow=!1)},resizeSlider(){this.getScroll();let t;clearTimeout(t),t=setTimeout(this.getScroll,1e3)},listenerLoad(){this.intervalid1=setInterval((function(){var t=this.$el.clientWidth,i=this.$refs.content.scrollWidth;i>0&&t>0&&(i>t?(this.showRightArrow=!0,clearInterval(this.intervalid1)):clearInterval(this.intervalid1))}).bind(this),3e3)}}},Bd=()=>{e.useCssVars(t=>({"42d3dba6":t.backgroundColor,"4de5d2cf":t.height,"67bafa7b":t.arrowsPosition,"61e1032e":t.arrowsPadding+"px","79a4ac00":t.arrowsBackground,"6b8355c6":t.arrowsHeight*2+"px","29a58368":t.arrowsWidth*2+"px","3622fa64":t.arrowsRadius,"1ba101fe":t.arrowsBorder,"0bafb5e6":t.arrowsMargin+"px","423a44b8":t.arrowsContainerBgL,"423a44be":t.arrowsContainerBgR,"10b117ee":t.scrollColor}))},Fd=ms.setup;ms.setup=Fd?(t,i)=>(Bd(),Fd(t,i)):Bd;const lA={ref:"gscScrollableContainer",class:"scrollable-container"},rA={class:"scrollable-arrows"},nA=["width","height","viewBox"],dA=["stroke"],cA={class:"scrollable-wrapper"},pA={class:"scrollable-arrows"},mA=["width","height","viewBox"],uA=["stroke"];function hA(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",lA,[a.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",l.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...r)=>l.scrollLeft&&l.scrollLeft(...r))},[e.createElementVNode("div",rA,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M6.36523 13.788L1.10146 8.52429C0.479824 7.90265 0.479824 6.88541 1.10147 6.26377L6.36523 1",stroke:a.arrowsColor},null,8,dA)],8,nA))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...r)=>l.getScroll&&l.getScroll(...r))},[e.createElementVNode("div",cA,[e.renderSlot(t.$slots,"default",{},void 0,!0)])],544),a.arrows?(e.openBlock(),e.createElementBlock("div",{key:1,id:"arrows-container-right",class:e.normalizeClass(["arrows-container",l.hideShowRightArrow]),onClick:i[2]||(i[2]=(...r)=>l.scrollRight&&l.scrollRight(...r))},[e.createElementVNode("div",pA,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:l.getViewBox,fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M0.634765 1.21195L5.89853 6.47571C6.52018 7.09735 6.52018 8.11459 5.89853 8.73623L0.634766 14",stroke:a.arrowsColor},null,8,uA)],8,mA))])],2)):e.createCommentVNode("",!0)],512)}const yA=sA(ms,[["render",hA],["__scopeId","data-v-b548a08d"]]),fA=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},us={components:{GSCSlider:yA},props:{arrow:{type:Boolean,required:!0},buttons:{type:Array,required:!0},width:{type:String,default:"300px"},height:{type:String,default:"80px"},fontSize:{type:String,default:"16px"},colorFont:{type:String,default:"#ffffff"},backgroundOptionActive:{type:String,default:"#0d1d29"},colorOptionActive:{type:String,default:"#cbee6b"},colorOptionDisable:{type:String,default:"gray"},backgroundOptionDisable:{type:String,default:"#0d1d29"},fontFamily:{type:String,default:"Poppins-Semibold"},borderWidth:{type:String,default:"3px"},borderRadius:{type:String,default:"0px"},selectedOption:{type:String,default:""},type:{type:Number,default:0},borderWidthContainer:{type:String,default:"1px"},background:{type:String,default:"#0d1d29"},borderColorContainer:{type:String,default:"#505355"},pxScroll:{type:Number,default:100},scrollColor:{type:String,default:"#c3e569"},arrowsPosition:{type:String,default:"relative"},arrowsScrollHide:{type:Boolean,default:!1},arrowsBackground:{type:String,default:"#0D1D29"},arrowsContainerBgL:{type:String,default:"#0D1D29"},arrowsContainerBgR:{type:String,default:"#0D1D29"},arrowsMargin:{type:Number,default:10},arrowsRadius:{type:String,default:"0%"},arrowsBorder:{type:String,default:"none"}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=oA(t);return{myDivRef:t,elementSize:i}},methods:{clickEmitEvent(t){this.$emit("input",t)},customGrid(t){var i={};return t.width>768?i={fontSize:"16px"}:t.width>480?i={fontSize:"14px"}:i={fontSize:"12px"},i}}},Pd=()=>{e.useCssVars(t=>({cff4a118:t.fontSize,"42aab7f6":t.borderWidth,d29bcbd2:t.fontFamily,df6c5a9c:t.background,"09b32862":t.borderRadius,"8c0d6daa":t.borderWidthContainer,e8a86fa4:t.borderColorContainer,"179494da":t.colorOptionActive,cea5647c:t.width}))},$d=us.setup;us.setup=$d?(t,i)=>(Pd(),$d(t,i)):Pd;const gA={ref:"myDivRef"},_A={key:0,class:"gs-switch-container"},bA=["onClick"],SA={key:1,class:"gs-switch-container-type"},CA=["onClick"],wA={key:2,class:"gs-switch-container-carousel"},kA=["onClick"];function EA(t,i,a,o,s,l){const r=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",gA,[a.type==0?(e.openBlock(),e.createElementBlock("div",_A,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container__control__button-option",style:e.normalizeStyle([{height:a.height},a.selectedOption==n?{borderColor:a.colorOptionActive,color:a.colorFont+"!important",background:a.backgroundOptionActive}:{borderColor:a.colorOptionDisable,color:"grey !important"}]),key:c,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,bA))),128))],4),e.renderSlot(t.$slots,a.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",SA,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([l.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"gs-switch-container-type__control__button-option-type",style:e.normalizeStyle([{height:a.height},a.selectedOption==n?{borderColor:a.colorOptionActive,color:a.colorFont+"!important",background:a.backgroundOptionActive}:{borderColor:a.colorOptionDisable,borderWidth:"0px",borderWidth:"0px !important",color:"grey !important",background:a.backgroundOptionDisable}]),key:c,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,CA))),128))],4)])):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",wA,[e.createVNode(r,{arrows:a.arrow,"background-color":a.background,"px-scroll":a.pxScroll,"scroll-color":a.scrollColor,"arrows-position":a.arrowsPosition,arrowsScrollHide:a.arrowsScrollHide,"arrows-background":a.arrowsBackground,"arrows-container-bg-l":a.arrowsContainerBgL,"arrows-container-bg-r":a.arrowsContainerBgR,"arrows-margin":a.arrowsMargin,"arrows-radius":a.arrowsRadius,"arrows-border":a.arrowsBorder},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,c)=>(e.openBlock(),e.createElementBlock("div",{class:"button-option-multi",style:e.normalizeStyle([{height:a.height},a.selectedOption==n?{borderColor:a.colorOptionActive,color:a.colorFont+"!important",background:a.backgroundOptionActive}:{borderColor:a.colorOptionDisable,color:"grey !important"}]),key:c,onClick:p=>(a.selectedOption=n,l.clickEmitEvent(n))},e.toDisplayString(n),13,kA))),128))]),_:1},8,["arrows","background-color","px-scroll","scroll-color","arrows-position","arrowsScrollHide","arrows-background","arrows-container-bg-l","arrows-container-bg-r","arrows-margin","arrows-radius","arrows-border"])])):e.createCommentVNode("",!0)],512)}const hs=fA(us,[["render",EA],["__scopeId","data-v-8a86dfaf"]]),ie={All:1,YEAR:2,AGE_RANGE:3,NATIONALITY:4,POSITION:5,ELIGIBILITY:6},VA=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},xA={key:1},TA={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NA=["fill"],BA={key:0,class:"checkbox__teams"},FA={class:"checkbox__teams__logo"},PA=["src"],$A={class:"checkbox__teams__logo"},zA=["src"],AA={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",xA,[(e.openBlock(),e.createElementBlock("svg",TA,[e.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:t.boxValueColor},null,8,NA)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",BA,[e.createElementVNode("div",FA,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,PA)]),e.createElementVNode("div",$A,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,zA)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},oe=VA(AA,[["__scopeId","data-v-b6f124d8"]]),le=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},IA={class:"container"},MA={key:0,width:"11",height:"2",viewBox:"0 0 11 2",fill:"none",xmlns:"http://www.w3.org/2000/svg"},RA=["fill"],LA={key:1,width:"11",height:"11",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},OA=["fill"],DA={__name:"IconExpand",props:{height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},isExpanded:{type:Boolean,default:!1},expandIconColor:{type:String,default:"white"},collapseIconColor:{type:String,default:"#D9D9D9"}},setup(t){return e.useCssVars(i=>({"563e5242":t.width,a529e9a4:t.height})),(i,a)=>(e.openBlock(),e.createElementBlock("div",IA,[t.isExpanded?(e.openBlock(),e.createElementBlock("svg",MA,[e.createElementVNode("rect",{width:"11",height:"1.7",fill:t.collapseIconColor},null,8,RA)])):(e.openBlock(),e.createElementBlock("svg",LA,[e.createElementVNode("path",{d:"M11 6.28571H6.28571V11H4.71429V6.28571H0V4.71429H4.71429V0H6.28571V4.71429H11V6.28571Z",fill:t.expandIconColor},null,8,OA)]))]))}},Nt=le(DA,[["__scopeId","data-v-166b6226"]]),ga=t=>(e.pushScopeId("data-v-259c96ad"),t=t(),e.popScopeId(),t),jA={class:"productivity"},WA={class:"productivity__body__offensive"},UA={class:"productivity__body__title"},vA={class:"productivity__body__title__info"},GA={class:"number-of-categories"},HA={class:"productivity__body__categories"},JA={class:"productivity__body__defensive-possession"},qA={class:"block"},YA={class:"productivity__body__title"},ZA={class:"productivity__body__title__info"},KA={class:"number-of-categories"},XA={class:"productivity__body__categories"},QA={class:"block"},eI={class:"productivity__body__title"},tI={class:"productivity__body__title__info"},aI={class:"number-of-categories"},iI={class:"productivity__body__categories"},oI={key:0,class:"productivity__footer"},sI={class:"productivity__footer__offenses"},lI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__title"}," ¿Debemos quitarle puntos a jugadores que hayan cometido las siguientes infracciones? ",-1)),rI={class:"productivity__footer__offenses__table"},nI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row"},[e.createElementVNode("div"),e.createElementVNode("div",null,"Si"),e.createElementVNode("div",null,"No")],-1)),dI={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},cI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Faltas cometidas",-1)),pI={class:"productivity__footer__offenses__table__row has-bottom-border has-padding"},mI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas amarillas",-1)),uI={class:"productivity__footer__offenses__table__row has-padding"},hI=ga(()=>e.createElementVNode("div",{class:"productivity__footer__offenses__table__row__text"},"Tarjetas rojas",-1)),yI={__name:"TemplateProductivity",props:{componentWidth:{type:Number,default:0},productivityCategories:{type:Object,required:!0},numberOfCategoriesSelected:{type:Number,default:0},areMaxCategoriesReached:{type:Boolean,default:!1},areMinCategoriesReached:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1}},emits:["update:offensesConditions"],setup(t,{emit:i}){const a=t,o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),n=e.computed(()=>({"--template-columns":a.isExpansionMode?"1fr":a.isForTemplateForm?"30% 1fr":"1fr 1fr","--flex-direction-defensive-possession":a.isForTemplateForm?"row-reverse":"column","--gap-defensive-possession":a.isForTemplateForm?"32px":"0","--width-block":a.isForTemplateForm?"unset":"100%"})),c=e.computed(()=>a.productivityCategories.offensive.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),p=e.computed(()=>a.productivityCategories.defensive.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),y=e.computed(()=>a.productivityCategories.possession.categories.reduce((f,u)=>(u.isSelected&&f++,f),0)),m=e.computed(()=>a.isFromTemplates||a.isForTemplateForm);e.watch(()=>a.productivityCategories,f=>{r.value.areYellowCardsSelected=f.offensesConditions.areYellowCardsSelected,r.value.areRedCardsSelected=f.offensesConditions.areRedCardsSelected,r.value.areFoulsCommittedSelected=f.offensesConditions.areFoulsCommittedSelected},{deep:!0,immediate:!0}),e.watch(r,f=>{i("update:offensesConditions",f)},{deep:!0,immediate:!0});function h(f,u){u.isSelected=f,setTimeout(()=>{u.priority=a.numberOfCategoriesSelected},10)}function d(f){f==="offensive"?o.value=!o.value:f==="defensive"?s.value=!s.value:f==="possession"&&(l.value=!l.value)}return(f,u)=>(e.openBlock(),e.createElementBlock("div",jA,[e.createElementVNode("div",{class:"productivity__body",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",WA,[e.createElementVNode("div",UA,[e.createElementVNode("div",vA,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.offensive.title),1),e.createElementVNode("span",GA,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:u[0]||(u[0]=g=>d("offensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",HA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.offensive.categories,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"productivity__checkbox"},[e.createVNode(e.unref(oe),{label:g.name,fontFamily:t.fontFamily,"model-value":g.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&g.isSelected,"box-value":m.value?null:g.priority||0,"onUpdate:modelValue":C=>h(C,g)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]])]),e.createElementVNode("div",JA,[e.createElementVNode("div",qA,[e.createElementVNode("div",YA,[e.createElementVNode("div",ZA,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.defensive.title),1),e.createElementVNode("span",KA,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:u[1]||(u[1]=g=>d("defensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",XA,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.defensive.categories,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"productivity__checkbox"},[e.createVNode(e.unref(oe),{label:g.name,fontFamily:t.fontFamily,"model-value":g.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&g.isSelected,"box-value":m.value?null:g.priority||0,"onUpdate:modelValue":C=>h(C,g)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]])]),e.createElementVNode("div",QA,[e.createElementVNode("div",eI,[e.createElementVNode("div",tI,[e.createElementVNode("span",null,e.toDisplayString(t.productivityCategories.possession.title),1),e.createElementVNode("span",aI,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"productivity__body__title__expand-button",onClick:u[2]||(u[2]=g=>d("possession"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",iI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.productivityCategories.possession.categories,g=>(e.openBlock(),e.createElementBlock("div",{key:g.id,class:"productivity__checkbox"},[e.createVNode(e.unref(oe),{label:g.name,fontFamily:t.fontFamily,"model-value":g.isSelected,"avoid-to-check":t.areMaxCategoriesReached,"avoid-interaction":t.areMinCategoriesReached&&g.isSelected,"box-value":m.value?null:g.priority||0,"onUpdate:modelValue":C=>h(C,g)},null,8,["label","fontFamily","model-value","avoid-to-check","avoid-interaction","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])])],4),m.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",oI,[e.createElementVNode("div",sI,[lI,e.createElementVNode("div",rI,[nI,e.createElementVNode("div",dI,[cI,e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":r.value.areFoulsCommittedSelected,"avoid-interaction":r.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":u[3]||(u[3]=g=>r.value.areFoulsCommittedSelected=g)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":!r.value.areFoulsCommittedSelected,"avoid-interaction":!r.value.areFoulsCommittedSelected,"is-box-only":"","onUpdate:modelValue":u[4]||(u[4]=g=>r.value.areFoulsCommittedSelected=!g)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",pI,[mI,e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":r.value.areYellowCardsSelected,"avoid-interaction":r.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":u[5]||(u[5]=g=>r.value.areYellowCardsSelected=g)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":!r.value.areYellowCardsSelected,"avoid-interaction":!r.value.areYellowCardsSelected,"is-box-only":"","onUpdate:modelValue":u[6]||(u[6]=g=>r.value.areYellowCardsSelected=!g)},null,8,["model-value","avoid-interaction"])])]),e.createElementVNode("div",uI,[hI,e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":r.value.areRedCardsSelected,"avoid-interaction":r.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":u[7]||(u[7]=g=>r.value.areRedCardsSelected=g)},null,8,["model-value","avoid-interaction"])]),e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":!r.value.areRedCardsSelected,"avoid-interaction":!r.value.areRedCardsSelected,"is-box-only":"","onUpdate:modelValue":u[8]||(u[8]=g=>r.value.areRedCardsSelected=!g)},null,8,["model-value","avoid-interaction"])])])])])]))]))}},fI=le(yI,[["__scopeId","data-v-259c96ad"]]),mt=t=>(e.pushScopeId("data-v-feb56031"),t=t(),e.popScopeId(),t),gI={class:"details__header"},_I=mt(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),bI={class:"details__header__checkbox"},SI={class:"details__body"},CI={class:"details__body__playing-as"},wI=["onClick"],kI={class:"details__header"},EI=mt(()=>e.createElementVNode("div",{class:"details__header__title"},[e.createTextVNode(" En: "),e.createElementVNode("span",{class:"details__header__title-sm"},"(Elige el lapso de tiempo)")],-1)),VI={class:"details__header__checkbox"},xI={class:"details__body"},TI=mt(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),NI={class:"details__body__game-section"},BI=["onClick"],FI={class:"details__body"},PI=mt(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),$I={class:"details__body__game-section"},zI=["onClick"],AI={key:0,class:"details_body"},II=mt(()=>e.createElementVNode("div",{class:"details__body__title"},"Tipo de estadística",-1)),MI={class:"radios"},RI={class:"radio-input"},LI={class:"radio-input__radio"},OI=mt(()=>e.createElementVNode("label",{for:"total"},"Totales",-1)),DI={class:"radio-input"},jI={class:"radio-input__radio"},WI=mt(()=>e.createElementVNode("label",{for:"average"},"Promedio por partido",-1)),UI={class:"radio-input"},vI={class:"radio-input__radio"},GI=mt(()=>e.createElementVNode("label",{for:"every"},"Cada 90 mins.",-1)),HI={__name:"TemplateDetails",props:{isPlayingAsHidden:{type:Boolean,default:!1},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}]},statisticType:{type:String,default:"average"},isStatisticTypeVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},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"}},emits:["change-statistic-type"],setup(t,{emit:i}){const a=t;e.useCssVars(h=>({"91d1a498":t.buttonsBackgroundColor,"562e8f56":t.buttonsTextColor,63400359:t.buttonsBorderWidth,"622904f6":t.buttonsBorderColor,"2e90fc4c":t.buttonsBackgroundColorActive,"0684cfbb":t.buttonsTextColorActive,"7e90c7bf":t.buttonsBorderWidthActive,"42275f9c":t.buttonsBorderColorActive}));const o=e.ref("");e.watch(()=>a.statisticType,h=>{o.value=h},{immediate:!0}),e.watch(()=>o.value,h=>{a.statisticType=h,i("change-statistic-type",h)});const s=e.computed(()=>a.playingAs.every(h=>h.isSelected)),l=e.computed(()=>a.gameSections.every(h=>h.isSelected)),r=e.computed(()=>a.gameSections.reduce((h,d)=>(d.value<=3?h.firstHalf.push(d):h.secondHalf.push(d),h),{firstHalf:[],secondHalf:[]})),n=e.computed(()=>({"--border-radius-first-button":`${a.buttonsBorderRadius} 0 0 ${a.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${a.buttonsBorderRadius} ${a.buttonsBorderRadius} 0`}));function c(h){h?a.playingAs.forEach(d=>{d.isSelected=!0}):a.playingAs.forEach((d,f)=>{d.isSelected=f===0})}function p(h){a.playingAs.filter(d=>d.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function y(h){a.gameSections.filter(d=>d.isSelected).length===1&&h.isSelected||(h.isSelected=!h.isSelected)}function m(h){h?a.gameSections.forEach(d=>{d.isSelected=!0}):a.gameSections.forEach((d,f)=>{d.isSelected=f===0})}return(h,d)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(n.value)},[e.withDirectives(e.createElementVNode("div",gI,[_I,e.createElementVNode("div",bI,[e.createVNode(e.unref(oe),{label:"Todos",fontFamily:t.fontFamily,"model-value":s.value,"onUpdate:modelValue":c},null,8,["fontFamily","model-value"])])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.withDirectives(e.createElementVNode("div",SI,[e.createElementVNode("div",CI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.playingAs,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${u}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:g=>p(f)},e.toDisplayString(f.name),11,wI))),128))])],512),[[e.vShow,!t.isPlayingAsHidden]]),e.createElementVNode("div",kI,[EI,e.createElementVNode("div",VI,[e.createVNode(e.unref(oe),{label:"Todos",fontFamily:t.fontFamily,"model-value":l.value,"onUpdate:modelValue":m},null,8,["fontFamily","model-value"])])]),e.createElementVNode("div",xI,[TI,e.createElementVNode("div",NI,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.firstHalf,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${u}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:g=>y(f)},e.toDisplayString(f.text),11,BI))),128))])]),e.createElementVNode("div",FI,[PI,e.createElementVNode("div",$I,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value.secondHalf,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${u}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:g=>y(f)},e.toDisplayString(f.text),11,zI))),128))])]),t.isStatisticTypeVisible?(e.openBlock(),e.createElementBlock("div",AI,[II,e.createElementVNode("div",MI,[e.createElementVNode("div",RI,[e.createElementVNode("div",LI,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[0]||(d[0]=f=>o.value=f),type:"radio",id:"total",value:"total",name:"statistic"},null,512),[[e.vModelRadio,o.value]]),OI])]),e.createElementVNode("div",DI,[e.createElementVNode("div",jI,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[1]||(d[1]=f=>o.value=f),type:"radio",id:"average",value:"average",name:"statistic"},null,512),[[e.vModelRadio,o.value]]),WI])]),e.createElementVNode("div",UI,[e.createElementVNode("div",vI,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":d[2]||(d[2]=f=>o.value=f),type:"radio",id:"every",value:"every90",name:"statistic"},null,512),[[e.vModelRadio,o.value]]),GI])])])])):e.createCommentVNode("",!0)],4))}},JI=le(HI,[["__scopeId","data-v-feb56031"]]),qI={class:"scroll-container"},YI={__name:"ScrollContainer",props:{width:{type:String,default:"100%"},height:{type:String,default:"100%"}},setup(t){return e.useCssVars(i=>({"6aab424d":t.height,39848040:t.width})),(i,a)=>(e.openBlock(),e.createElementBlock("div",qI,[e.renderSlot(i.$slots,"default",{},void 0,!0)]))}},zd=le(YI,[["__scopeId","data-v-218f5976"]]),ZI={class:"tournaments"},KI={key:0,class:"tournaments__tournament"},XI={__name:"TemplateTournaments",props:{tournaments:{type:Array,default:()=>[]},fontFamily:{type:String,default:"'Poppins-Regular'"},isOneTournamentOnly:{type:Boolean,default:!1}},emits:["change-filters-selected","update:filters"],setup(t,{emit:i}){const a=t,o=e.ref(!1),s=e.computed(()=>a.tournaments.filter(n=>n.isSelected).length);e.watch(()=>a.tournaments,n=>{const c=n.filter(p=>p.isSelected);o.value=c.length===n.length,i("change-filters-selected",c.length),i("update:filters",a.tournaments)},{immediate:!0,deep:!0});function l(n){a.tournaments.forEach((c,p)=>{c.isSelected=n||(p!==0?n:!0)})}function r(n,c){a.isOneTournamentOnly&&a.tournaments.forEach(p=>{p.isSelected=!1}),c.isSelected=n}return(n,c)=>(e.openBlock(),e.createElementBlock("div",ZI,[e.createVNode(zd,{height:"200px"},{default:e.withCtx(()=>[t.isOneTournamentOnly?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",KI,[e.createVNode(e.unref(oe),{"model-value":o.value,label:"Todas las ligas",fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":l},null,8,["model-value","fontFamily"])])),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.tournaments,p=>(e.openBlock(),e.createElementBlock("div",{key:p.id||p._id,class:"tournaments__tournament"},[e.createVNode(e.unref(oe),{"model-value":p.isSelected,label:p.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":s.value===1&&p.isSelected,"onUpdate:modelValue":y=>r(y,p)},null,8,["model-value","label","fontFamily","avoid-interaction","onUpdate:modelValue"])]))),128))]),_:1})]))}},QI=le(XI,[["__scopeId","data-v-f2d7cddf"]]),N={PLAYS:"plays",PRODUCTIVITY:"productivity",FIELD:"field",UNIVERSE:"universe",DETAILS:"details",TOURNAMENTS:"tournaments",PERSONAL_DATA:"personalData",PLAYS_TYPES:"playsTypes",GOLSTATS:"golstats",DISTANCE:"distance",RESULTS:"results",RESULTS_BY_TIME:"resultsByTime",VIDEOS:"videos",GAMES:"games",TAKEN_CORNERS:"takenCorners",HOW_WAS_CORNER:"howWasCorner",ZONE:"zone",WHAT_HAPPENED:"whatHappened"},eM={key:0,class:"plays-golstats__placeholder"},tM=["onClick"],aM={key:0,class:"plays-golstats__item__value"},iM={class:"plays-golstats__item__text"},oM={class:"plays-golstats__item__svg"},sM={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lM=["fill"],rM={__name:"TemplatePlaysTypeAndGolstats",props:{height:{type:String,default:"fit-content"},type:{type:String,default:""},categories:{type:Array,default:()=>[]},svgColor:{type:String,default:"#CBEE6B"},svgWidth:{type:Number,default:10},svgHeight:{type:Number,default:8}},emits:["change-filters-selected","update:filters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--grid-template-columns":a.type===N.PLAYS_TYPES?"1fr min-content":"min-content 1fr min-content","--svg-width":`${a.svgWidth}px`,"--svg-height":`${a.svgHeight}px`}));e.watch(()=>a.categories,l=>{const r=l.filter(n=>n.isSelected);i("update:filters",r)},{immediate:!0,deep:!0});function s(l){l.isSelected||(a.categories.forEach(r=>{r.isSelected=!1}),l.isSelected=!0,a.type===N.GOLSTATS&&i("change-filters-selected",l.value))}return(l,r)=>(e.openBlock(),e.createElementBlock("div",{class:"plays-golstats",style:e.normalizeStyle(o.value)},[e.createVNode(zd,{height:t.height},{default:e.withCtx(()=>[t.type===e.unref(N).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",eM," Elige un tipo de jugada para filtrar: ")):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.categories,(n,c)=>(e.openBlock(),e.createElementBlock("div",{key:`k${c}`,class:"plays-golstats__item",onClick:p=>s(n)},[t.type===e.unref(N).GOLSTATS?(e.openBlock(),e.createElementBlock("div",aM,e.toDisplayString(n.value),1)):e.createCommentVNode("",!0),e.createElementVNode("div",iM,e.toDisplayString(n.name),1),e.createElementVNode("div",oM,[e.withDirectives((e.openBlock(),e.createElementBlock("svg",sM,[e.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:t.svgColor},null,8,lM)],512)),[[e.vShow,n.isSelected]])])],8,tM))),128))]),_:1},8,["height"])],4))}},Ad=le(rM,[["__scopeId","data-v-af3c1673"]]),nM=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},ys={props:{textRight:{type:String,default:""},textRightColor:{type:String,default:"#FFFFFF"},textRightFontFamily:{type:String,default:"Poppins-Regular"},textRightFontSize:{type:String,default:"13px"},placeholder:{type:String,default:"Ingresar valor"},value:String,inputType:{type:String,default:"text"},width:{type:String,default:"100%"},height:{type:String,default:"30px"},backgroundColor:{type:String,default:"#2e3b46"},borderRadius:{type:String,default:"10px"},border:{type:String,default:"1px solid #bdc1c4"},color:{type:String,default:"#FFFFFF"},placeholderColor:{type:String,default:"#bdc1c4"},font:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"13px"},padding:{type:String,default:"11px"},isNumbersOnly:{type:Boolean,default:!1}},computed:{inputStyle(){return{width:this.width,height:this.height,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:this.border,color:this.color,fontFamily:this.font,fontSize:this.fontSize,placeholderColor:this.placeholderColor,paddingLeft:this.padding}}},methods:{updateInputValue(t){this.$emit("inputval",t.target.value)},onKeyDown(t){if(this.isNumbersOnly){const i=t.which?t.which:t.keyCode();i>31&&(i<48||i>57)&&t.preventDefault()}}}},Id=()=>{e.useCssVars(t=>({"53e1855a":t.textRightColor,da8ee600:t.textRightFontSize,"9fb876ba":t.textRightFontFamily}))},Md=ys.setup;ys.setup=Md?(t,i)=>(Id(),Md(t,i)):Id;const dM={class:"input-container"},cM=["type","placeholder","value"],pM={class:"right-text"};function mM(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",dM,[e.createElementVNode("input",{type:a.inputType,placeholder:a.placeholder,value:a.value,style:e.normalizeStyle(l.inputStyle),onKeydown:i[0]||(i[0]=(...r)=>l.onKeyDown&&l.onKeyDown(...r)),onInput:i[1]||(i[1]=(...r)=>l.updateInputValue&&l.updateInputValue(...r))},null,44,cM),e.createElementVNode("div",pM,e.toDisplayString(a.textRight),1)])}const Rd=nM(ys,[["render",mM],["__scopeId","data-v-b73049e7"]]),uM=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},fs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Ld=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Od=fs.setup;fs.setup=Od?(t,i)=>(Ld(),Od(t,i)):Ld;const hM=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),yM=["src"],fM={key:1,class:"text"},gM=["src"],_M={class:"stats"},bM=hM(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),SM={class:"numstats"},CM={class:"leyend"};function wM(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,yM)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",fM,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,gM)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",_M,[bM,e.createElementVNode("div",SM,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",CM,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const kM=uM(fs,[["render",wM],["__scopeId","data-v-f3ee6b2b"]]),EM={class:"gsc-dropdown__main-container__item-selected"},VM=["height","width"],xM=["stroke"],TM={key:1,width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},NM=["fill"],BM={class:"gsc-dropdown__items-container"},FM=["onClick"],PM={key:0,class:"gsc-dropdown__items-footer"},He={__name:"GSC-Dropdown",props:{modelValue:{type:[Object,Number,String],default:()=>null},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},fontSize:{type:String,default:"14px"},borderRadius:{type:Number,default:5},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},borderType:{type:String,default:"solid",validator:function(t){return["solid","dotted","dashed"].includes(t)}},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"black"},backgroundColor:{type:String,default:"grey"},color:{type:String,default:"black"},arrowColor:{type:String,default:"#CBEE6B"},items:{type:Array,default:()=>[]},defaultItemByIndex:{type:Number,default:0},defaultItemByProp:{type:Object,default:null,validator:t=>["propName","value"].every(i=>i in t)},listBackgroundColor:{type:String,default:"white"},hoverBackgroundColor:{type:String,default:"#f1f1f1"},listMarginTop:{type:String,default:"0"},listContainerPadding:{type:String,default:"0"},listItemPadding:{type:String,default:"10px 12px"},listItemMargin:{type:String,default:"0"},listHeight:{type:String,default:"fit-content"},listItemSelectedColor:{type:String,default:"white"},listItemSelectedBackgroundColor:{type:String,default:"#399cfd"},listItemColor:{type:String,default:"black"},listBorderRadius:{type:String,default:"0"},listBorderColor:{type:String,default:""},listBorderWidth:{type:Number,default:1},listItemBorderRadius:{type:String,default:"0"},listAlignment:{type:String,default:"left"},isListSameWidth:{type:Boolean,default:!1},isMultipleOption:{type:Boolean,default:!1},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:Number,default:1},isFooterVisible:{type:Boolean,default:!1},isDisabled:{type:Boolean,default:!1},onlyFirstTime:{type:Boolean,default:!1},iconType:{type:Number,default:1,validator:function(t){return[1,2].includes(t)}}},emits:["input","click-ready","update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref({}),s=e.ref(null),l=e.ref(a.isMultipleOption?-1:0),r=e.ref(!1);e.watch(()=>a.items,(d,f)=>{if(!a.modelValue&&(!a.onlyFirstTime||!f||!f.length)&&d&&d.length){if(a.defaultItemByProp){const u=a.items.findIndex(g=>g[a.defaultItemByProp.propName]===a.defaultItemByProp.value);u!==-1?(l.value=u,o.value=d[u]):(l.value=0,o.value=d[0])}else o.value=d[a.defaultItemByIndex];i("input",o.value)}},{immediate:!0}),e.watch(()=>a.modelValue,d=>{if(d){const f=a.items.findIndex(u=>typeof d=="object"?JSON.stringify(u)===JSON.stringify(d):u===d);f!==-1&&(l.value=f,o.value=a.items[f],i("update:modelValue",o.value))}},{immediate:!0});const n=e.computed(()=>({height:a.height,width:a.width,backgroundColor:a.backgroundColor,borderRadius:`${a.borderRadius}px`,border:`${a.borderType} ${a.borderWidth}px ${a.borderColor}`,color:a.color,"--hover-background-color":a.hoverBackgroundColor,"--list-container-padding":a.listContainerPadding,"--list-item-padding":a.listItemPadding,"--list-item-margin":a.listItemMargin,"--list-background-color":a.listBackgroundColor,"--list-height":a.listHeight,"--list-item-border-radius":a.listItemBorderRadius,"--list-item-selected-color":a.listItemSelectedColor,"--list-item-selected-background-color":a.listItemSelectedBackgroundColor,"--list-item-color":a.listItemColor,"--list-border-radius":`${a.listBorderRadius}`,"--list-border-color":a.listBorderColor,"--list-width":a.isListSameWidth?a.width:"fit-content","--list-border-width":`${a.listBorderWidth}px`,"--list-margin-top":a.listMarginTop,"--list-left":a.listAlignment==="left"?"0":"auto","--list-right":a.listAlignment==="right"?"0":"auto","--footer-border":`${a.footerBorderWidth}px solid ${a.footerBorderColor}`,"--dropdown-opacity":a.isDisabled?"0.5":"1","--dropdown-cursor":a.isDisabled?"not-allowed":"pointer","--dropdown-font-size":a.fontSize?a.fontSize:"14px"})),c=e.computed(()=>({height:`${a.arrowHeight}px`,width:`${a.arrowWidth}px`}));function p(){a.isDisabled||(r.value=!r.value)}function y(d){s.value&&!s.value.contains(d.target)&&(r.value=!1)}function m(d,f){a.isMultipleOption?l.value=-1:(l.value=f,r.value=!1),o.value=d,i("input",o.value),i("update:modelValue",o.value)}function h(){r.value=!1,i("click-ready")}return e.onMounted(()=>{document.addEventListener("click",y)}),e.onBeforeMount(()=>{document.removeEventListener("click",y)}),(d,f)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropDown",ref:s,class:"gsc-dropdown",style:e.normalizeStyle(n.value)},[e.createElementVNode("div",{class:"gsc-dropdown__main-container",style:e.normalizeStyle({"padding-right":`${t.arrowWidth+8}px`}),onClick:p},[e.createElementVNode("div",EM,[e.renderSlot(d.$slots,"default",{selectedItem:o.value})]),e.createElementVNode("div",{class:e.normalizeClass(["gsc-dropdown__main-container__icon",{"rotated-180":r.value}]),style:e.normalizeStyle(c.value)},[t.iconType===1?(e.openBlock(),e.createElementBlock("svg",{key:0,height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,xM)],8,VM)):(e.openBlock(),e.createElementBlock("svg",TM,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,NM)]))],6)],4),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",BM,[e.createElementVNode("div",null,[e.createElementVNode("div",{class:"gsc-dropdown__items",style:e.normalizeStyle({"margin-top":`${a.borderWidth}px`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(u,g)=>(e.openBlock(),e.createElementBlock("div",null,[e.withDirectives((e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["gsc-dropdown__items__item",{selected:g===l.value}]),key:g,onClick:C=>m(u,g)},[e.renderSlot(d.$slots,"availableItem",{item:u})],10,FM)),[[e.vShow,!u.isHidden]])]))),256))],4),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",PM,[e.createVNode(e.unref(kM),{"text-value":"Listo","border-color":"#cbee6b","font-size":"12px",width:"72px",height:"22px","border-radius":"62px","border-width":.8,onClick:h})])):e.createCommentVNode("",!0)])],512),[[e.vShow,r.value]])]),_:3})],4))}},ut={borderType:"solid",listBackgroundColor:"#2E3B46",listBorderColor:"rgba(255, 255, 255, 0.2)",listBorderRadius:"5px",height:"38px",borderWidth:.8,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#2E3B46",color:"white",listItemColor:"white",listItemSelectedBackgroundColor:"#2E3B46",arrowColor:"#fff",width:"100%",listHeight:"200px",isListSameWidth:!0,isFooterVisible:!0,hoverBackgroundColor:"#2E3B46",iconType:2},Ht=t=>(e.pushScopeId("data-v-b1fc2fa6"),t=t(),e.popScopeId(),t),$M={class:"universe"},zM=Ht(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe los minutos jugados",-1)),AM=Ht(()=>e.createElementVNode("div",{class:"universe__label"},"Igual o mayor que:",-1)),IM={class:"universe__inputs"},MM={class:"universe__inputs__input"},RM={class:"universe__inputs__checkbox"},LM=Ht(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Escribe el % de minutos jugados contra el total posible",-1)),OM=Ht(()=>e.createElementVNode("div",{class:"universe__label"},"Mayor que:",-1)),DM={class:"universe__inputs"},jM={class:"universe__inputs__input"},WM={class:"universe__inputs__checkbox"},UM=Ht(()=>e.createElementVNode("div",{class:"universe__sub-header"},"Selecciona el lapso de tiempo",-1)),vM=Ht(()=>e.createElementVNode("div",{class:"universe__label"},"Considerando los últimos:",-1)),GM={class:"universe__dropdown"},HM={class:"selected-item"},Dd=11,JM={__name:"TemplateUniverse",props:{universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},fontFamily:{type:String,default:"'Poppins-Regular'"}},emits:["update:universeFilters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref(!1),r=e.ref(!1),n=e.ref({statistics:{}});e.watch(()=>o.universeFilters,d=>{n.value={...d,lastMonths:d.selectedMonth?d.selectedMonth:d.lastMonths[Dd],statistics:{...d.statistics}}},{deep:!0,immediate:!0}),e.watch(()=>n,d=>{s.value=!d.value.minutesPlayed||Number(d.value.minutesPlayed)===0,l.value=!d.value.percentMinutesPlayed||Number(d.value.percentMinutesPlayed)===0,r.value=!d.value.lastMonths||Number(d.value.lastMonths)===0,a("update:universeFilters",d)},{deep:!0,immediate:!0});function c(d){n.value.minutesPlayed=d}function p(d){n.value.percentMinutesPlayed=d}function y(d,f){switch(f){case"minutes":s.value=d,d&&(n.value.minutesPlayed=0);break;case"percent":l.value=d,d&&(n.value.percentMinutesPlayed=0);break;case"months":r.value=d,d&&(n.value.lastMonths=0);break}}function m(){n.value={...o.universeFilters,lastMonths:o.universeFilters.lastMonths[Dd],statistics:{...o.universeFilters.statistics}}}function h(d){n.value.lastMonths=d}return i({resetFilters:m}),(d,f)=>(e.openBlock(),e.createElementBlock("div",$M,[zM,AM,e.createElementVNode("div",IM,[e.createElementVNode("div",MM,[e.createVNode(e.unref(Rd),{value:n.value.minutesPlayed,type:"text",inputmode:"numeric","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"Min","is-numbers-only":"",onInputval:c},null,8,["value"])]),e.createElementVNode("div",RM,[e.createVNode(e.unref(oe),{modelValue:s.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":f[0]||(f[0]=u=>y(u,"minutes"))},null,8,["modelValue","fontFamily"])])]),LM,OM,e.createElementVNode("div",DM,[e.createElementVNode("div",jM,[e.createVNode(e.unref(Rd),{value:n.value.percentMinutesPlayed,"input-type":"number","border-radius":"4px",border:"solid 0.8px #8ea2ab","text-right":"%","is-numbers-only":"",onInputval:p},null,8,["value"])]),e.createElementVNode("div",WM,[e.createVNode(e.unref(oe),{modelValue:l.value,label:"Indistinto",fontFamily:t.fontFamily,"box-position":"right","onUpdate:modelValue":f[1]||(f[1]=u=>y(u,"percent"))},null,8,["modelValue","fontFamily"])])]),UM,vM,e.createElementVNode("div",GM,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{items:t.universeFilters.lastMonths,"model-value":n.value.lastMonths,onInput:h}),{default:e.withCtx(({selectedItem:u})=>[e.createElementVNode("div",HM,e.toDisplayString(u)+" "+e.toDisplayString(u===1?"mes":"meses"),1)]),availableItem:e.withCtx(({item:u})=>[e.createElementVNode("div",null,e.toDisplayString(u)+" "+e.toDisplayString(u===1?"mes":"meses"),1)]),_:1},16,["items","model-value"])]),e.createCommentVNode("",!0),e.createCommentVNode("",!0)]))}},qM=le(JM,[["__scopeId","data-v-b1fc2fa6"]]),jd=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},YM={name:"MultiRangeSlider",props:{baseClassName:{type:String,default:"multi-range-slider"},min:{type:Number},max:{type:Number},minValue:{type:Number},maxValue:{type:Number},step:{type:Number,default:1},preventWheel:{type:Boolean,default:!1},ruler:{type:Boolean,default:!0},label:{type:Boolean,default:!0},labels:{type:Array},minCaption:{type:String},maxCaption:{type:String},rangeMargin:{type:Number}},data(){let t=this.labels||[],i=this.min===void 0?0:this.min,a=t.length?t.length-1:100,o=this.max===void 0?a:this.max,s=this.minValue===void 0?25:this.minValue;t.length&&this.minValue===void 0&&(s=1);let l=this.maxValue||75;if(t.length&&this.maxValue===void 0&&(l=t.length-2),o<=i)throw new Error("Invalid props min or max");if(s>l)throw new Error("Invalid props minValue or maxValue");let r=this.rangeMargin===void 0?this.step:this.rangeMargin,n=r%this.step;return n&&(r=r+this.step-n),{valueMin:s<i?i:s,valueMax:l>o?o:l,interVal:null,startX:null,mouseMoveCounter:null,barBox:null,barValue:0,rangeMarginValue:r}},methods:{onBarLeftClick(){this.valueMin-this.step>=this.minimum?this.valueMin-=this.step:this.valueMin=this.minimum},onInnerBarLeftClick(){this.valueMin+this.rangeMarginValue<this.valueMax&&(this.valueMin+=this.step)},onBarRightClick(){this.valueMax+this.step<=this.maximum?this.valueMax+=this.step:this.valueMax=this.maximum},onInnerBarRightClick(){this.valueMax-this.rangeMarginValue>this.valueMin&&(this.valueMax-=this.step)},onInputMinChange(t){let i=parseFloat(t.target.value);i<=this.valueMax-this.rangeMarginValue&&i>=this.minimum?this.valueMin=i:t.target.value=this.valueMin},onInputMaxChange(t){let i=parseFloat(t.target.value);i>=this.valueMin+this.rangeMarginValue&&i<=this.maximum?this.valueMax=i:t.target.value=this.valueMax},onLeftThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMin,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onLeftThumbMousemove),document.addEventListener("mouseup",this.onLeftThumbMouseup),document.addEventListener("touchmove",this.onLeftThumbMousemove),document.addEventListener("touchend",this.onLeftThumbMouseup)},onLeftThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let a=(i-this.startX)/this.barBox.width,o=this.barValue+(this.maximum-this.minimum)*a,s=o%this.step;o-=s,o<this.minimum?o=this.minimum:o>this.valueMax-this.rangeMarginValue&&(o=this.valueMax-this.rangeMarginValue),this.valueMin=o},onLeftThumbMouseup(){document.removeEventListener("mousemove",this.onLeftThumbMousemove),document.removeEventListener("mouseup",this.onLeftThumbMouseup),document.removeEventListener("touchmove",this.onLeftThumbMousemove),document.removeEventListener("touchend",this.onLeftThumbMouseup)},onRightThumbMousedown(t){if(t.preventDefault(),this.startX=t.clientX,t.type==="touchstart")if(t.touches.length===1)this.startX=t.touches[0].clientX;else return;this.mouseMoveCounter=0,this.barValue=this.valueMax,this.barBox=t.target.parentNode.getBoundingClientRect(),document.addEventListener("mousemove",this.onRightThumbMousemove),document.addEventListener("mouseup",this.onRightThumbMouseup),document.addEventListener("touchmove",this.onRightThumbMousemove),document.addEventListener("touchend",this.onRightThumbMouseup)},onRightThumbMousemove(t){this.mouseMoveCounter++;let i=t.clientX;t.type==="touchmove"&&(i=t.touches[0].clientX);let a=(i-this.startX)/this.barBox.width,o=this.barValue+(this.maximum-this.minimum)*a,s=o%this.step;o-=s,o<this.valueMin+this.rangeMarginValue?o=this.valueMin+this.rangeMarginValue:o>this.maximum&&(o=this.maximum),this.valueMax=o},onRightThumbMouseup(){document.removeEventListener("mousemove",this.onRightThumbMousemove),document.removeEventListener("mouseup",this.onRightThumbMouseup),document.removeEventListener("touchmove",this.onRightThumbMousemove),document.removeEventListener("touchend",this.onRightThumbMouseup)},onMouseWheel(t){if(this.preventWheel===!0||!t.shiftKey&&!t.ctrlKey)return;let i=this.step;t.deltaY<0&&(i=-i),t.shiftKey&&t.ctrlKey?this.valueMin+i>=this.minimum&&this.valueMax+i<=this.maximum&&(this.valueMin=this.valueMin+i,this.valueMax=this.valueMax+i):t.ctrlKey?(i=this.valueMax+i,i<this.valueMin+this.rangeMarginValue?i=this.valueMin+this.rangeMarginValue:i>this.maximum&&(i=this.maximum),this.valueMax=i):t.shiftKey&&(i=this.valueMin+i,i<this.minimum?i=this.minimum:i>this.valueMax-this.rangeMarginValue&&(i=this.valueMax-this.rangeMarginValue),this.valueMin=i)},triggerInput(){let t=0;this.step.toString().includes(".")&&(t=2);let i={min:this.minimum,max:this.maximum,minValue:parseFloat(this.valueMin.toFixed(t)),maxValue:parseFloat(this.valueMax.toFixed(t))};this.$emit("input",i)}},computed:{minimum(){return this.min===void 0?0:this.min},maximum(){let t=this.labels||[],i=t.length?t.length-1:100;return this.max===void 0?i:this.max},stepCount(){let t=this.labels||[];return t.length?t.length-1:Math.floor((this.maximum-this.minimum)/this.step)},subStepCount(){return(this.labels||[]).length&&this.step>1?(this.maximum-this.minimum)/this.step:0},barMin(){return(this.valueMin-this.minimum)/(this.maximum-this.minimum)*100},barMax(){return 100-(this.valueMax-this.minimum)/(this.maximum-this.minimum)*100},barMinVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMin||0).toFixed(t)},barMaxVal(){let t=0;return this.step.toString().includes(".")&&(t=2),(this.valueMax||100).toFixed(t)},scaleLabels(){let t=this.labels||[];return t.length===0&&(t=[],t.push(this.minimum),t.push(this.maximum)),t}},watch:{valueMin(){this.triggerInput()},valueMax(){this.triggerInput()},minValue(t){this.valueMin=t<this.minimum?this.minimum:t},maxValue(t){this.valueMax=t>this.maximum?this.maximum:t}},mounted(){}},ZM={class:"bar"},KM=["min","max","step","value"],XM={class:"caption"},QM={class:"min-caption"},eR={class:"bar-inner"},tR=["min","max","step","value"],aR={class:"caption"},iR={class:"max-caption"},oR={key:0,class:"ruler"},sR={key:1,class:"sub-ruler"},lR={key:2,class:"labels"};function rR(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass([a.baseClassName,s.rangeMarginValue===0?"zero-ranage-margin":""]),onMousewheel:i[10]||(i[10]=e.withModifiers((...r)=>l.onMouseWheel&&l.onMouseWheel(...r),["prevent","stop"]))},[e.createElementVNode("div",ZM,[e.createElementVNode("div",{class:"bar-left",style:e.normalizeStyle({width:l.barMin+"%"}),onClick:i[0]||(i[0]=(...r)=>l.onBarLeftClick&&l.onBarLeftClick(...r))},null,4),e.createElementVNode("input",{class:"input-type-range input-type-range-min",type:"range",min:l.minimum,max:l.maximum,step:a.step,value:s.valueMin,onInput:i[1]||(i[1]=e.withModifiers((...r)=>l.onInputMinChange&&l.onInputMinChange(...r),["stop","prevent"]))},null,40,KM),e.createElementVNode("div",{class:"thumb thumb-left",onMousedown:i[2]||(i[2]=(...r)=>l.onLeftThumbMousedown&&l.onLeftThumbMousedown(...r)),onTouchstart:i[3]||(i[3]=(...r)=>l.onLeftThumbMousedown&&l.onLeftThumbMousedown(...r))},[e.createElementVNode("div",XM,[e.createElementVNode("span",QM,e.toDisplayString(a.minCaption||l.barMinVal),1)])],32),e.createElementVNode("div",eR,[e.createElementVNode("div",{class:"bar-inner-left",onClick:i[4]||(i[4]=(...r)=>l.onInnerBarLeftClick&&l.onInnerBarLeftClick(...r))}),e.createElementVNode("div",{class:"bar-inner-right",onClick:i[5]||(i[5]=(...r)=>l.onInnerBarRightClick&&l.onInnerBarRightClick(...r))})]),e.createElementVNode("input",{class:"input-type-range input-type-range-max",type:"range",min:l.minimum,max:l.maximum,step:a.step,value:s.valueMax,onInput:i[6]||(i[6]=e.withModifiers((...r)=>l.onInputMaxChange&&l.onInputMaxChange(...r),["stop","prevent"]))},null,40,tR),e.createElementVNode("div",{class:"thumb thumb-right",onMousedown:i[7]||(i[7]=(...r)=>l.onRightThumbMousedown&&l.onRightThumbMousedown(...r)),onTouchstart:i[8]||(i[8]=(...r)=>l.onRightThumbMousedown&&l.onRightThumbMousedown(...r))},[e.createElementVNode("div",aR,[e.createElementVNode("span",iR,e.toDisplayString(a.maxCaption||l.barMaxVal),1)])],32),e.createElementVNode("div",{class:"bar-right",style:e.normalizeStyle({width:l.barMax+"%"}),onClick:i[9]||(i[9]=(...r)=>l.onBarRightClick&&l.onBarRightClick(...r))},null,4)]),a.ruler?(e.openBlock(),e.createElementBlock("div",oR,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.stepCount,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"ruler-rule"}))),128))])):e.createCommentVNode("",!0),l.subStepCount?(e.openBlock(),e.createElementBlock("div",sR,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.subStepCount,r=>(e.openBlock(),e.createElementBlock("div",{key:r,class:"ruler-sub-rule"}))),128))])):e.createCommentVNode("",!0),a.label?(e.openBlock(),e.createElementBlock("div",lR,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.scaleLabels,r=>(e.openBlock(),e.createElementBlock("div",{class:"label",key:r},e.toDisplayString(r),1))),128))])):e.createCommentVNode("",!0)],34)}const nR=jd(YM,[["render",rR]]),gs={components:{MultiRangeSlider:nR},props:{minLimit:{type:Number,default:10},maxLimit:{type:Number,default:100},minValue:{type:Number,default:10},maxValue:{type:Number,default:100},height:{type:String,default:"150px"},borderRadius:{type:String,default:"6px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:2},borderColor:{type:String,default:"#d9d9d9"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular"},fontFamilyValue:{type:String,default:"Poppins-Medium"},fontColorValue:{type:String,default:"#FFFFFF"},fontSizeValue:{type:String,default:"20px"},backgroundIndicador:{type:String,default:"rgb(22, 233, 40)"},heightIndicador:{type:String,default:"15px"},widthIndicador:{type:String,default:"15px"},marginTopIndicador:{type:String,default:"-8px"},borderColorIndicador:{type:String,default:"#FFFFFF"},borderWidthIndicador:{type:String,default:"3px"},lineInRangeColor:{type:String,default:"rgb(22, 233, 40)"},lineOutRangeColor:{type:String,default:"#c7c7c7"},minSuffix:{type:String,default:""},maxSuffix:{type:String,default:""}},data(){return{minValueLocal:0,maxValueLocal:0}},computed:{customStyle(){return{height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`}},customStyleText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}},customStyleValue(){return{color:this.fontColorValue,fontSize:this.fontSizeValue,fontFamily:`${this.fontFamilyValue} !important`}}},watch:{minValue:{handler(t){this.minValueLocal=t},immediate:!0},maxValue:{handler(t){this.maxValueLocal=t},immediate:!0}},methods:{onInput(t){this.minValueLocal=t.minValue,this.maxValueLocal=t.maxValue,this.$emit("input",t)}}},Wd=()=>{e.useCssVars(t=>({"318dc560":t.lineOutRangeColor,fcb35722:t.lineInRangeColor,"3edd517e":t.backgroundIndicador,"19ee7a09":t.widthIndicador,"482e6b68":t.heightIndicador,"48824d56":t.borderWidthIndicador,a51d4f50:t.borderColorIndicador,deb3b7b0:t.marginTopIndicador}))},Ud=gs.setup;gs.setup=Ud?(t,i)=>(Wd(),Ud(t,i)):Wd;const dR={class:"center"},cR={class:"bar-ref"},pR={class:"bar-ref-element-left"},mR={class:"bar-ref-element-right"};function uR(t,i,a,o,s,l){const r=e.resolveComponent("MultiRangeSlider");return e.openBlock(),e.createElementBlock("div",{class:"custom-range-slider",style:e.normalizeStyle(l.customStyle)},[e.createElementVNode("div",dR,[e.createElementVNode("div",cR,[e.createElementVNode("div",pR,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(l.customStyleText)},"De:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(l.customStyleValue)},e.toDisplayString(s.minValueLocal)+e.toDisplayString(a.minSuffix),5)]),e.createElementVNode("div",mR,[e.createElementVNode("div",{class:"text",style:e.normalizeStyle(l.customStyleText)},"A:",4),e.createElementVNode("div",{class:"value",style:e.normalizeStyle(l.customStyleValue)},e.toDisplayString(s.maxValueLocal)+e.toDisplayString(a.maxSuffix),5)])]),e.createVNode(r,{baseClassName:"multi-range-slider",min:a.minLimit,max:a.maxLimit,step:1,ruler:!1,label:!1,"min-value":s.minValueLocal,"max-value":s.maxValueLocal,"range-margin":0,onInput:l.onInput},null,8,["min","max","min-value","max-value","onInput"])])],4)}const vd=jd(gs,[["render",uR]]),hR={class:"template-distance"},yR={__name:"TemplateDistance",props:{distance:{type:Object,default:()=>({minLimit:5,maxLimit:30,minValue:5,maxValue:30})}},emits:["update:distanceFilters"],setup(t,{emit:i}){const a=t,o=e.ref({minValue:0,maxValue:0,minLimit:0,maxLimit:0});e.watch(()=>o.value,l=>{i("update:distanceFilters",l)},{deep:!0}),e.watch(()=>a.distance,l=>{o.value.minValue=l.minValue,o.value.maxValue=l.maxValue,o.value.minLimit=l.minLimit,o.value.maxLimit=l.maxLimit},{immediate:!0,deep:!0});function s(l){o.value.minValue=l.minValue,o.value.maxValue=l.maxValue}return(l,r)=>(e.openBlock(),e.createElementBlock("div",hR,[e.createVNode(e.unref(vd),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"12px","font-size":"12px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":o.value.minLimit,"max-limit":o.value.maxLimit,"min-value":o.value.minValue,"max-value":o.value.maxValue,"min-suffix":"m","max-suffix":"+",onInput:s},null,8,["min-limit","max-limit","min-value","max-value"])]))}},fR=t=>(e.pushScopeId("data-v-be32e3d8"),t=t(),e.popScopeId(),t),gR={class:"template-games"},_R={class:"template-games__header"},bR=fR(()=>e.createElementVNode("div",{class:"template-games__header__title"},"Partidos jugados:",-1)),SR={class:"template-games__header__all-games"},CR={__name:"TemplateGames",props:{gamesFilters:{type:Array,default:()=>[]}},emits:["update:gamesFilters"],setup(t,{emit:i}){const a=t,o=e.ref(!1),s=e.computed(()=>a.gamesFilters.filter(r=>r.isSelected).length);e.watch(()=>a.gamesFilters,r=>{i("update:gamesFilters",r)},{deep:!0}),e.watch(s,r=>{o.value=r===a.gamesFilters.length,i("update:gamesFilters",a.gamesFilters)},{immediate:!0});const l=r=>{r?a.gamesFilters.forEach(n=>{n.isSelected=r}):a.gamesFilters.forEach((n,c)=>{n.isSelected=c===0}),o.value=r};return(r,n)=>(e.openBlock(),e.createElementBlock("div",gR,[e.createElementVNode("div",_R,[bR,e.createElementVNode("div",SR,[e.createVNode(e.unref(oe),{modelValue:o.value,label:"Todos","box-position":"right","font-family":"Roboto-Regular, sans-serif","label-font-size":"12px","onUpdate:modelValue":l},null,8,["modelValue"])])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.gamesFilters,(c,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-games__game"},[e.createVNode(e.unref(oe),{modelValue:c.isSelected,"onUpdate:modelValue":y=>c.isSelected=y,label:c.label,"teams-ids":c.teamsIds,"avoid-interaction":s.value===1&&c.isSelected},null,8,["modelValue","onUpdate:modelValue","label","teams-ids","avoid-interaction"])]))),128))]))}},wR=le(CR,[["__scopeId","data-v-be32e3d8"]]),kR=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},_s={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Gd=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},Hd=_s.setup;_s.setup=Hd?(t,i)=>(Gd(),Hd(t,i)):Gd;const ER=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),VR=["src"],xR={key:1,class:"text"},TR=["src"],NR={class:"stats"},BR=ER(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),FR={class:"numstats"},PR={class:"leyend"};function $R(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,VR)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",xR,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,TR)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",NR,[BR,e.createElementVNode("div",FR,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",PR,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const gi=kR(_s,[["render",$R],["__scopeId","data-v-f3ee6b2b"]]),zR=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},bs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},Jd=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},qd=bs.setup;bs.setup=qd?(t,i)=>(Jd(),qd(t,i)):Jd;const AR=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),IR=["src"],MR={key:1,class:"text"},RR=["src"],LR={class:"stats"},OR=AR(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),DR={class:"numstats"},jR={class:"leyend"};function WR(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,IR)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",MR,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,RR)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",LR,[OR,e.createElementVNode("div",DR,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",jR,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const UR=zR(bs,[["render",WR],["__scopeId","data-v-f3ee6b2b"]]),vR=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},GR={key:1},HR={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},JR=["fill"],qR={key:0,class:"checkbox__teams"},YR={class:"checkbox__teams__logo"},ZR=["src"],KR={class:"checkbox__teams__logo"},XR=["src"],QR={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",GR,[(e.openBlock(),e.createElementBlock("svg",HR,[e.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:t.boxValueColor},null,8,JR)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",qR,[e.createElementVNode("div",YR,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,ZR)]),e.createElementVNode("div",KR,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,XR)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},eL=vR(QR,[["__scopeId","data-v-b6f124d8"]]),tL=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Ss={components:{GSCButton:UR,GSCCheckbox:eL},data(){return{update:0,all:!1,refreshBtn14:0,refreshBtn24:0,refreshBtn34:0,refreshBtn44:0,sectors:Array.from({length:16},(t,i)=>({sector:i+1,active:!1})),lastUpdatedValue:[]}},props:{backgroundColor:{type:String,default:"#2e3b46"},heightContainer:{type:String,default:"340px"},widthContainer:{type:String,default:"455px"},heightField:{type:Number,default:230},widthField:{type:Number,default:350},heightFieldGrid:{type:String,default:"230px"},widthFieldGrid:{type:String,default:"350px"},backgroundSectorActive:{type:String,default:"#cbee6b"},backgroundSectorDisabled:{type:String,default:"#2e3b46"},borderWidth:{type:Number,default:1},opacitySector:{type:Number,default:.5},borderColor:{type:String,default:"#FFFFFF"},colorLineField:{type:String,default:"#bfc2c5"},borderWidthLineField:{type:Number,default:2},value:{type:Array,default:()=>[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]},title:{type:String,default:"Pase(s) desde la(s) zona(s):"},titleFontSize:{type:String,default:"14px"}},watch:{value:{deep:!0,immediate:!0,handler(t){const i=t.sort();JSON.stringify(i)!==JSON.stringify(this.lastUpdatedValue)&&(this.lastUpdatedValue=i,this.sectors.forEach((a,o)=>{a.active=t.includes(o+1),this.validateField(o)}),this.$emit("update:modelValue",t))}},sectors:{handler(t){var i=[];for(let a=0;a<t.length;a++)t[a].active&&i.push(a+1);this.$emit("update:modelValue",i)},deep:!0}},computed:{translx(){var t=0;return this.widthField>305?t=this.widthField-305:this.widthField==268&&(t=-36),t},transly(){var t=0;return this.heightField>195?(t=this.heightField-195,t=t/2):this.heightField==180&&(t=-7),t},translxcircle(){var t=0;return this.widthField>305?(t=this.widthField-305,t=t/2):this.widthField==268&&(t=-18),t}},methods:{clickAll(t){if(t){for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!0,this.validateField(i);this.status14=!0,this.status24=!0,this.status34=!0,this.status44=!0,this.refreshBtn14+=1,this.refreshBtn24+=1,this.refreshBtn34+=1,this.refreshBtn44+=1}else for(let i=0;i<this.sectors.length;i++)this.sectors[i].active=!1,this.validateField(i),this.status14=!1,this.status24=!1,this.status34=!1,this.status44=!1,this.refreshBtn14=0,this.refreshBtn24=0,this.refreshBtn34=0,this.refreshBtn44=0},selectSector(t){var i=0;this.sectors[t].active=!this.sectors[t].active;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0&&(this.sectors[t].active=!0),this.validateField(t)},btn14(t){this.sectors[0].active=t?this.sectors[0].active=!0:this.sectors[0].active=!1,this.sectors[1].active=t?this.sectors[1].active=!0:this.sectors[1].active=!1,this.sectors[2].active=t?this.sectors[2].active=!0:this.sectors[2].active=!1,this.sectors[3].active=t?this.sectors[3].active=!0:this.sectors[3].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[0].active=!0,this.sectors[1].active=!0,this.sectors[2].active=!0,this.sectors[3].active=!0,this.status14=!0,this.refreshBtn14+=1):this.status14=!1,i==16&&(this.all=!0,this.update+=1)},btn24(t){this.sectors[4].active=t?this.sectors[4].active=!0:this.sectors[4].active=!1,this.sectors[5].active=t?this.sectors[5].active=!0:this.sectors[5].active=!1,this.sectors[6].active=t?this.sectors[6].active=!0:this.sectors[6].active=!1,this.sectors[7].active=t?this.sectors[7].active=!0:this.sectors[7].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[4].active=!0,this.sectors[5].active=!0,this.sectors[6].active=!0,this.sectors[7].active=!0,this.status24=!0,this.refreshBtn24+=1):this.status24=!1,i==16&&(this.all=!0,this.update+=1)},btn34(t){this.sectors[8].active=t?this.sectors[8].active=!0:this.sectors[8].active=!1,this.sectors[9].active=t?this.sectors[9].active=!0:this.sectors[9].active=!1,this.sectors[10].active=t?this.sectors[10].active=!0:this.sectors[10].active=!1,this.sectors[11].active=t?this.sectors[11].active=!0:this.sectors[11].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[8].active=!0,this.sectors[9].active=!0,this.sectors[10].active=!0,this.sectors[11].active=!0,this.status34=!0,this.refreshBtn34+=1):this.status34=!1,i==16&&(this.all=!0,this.update+=1)},btn44(t){this.sectors[12].active=t?this.sectors[12].active=!0:this.sectors[12].active=!1,this.sectors[13].active=t?this.sectors[13].active=!0:this.sectors[13].active=!1,this.sectors[14].active=t?this.sectors[14].active=!0:this.sectors[14].active=!1,this.sectors[15].active=t?this.sectors[15].active=!0:this.sectors[15].active=!1;var i=0;for(let a=0;a<this.sectors.length;a++)this.sectors[a].active&&(i+=1);i==0?(this.sectors[12].active=!0,this.sectors[13].active=!0,this.sectors[14].active=!0,this.sectors[15].active=!0,this.status44=!0,this.refreshBtn44+=1):this.status44=!1,i==16&&(this.all=!0,this.update+=1)},validateField(t){(t===0||t===1||t===2||t===3)&&(this.status14=!!(this.sectors[0].active&&this.sectors[1].active&&this.sectors[2].active&&this.sectors[3].active)),(t===4||t===5||t===6||t===7)&&(this.status24=!!(this.sectors[4].active&&this.sectors[5].active&&this.sectors[6].active&&this.sectors[7].active)),(t===8||t===9||t===10||t===11)&&(this.status34=!!(this.sectors[8].active&&this.sectors[9].active&&this.sectors[10].active&&this.sectors[11].active)),(t===12||t===13||t===14||t===15)&&(this.status44=!!(this.sectors[12].active&&this.sectors[13].active&&this.sectors[14].active&&this.sectors[15].active)),this.all=!!(this.status14&&this.status34&&this.status24&&this.status44),this.update+=1,this.status14&&(this.refreshBtn14+=1),this.status24&&(this.refreshBtn24+=1),this.status34&&(this.refreshBtn34+=1),this.status44&&(this.refreshBtn44+=1)}}},Yd=()=>{e.useCssVars(t=>({"4fe806fe":t.widthContainer,"91de7c52":t.heightContainer,"266afcdc":t.backgroundColor,"2b853536":t.titleFontSize,"986b6446":t.widthFieldGrid,"1af308b6":t.heightFieldGrid}))},Zd=Ss.setup;Ss.setup=Zd?(t,i)=>(Yd(),Zd(t,i)):Yd;const aL={class:"gsc-field"},iL={class:"gsc-field__title-checked"},oL={class:"gsc-field__title-checked__title"},sL={class:"gsc-field__container-field"},lL={class:"gsc-field__container-field__field"},rL={width:"100%",height:"100%",fill:"#2e3b46",xmlns:"http://www.w3.org/2000/svg"},nL=["stroke"],dL=["stroke","stroke-width"],cL=["stroke","stroke-width"],pL=["stroke-width","stroke"],mL=["fill","fill-opacity","stroke","stroke-width"],uL=["fill","fill-opacity","stroke","stroke-width"],hL=["fill","fill-opacity","stroke","stroke-width"],yL=["fill","fill-opacity","stroke","stroke-width"],fL=["fill","fill-opacity","stroke","stroke-width"],gL=["fill","fill-opacity","stroke","stroke-width"],_L=["fill","fill-opacity","stroke","stroke-width"],bL=["fill","fill-opacity","stroke","stroke-width"],SL=["fill","fill-opacity","stroke","stroke-width"],CL=["fill","fill-opacity","stroke","stroke-width"],wL=["fill","fill-opacity","stroke","stroke-width"],kL=["fill","fill-opacity","stroke","stroke-width"],EL=["fill","fill-opacity","stroke","stroke-width"],VL=["fill","fill-opacity","stroke","stroke-width"],xL=["fill","fill-opacity","stroke","stroke-width"],TL=["fill","fill-opacity","stroke","stroke-width"],NL={class:"gsc-field__container-field__bar-buttons"};function BL(t,i,a,o,s,l){const r=e.resolveComponent("GSCCheckbox"),n=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",aL,[e.createElementVNode("div",iL,[e.createElementVNode("div",oL,e.toDisplayString(a.title),1),e.createElementVNode("div",{class:"gsc-field__title-checked__check-cont",style:e.normalizeStyle(a.widthField>=350?"min-width: 123px":"")},[(e.openBlock(),e.createBlock(r,{label:a.widthField<350?"Todas":"Todas las zonas","font-family":"Poppins-Regular","box-value-font-family":"Poppins-Regular","box-position":"right","label-font-size":a.titleFontSize,"label-white-space":"nowrap","box-margin-top":"0.4em",value:s.all,key:s.update,"model-value":s.all,"onUpdate:modelValue":l.clickAll},null,8,["label","label-font-size","value","model-value","onUpdate:modelValue"]))],4)]),e.createElementVNode("div",sL,[e.createElementVNode("div",lL,[(e.openBlock(),e.createElementBlock("svg",rL,[e.createElementVNode("rect",{x:"1.5",y:"0.5",width:"100%",height:"100%",rx:"1.5",stroke:a.colorLineField},null,8,nL),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+l.translx+"px, "+l.transly+"px);"),d:"M303.597 39.9799H263.371C262.817 39.9799 262.369 40.4301 262.371 40.984L262.842 155.176C262.845 155.726 263.292 156.172 263.842 156.172H302.884",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,dL),e.createElementVNode("path",{style:e.normalizeStyle("transform: translateY("+l.transly+"px);"),class:"porteria1",d:"M1.09097 156.172L41.3162 156.172C41.8701 156.172 42.3185 155.722 42.3162 155.168L41.845 40.9758C41.8427 40.4252 41.3957 39.98 40.845 39.98L1.80338 39.98",stroke:a.colorLineField,"stroke-width":a.borderWidthLineField,"stroke-linecap":"square"},null,12,cL),e.createElementVNode("path",{style:e.normalizeStyle("transform: translate("+l.translxcircle+"px, "+l.transly+"px);"),class:"circle",d:"M182.911 97.4512C182.911 113.726 169.44 126.936 152.801 126.936C136.162 126.936 122.691 113.726 122.691 97.4512C122.691 81.1767 136.162 67.9662 152.801 67.9662C169.44 67.9662 182.911 81.1767 182.911 97.4512Z","stroke-width":a.borderWidthLineField,stroke:a.colorLineField},null,12,pL),e.createElementVNode("rect",{x:"0%",y:"0%",width:"25%",height:"25%",fill:s.sectors[0].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[0]||(i[0]=c=>l.selectSector(0))},null,8,mL),e.createElementVNode("rect",{x:"0%",y:"25%",width:"25%",height:"25%",fill:s.sectors[1].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[1]||(i[1]=c=>l.selectSector(1))},null,8,uL),e.createElementVNode("rect",{x:"0%",y:"50%",width:"25%",height:"25%",fill:s.sectors[2].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[2]||(i[2]=c=>l.selectSector(2))},null,8,hL),e.createElementVNode("rect",{x:"0%",y:"75%",width:"25%",height:"25%",fill:s.sectors[3].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[3]||(i[3]=c=>l.selectSector(3))},null,8,yL),e.createElementVNode("rect",{x:"25%",y:"0%",width:"25%",height:"25%",fill:s.sectors[4].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[4]||(i[4]=c=>l.selectSector(4))},null,8,fL),e.createElementVNode("rect",{x:"25%",y:"25%",width:"25%",height:"25%",fill:s.sectors[5].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[5]||(i[5]=c=>l.selectSector(5))},null,8,gL),e.createElementVNode("rect",{x:"25%",y:"50%",width:"25%",height:"25%",fill:s.sectors[6].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[6]||(i[6]=c=>l.selectSector(6))},null,8,_L),e.createElementVNode("rect",{x:"25%",y:"75%",width:"25%",height:"25%",fill:s.sectors[7].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[7]||(i[7]=c=>l.selectSector(7))},null,8,bL),e.createElementVNode("rect",{x:"50%",y:"0%",width:"25%",height:"25%",fill:s.sectors[8].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[8]||(i[8]=c=>l.selectSector(8))},null,8,SL),e.createElementVNode("rect",{x:"50%",y:"25%",width:"25%",height:"25%",fill:s.sectors[9].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[9]||(i[9]=c=>l.selectSector(9))},null,8,CL),e.createElementVNode("rect",{x:"50%",y:"50%",width:"25%",height:"25%",fill:s.sectors[10].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[10]||(i[10]=c=>l.selectSector(10))},null,8,wL),e.createElementVNode("rect",{x:"50%",y:"75%",width:"25%",height:"25%",fill:s.sectors[11].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[11]||(i[11]=c=>l.selectSector(11))},null,8,kL),e.createElementVNode("rect",{x:"75%",y:"0%",width:"25%",height:"25%",fill:s.sectors[12].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[12]||(i[12]=c=>l.selectSector(12))},null,8,EL),e.createElementVNode("rect",{x:"75%",y:"25%",width:"25%",height:"25%",fill:s.sectors[13].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[13]||(i[13]=c=>l.selectSector(13))},null,8,VL),e.createElementVNode("rect",{x:"75%",y:"50%",width:"25%",height:"25%",fill:s.sectors[14].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[14]||(i[14]=c=>l.selectSector(14))},null,8,xL),e.createElementVNode("rect",{x:"75%",y:"75%",width:"25%",height:"25%",fill:s.sectors[15].active?a.backgroundSectorActive:a.backgroundSectorDisabled,"fill-opacity":a.opacitySector,stroke:a.borderColor,"stroke-width":a.borderWidth,onClick:i[15]||(i[15]=c=>l.selectSector(15))},null,8,TL)]))]),e.createElementVNode("div",NL,[(e.openBlock(),e.createBlock(n,{"text-value":"1/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn14",onStatus:l.btn14,key:s.refreshBtn14,value:t.status14},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(n,{"text-value":"2/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn24",onStatus:l.btn24,key:s.refreshBtn24,value:t.status24},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(n,{"text-value":"3/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn34",onStatus:l.btn34,key:s.refreshBtn34,value:t.status34},null,8,["onStatus","value"])),(e.openBlock(),e.createBlock(n,{"text-value":"4/4 tos","font-size":"12px",height:"26px",width:"65px","type-on-off":!0,"border-width":1,"font-color":"#bfc2c5","border-color":"#8c9399","border-radius":"4px","font-family":"Poppins-Medium","active-border-width":1,"background-color":"","active-background-color":"#cbee6b33",ref:"btn44",onStatus:l.btn44,key:s.refreshBtn44,value:t.status44},null,8,["onStatus","value"]))])])])}const Kd=tL(Ss,[["render",BL],["__scopeId","data-v-b85699b8"]]),FL={class:"toggle-buttons__background"},PL=["onClick"],$L={__name:"ToggleButtons",props:{buttons:{type:Array,required:!0},selectedButtonIndex:{type:Number,default:0},height:{type:String,default:"29px"},width:{type:String,default:"100%"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Medium"},borderRadius:{type:String,default:"8px"},mainBackgroundColor:{type:String,default:"#364448"},mainBorderColor:{type:String,default:"#9AA1A3"},mainBorderWidth:{type:String,default:"0.5px"},activeBorderColor:{type:String,default:"#cbee6b"},activeBorderWidth:{type:String,default:"1px"},activeBackgroundColor:{type:String,default:"#2e3b46"}},emits:["change"],setup(t,{emit:i}){const a=t;e.useCssVars(r=>({"0d588b39":t.height,"2a8da974":t.width,"6d34d30a":t.mainBackgroundColor,"3d50bf20":t.borderRadius,e8fc78a2:t.mainBorderWidth,eb2a7568:t.mainBorderColor,acdd84b6:t.fontFamily,"63d45e82":t.fontSize,b28ed67c:t.activeBorderWidth,b4bcd342:t.activeBorderColor,"7fa6e29d":t.activeBackgroundColor}));const o=e.ref(a.selectedButtonIndex),s=e.computed(()=>({"--grid-template-columns":`repeat(${a.buttons.length}, 1fr)`}));e.watch(()=>a.selectedButtonIndex,r=>{o.value=r}),e.watch(o,(r,n)=>{r!==n&&i("change",{index:r,button:a.buttons[r]})});function l(r){o.value=r}return(r,n)=>(e.openBlock(),e.createElementBlock("div",FL,[e.createElementVNode("div",{class:"toggle-buttons",style:e.normalizeStyle(s.value)},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.buttons,(c,p)=>(e.openBlock(),e.createElementBlock("div",{key:`b${p}`,class:e.normalizeClass(["toggle-buttons__button",{active:o.value===p}]),onClick:y=>l(p)},e.toDisplayString(c.text||c),11,PL))),128))],4)]))}},zL=le($L,[["__scopeId","data-v-ac2af001"]]);function Xd(t,i){return function(){return t.apply(i,arguments)}}const{toString:AL}=Object.prototype,{getPrototypeOf:Cs}=Object,_i=(t=>i=>{const a=AL.call(i);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),Je=t=>(t=t.toLowerCase(),i=>_i(i)===t),bi=t=>i=>typeof i===t,{isArray:Jt}=Array,_a=bi("undefined");function IL(t){return t!==null&&!_a(t)&&t.constructor!==null&&!_a(t.constructor)&&Oe(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Qd=Je("ArrayBuffer");function ML(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&Qd(t.buffer),i}const RL=bi("string"),Oe=bi("function"),ec=bi("number"),Si=t=>t!==null&&typeof t=="object",LL=t=>t===!0||t===!1,Ci=t=>{if(_i(t)!=="object")return!1;const i=Cs(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},OL=Je("Date"),DL=Je("File"),jL=Je("Blob"),WL=Je("FileList"),UL=t=>Si(t)&&Oe(t.pipe),vL=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||Oe(t.append)&&((i=_i(t))==="formdata"||i==="object"&&Oe(t.toString)&&t.toString()==="[object FormData]"))},GL=Je("URLSearchParams"),[HL,JL,qL,YL]=["ReadableStream","Request","Response","Headers"].map(Je),ZL=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function ba(t,i,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),Jt(t))for(o=0,s=t.length;o<s;o++)i.call(null,t[o],o,t);else{const l=a?Object.getOwnPropertyNames(t):Object.keys(t),r=l.length;let n;for(o=0;o<r;o++)n=l[o],i.call(null,t[n],n,t)}}function tc(t,i){i=i.toLowerCase();const a=Object.keys(t);let o=a.length,s;for(;o-- >0;)if(s=a[o],i===s.toLowerCase())return s;return null}const Bt=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ac=t=>!_a(t)&&t!==Bt;function ws(){const{caseless:t}=ac(this)&&this||{},i={},a=(o,s)=>{const l=t&&tc(i,s)||s;Ci(i[l])&&Ci(o)?i[l]=ws(i[l],o):Ci(o)?i[l]=ws({},o):Jt(o)?i[l]=o.slice():i[l]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&ba(arguments[o],a);return i}const KL=(t,i,a,{allOwnKeys:o}={})=>(ba(i,(s,l)=>{a&&Oe(s)?t[l]=Xd(s,a):t[l]=s},{allOwnKeys:o}),t),XL=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),QL=(t,i,a,o)=>{t.prototype=Object.create(i.prototype,o),t.prototype.constructor=t,Object.defineProperty(t,"super",{value:i.prototype}),a&&Object.assign(t.prototype,a)},eO=(t,i,a,o)=>{let s,l,r;const n={};if(i=i||{},t==null)return i;do{for(s=Object.getOwnPropertyNames(t),l=s.length;l-- >0;)r=s[l],(!o||o(r,t,i))&&!n[r]&&(i[r]=t[r],n[r]=!0);t=a!==!1&&Cs(t)}while(t&&(!a||a(t,i))&&t!==Object.prototype);return i},tO=(t,i,a)=>{t=String(t),(a===void 0||a>t.length)&&(a=t.length),a-=i.length;const o=t.indexOf(i,a);return o!==-1&&o===a},aO=t=>{if(!t)return null;if(Jt(t))return t;let i=t.length;if(!ec(i))return null;const a=new Array(i);for(;i-- >0;)a[i]=t[i];return a},iO=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&Cs(Uint8Array)),oO=(t,i)=>{const a=(t&&t[Symbol.iterator]).call(t);let o;for(;(o=a.next())&&!o.done;){const s=o.value;i.call(t,s[0],s[1])}},sO=(t,i)=>{let a;const o=[];for(;(a=t.exec(i))!==null;)o.push(a);return o},lO=Je("HTMLFormElement"),rO=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,o){return a.toUpperCase()+o}),ic=(({hasOwnProperty:t})=>(i,a)=>t.call(i,a))(Object.prototype),nO=Je("RegExp"),oc=(t,i)=>{const a=Object.getOwnPropertyDescriptors(t),o={};ba(a,(s,l)=>{let r;(r=i(s,l,t))!==!1&&(o[l]=r||s)}),Object.defineProperties(t,o)},dO=t=>{oc(t,(i,a)=>{if(Oe(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(Oe(o)){if(i.enumerable=!1,"writable"in i){i.writable=!1;return}i.set||(i.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},cO=(t,i)=>{const a={},o=s=>{s.forEach(l=>{a[l]=!0})};return Jt(t)?o(t):o(String(t).split(i)),a},pO=()=>{},mO=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function uO(t){return!!(t&&Oe(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const hO=t=>{const i=new Array(10),a=(o,s)=>{if(Si(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[s]=o;const l=Jt(o)?[]:{};return ba(o,(r,n)=>{const c=a(r,s+1);!_a(c)&&(l[n]=c)}),i[s]=void 0,l}}return o};return a(t,0)},yO=Je("AsyncFunction"),fO=t=>t&&(Si(t)||Oe(t))&&Oe(t.then)&&Oe(t.catch),sc=((t,i)=>t?setImmediate:i?((a,o)=>(Bt.addEventListener("message",({source:s,data:l})=>{s===Bt&&l===a&&o.length&&o.shift()()},!1),s=>{o.push(s),Bt.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",Oe(Bt.postMessage)),gO=typeof queueMicrotask<"u"?queueMicrotask.bind(Bt):typeof process<"u"&&process.nextTick||sc,L={isArray:Jt,isArrayBuffer:Qd,isBuffer:IL,isFormData:vL,isArrayBufferView:ML,isString:RL,isNumber:ec,isBoolean:LL,isObject:Si,isPlainObject:Ci,isReadableStream:HL,isRequest:JL,isResponse:qL,isHeaders:YL,isUndefined:_a,isDate:OL,isFile:DL,isBlob:jL,isRegExp:nO,isFunction:Oe,isStream:UL,isURLSearchParams:GL,isTypedArray:iO,isFileList:WL,forEach:ba,merge:ws,extend:KL,trim:ZL,stripBOM:XL,inherits:QL,toFlatObject:eO,kindOf:_i,kindOfTest:Je,endsWith:tO,toArray:aO,forEachEntry:oO,matchAll:sO,isHTMLForm:lO,hasOwnProperty:ic,hasOwnProp:ic,reduceDescriptors:oc,freezeMethods:dO,toObjectSet:cO,toCamelCase:rO,noop:pO,toFiniteNumber:mO,findKey:tc,global:Bt,isContextDefined:ac,isSpecCompliantForm:uO,toJSONObject:hO,isAsyncFn:yO,isThenable:fO,setImmediate:sc,asap:gO};function te(t,i,a,o,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=t,this.name="AxiosError",i&&(this.code=i),a&&(this.config=a),o&&(this.request=o),s&&(this.response=s,this.status=s.status?s.status:null)}L.inherits(te,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:L.toJSONObject(this.config),code:this.code,status:this.status}}});const lc=te.prototype,rc={};["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(t=>{rc[t]={value:t}}),Object.defineProperties(te,rc),Object.defineProperty(lc,"isAxiosError",{value:!0}),te.from=(t,i,a,o,s,l)=>{const r=Object.create(lc);return L.toFlatObject(t,r,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),te.call(r,t.message,i,a,o,s),r.cause=t,r.name=t.name,l&&Object.assign(r,l),r};const _O=null;function ks(t){return L.isPlainObject(t)||L.isArray(t)}function nc(t){return L.endsWith(t,"[]")?t.slice(0,-2):t}function dc(t,i,a){return t?t.concat(i).map(function(o,s){return o=nc(o),!a&&s?"["+o+"]":o}).join(a?".":""):i}function bO(t){return L.isArray(t)&&!t.some(ks)}const SO=L.toFlatObject(L,{},null,function(t){return/^is[A-Z]/.test(t)});function wi(t,i,a){if(!L.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,a=L.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,f){return!L.isUndefined(f[d])});const o=a.metaTokens,s=a.visitor||p,l=a.dots,r=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&L.isSpecCompliantForm(i);if(!L.isFunction(s))throw new TypeError("visitor must be a function");function c(d){if(d===null)return"";if(L.isDate(d))return d.toISOString();if(!n&&L.isBlob(d))throw new te("Blob is not supported. Use a Buffer instead.");return L.isArrayBuffer(d)||L.isTypedArray(d)?n&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function p(d,f,u){let g=d;if(d&&!u&&typeof d=="object"){if(L.endsWith(f,"{}"))f=o?f:f.slice(0,-2),d=JSON.stringify(d);else if(L.isArray(d)&&bO(d)||(L.isFileList(d)||L.endsWith(f,"[]"))&&(g=L.toArray(d)))return f=nc(f),g.forEach(function(C,k){!(L.isUndefined(C)||C===null)&&i.append(r===!0?dc([f],k,l):r===null?f:f+"[]",c(C))}),!1}return ks(d)?!0:(i.append(dc(u,f,l),c(d)),!1)}const y=[],m=Object.assign(SO,{defaultVisitor:p,convertValue:c,isVisitable:ks});function h(d,f){if(!L.isUndefined(d)){if(y.indexOf(d)!==-1)throw Error("Circular reference detected in "+f.join("."));y.push(d),L.forEach(d,function(u,g){(!(L.isUndefined(u)||u===null)&&s.call(i,u,L.isString(g)?g.trim():g,f,m))===!0&&h(u,f?f.concat(g):[g])}),y.pop()}}if(!L.isObject(t))throw new TypeError("data must be an object");return h(t),i}function cc(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Es(t,i){this._pairs=[],t&&wi(t,this,i)}const pc=Es.prototype;pc.append=function(t,i){this._pairs.push([t,i])},pc.toString=function(t){const i=t?function(a){return t.call(this,a,cc)}:cc;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function CO(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function mc(t,i,a){if(!i)return t;const o=a&&a.encode||CO;L.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let l;if(s?l=s(i,a):l=L.isURLSearchParams(i)?i.toString():new Es(i,a).toString(o),l){const r=t.indexOf("#");r!==-1&&(t=t.slice(0,r)),t+=(t.indexOf("?")===-1?"?":"&")+l}return t}class wO{constructor(){this.handlers=[]}use(i,a,o){return this.handlers.push({fulfilled:i,rejected:a,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1}eject(i){this.handlers[i]&&(this.handlers[i]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(i){L.forEach(this.handlers,function(a){a!==null&&i(a)})}}const uc=wO,hc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},kO=typeof URLSearchParams<"u"?URLSearchParams:Es,EO=typeof FormData<"u"?FormData:null,VO=typeof Blob<"u"?Blob:null,xO={isBrowser:!0,classes:{URLSearchParams:kO,FormData:EO,Blob:VO},protocols:["http","https","file","blob","url","data"]},Vs=typeof window<"u"&&typeof document<"u",xs=typeof navigator=="object"&&navigator||void 0,TO=Vs&&(!xs||["ReactNative","NativeScript","NS"].indexOf(xs.product)<0),NO=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",BO=Vs&&window.location.href||"http://localhost",FO=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Vs,hasStandardBrowserEnv:TO,hasStandardBrowserWebWorkerEnv:NO,navigator:xs,origin:BO},Symbol.toStringTag,{value:"Module"})),Te={...FO,...xO};function PO(t,i){return wi(t,new Te.classes.URLSearchParams,Object.assign({visitor:function(a,o,s,l){return Te.isNode&&L.isBuffer(a)?(this.append(o,a.toString("base64")),!1):l.defaultVisitor.apply(this,arguments)}},i))}function $O(t){return L.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function zO(t){const i={},a=Object.keys(t);let o;const s=a.length;let l;for(o=0;o<s;o++)l=a[o],i[l]=t[l];return i}function yc(t){function i(a,o,s,l){let r=a[l++];if(r==="__proto__")return!0;const n=Number.isFinite(+r),c=l>=a.length;return r=!r&&L.isArray(s)?s.length:r,c?(L.hasOwnProp(s,r)?s[r]=[s[r],o]:s[r]=o,!n):((!s[r]||!L.isObject(s[r]))&&(s[r]=[]),i(a,o,s[r],l)&&L.isArray(s[r])&&(s[r]=zO(s[r])),!n)}if(L.isFormData(t)&&L.isFunction(t.entries)){const a={};return L.forEachEntry(t,(o,s)=>{i($O(o),s,a,0)}),a}return null}function AO(t,i,a){if(L.isString(t))try{return(i||JSON.parse)(t),L.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const Ts={transitional:hc,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",o=a.indexOf("application/json")>-1,s=L.isObject(t);if(s&&L.isHTMLForm(t)&&(t=new FormData(t)),L.isFormData(t))return o?JSON.stringify(yc(t)):t;if(L.isArrayBuffer(t)||L.isBuffer(t)||L.isStream(t)||L.isFile(t)||L.isBlob(t)||L.isReadableStream(t))return t;if(L.isArrayBufferView(t))return t.buffer;if(L.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return PO(t,this.formSerializer).toString();if((l=L.isFileList(t))||a.indexOf("multipart/form-data")>-1){const r=this.env&&this.env.FormData;return wi(l?{"files[]":t}:t,r&&new r,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),AO(t)):t}],transformResponse:[function(t){const i=this.transitional||Ts.transitional,a=i&&i.forcedJSONParsing,o=this.responseType==="json";if(L.isResponse(t)||L.isReadableStream(t))return t;if(t&&L.isString(t)&&(a&&!this.responseType||o)){const s=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(l){if(s)throw l.name==="SyntaxError"?te.from(l,te.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Te.classes.FormData,Blob:Te.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};L.forEach(["delete","get","head","post","put","patch"],t=>{Ts.headers[t]={}});const Ns=Ts,IO=L.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"]),MO=t=>{const i={};let a,o,s;return t&&t.split(`
|
|
21
21
|
`).forEach(function(l){s=l.indexOf(":"),a=l.substring(0,s).trim().toLowerCase(),o=l.substring(s+1).trim(),!(!a||i[a]&&IO[a])&&(a==="set-cookie"?i[a]?i[a].push(o):i[a]=[o]:i[a]=i[a]?i[a]+", "+o:o)}),i},fc=Symbol("internals");function Sa(t){return t&&String(t).trim().toLowerCase()}function ki(t){return t===!1||t==null?t:L.isArray(t)?t.map(ki):String(t)}function RO(t){const i=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let o;for(;o=a.exec(t);)i[o[1]]=o[2];return i}const LO=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function Bs(t,i,a,o,s){if(L.isFunction(o))return o.call(this,i,a);if(s&&(i=a),!!L.isString(i)){if(L.isString(o))return i.indexOf(o)!==-1;if(L.isRegExp(o))return o.test(i)}}function OO(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,a,o)=>a.toUpperCase()+o)}function DO(t,i){const a=L.toCamelCase(" "+i);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(s,l,r){return this[o].call(this,i,s,l,r)},configurable:!0})})}let Ei=class{constructor(t){t&&this.set(t)}set(t,i,a){const o=this;function s(r,n,c){const p=Sa(n);if(!p)throw new Error("header name must be a non-empty string");const y=L.findKey(o,p);(!y||o[y]===void 0||c===!0||c===void 0&&o[y]!==!1)&&(o[y||n]=ki(r))}const l=(r,n)=>L.forEach(r,(c,p)=>s(c,p,n));if(L.isPlainObject(t)||t instanceof this.constructor)l(t,i);else if(L.isString(t)&&(t=t.trim())&&!LO(t))l(MO(t),i);else if(L.isHeaders(t))for(const[r,n]of t.entries())s(n,r,a);else t!=null&&s(i,t,a);return this}get(t,i){if(t=Sa(t),t){const a=L.findKey(this,t);if(a){const o=this[a];if(!i)return o;if(i===!0)return RO(o);if(L.isFunction(i))return i.call(this,o,a);if(L.isRegExp(i))return i.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,i){if(t=Sa(t),t){const a=L.findKey(this,t);return!!(a&&this[a]!==void 0&&(!i||Bs(this,this[a],a,i)))}return!1}delete(t,i){const a=this;let o=!1;function s(l){if(l=Sa(l),l){const r=L.findKey(a,l);r&&(!i||Bs(a,a[r],r,i))&&(delete a[r],o=!0)}}return L.isArray(t)?t.forEach(s):s(t),o}clear(t){const i=Object.keys(this);let a=i.length,o=!1;for(;a--;){const s=i[a];(!t||Bs(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){const i=this,a={};return L.forEach(this,(o,s)=>{const l=L.findKey(a,s);if(l){i[l]=ki(o),delete i[s];return}const r=t?OO(s):String(s).trim();r!==s&&delete i[s],i[r]=ki(o),a[r]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const i=Object.create(null);return L.forEach(this,(a,o)=>{a!=null&&a!==!1&&(i[o]=t&&L.isArray(a)?a.join(", "):a)}),i}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,i])=>t+": "+i).join(`
|
|
22
22
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...i){const a=new this(t);return i.forEach(o=>a.set(o)),a}static accessor(t){const i=(this[fc]=this[fc]={accessors:{}}).accessors,a=this.prototype;function o(s){const l=Sa(s);i[l]||(DO(a,s),i[l]=!0)}return L.isArray(t)?t.forEach(o):o(t),this}};Ei.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),L.reduceDescriptors(Ei.prototype,({value:t},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[a]=o}}}),L.freezeMethods(Ei);const qe=Ei;function Fs(t,i){const a=this||Ns,o=i||a,s=qe.from(o.headers);let l=o.data;return L.forEach(t,function(r){l=r.call(a,l,s.normalize(),i?i.status:void 0)}),s.normalize(),l}function gc(t){return!!(t&&t.__CANCEL__)}function qt(t,i,a){te.call(this,t??"canceled",te.ERR_CANCELED,i,a),this.name="CanceledError"}L.inherits(qt,te,{__CANCEL__:!0});function _c(t,i,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):i(new te("Request failed with status code "+a.status,[te.ERR_BAD_REQUEST,te.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function jO(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function WO(t,i){t=t||10;const a=new Array(t),o=new Array(t);let s=0,l=0,r;return i=i!==void 0?i:1e3,function(n){const c=Date.now(),p=o[l];r||(r=c),a[s]=n,o[s]=c;let y=l,m=0;for(;y!==s;)m+=a[y++],y=y%t;if(s=(s+1)%t,s===l&&(l=(l+1)%t),c-r<i)return;const h=p&&c-p;return h?Math.round(m*1e3/h):void 0}}function UO(t,i){let a=0,o=1e3/i,s,l;const r=(n,c=Date.now())=>{a=c,s=null,l&&(clearTimeout(l),l=null),t.apply(null,n)};return[(...n)=>{const c=Date.now(),p=c-a;p>=o?r(n,c):(s=n,l||(l=setTimeout(()=>{l=null,r(s)},o-p)))},()=>s&&r(s)]}const Vi=(t,i,a=3)=>{let o=0;const s=WO(50,250);return UO(l=>{const r=l.loaded,n=l.lengthComputable?l.total:void 0,c=r-o,p=s(c),y=r<=n;o=r;const m={loaded:r,total:n,progress:n?r/n:void 0,bytes:c,rate:p||void 0,estimated:p&&n&&y?(n-r)/p:void 0,event:l,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(m)},a)},bc=(t,i)=>{const a=t!=null;return[o=>i[0]({lengthComputable:a,total:t,loaded:o}),i[1]]},Sc=t=>(...i)=>L.asap(()=>t(...i)),vO=Te.hasStandardBrowserEnv?((t,i)=>a=>(a=new URL(a,Te.origin),t.protocol===a.protocol&&t.host===a.host&&(i||t.port===a.port)))(new URL(Te.origin),Te.navigator&&/(msie|trident)/i.test(Te.navigator.userAgent)):()=>!0,GO=Te.hasStandardBrowserEnv?{write(t,i,a,o,s,l){const r=[t+"="+encodeURIComponent(i)];L.isNumber(a)&&r.push("expires="+new Date(a).toGMTString()),L.isString(o)&&r.push("path="+o),L.isString(s)&&r.push("domain="+s),l===!0&&r.push("secure"),document.cookie=r.join("; ")},read(t){const i=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove(t){this.write(t,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function HO(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function JO(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function Cc(t,i,a){let o=!HO(i);return t&&(o||a==!1)?JO(t,i):i}const wc=t=>t instanceof qe?{...t}:t;function Ft(t,i){i=i||{};const a={};function o(p,y,m,h){return L.isPlainObject(p)&&L.isPlainObject(y)?L.merge.call({caseless:h},p,y):L.isPlainObject(y)?L.merge({},y):L.isArray(y)?y.slice():y}function s(p,y,m,h){if(L.isUndefined(y)){if(!L.isUndefined(p))return o(void 0,p,m,h)}else return o(p,y,m,h)}function l(p,y){if(!L.isUndefined(y))return o(void 0,y)}function r(p,y){if(L.isUndefined(y)){if(!L.isUndefined(p))return o(void 0,p)}else return o(void 0,y)}function n(p,y,m){if(m in i)return o(p,y);if(m in t)return o(void 0,p)}const c={url:l,method:l,data:l,baseURL:r,transformRequest:r,transformResponse:r,paramsSerializer:r,timeout:r,timeoutMessage:r,withCredentials:r,withXSRFToken:r,adapter:r,responseType:r,xsrfCookieName:r,xsrfHeaderName:r,onUploadProgress:r,onDownloadProgress:r,decompress:r,maxContentLength:r,maxBodyLength:r,beforeRedirect:r,transport:r,httpAgent:r,httpsAgent:r,cancelToken:r,socketPath:r,responseEncoding:r,validateStatus:n,headers:(p,y,m)=>s(wc(p),wc(y),m,!0)};return L.forEach(Object.keys(Object.assign({},t,i)),function(p){const y=c[p]||s,m=y(t[p],i[p],p);L.isUndefined(m)&&y!==n||(a[p]=m)}),a}const kc=t=>{const i=Ft({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:l,headers:r,auth:n}=i;i.headers=r=qe.from(r),i.url=mc(Cc(i.baseURL,i.url,i.allowAbsoluteUrls),t.params,t.paramsSerializer),n&&r.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let c;if(L.isFormData(a)){if(Te.hasStandardBrowserEnv||Te.hasStandardBrowserWebWorkerEnv)r.setContentType(void 0);else if((c=r.getContentType())!==!1){const[p,...y]=c?c.split(";").map(m=>m.trim()).filter(Boolean):[];r.setContentType([p||"multipart/form-data",...y].join("; "))}}if(Te.hasStandardBrowserEnv&&(o&&L.isFunction(o)&&(o=o(i)),o||o!==!1&&vO(i.url))){const p=s&&l&&GO.read(l);p&&r.set(s,p)}return i},qO=typeof XMLHttpRequest<"u",YO=qO&&function(t){return new Promise(function(i,a){const o=kc(t);let s=o.data;const l=qe.from(o.headers).normalize();let{responseType:r,onUploadProgress:n,onDownloadProgress:c}=o,p,y,m,h,d;function f(){h&&h(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(p),o.signal&&o.signal.removeEventListener("abort",p)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function g(){if(!u)return;const k=qe.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),U={data:!r||r==="text"||r==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:k,config:t,request:u};_c(function(q){i(q),f()},function(q){a(q),f()},U),u=null}"onloadend"in u?u.onloadend=g:u.onreadystatechange=function(){!u||u.readyState!==4||u.status===0&&!(u.responseURL&&u.responseURL.indexOf("file:")===0)||setTimeout(g)},u.onabort=function(){u&&(a(new te("Request aborted",te.ECONNABORTED,t,u)),u=null)},u.onerror=function(){a(new te("Network Error",te.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const U=o.transitional||hc;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),a(new te(k,U.clarifyTimeoutError?te.ETIMEDOUT:te.ECONNABORTED,t,u)),u=null},s===void 0&&l.setContentType(null),"setRequestHeader"in u&&L.forEach(l.toJSON(),function(k,U){u.setRequestHeader(U,k)}),L.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),r&&r!=="json"&&(u.responseType=o.responseType),c&&([m,d]=Vi(c,!0),u.addEventListener("progress",m)),n&&u.upload&&([y,h]=Vi(n),u.upload.addEventListener("progress",y),u.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(p=k=>{u&&(a(!k||k.type?new qt(null,t,u):k),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(p),o.signal&&(o.signal.aborted?p():o.signal.addEventListener("abort",p)));const C=jO(o.url);if(C&&Te.protocols.indexOf(C)===-1){a(new te("Unsupported protocol "+C+":",te.ERR_BAD_REQUEST,t));return}u.send(s||null)})},ZO=(t,i)=>{const{length:a}=t=t?t.filter(Boolean):[];if(i||a){let o=new AbortController,s;const l=function(p){if(!s){s=!0,n();const y=p instanceof Error?p:this.reason;o.abort(y instanceof te?y:new qt(y instanceof Error?y.message:y))}};let r=i&&setTimeout(()=>{r=null,l(new te(`timeout ${i} of ms exceeded`,te.ETIMEDOUT))},i);const n=()=>{t&&(r&&clearTimeout(r),r=null,t.forEach(p=>{p.unsubscribe?p.unsubscribe(l):p.removeEventListener("abort",l)}),t=null)};t.forEach(p=>p.addEventListener("abort",l));const{signal:c}=o;return c.unsubscribe=()=>L.asap(n),c}},KO=ZO,XO=function*(t,i){let a=t.byteLength;if(a<i){yield t;return}let o=0,s;for(;o<a;)s=o+i,yield t.slice(o,s),o=s},QO=async function*(t,i){for await(const a of eD(t))yield*XO(a,i)},eD=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const i=t.getReader();try{for(;;){const{done:a,value:o}=await i.read();if(a)break;yield o}}finally{await i.cancel()}},Ec=(t,i,a,o)=>{const s=QO(t,i);let l=0,r,n=c=>{r||(r=!0,o&&o(c))};return new ReadableStream({async pull(c){try{const{done:p,value:y}=await s.next();if(p){n(),c.close();return}let m=y.byteLength;if(a){let h=l+=m;a(h)}c.enqueue(new Uint8Array(y))}catch(p){throw n(p),p}},cancel(c){return n(c),s.return()}},{highWaterMark:2})},xi=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Vc=xi&&typeof ReadableStream=="function",tD=xi&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),xc=(t,...i)=>{try{return!!t(...i)}catch{return!1}},aD=Vc&&xc(()=>{let t=!1;const i=new Request(Te.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),Tc=64*1024,Ps=Vc&&xc(()=>L.isReadableStream(new Response("").body)),Ti={stream:Ps&&(t=>t.body)};xi&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Ti[i]&&(Ti[i]=L.isFunction(t[i])?a=>a[i]():(a,o)=>{throw new te(`Response type '${i}' is not supported`,te.ERR_NOT_SUPPORT,o)})})})(new Response);const iD=async t=>{if(t==null)return 0;if(L.isBlob(t))return t.size;if(L.isSpecCompliantForm(t))return(await new Request(Te.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(L.isArrayBufferView(t)||L.isArrayBuffer(t))return t.byteLength;if(L.isURLSearchParams(t)&&(t=t+""),L.isString(t))return(await tD(t)).byteLength},oD=async(t,i)=>L.toFiniteNumber(t.getContentLength())??iD(i),sD=xi&&(async t=>{let{url:i,method:a,data:o,signal:s,cancelToken:l,timeout:r,onDownloadProgress:n,onUploadProgress:c,responseType:p,headers:y,withCredentials:m="same-origin",fetchOptions:h}=kc(t);p=p?(p+"").toLowerCase():"text";let d=KO([s,l&&l.toAbortSignal()],r),f;const u=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let g;try{if(c&&aD&&a!=="get"&&a!=="head"&&(g=await oD(y,o))!==0){let A=new Request(i,{method:"POST",body:o,duplex:"half"}),v;if(L.isFormData(o)&&(v=A.headers.get("content-type"))&&y.setContentType(v),A.body){const[Y,J]=bc(g,Vi(Sc(c)));o=Ec(A.body,Tc,Y,J)}}L.isString(m)||(m=m?"include":"omit");const C="credentials"in Request.prototype;f=new Request(i,{...h,signal:d,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:C?m:void 0});let k=await fetch(f);const U=Ps&&(p==="stream"||p==="response");if(Ps&&(n||U&&u)){const A={};["status","statusText","headers"].forEach(x=>{A[x]=k[x]});const v=L.toFiniteNumber(k.headers.get("content-length")),[Y,J]=n&&bc(v,Vi(Sc(n),!0))||[];k=new Response(Ec(k.body,Tc,Y,()=>{J&&J(),u&&u()}),A)}p=p||"text";let q=await Ti[L.findKey(Ti,p)||"text"](k,t);return!U&&u&&u(),await new Promise((A,v)=>{_c(A,v,{data:q,headers:qe.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:f})})}catch(C){throw u&&u(),C&&C.name==="TypeError"&&/fetch/i.test(C.message)?Object.assign(new te("Network Error",te.ERR_NETWORK,t,f),{cause:C.cause||C}):te.from(C,C&&C.code,t,f)}}),$s={http:_O,xhr:YO,fetch:sD};L.forEach($s,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Nc=t=>`- ${t}`,lD=t=>L.isFunction(t)||t===null||t===!1,Bc={getAdapter:t=>{t=L.isArray(t)?t:[t];const{length:i}=t;let a,o;const s={};for(let l=0;l<i;l++){a=t[l];let r;if(o=a,!lD(a)&&(o=$s[(r=String(a)).toLowerCase()],o===void 0))throw new te(`Unknown adapter '${r}'`);if(o)break;s[r||"#"+l]=o}if(!o){const l=Object.entries(s).map(([n,c])=>`adapter ${n} `+(c===!1?"is not supported by the environment":"is not available in the build"));let r=i?l.length>1?`since :
|
|
23
23
|
`+l.map(Nc).join(`
|
|
24
24
|
`):" "+Nc(l[0]):"as no adapter specified";throw new te("There is no suitable adapter to dispatch the request "+r,"ERR_NOT_SUPPORT")}return o},adapters:$s};function zs(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new qt(null,t)}function Fc(t){return zs(t),t.headers=qe.from(t.headers),t.data=Fs.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Bc.getAdapter(t.adapter||Ns.adapter)(t).then(function(i){return zs(t),i.data=Fs.call(t,t.transformResponse,i),i.headers=qe.from(i.headers),i},function(i){return gc(i)||(zs(t),i&&i.response&&(i.response.data=Fs.call(t,t.transformResponse,i.response),i.response.headers=qe.from(i.response.headers))),Promise.reject(i)})}const Pc="1.8.4",Ni={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Ni[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const $c={};Ni.transitional=function(t,i,a){function o(s,l){return"[Axios v"+Pc+"] Transitional option '"+s+"'"+l+(a?". "+a:"")}return(s,l,r)=>{if(t===!1)throw new te(o(l," has been removed"+(i?" in "+i:"")),te.ERR_DEPRECATED);return i&&!$c[l]&&($c[l]=!0,console.warn(o(l," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,l,r):!0}},Ni.spelling=function(t){return(i,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function rD(t,i,a){if(typeof t!="object")throw new te("options must be an object",te.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const l=o[s],r=i[l];if(r){const n=t[l],c=n===void 0||r(n,l,t);if(c!==!0)throw new te("option "+l+" must be "+c,te.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new te("Unknown option "+l,te.ERR_BAD_OPTION)}}const Bi={assertOptions:rD,validators:Ni},et=Bi.validators;let Fi=class{constructor(t){this.defaults=t,this.interceptors={request:new uc,response:new uc}}async request(t,i){try{return await this._request(t,i)}catch(a){if(a instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const s=o.stack?o.stack.replace(/^.+\n/,""):"";try{a.stack?s&&!String(a.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(a.stack+=`
|
|
25
|
-
`+s):a.stack=s}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ft(this.defaults,i);const{transitional:a,paramsSerializer:o,headers:s}=i;a!==void 0&&Bi.assertOptions(a,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),o!=null&&(L.isFunction(o)?i.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:et.function,serialize:et.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Bi.assertOptions(i,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&L.merge(s.common,s[i.method]);s&&L.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),i.headers=qe.concat(l,s);const r=[];let n=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(i)===!1||(n=n&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let p,y=0,m;if(!n){const d=[Fc.bind(this),void 0];for(d.unshift.apply(d,r),d.push.apply(d,c),m=d.length,p=Promise.resolve(i);y<m;)p=p.then(d[y++],d[y++]);return p}m=r.length;let h=i;for(y=0;y<m;){const d=r[y++],f=r[y++];try{h=d(h)}catch(u){f.call(this,u);break}}try{p=Fc.call(this,h)}catch(d){return Promise.reject(d)}for(y=0,m=c.length;y<m;)p=p.then(c[y++],c[y++]);return p}getUri(t){t=Ft(this.defaults,t);const i=Cc(t.baseURL,t.url,t.allowAbsoluteUrls);return mc(i,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(i,a){return this.request(Ft(a||{},{method:t,url:i,data:(a||{}).data}))}}),L.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,l){return this.request(Ft(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fi.prototype[t]=i(),Fi.prototype[t+"Form"]=i(!0)});const Pi=Fi;class As{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(n=>{o.subscribe(n),l=n}).then(s);return r.cancel=function(){o.unsubscribe(l)},r},i(function(s,l,r){o.reason||(o.reason=new qt(s,l,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=o=>{i.abort(o)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new As(function(a){i=a}),cancel:i}}}const nD=As;function dD(t){return function(i){return t.apply(null,i)}}function cD(t){return L.isObject(t)&&t.isAxiosError===!0}const Is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Is).forEach(([t,i])=>{Is[i]=t});const pD=Is;function zc(t){const i=new Pi(t),a=Xd(Pi.prototype.request,i);return L.extend(a,Pi.prototype,i,{allOwnKeys:!0}),L.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return zc(Ft(t,o))},a}const ge=zc(Ns);ge.Axios=Pi,ge.CanceledError=qt,ge.CancelToken=nD,ge.isCancel=gc,ge.VERSION=Pc,ge.toFormData=wi,ge.AxiosError=te,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=dD,ge.isAxiosError=cD,ge.mergeConfig=Ft,ge.AxiosHeaders=qe,ge.formToJSON=t=>yc(L.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=Bc.getAdapter,ge.HttpStatusCode=pD,ge.default=ge;const Pt=ge,Yt={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},Ac={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"},Ic={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function $i(t){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$i(t)}function it(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function he(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function pe(t){he(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||$i(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function mD(t,i){he(2,arguments);var a=pe(t),o=it(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function uD(t,i){he(2,arguments);var a=pe(t),o=it(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),l=new Date(a.getTime());l.setMonth(a.getMonth()+o+1,0);var r=l.getDate();return s>=r?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}function Ca(t,i){if(he(2,arguments),!i||$i(i)!=="object")return new Date(NaN);var a=i.years?it(i.years):0,o=i.months?it(i.months):0,s=i.weeks?it(i.weeks):0,l=i.days?it(i.days):0,r=i.hours?it(i.hours):0,n=i.minutes?it(i.minutes):0,c=i.seconds?it(i.seconds):0,p=pe(t),y=o||a?uD(p,o+a*12):p,m=l||s?mD(y,l+s*7):y,h=n+r*60,d=c+h*60,f=d*1e3,u=new Date(m.getTime()+f);return u}function Mc(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function Rc(t){he(1,arguments);var i=pe(t);return i.setHours(0,0,0,0),i}var hD=864e5;function yD(t,i){he(2,arguments);var a=Rc(t),o=Rc(i),s=a.getTime()-Mc(a),l=o.getTime()-Mc(o);return Math.round((s-l)/hD)}function Zt(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var fD=6e4,gD=36e5;function _D(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=a.getFullYear()-o.getFullYear(),l=a.getMonth()-o.getMonth();return s*12+l}function bD(t,i){he(2,arguments);var a=pe(t),o=pe(i);return a.getFullYear()-o.getFullYear()}function Lc(t,i){var a=t.getFullYear()-i.getFullYear()||t.getMonth()-i.getMonth()||t.getDate()-i.getDate()||t.getHours()-i.getHours()||t.getMinutes()-i.getMinutes()||t.getSeconds()-i.getSeconds()||t.getMilliseconds()-i.getMilliseconds();return a<0?-1:a>0?1:a}function SD(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=Lc(a,o),l=Math.abs(yD(a,o));a.setDate(a.getDate()-s*l);var r=+(Lc(a,o)===-s),n=s*(l-r);return n===0?0:n}function Ms(t,i){return he(2,arguments),pe(t).getTime()-pe(i).getTime()}var CD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},wD="trunc";function Rs(t){return CD[wD]}function kD(t,i,a){he(2,arguments);var o=Ms(t,i)/gD;return Rs()(o)}function ED(t,i,a){he(2,arguments);var o=Ms(t,i)/fD;return Rs()(o)}function VD(t){he(1,arguments);var i=pe(t);return i.setHours(23,59,59,999),i}function xD(t){he(1,arguments);var i=pe(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function TD(t){he(1,arguments);var i=pe(t);return VD(i).getTime()===xD(i).getTime()}function ND(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=Zt(a,o),l=Math.abs(_D(a,o)),r;if(l<1)r=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*l);var n=Zt(a,o)===-s;TD(pe(t))&&l===1&&Zt(t,o)===1&&(n=!1),r=s*(l-Number(n))}return r===0?0:r}function BD(t,i,a){he(2,arguments);var o=Ms(t,i)/1e3;return Rs()(o)}function FD(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=Zt(a,o),l=Math.abs(bD(a,o));a.setFullYear(1584),o.setFullYear(1584);var r=Zt(a,o)===-s,n=s*(l-Number(r));return n===0?0:n}function Oc(t){return he(1,arguments),pe(t).getFullYear()}function Dc(t){he(1,arguments);var i=pe(t.start),a=pe(t.end);if(isNaN(i.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var o={};o.years=Math.abs(FD(a,i));var s=Zt(a,i),l=Ca(i,{years:s*o.years});o.months=Math.abs(ND(a,l));var r=Ca(l,{months:s*o.months});o.days=Math.abs(SD(a,r));var n=Ca(r,{days:s*o.days});o.hours=Math.abs(kD(a,n));var c=Ca(n,{hours:s*o.hours});o.minutes=Math.abs(ED(a,c));var p=Ca(c,{minutes:s*o.minutes});return o.seconds=Math.abs(BD(a,p)),o}const PD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",$D="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",$t={...Yt},jc=new Set([1]);async function zD(t,i=""){try{const a={Authorization:i||PD},o={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:$D,s=await Pt.get(o+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function AD(t=[],i=""){try{const a=t.map(o=>zD(o,i));if(a.length){const o=new Set,s=new Date,l=[],r=new Map,n=new Map,c=await Promise.all(a);for(const p of c)for(const y of p){const m=new Date(y.dob),h=Oc(m),d=Dc({start:m,end:s});r.has(y.nationality_id)||r.set(y.nationality_id,{id:y.nationality_id,isSelected:!0,name:Ac[`${y.nationality_id}`]}),n.has(y.position_id)||n.set(y.position_id,{id:y.position_id,isSelected:!0,name:Ic[`${y.position_id}`]}),o.add(h),l.push(d.years)}return $t.minAge=Math.min(...l),$t.maxAge=Math.max(...l),$t.availableYears=[...o].sort((p,y)=>y-p),$t.nationalities=[...r.values()],$t.positions=[...n.values()],$t.isEligibilitySwitchVisible=t.some(p=>jc.has(p.tournamentId)),$t}else return null}catch(a){return Promise.reject(a)}}const ID={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){o.value&&(o.value.checked=a.modelValue)}function l(r){i("update:modelValue",r.target.checked)}return e.onMounted(()=>{s()}),(r,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},wa=le(ID,[["__scopeId","data-v-e3a6ae4e"]]),zt=t=>(e.pushScopeId("data-v-8c3ead4b"),t=t(),e.popScopeId(),t),MD={class:"personal-data"},RD={class:"personal-data__age"},LD={class:"personal-data__age__toggle"},OD={class:"personal-data__age__range"},DD={class:"personal-data__age__dropdown"},jD=zt(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),WD={class:"selected-item"},UD=zt(()=>e.createElementVNode("div",{class:"separator"},null,-1)),vD={class:"personal-data__nationality-position"},GD={key:0,class:"personal-data__nationality-position__switch"},HD=zt(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),JD=zt(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),qD={class:"personal-data__nationality-position__nationality"},YD=zt(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),ZD={class:"selected-item"},KD=zt(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),XD={class:"selected-item"},QD={class:"personal-data__nationality-position__position"},ej=zt(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),tj={class:"selected-item"},aj="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",ij={__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},r=e.ref({...Yt}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),p=e.ref({min:Yt.minAge,max:Yt.maxAge}),y=e.ref(ut),m=e.ref(""),h=e.ref(""),d=e.ref(r.value.availableYears[r.value.availableYears.length-1]),f=e.ref(0),u=e.computed(()=>{const S=r.value.nationalities?[...r.value.nationalities]:[];o.isSeleccion&&S.forEach(P=>{P.isSelected=P.id===138});const F=S[0];return(!F||F.id!==0)&&S.unshift(s),S}),g=e.computed(()=>{let S=(o.filter&&o.filter.positions?o.filter.positions:r.value.positions)?[...r.value.positions]:[];const F=S[0];return(!F||F.id!==0)&&S.unshift(l),S.sort((P,H)=>P.id-H.id),S}),C=e.computed(()=>o.season&&o.season.tournamentId&&jc.has(o.season.tournamentId)||o.filters&&o.filters.isEligibilitySwitchVisible);e.watch(u,S=>{const F=S.reduce((P,H,Z)=>(Z!==0&&H.isSelected&&P++,P),0);F===u.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?m.value="Todas las nacionalidades":m.value=`${F} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(g,S=>{const F=S.reduce((P,H,Z)=>(Z!==0&&H.isSelected&&P++,P),0);F===g.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?h.value="Todas las posiciones":h.value=`${F} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(()=>o.filters,S=>{if(S&&S.availableYears){const F=!Number.isNaN(Number(S.selectedYear));r.value=S,c.value=r.value.selectedYear&&F?1:0,d.value=F?r.value.selectedYear:r.value.availableYears[0],p.value.min=r.value.minAge,p.value.max=r.value.maxAge,l.isSelected=S.positions.every(P=>P.isSelected),J()}},{immediate:!0,deep:!0}),e.watch(()=>r.value.isEligibilitySelected,()=>{J()}),e.watch(()=>o.season,S=>{S&&S.id!==f.value&&!o.awaitForFilters&&(f.value=S.id,k(S))},{immediate:!0,deep:!1});async function k(S){try{if(S&&S.id){const F=new Set,P=await q(S.id),H=new Date,Z=[],de=new Map,ae=new Map;P.forEach(E=>{const V=new Date(E.dob),O=Oc(V),$=Dc({start:V,end:H});de.has(E.nationality_id)||de.set(E.nationality_id,{id:E.nationality_id,isSelected:!0,name:Ac[`${E.nationality_id}`]}),ae.has(E.position_id)||ae.set(E.position_id,{id:E.position_id,isSelected:!0,name:Ic[`${E.position_id}`]}),F.add(O),Z.push($.years)}),r.value.minAge=Math.min(...Z),r.value.maxAge=Math.max(...Z),r.value.availableYears=[...F].sort((E,V)=>V-E),d.value=r.value.availableYears[0],r.value.nationalities=[...de.values()],r.value.positions=[...ae.values()],p.value.min=r.value.minAge,p.value.max=r.value.maxAge}}catch(F){throw new Error(F)}}function U(S=null){const F=!S||S===ie.All;(F||S===ie.NATIONALITY)&&u.value.forEach(P=>{P.isSelected=!0}),(F||S===ie.ELIGIBILITY)&&(r.value.isEligibilitySelected=!1),(F||S===ie.POSITION)&&g.value.forEach(P=>{P.isSelected=!0}),(F||S===ie.AGE_RANGE)&&(p.value.min=r.value.minAge,p.value.max=r.value.maxAge,c.value=0),(F||S===ie.YEAR)&&(d.value=o.isScouting?r.value.availableYears[r.value.availableYears.length-1]:r.value.availableYears[0],c.value=0),J()}async function q(S){try{const F={Authorization:localStorage.getItem("user_token")||o.token},P={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:aj,H=await Pt.get(P+S,{headers:F});return H.data?H.data.players:[]}catch(F){return Promise.reject(F)}}function A(S){c.value=S.index,o.filters&&o.filters.availableYears&&S.index===0?o.filters.selectedYear="Sin límite":o.filters&&o.filters.availableYears&&S.index===1&&(o.filters.selectedYear=o.filters.availableYears[0])}function v(S){p.value.min=S.minValue,p.value.max=S.maxValue,J()}function Y(S,F){F.id===0?u.value.forEach(P=>{P.isSelected=S}):(F.isSelected=S,u.value[0].isSelected=u.value.every((P,H)=>H===0?!0:P.isSelected))}function J(){const S=c.value===0,F={};S?(F.ageByRange=p.value,F.ageLimits={min:r.value.minAge,max:r.value.maxAge}):F.year=d.value,r.value.isEligibilitySelected?F.eligibility=[...r.value.eligibility]:F.nationalities=u.value.reduce((P,H,Z)=>(Z!==0&&P.push({...H}),P),[]),F.positions=g.value.reduce((P,H,Z)=>(Z!==0&&P.push({...H}),P),[]),a("update:filters",F)}function x(S,F){F.id===0?g.value.forEach(P=>{P.isSelected=S}):(F.isSelected=S,g.value[0].isSelected=g.value.every((P,H)=>H===0?!0:P.isSelected))}function T(S){d.value=S,o.filters&&(o.filters.selectedYear=S),J()}return i({onClearFilters:U}),(S,F)=>(e.openBlock(),e.createElementBlock("div",MD,[e.createElementVNode("div",RD,[e.createElementVNode("div",LD,[e.createVNode(zL,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:A},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",OD,[e.createVNode(e.unref(vd),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":r.value.minAge,"max-limit":r.value.maxAge,"min-value":p.value.min,"max-value":p.value.max,onInput:v},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",DD,[jD,e.createVNode(e.unref(He),e.mergeProps({"model-value":d.value},y.value,{items:r.value.availableYears,onInput:T}),{default:e.withCtx(({selectedItem:P})=>[e.createElementVNode("div",WD,e.toDisplayString(P),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,e.toDisplayString(P),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),UD,e.createElementVNode("div",vD,[C.value?(e.openBlock(),e.createElementBlock("div",GD,[HD,e.createVNode(wa,{modelValue:r.value.isEligibilitySelected,"onUpdate:modelValue":F[0]||(F[0]=P=>r.value.isEligibilitySelected=P)},null,8,["modelValue"]),JD])):e.createCommentVNode("",!0),e.createElementVNode("div",qD,[r.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[KD,e.createVNode(e.unref(He),e.mergeProps(y.value,{"is-multiple-option":"",items:r.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:P})=>[e.createElementVNode("div",XD,e.toDisplayString(P.name),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":P.isSelected,label:P.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[YD,e.createVNode(e.unref(He),e.mergeProps(y.value,{"is-multiple-option":"",items:u.value}),{default:e.withCtx(()=>[e.createElementVNode("div",ZD,e.toDisplayString(m.value),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":P.isSelected,label:P.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Y(H,P)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",QD,[ej,e.createVNode(e.unref(He),e.mergeProps(y.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",tj,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":P.isSelected,label:t.isFemale?P.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):P.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>x(H,P)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},oj=le(ij,[["__scopeId","data-v-8c3ead4b"]]),sj={class:"plays"},lj={class:"plays__body__offensive"},rj={class:"plays__body__title"},nj={class:"number-of-categories"},dj={class:"plays__body__categories"},cj={class:"plays__body__defensive-possession-offenses"},pj={class:"plays__body__title"},mj={class:"number-of-categories"},uj={class:"plays__body__categories"},hj={class:"plays__body__title"},yj={class:"number-of-categories"},fj={class:"plays__body__categories"},gj={class:"plays__body__title"},_j={class:"number-of-categories"},bj={class:"plays__body__categories"},Sj={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,a=e.ref(!1),o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),c=e.computed(()=>i.playsCategories.defensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),p=e.computed(()=>i.playsCategories.possession.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),y=e.computed(()=>i.playsCategories.offenses.categories.reduce((d,f)=>(f.isSelected&&d++,d),0));function m(d,f){f.isSelected=d}function h(d){d==="offensive"?a.value=!a.value:d==="defensive"?o.value=!o.value:d==="possession"?s.value=!s.value:d==="offenses"&&(l.value=!l.value)}return(d,f)=>(e.openBlock(),e.createElementBlock("div",sj,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",lj,[e.createElementVNode("div",rj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[0]||(f[0]=u=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",nj,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[1]||(f[1]=u=>h("offensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",dj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",cj,[e.createElementVNode("div",pj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[2]||(f[2]=u=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",mj,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[3]||(f[3]=u=>h("defensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",uj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",hj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[4]||(f[4]=u=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",yj,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[5]||(f[5]=u=>h("possession"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",fj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",gj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[6]||(f[6]=u=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",_j,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[7]||(f[7]=u=>h("offenses"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",bj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])],4)]))}},Cj=le(Sj,[["__scopeId","data-v-364e6cae"]]),wj={class:"template-results"},kj={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{i("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,l)=>(e.openBlock(),e.createElementBlock("div",wj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(oe),{modelValue:r.isSelected,"onUpdate:modelValue":c=>r.isSelected=c,label:r.name,"avoid-interaction":o.value===1&&r.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},Ej=le(kj,[["__scopeId","data-v-453e89c2"]]),Vj={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){i("click")}return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},ka=le(Vj,[["__scopeId","data-v-9688933e"]]),xj={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Wc={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Tj={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},Nj={4:"OF",5:"Cf",6:"S",7:"F"};function Ls(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Bj={class:"dropdown"},Fj={class:"selected-item"},Pj={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Bj,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",Fj,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),_:1},16,["is-list-same-width","items"])]))}},ze=le(Pj,[["__scopeId","data-v-064d5f86"]]),$j={class:"dropdown"},zj={class:"game-item"},Aj={key:0,class:"item-game"},Ij={class:"match-day"},Mj={class:"team-logo"},Rj=["src"],Lj={class:"text"},Oj={class:"text score"},Dj={class:"text"},jj={class:"team-logo"},Wj=["src"],Uj={class:"item-game"},vj={class:"team-logo"},Gj=["src"],Hj={class:"text"},Jj={class:"text score"},qj={class:"text"},Yj={class:"team-logo"},Zj=["src"],Kj={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",$j,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",zj,[l.homeTeam?(e.openBlock(),e.createElementBlock("div",Aj,[e.createElementVNode("div",Ij,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",Mj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Rj)]),e.createElementVNode("div",Lj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Oj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",Dj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",jj,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,Wj)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",Uj,[e.createElementVNode("div",null,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",vj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Gj)]),e.createElementVNode("div",Hj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Jj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",qj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",Yj,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,Zj)])])]),_:1},16,["items"])]))}},zi=le(Kj,[["__scopeId","data-v-7883a91e"]]),Ai=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),Xj={class:"container"},Qj={class:"container__row"},eW={class:"container__row__wrapper"},tW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),aW={class:"container__row__wrapper__input"},iW={class:"container__row two-items"},oW={class:"container__row__wrapper"},sW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),lW={key:0,class:"container__row__wrapper__input"},rW={class:"container__row__wrapper"},nW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),dW={key:0,class:"container__row__wrapper__input"},cW={class:"container__row"},pW={class:"container__row__wrapper"},mW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),uW={key:0,class:"container__row__wrapper__input"},hW={class:"container__action"},yW={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null);function n(m){o.value=m,i("update:tournament",m)}function c(m){s.value=m,i("update:season",m)}function p(m){l.value=m}function y(m){r.value=m}return(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Xj,[e.createElementVNode("div",Qj,[e.createElementVNode("div",eW,[tW,e.createElementVNode("div",aW,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",iW,[e.createElementVNode("div",oW,[sW,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",lW,[e.createVNode(ze,{items:o.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",rW,[nW,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",dW,[e.createVNode(ze,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cW,[e.createElementVNode("div",pW,[mW,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",uW,[e.createVNode(zi,{items:l.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",hW,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},fW=le(yW,[["__scopeId","data-v-b63e9c84"]]),gW={class:"dropdown"},_W={class:"item-team"},bW={class:"team-logo"},SW=["src"],CW={class:"team-acronym"},wW={class:"item-team"},kW={class:"team-logo"},EW=["src"],VW={class:"team-acronym"},xW={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",gW,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",_W,[e.createElementVNode("div",bW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,SW)]),e.createElementVNode("div",CW,e.toDisplayString(l.acronym),1)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",wW,[e.createElementVNode("div",kW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,EW)]),e.createElementVNode("div",VW,e.toDisplayString(l.acronym),1)])]),_:1},16,["items"])]))}},Uc=le(xW,[["__scopeId","data-v-afd2bee8"]]),TW={class:"advanced-filters"},NW={class:"advanced-filters__buttons"},BW=["onClick"],FW={class:"advanced-filters__filters"},PW={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>wce)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dce)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Wce)),l=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],r=e.ref(l[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function c(p){r.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock("div",TW,[e.createElementVNode("div",NW,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,m=>e.createElementVNode("div",{key:m.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===m.name}]),onClick:h=>c(m)},e.toDisplayString(m.name),11,BW)),64))]),e.createElementVNode("div",FW,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Os=le(PW,[["__scopeId","data-v-c62c5b9c"]]),At=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),$W={class:"container"},zW={class:"container__row"},AW={class:"container__row__wrapper"},IW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),MW={class:"container__row__wrapper__input"},RW={class:"container__row two-items"},LW={class:"container__row__wrapper"},OW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),DW={key:0,class:"container__row__wrapper__input"},jW={class:"container__row__wrapper"},WW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),UW={key:0,class:"container__row__wrapper__input"},vW={class:"container__row"},GW={class:"container__row__wrapper"},HW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),JW={key:0,class:"container__row__wrapper__input"},qW={class:"container__row"},YW={class:"container__row__wrapper"},ZW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),KW={key:0,class:"container__row__wrapper__input"},XW={class:"container__row type-and-advanced"},QW={class:"container__row__wrapper"},eU=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),tU={class:"container__row__wrapper__input"},aU={class:"container__row__wrapper center"},iU=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),oU={class:"container__row__wrapper__input"},sU={class:"container__row"},lU={class:"container__action"},rU={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(null),y=e.ref(!0),m=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function h(k){s.value=k,i("update:tournament",k)}function d(k){l.value=k,i("update:season",k)}function f(k){n.value=k,i("update:team",k)}function u(k){c.value=k}function g(k){r.value=k}function C(k){p.value=k}return(k,U)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$W,[e.createElementVNode("div",zW,[e.createElementVNode("div",AW,[IW,e.createElementVNode("div",MW,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",RW,[e.createElementVNode("div",LW,[OW,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",DW,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",jW,[WW,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",UW,[e.createVNode(Uc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",vW,[e.createElementVNode("div",GW,[HW,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",JW,[e.createVNode(ze,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",qW,[e.createElementVNode("div",YW,[ZW,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",KW,[e.createVNode(zi,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",XW,[e.createElementVNode("div",QW,[eU,e.createElementVNode("div",tU,[e.createVNode(ze,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:C},null,8,["items"])])]),e.createElementVNode("div",aU,[iU,e.createElementVNode("div",oU,[e.createVNode(wa,{modelValue:y.value,"onUpdate:modelValue":U[0]||(U[0]=q=>y.value=q)},null,8,["modelValue"])])])]),e.createElementVNode("div",sU,[e.createVNode(Os,{"selected-category":p.value},null,8,["selected-category"])])]),e.createElementVNode("div",lU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},nU=le(rU,[["__scopeId","data-v-575b26b5"]]),Kt=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),dU={class:"container"},cU={class:"container__row"},pU={class:"container__row__wrapper"},mU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),uU={class:"container__row__wrapper__input"},hU={class:"container__row two-items"},yU={class:"container__row__wrapper"},fU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),gU={key:0,class:"container__row__wrapper__input"},_U={class:"container__row__wrapper"},bU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),SU={key:0,class:"container__row__wrapper__input"},CU={class:"container__row"},wU={class:"container__row__wrapper"},kU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),EU={key:0,class:"container__row__wrapper__input"},VU={class:"container__row type-and-advanced"},xU={class:"container__row__wrapper"},TU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),NU={class:"container__row__wrapper__input"},BU={class:"container__row__wrapper center"},FU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),PU={class:"container__row__wrapper__input"},$U={class:"container__row"},zU={class:"container__action"},AU={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.team);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){n.value=g,i("update:team",g)}function f(g){r.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",dU,[e.createElementVNode("div",cU,[e.createElementVNode("div",pU,[mU,e.createElementVNode("div",uU,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",hU,[e.createElementVNode("div",yU,[fU,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",gU,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_U,[bU,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",SU,[e.createVNode(Uc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",CU,[e.createElementVNode("div",wU,[kU,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",EU,[e.createVNode(zi,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",VU,[e.createElementVNode("div",xU,[TU,e.createElementVNode("div",NU,[e.createVNode(ze,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",BU,[FU,e.createElementVNode("div",PU,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",$U,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",zU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},IU=le(AU,[["__scopeId","data-v-6d73d5e6"]]),Xt=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),MU={class:"container"},RU={class:"container__row"},LU={class:"container__row__wrapper"},OU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),DU={class:"container__row__wrapper__input"},jU={class:"container__row two-items"},WU={class:"container__row__wrapper"},UU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),vU={key:0,class:"container__row__wrapper__input"},GU={class:"container__row__wrapper"},HU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),JU={key:0,class:"container__row__wrapper__input"},qU={class:"container__row"},YU={class:"container__row__wrapper"},ZU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),KU={key:0,class:"container__row__wrapper__input"},XU={class:"container__row type-and-advanced"},QU={class:"container__row__wrapper"},ev=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),tv={class:"container__row__wrapper__input"},av={class:"container__row__wrapper center"},iv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),ov={class:"container__row__wrapper__input",style:{width:"fit-content"}},sv={class:"container__row"},lv={class:"container__action"},rv={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null),r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.games);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){r.value=g}function f(g){n.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",MU,[e.createElementVNode("div",RU,[e.createElementVNode("div",LU,[OU,e.createElementVNode("div",DU,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",jU,[e.createElementVNode("div",WU,[UU,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",vU,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",GU,[HU,l.value&&l.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",JU,[e.createVNode(ze,{items:l.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",qU,[e.createElementVNode("div",YU,[ZU,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",KU,[e.createVNode(zi,{items:r.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",XU,[e.createElementVNode("div",QU,[ev,e.createElementVNode("div",tv,[e.createVNode(ze,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",av,[iv,e.createElementVNode("div",ov,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",sv,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",lv,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},nv=le(rv,[["__scopeId","data-v-6e904db8"]]),dv={class:"template-videos"},cv={class:"template-videos__header"},pv={class:"template-videos__body"},mv=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:fW,VideosPlayer:nU,VideosTeam:IU,VideosGame:nv}}),uv=Object.assign(mv,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const a=t,o={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],l=["g-23","g-24","g-25"],r={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),p=e.ref([]),y=e.ref(c.value[0]),m=e.ref({}),h=e.ref({}),d=e.ref({}),f=e.ref({}),u=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const C=e.ref(null);e.watch(m,E=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(V=>V.id===E.id),E.arrayMatchDays?(f.value=E.arrayMatchDays[0]||{},d.value=E.arrayTeams[0]||{}):(v(E),Y(E))}),e.watch(d,()=>{setTimeout(()=>{m.value.mapPlayersByTeam&&(!d.value.arrayPlayers||!d.value.arrayPlayers.length)&&(d.value.arrayPlayers=m.value.mapPlayersByTeam.get(d.value.team_id))},700)});async function k(){try{p.value=await U()}catch(E){throw new Error(E)}}async function U(){try{const E={Authorization:Ls()||a.token},V={}.API_TOURNAMENTS||a.tournamentsUrl,O=await Pt.get(V,{headers:E});return O.data?O.data.map($=>({...$.tournament,seasons:$.seasons})):[]}catch(E){return Promise.reject(E)}}async function q(E,V,O=""){i("loading-data");let $=O;try{$||($={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,E.forEach((j,_)=>{$+=`${_===0?"":"&"}seasons=${j}`}));const W={Authorization:Ls()||a.token},{data:{data:z,teams:G}}=await Pt.get($,{headers:W});return{seasonsAndGames:z,seasonsAndTeams:G}}catch(W){if(V>0)return q(E,V-1,$);throw new Error(W)}finally{i("loading-data")}}async function A(E){try{const V={Authorization:Ls()||a.token},O=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${E.seasonId}`,$=await Pt.get(O,{headers:V});return $.data?$.data.players:[]}catch(V){return Promise.reject(V)}}async function v(E){try{const{seasonsAndGames:V,seasonsAndTeams:O}=await q([E.id,...E.related_seasons.map(G=>G.id)],3),$=O.find(G=>G._id===E.id);m.value.arrayTeams=[],m.value.mapTeams=new Map;const W=$.teams.reduce((G,j)=>(m.value.arrayTeams.push(j),m.value.mapTeams.set(j.team_id,{name:j.colloquial_name,acronym:j.acronym,logo:j.logo,id:j.team_id}),G.set(j.team_id,j),G),new Map);d.value=m.value.arrayTeams[0],m.value.mapGames=new Map,m.value.mapGamesByTeam=new Map;const z=Array.from(V.reduce((G,j)=>(j.games.forEach(_=>{if(_.game_status===1&&_.has_video){(!m.value.maxGameId||_.game_id>m.value.maxGameId)&&(m.value.maxGameId=_.game_id);let b=_.matchday_abbreviation.replace("M","J"),w=_.matchday_abbreviation.replace("M","Jornada ");const D=_.matchday_abbreviation.replace("M","");j.season_type===0?h.value.tournament_type===1&&(_.seasonId===881?(b=Nj[D]||b,w=Tj[D]||w):(b=Wc[_.matchday_abbreviation]?_.matchday_abbreviation:b,w=Wc[_.matchday_abbreviation]||w,b==="FINAL"&&(b="F"))):j.season_type===1?(b=xj[_.matchday_abbreviation],w=b):(b=_.matchday_abbreviation.replace("PO","R"),w="Repechaje"),_.roundAbbreviation=b,_.roundName=w,m.value.mapGames.set(_.game_id,{id:_.game_id,date:_.date,dateTimeMillis:new Date(_.date_time_utc).valueOf(),homeTeam:m.value.mapTeams.get(_.home_team),awayTeam:m.value.mapTeams.get(_.visiting_team),roundAbbreviation:_.roundAbbreviation,roundName:_.roundName,score:_.score,gameResult:_.score[0]>_.score[1]?1:_.score[0]<_.score[1]?2:3,seasonId:j.season_id});const _e=G.get(_.roundAbbreviation);_.numberDateTimeMillis=new Date(_.date_time_utc).getTime(),_.homeTeam=W.get(_.home_team),_.awayTeam=W.get(_.visiting_team);const st=m.value.mapGamesByTeam.get(_.home_team),De=m.value.mapGamesByTeam.get(_.visiting_team);st?st.push(_):m.value.mapGamesByTeam.set(_.home_team,[_]),De?De.push(_):m.value.mapGamesByTeam.set(_.visiting_team,[_]),_e?_e.arrayGames.push(_):G.set(_.roundAbbreviation,{stringMatchDayAbbreviation:_.roundAbbreviation,stringMatchDayName:_.roundName,arrayGames:[_]})}}),G),new Map).values());z.reverse(),z.forEach(G=>{G.arrayGames.sort((j,_)=>j.numberDateTimeMillis-_.numberDateTimeMillis)}),m.value.arrayMatchDays=z,f.value=z[0]||{}}catch(V){throw new Error(V)}}async function Y(E){try{const V=await F(E.id);m.value.mapPlayers=new Map,m.value.mapPlayersByTeam=V.reduce((O,$)=>{m.value.mapPlayers.set($.player_id,{id:$.player_id,name:$.player_name,shortName:$.shortName,photo:$.player_photo,teamId:$.team_id,positionId:$.position_id});const W=O.get($.team_id);return W?W.push($):O.set($.team_id,[$]),O},new Map)}catch(V){throw new Error(V)}}async function J(){try{let E=[];u.value.isEmpty?(E=await P(),g.value={...E}):E=g.value;const V=[];if(E&&E.length){u.value=E.reduce((j,_)=>{if(_.group_id!=="g-55"){const b={idAux:_.group_id,ids:[..._.ids?_.ids:[],..._.rival_Ids?_.rival_Ids:[]],type:_.type,name:_.name,coordinatePoint:_.coordinate_point,requiresRivalTransform:l.includes(_.group_id)};b.idsAux=[...b.ids],b.subcategoryGroups=_.group_id==="g-12"?[]:x(_,0,new Map,!1,{},b.idsAux),V.push(b),b.type.includes(n.player)&&j.player.push(b),b.type.includes(n.team)&&(b.idAux!=="g-2"&&j.games.push(b),j.team.push(b)),b.type.includes(n.goalkeeper)&&j.goalkeeper.push(b)}return j},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const O=new Map,$="Resumen",W="Todas sus jugadas",z=u.value.player.reduce((j,_)=>{const b=T(_);return b.forEach(w=>{O.set(w,_.name)}),j.push(...b),j},[]),G=u.value.goalkeeper.reduce((j,_)=>{const b=T(_);return b.forEach(w=>{O.set(w,_.name)}),j.push(...b),j},[]);u.value.games.unshift({name:$,arrayCategoriesIds:r.games,booleanIsBestPlays:!0}),u.value.team.unshift({name:$,arrayCategoriesIds:r.team,booleanIsBestPlays:!0}),u.value.player.unshift({name:$,arrayCategoriesIds:r.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:z,booleanIsMinutesPlayed:!0}),u.value.goalkeeper.unshift({name:$,arrayCategoriesIds:r.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:G,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function x(E,V=0,O=new Map,$=!1,W={},z=[]){if(!E.group_id)return;let G=O.get(V);const j=$?`${E.id_category}_r`:E.id_category;E.id_category&&z.push(E.id_category);let _={ids:[j],groupId:E.group_id,level:V,name:E.name,isSelected:!0,fatherCategories:V>0?[W]:[],idsByFatherCategory:{[E.category_father]:[j]}};if(V>0&&V===1&&(_.id=E.id_category),G&&V!==0){const b=E.group_id.charAt(E.group_id.length-1),w=G.find(D=>D.groupId.endsWith(b));w&&!s.includes(_.groupId)?(_=w,w.ids.push(j),w.fatherCategories.push(W),w.fatherCategories.forEach(D=>{D.childCategories?D.childCategories.find(_e=>_e.groupId===_.groupId)||D.childCategories.push(_):D.childCategories=[_]}),w.idsByFatherCategory[E.category_father]?w.idsByFatherCategory[E.category_father].push(j):w.idsByFatherCategory[E.category_father]=[j]):(_.fatherCategories.forEach(D=>{D.childCategories?D.childCategories.find(_e=>_e.groupId===_.groupId)||D.childCategories.push(_):D.childCategories=[_]}),G.push(_))}else V!==0&&(W.childCategories?W.childCategories.push(_):W.childCategories=[_],G=[_],O.set(V,G));if(E.categories&&E.categories.length?E.categories.forEach(b=>{x(b,V+1,O,$,_,z)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(b=>{x(b,V+1,O,!0,_,z)}),V===0)return Array.from(O.values())}function T(E){const V=E||E;if(V.booleanIsBestPlays)return V.arrayCategoriesIds;const O={total:[],toRemove:[]};if(V.subcategoryGroups&&V.subcategoryGroups.length?V.subcategoryGroups[0].forEach($=>{S($,null,O)}):(V.ids&&O.total.push(...V.ids),V.rival_ids&&V.rival_ids.forEach($=>{O.total.push(`${$}_r`)})),O.total=O.total.reduce(($,W)=>(O.toRemove.includes(W)||$.push(W),$),[]),!E){const $=V.name.toLowerCase().includes("recibid");C.value.isRivalSubject=$,C.value.avoidCategorySingleName=$,C.value.coordinatePoint=V.coordinatePoint,C.value.requiresRivalTransform=V.requiresRivalTransform}return O.total}function S(E,V=[],O={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach($=>{const W=V?Object.entries(E.idsByFatherCategory).reduce((z,[G,j])=>(V.includes(Number(G))&&j.forEach(_=>{typeof _=="string"&&_.endsWith("_r")?z.push(Number(_.split("_")[0])):z.push(_)}),z),[]):[E.id];S($,W,O)}):V?Object.entries(E.idsByFatherCategory).forEach(([$,W])=>{V.includes(Number($))&&W.forEach(z=>{O.total.push(z)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([$,W])=>{W.forEach(z=>{O.total.push(z)})}):O.total.push(E.id):E.childCategories||E.ids.forEach($=>{O.toRemove.push($)})}async function F(E){try{const V=await A({seasonId:E});return V.forEach(O=>{const[$,W]=O.player_name.split(","),z=$.split(" ");let G="";for(const j of z)if(G+=` ${j}`,j.length>3)break;O.shortName=W&&$?`${W.trim().charAt(0)}.${G}`:""}),V}catch(V){return Promise.reject(V)}}async function P(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Pt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function H(E){y.value=E}function Z(E){h.value=E,m.value=E.seasons[0]}function de(E){m.value=E}function ae(E){d.value=E}return k(),J(),(E,V)=>(e.openBlock(),e.createElementBlock("div",dv,[e.createElementVNode("div",cv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,O=>(e.openBlock(),e.createBlock(ka,e.mergeProps({key:O.name},o,{text:O.name,"is-active":y.value.componentName===O.componentName,tournaments:p.value,onClick:$=>H(O)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",pv,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value.componentName),{tournaments:p.value,"advanced-filter-categories":u.value,"onUpdate:tournament":Z,"onUpdate:season":de,"onUpdate:team":ae},null,40,["tournaments","advanced-filter-categories"]))])]))}}),hv=le(uv,[["__scopeId","data-v-d6f7aec8"]]),vc=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),yv={class:"template-taken-corners"},fv={class:"template-taken-corners__header"},gv={class:"template-taken-corners__header__all"},_v={class:"template-taken-corners__body"},bv={class:"template-taken-corners__body__players"},Sv={class:"template-taken-corners__body__players__player__jersey"},Cv={class:"template-taken-corners__body__players__player__photo"},wv={class:"template-taken-corners__body__players__player__photo__img"},kv=["src"],Ev={class:"template-taken-corners__body__players__player__info"},Vv={class:"template-taken-corners__body__players__player__info__name"},xv={class:"template-taken-corners__body__players__player__info__position"},Tv={class:"template-taken-corners__body__players__player__info__position__nationality"},Nv=["src"],Bv={class:"template-taken-corners__body__players__player__info__position__name"},Fv={class:"template-taken-corners__body__players__player__checkbox"},Pv={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref([]),r=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>l.value.reduce((u,g)=>g.isSelected?u+1:u,0));e.watch(()=>o.takenCornersFilters,u=>{l.value=u.map(g=>{const C={...g};return(g.isSelected===void 0||g.isSelected===null)&&(C.isSelected=!0),C})},{immediate:!0,deep:!0}),e.watch(n,u=>{s.value=u===l.value.length,a("change-filters-selected",u),a("update:filters",l.value)},{immediate:!0});function c(u){return`https://golstatsimages.blob.core.windows.net/flags/${u}.jpg`}function p(u){return`https://golstatsimages.blob.core.windows.net/players-profile/${u}.png`}function y(u){let g=!1;return u.split(" ").reduce((C,k)=>(g||(k.length>3?(C=k,g=!0):C+=`${k} `),C),"").trim()}function m(u){return`${y(u.last_name)}, ${u.first_name.trim()}`}function h(u){return o.isFemale?vc.get(u.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):vc.get(u.positions[0])}function d(u){u?l.value.forEach(g=>{g.isSelected=!0}):l.value.forEach((g,C)=>{g.isSelected=C===0})}function f(){l.value.forEach(u=>{u.isSelected=!0})}return i({clearFilters:f}),(u,g)=>(e.openBlock(),e.createElementBlock("div",yv,[e.createElementVNode("div",fv,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(r.value),5),e.createElementVNode("div",gv,[e.createVNode(e.unref(oe),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",_v,[e.createElementVNode("div",bv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",Sv,e.toDisplayString(C.jersey),1),e.createElementVNode("div",Cv,[e.createElementVNode("div",wv,[e.createElementVNode("img",{src:p(C.player_id),alt:"player photo",width:"36",height:"36"},null,8,kv)])]),e.createElementVNode("div",Ev,[e.createElementVNode("div",Vv,e.toDisplayString(m(C)),1),e.createElementVNode("div",xv,[e.createElementVNode("div",Tv,[e.createElementVNode("img",{src:c(C.nationality_id),alt:"country flag"},null,8,Nv)]),e.createElementVNode("div",Bv,e.toDisplayString(h(C)),1)])]),e.createElementVNode("div",Fv,[e.createVNode(e.unref(oe),{modelValue:C.isSelected,"onUpdate:modelValue":k=>C.isSelected=k,"avoid-interaction":n.value===1&&C.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},$v=le(Pv,[["__scopeId","data-v-763fcc54"]]),Ds={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},js=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),zv={class:"template-how-was-corner"},Av={class:"template-how-was-corner__header"},Iv=js(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),Mv={class:"template-how-was-corner__header__radio-input"},Rv={class:"template-how-was-corner__header__radio-input__radio"},Lv=js(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),Ov={class:"template-how-was-corner__header__radio-input"},Dv={class:"template-how-was-corner__header__radio-input__radio"},jv=js(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),Wv=["onClick"],Uv={class:"template-how-was-corner__content__corner-type__img"},vv=["src","alt"],Gv={class:"template-how-was-corner__content__corner-type__info"},Hv={class:"template-how-was-corner__content__corner-type__info__title"},Jv={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ds},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const a=t,o=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),l=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>o.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{i("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,p)=>p.isSelected?c+1:c,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function r(n){n.isSelected&&l.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",zv,[e.createElementVNode("div",Av,[Iv,e.createElementVNode("div",Mv,[e.createElementVNode("div",Rv,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),Lv])]),e.createElementVNode("div",Ov,[e.createElementVNode("div",Dv,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),jv])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(p,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":p.isSelected}]),onClick:m=>r(p)},[e.createElementVNode("div",Uv,[e.createElementVNode("img",{src:p.imgSrc,alt:p.title},null,8,vv)]),e.createElementVNode("div",Gv,[e.createElementVNode("div",Hv,e.toDisplayString(p.title),1)])],10,Wv))),128))],2)]))}},qv=le(Jv,[["__scopeId","data-v-b7e3b8e0"]]),Ea=[1,2,3,4,5,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],ht=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),Yv={class:"template-zone"},Zv={class:"controls-zone-container"},Kv={class:"controls-zone-container-title-checkcon"},Xv={class:"controls-zone-container-title-checkcon-check"},Qv={class:"gsc-field-img-container"},eG={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tG=["fill"],aG=["fill"],iG=["fill"],oG=["fill"],sG=["fill"],lG=["fill"],rG=["fill"],nG=["fill"],dG=["fill"],cG=["fill"],pG=["fill"],mG=["fill"],uG=["fill"],hG=["fill"],yG=["fill"],fG=["fill"],gG=["fill"],_G=["fill"],bG=["fill"],SG=["fill"],CG=["fill"],wG=["fill"],kG=["fill"],EG=["fill"],VG=["fill"],xG=["fill"],TG=["fill"],NG=["fill"],BG=["fill"],FG=["fill"],PG=["fill"],$G=["fill"],zG=["fill"],AG=["fill"],IG=["fill"],MG=ht(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),RG=ht(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),LG=["id"],OG=ht(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),DG=[OG],jG=["mask"],WG=ht(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),UG=[WG],vG=ht(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),GG=ht(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),HG={class:"template-zone__total-corners"},JG=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),qG=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),YG=[JG,qG],ZG={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ea]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!0),l=e.ref([]),r=e.computed(()=>new Date().getTime());e.watch(l,y=>{s.value=y.length===35}),e.watch(()=>o.zoneFilters,y=>{l.value=y},{immediate:!0,deep:!0}),e.watch(()=>l.value,y=>{a("update:filters",y),a("change-filters-selected",y.length)},{deep:!0});function n(y){y?(l.value=Ea,s.value=!0):(l.value=[],s.value=!1)}function c(y){l.value.includes(y)?l.value=l.value.filter(m=>m!==y):l.value.push(y),s.value=l.value.length===35}function p(){l.value=[...Ea]}return i({clearFilters:p}),(y,m)=>(e.openBlock(),e.createElementBlock("div",Yv,[e.createElementVNode("div",Zv,[e.createElementVNode("div",{class:"controls-zone-container-title",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),e.createElementVNode("div",Kv,[e.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),e.createElementVNode("div",Xv,[e.createVNode(e.unref(oe),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",Qv,[(e.openBlock(),e.createElementBlock("svg",eG,[e.createElementVNode("rect",{onClick:m[0]||(m[0]=h=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,tG),e.createElementVNode("rect",{onClick:m[1]||(m[1]=h=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,aG),e.createElementVNode("rect",{onClick:m[2]||(m[2]=h=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,iG),e.createElementVNode("rect",{onClick:m[3]||(m[3]=h=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,oG),e.createElementVNode("rect",{onClick:m[4]||(m[4]=h=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,sG),e.createElementVNode("rect",{onClick:m[5]||(m[5]=h=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,lG),e.createElementVNode("rect",{onClick:m[6]||(m[6]=h=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,rG),e.createElementVNode("rect",{onClick:m[7]||(m[7]=h=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,nG),e.createElementVNode("rect",{onClick:m[8]||(m[8]=h=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,dG),e.createElementVNode("rect",{onClick:m[9]||(m[9]=h=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,cG),e.createElementVNode("rect",{onClick:m[10]||(m[10]=h=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,pG),e.createElementVNode("rect",{onClick:m[11]||(m[11]=h=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,mG),e.createElementVNode("rect",{onClick:m[12]||(m[12]=h=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,uG),e.createElementVNode("rect",{onClick:m[13]||(m[13]=h=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,hG),e.createElementVNode("rect",{onClick:m[14]||(m[14]=h=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,yG),e.createElementVNode("rect",{onClick:m[15]||(m[15]=h=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,fG),e.createElementVNode("rect",{onClick:m[16]||(m[16]=h=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,gG),e.createElementVNode("rect",{onClick:m[17]||(m[17]=h=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,_G),e.createElementVNode("rect",{onClick:m[18]||(m[18]=h=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,bG),e.createElementVNode("rect",{onClick:m[19]||(m[19]=h=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,SG),e.createElementVNode("rect",{onClick:m[20]||(m[20]=h=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,CG),e.createElementVNode("rect",{onClick:m[21]||(m[21]=h=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,wG),e.createElementVNode("rect",{onClick:m[22]||(m[22]=h=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,kG),e.createElementVNode("rect",{onClick:m[23]||(m[23]=h=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,EG),e.createElementVNode("rect",{onClick:m[24]||(m[24]=h=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,VG),e.createElementVNode("rect",{onClick:m[25]||(m[25]=h=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,xG),e.createElementVNode("rect",{onClick:m[26]||(m[26]=h=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,TG),e.createElementVNode("rect",{onClick:m[27]||(m[27]=h=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,NG),e.createElementVNode("rect",{onClick:m[28]||(m[28]=h=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,BG),e.createElementVNode("rect",{onClick:m[29]||(m[29]=h=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,FG),e.createElementVNode("rect",{onClick:m[30]||(m[30]=h=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,PG),e.createElementVNode("rect",{onClick:m[31]||(m[31]=h=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,$G),e.createElementVNode("rect",{onClick:m[32]||(m[32]=h=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,zG),e.createElementVNode("rect",{onClick:m[33]||(m[33]=h=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,AG),e.createElementVNode("rect",{onClick:m[34]||(m[34]=h=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,IG),MG,RG,e.createElementVNode("mask",{id:r.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},DG,8,LG),e.createElementVNode("g",{mask:`url(#${r.value})`},UG,8,jG),vG,GG]))]),e.withDirectives(e.createElementVNode("div",HG,YG,512),[[e.vShow,!1]])]))}},KG=le(ZG,[["__scopeId","data-v-378bf7e2"]]),Ws=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],XG={class:"what-happened"},QG={class:"what-happened__all"},eH={class:"what-happened__filters"},tH={key:0,class:"what-happened__filters__filter__composed"},aH={class:"what-happened__filters__filter__composed__main"},iH={key:1,class:"what-happened__filters__filter__single"},oH={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Ws]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?f.child.forEach(u=>{u.isSelected&&d++}):f.isSelected&&d++,d),0)),l=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?d+=f.child.length:d++,d),0)),r=e.computed(()=>s.value===l.value),n=e.computed(()=>s.value===1);e.watch(()=>o.whatHappenedFilters,d=>{a("change-filters-selected",s.value),a("update:filters",d)},{deep:!0,immediate:!0});function c(d){o.whatHappenedFilters.forEach(f=>{d?(f.isSelected=d,f.child&&f.child.forEach(u=>{u.isSelected=d})):f.child?(f.isSelected=!0,f.child.forEach(u=>{u.isSelected=!0})):f.isSelected=!1})}function p(d,f){f.isSelected=d,f.child.forEach(u=>{u.isSelected=d})}function y(d,f,u){u.isSelected=d,f.isSelected=f.child.every(g=>g.isSelected)}function m(d,f){f.isSelected=d}function h(){o.whatHappenedFilters.forEach(d=>{d.child?d.child.forEach(f=>{f.isSelected=!0}):d.isSelected=!0})}return i({onResetFilters:h}),(d,f)=>(e.openBlock(),e.createElementBlock("div",XG,[e.createElementVNode("div",QG,[e.createVNode(e.unref(oe),{label:"Todos","model-value":r.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",eH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(u,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[u.child?(e.openBlock(),e.createElementBlock("div",tH,[e.createElementVNode("div",aH,[e.createVNode(e.unref(oe),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>p(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.child,(C,k)=>(e.openBlock(),e.createElementBlock("div",{key:`c${k}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(oe),{"model-value":C.isSelected,label:t.isFemale?C.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):C.text,"avoid-interaction":n.value&&C.isSelected,"onUpdate:modelValue":U=>y(U,u,C)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",iH,[e.createVNode(e.unref(oe),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>m(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},sH=le(oH,[["__scopeId","data-v-8f375a1a"]]),Us={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},Gc=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),lH={class:"template-results"},rH={class:"template-results__type-switch"},nH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),dH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),cH={class:"template-results__info"},pH={key:0,class:"template-results__group"},mH={key:1,class:"template-results__group"},uH={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...Us})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(p=>p.isSelected).length:s.value.results.final.filter(p=>p.isSelected).length;return a("change-filters-selected",c),c}),r=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,c=>{s.value===null&&(s.value={...c})},{deep:!0,immediate:!0}),e.watch(s,c=>{a("update:filters",c)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(c=>{c.isSelected=!0}),s.value.results.final.forEach(c=>{c.isSelected=!0})}return i({removeFilters:n}),(c,p)=>(e.openBlock(),e.createElementBlock("div",lH,[e.withDirectives(e.createElementVNode("div",rH,[nH,e.createVNode(wa,{modelValue:s.value.isMoment,"onUpdate:modelValue":p[0]||(p[0]=y=>s.value.isMoment=y)},null,8,["modelValue"]),dH],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",cH,e.toDisplayString(r.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",pH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(oe),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",mH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(oe),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},hH=le(uH,[["__scopeId","data-v-ee3b28d3"]]),yH=t=>(e.pushScopeId("data-v-6f640dee"),t=t(),e.popScopeId(),t),fH={key:0,class:"productivity__header__text"},gH={key:0},_H=yH(()=>e.createElementVNode("span",null,"mínimo 5 categorías y máximo 12",-1)),bH={key:1},SH={key:2},CH={key:1,class:"productivity__header__checkbox"},wH={class:"templates__body"},kH={key:0,class:"templates-plays"},EH={key:1,class:"templates-productivity"},VH={key:2,class:"template-field"},xH={key:3,class:"template-details"},TH={key:4,class:"template-personal-data"},NH={key:5,class:"template-leagues"},BH={key:6,class:"template-plays"},FH={key:7,class:"template-plays"},PH={key:8,class:"template-universe"},$H={key:9,class:"template-distance"},zH={key:10,class:"template-results"},AH={key:11,class:"template-results-by-type"},IH={key:12,class:"template-games"},MH={key:13,class:"template-taken-corners"},RH={key:14,class:"template-videos"},LH={key:15,class:"template-how-was-corner"},OH={key:16,class:"template-zone"},DH={key:17,class:"template-what-happened"},jH={key:1,class:"templates__footer"},WH={class:"templates__footer__button"},UH={class:"templates__footer__button"},vH={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},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}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(!1),r=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),c=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.ref(null),h=e.ref(null),d=e.computed(()=>({"--width":o.width,"--max-width":o.maxWidth,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.borderColor,"--border-width":o.borderWidth,"--box-shadow":o.boxShadow,"--padding":o.filterType!==N.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),f=e.computed(()=>{const b=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(w=>{w.categories&&w.categories.forEach(D=>{b.push(D)})}),b}),u=e.computed(()=>{const b=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(w=>{w.categories&&w.categories.forEach(D=>{b.push(D)})}),b}),g=e.computed(()=>{const b=f.value.filter(w=>w.isSelected);return q(b),o.filterType===N.PRODUCTIVITY&&a("change-categories-selected",b.length),b.length}),C=e.computed(()=>g.value>=o.productivityMaxCategories),k=e.computed(()=>g.value<=o.productivityMinCategories),U=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(r,b=>{o.filterType===N.DETAILS&&a("update:filters",b)},{immediate:!0,deep:!0}),e.watch(()=>U.value,b=>{if(o.filterType===N.DETAILS){const w=b.filter(D=>D.isSelected);a("change-filters-selected",w.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,b=>{if(o.filterType===N.PLAYS_TYPES||o.filterType===N.GOLSTATS){const w=b.filter(D=>D.isSelected);a("change-filters-selected",w.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,b=>{o.filterType===N.FIELD&&a("change-filters-selected",b.length)}),e.watch(u,()=>{o.filterType===N.PLAYS&&P()},{immediate:!0,deep:!0}),e.watch(f,()=>{o.filterType===N.PRODUCTIVITY&&H()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,b=>{o.filterType===N.RESULTS&&a("change-filters-selected",b.results.filter(w=>w.isSelected).length)},{immediate:!0,deep:!0});function q(b){setTimeout(()=>{b.sort((w,D)=>w.priority-D.priority),b.forEach((w,D)=>{w.priority=D+1})},10)}function A(b=null){v(b)}function v(b=null){o.filterType===N.PRODUCTIVITY?f.value.forEach(w=>{w.isSelected=!1}):o.filterType===N.PLAYS?(u.value.forEach(w=>{w.isSelected=!0}),l.value=!0):o.filterType===N.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===N.DETAILS?(o.playingAs.forEach(w=>{w.isSelected=!0}),o.gameSections.forEach(w=>{w.isSelected=!0})):o.filterType===N.TOURNAMENTS?(o.tournaments.forEach((w,D)=>{o.isOneTournamentOnly?w.isSelected=D===0:w.isSelected=!0}),a("change-filters-selected",0)):o.filterType===N.PLAYS_TYPES?o.playsGolstatsCategories.forEach(w=>{w.isSelected=!0}):o.filterType===N.GOLSTATS?o.playsGolstatsCategories.forEach(w=>{w.isSelected=!1}):o.filterType===N.UNIVERSE?c.value&&c.value.resetFilters():o.filterType===N.PERSONAL_DATA?(s.value&&s.value.onClearFilters(b||ie.All),a("change-personal-data-filters",{})):o.filterType===N.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===N.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(w=>(w.isSelected=!0,w))}):o.filterType===N.RESULTS_BY_TIME?h.value&&h.value.removeFilters():o.filterType===N.GAMES?o.gamesFilters.forEach(w=>{w.isSelected=!0}):o.filterType===N.TAKEN_CORNERS?p.value.clearFilters():o.filterType===N.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(w=>{w.isSelected=!0}),o.howWasCornerFilters.right.forEach(w=>{w.isSelected=!0})):o.filterType===N.ZONE?y.value&&y.value.clearFilters():o.filterType===N.WHAT_HAPPENED&&m.value&&m.value.onResetFilters()}function Y(b){o.filterType===N.TOURNAMENTS&&a("change-filters-selected",b)}function J(b){o.filterType===N.UNIVERSE&&a("change-universe-filters",b)}function x(b){o.filterType===N.FIELD&&a("change-field-areas",b)}function T(b){o.filterType===N.GOLSTATS&&a("change-filters-selected",b)}function S(b){a("change-filters-selected",b)}function F(b){o.filterType===N.PRODUCTIVITY?f.value.forEach(w=>{w.isSelected=b}):(l.value=b,o.playsCategories.offensive.categories.forEach(w=>{w.isSelected=b}),o.playsCategories.defensive.categories.forEach(w=>{w.isSelected=b}),o.playsCategories.possession.categories.forEach(w=>{w.isSelected=b}),o.playsCategories.offenses.categories.forEach(w=>{w.isSelected=b}))}function P(){let b=0;const w={playsCategories:u.value.filter(D=>D.isSelected)};l.value=w.playsCategories.length===u.value.length,b=w.playsCategories.length,Object.values(n.value).forEach(D=>{D&&b++}),a("change-filters-selected",b),a("update:filters",w)}function H(){let b=0;const w={productivityFilters:f.value.filter(D=>D.isSelected),offensesConditions:n.value};b=w.productivityFilters.length,Object.values(n.value).forEach(D=>{D&&b++}),a("change-filters-selected",b),a("update:filters",w)}function Z(){a("apply")}function de(){(o.filterType===N.PLAYS_TYPES||o.filterType===N.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(b=>{b.isSelected=!1}),o.filterType===N.PRODUCTIVITY&&f.value.forEach(b=>{b.isSelected=!1}),a("apply")}function ae(b){a("update:filters",b)}function E(b){o.filterType===N.PERSONAL_DATA&&a("update:filters",b)}function V(b){o.filterType===N.TOURNAMENTS&&a("update:filters",b)}function O(b){(o.filterType===N.PLAYS_TYPES||o.filterType===N.GOLSTATS)&&a("update:filters",b)}function $(b){o.filterType===N.PRODUCTIVITY&&(n.value=b,H())}function W(b){o.filterType===N.DISTANCE&&a("update:filters",b)}function z(b){o.filterType===N.RESULTS&&a("update:filters",b)}function G(b){o.filterType===N.GAMES&&(a("update:filters",b),a("change-filters-selected",b.filter(w=>w.isSelected).length))}function j(b){r.value.statisticType=b}const _=e.computed(()=>o.filterType===N.PLAYS?u.value.length:o.filterType===N.PRODUCTIVITY?f.value.length:o.filterType===N.FIELD?16:o.filterType===N.UNIVERSE?6:o.filterType===N.DETAILS?8:o.filterType===N.RESULTS||o.filterType===N.RESULTS_BY_TIME?3:o.filterType===N.GAMES?o.gamesFilters.length:0);return a("total-filters",_),i({clearFilters:A}),(b,w)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(d.value)},[t.filterType===e.unref(N).PRODUCTIVITY||t.filterType===e.unref(N).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(N).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",fH,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",gH,[e.createTextVNode(" Elige tipo de jugadas: "),_H])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",bH,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",SH,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",CH,[e.createVNode(e.unref(oe),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":F},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",wH,[t.filterType===e.unref(N).PLAYS?(e.openBlock(),e.createElementBlock("div",kH,[e.createVNode(Cj,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",EH,[e.createVNode(fI,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":C.value,"are-min-categories-reached":k.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":$},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).FIELD?(e.openBlock(),e.createElementBlock("div",VH,[e.createVNode(e.unref(Kd),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":x}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).DETAILS?(e.openBlock(),e.createElementBlock("div",xH,[e.createVNode(JI,{"is-playing-as-hidden":t.isPlayingAsHidden,"playing-as":t.playingAs,"game-sections":t.gameSections,"font-gamily":t.fontFamily,"is-statistic-type-visible":t.isStatisticTypeVisible,"statistic-type":t.statisticType,onChangeStatisticType:j},null,8,["is-playing-as-hidden","playing-as","game-sections","font-gamily","is-statistic-type-visible","statistic-type"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",TH,[e.createVNode(oj,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":E},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",NH,[e.createVNode(QI,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Y,"onUpdate:filters":V},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",BH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).GOLSTATS?(e.openBlock(),e.createElementBlock("div",FH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:T,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).UNIVERSE?(e.openBlock(),e.createElementBlock("div",PH,[e.createVNode(qM,{ref_key:"templateUniverse",ref:c,"universe-filters":t.universeFilters,"onUpdate:universeFilters":J},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).DISTANCE?(e.openBlock(),e.createElementBlock("div",$H,[e.createVNode(yR,{distance:t.distanceFilters,"onUpdate:distanceFilters":W},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).RESULTS?(e.openBlock(),e.createElementBlock("div",zH,[e.createVNode(Ej,{ref_key:"templateResults",ref:h,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":z},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",AH,[e.createVNode(hH,{ref_key:"templateResults",ref:h,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).GAMES?(e.openBlock(),e.createElementBlock("div",IH,[e.createVNode(wR,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":G},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",MH,[e.createVNode($v,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:p,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).VIDEOS?(e.openBlock(),e.createElementBlock("div",RH,[e.createVNode(hv,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",LH,[e.createVNode(qv,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).ZONE?(e.openBlock(),e.createElementBlock("div",OH,[e.createVNode(KG,{ref_key:"templateZone",ref:y,"zone-filters":t.zoneFilters,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",DH,[e.createVNode(sH,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:m,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",jH,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:de})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",WH,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:de})):(e.openBlock(),e.createBlock(e.unref(gi),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:v}))]),e.createElementVNode("div",UH,[e.createVNode(e.unref(gi),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:Z})])],64))])):e.createCommentVNode("",!0)],4))}},Hc=le(vH,[["__scopeId","data-v-6f640dee"]]),GH=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},HH={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(d=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),l=e.ref(null),r=e.ref({}),n=e.computed(()=>{const d={top:"0px","--left-menu":a.leftMenu};if(o.value){const f=o.value.getBoundingClientRect();d.top=`${f.height+a.menuMarginTop}px`}return d}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,d=>{d!==s.value&&(s.value=d)},{immediate:!0}),e.watch(s,d=>{d||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function p(d){const f=window.innerWidth,u=d.boundingClientRect.x,g=d.boundingClientRect.x+d.boundingClientRect.width,C=u<=0?Math.abs(u)+4:g>=f?f-(g+10):0;r.value["--translate-x"]=`${C}px`}function y(){new IntersectionObserver(d=>{d[0].intersectionRatio>0&&p(d[0])}).observe(l.value)}function m(){s.value=!s.value,i("update:modelValue",s.value)}function h(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{y()})}),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:m},[e.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:l,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(d.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},JH=GH(HH,[["__scopeId","data-v-18c0df61"]]),It=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),qH={key:0,class:"button__icon"},YH={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZH=["stroke"],KH=["stroke"],XH=["stroke"],QH={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eJ=["stroke"],tJ=["stroke"],aJ=["fill"],iJ={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oJ=["fill"],sJ={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lJ=["stroke"],rJ=["stroke"],nJ=["stroke"],dJ=["stroke"],cJ=["stroke"],pJ={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mJ=It(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),uJ=[mJ],hJ={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yJ=It(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),fJ=[yJ],gJ={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_J=It(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),bJ=[_J],SJ={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},CJ=It(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),wJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),kJ=It(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),EJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),VJ=[CJ,wJ,kJ,EJ],xJ={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TJ=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-2504d135></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),NJ=[TJ],BJ={class:"button__text"},FJ={key:0,class:"info-container"},PJ={key:1,style:{width:"20px"}},$J={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zJ=["fill"],AJ={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,a=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),o=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),s=e.computed(()=>[N.PLAYS_TYPES,N.GOLSTATS,N.TOURNAMENTS,N.PLAYS,N.RESULTS,N.RESULTS_BY_TIME].includes(i.iconType)),l=e.computed(()=>[N.FIELD,N.GAMES].includes(i.iconType)),r=e.computed(()=>[N.DETAILS,N.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[N.PERSONAL_DATA].includes(i.iconType)),c=e.computed(()=>[N.PRODUCTIVITY].includes(i.iconType)),p=e.computed(()=>[N.HOW_WAS_CORNER].includes(i.iconType)),y=e.computed(()=>[N.TAKEN_CORNERS].includes(i.iconType)),m=e.computed(()=>[N.ZONE].includes(i.iconType)),h=e.computed(()=>[N.WHAT_HAPPENED].includes(i.iconType));return(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",qH,[n.value?(e.openBlock(),e.createElementBlock("svg",YH,[e.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ZH),e.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,KH),e.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,XH)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",QH,[e.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,eJ),e.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,tJ),e.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:t.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,aJ)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",iJ,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:t.iconColor},null,8,oJ)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",sJ,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,lJ),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,rJ),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,nJ),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,dJ),e.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:t.iconColor},null,8,cJ)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",pJ,uJ)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",hJ,fJ)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",gJ,bJ)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",SJ,VJ)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",xJ,NJ)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",BJ,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",FJ,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!=parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",PJ)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",$J,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,zJ)]))],2)],4))}},IJ=le(AJ,[["__scopeId","data-v-2504d135"]]),MJ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},RJ=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),LJ={class:"panel__activator__icon"},OJ=["src"],DJ={class:"panel__activator__text"},jJ=["height","width"],WJ=["stroke"],UJ={class:"panel__content"},vJ=RJ(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),GJ={class:"panel__content__slot"},HJ={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,r=>{o.value=r},{immediate:!0});function l(){o.value=!o.value,i("update:modelValue",o.value)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:l},[e.createElementVNode("div",LJ,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,OJ)):e.createCommentVNode("",!0)]),e.createElementVNode("div",DJ,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":o.value}])},[(e.openBlock(),e.createElementBlock("svg",{height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,WJ)],8,jJ))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",UJ,[vJ,e.createElementVNode("div",GJ,[e.renderSlot(r.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},JJ=MJ(HJ,[["__scopeId","data-v-0ca35abc"]]),tt={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],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}],statisticType:"total",isStatisticTypeVisible:!1},qJ={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},YJ={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{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:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},ZJ={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},KJ=[{name:"Sub-20",logo:null,isSelected:!0,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,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}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!0,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,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:"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:"FIFA World Cup",logo:null,isSelected:!0,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{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 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:"Copa Oro",logo:null,isSelected:!0,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!0,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!0,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,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}]}],XJ=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],QJ=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],eq={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Jc={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},tq={class:"filters"},aq={key:0,class:"filters__expansion"},iq={class:"content"},oq={key:1,class:"filters__menus"},sq={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(_=>({"5e59eb26":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PRODUCTIVITY,isFooterVisible:!0},l={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PLAYS,isFooterVisible:!0},r={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.TOURNAMENTS,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},m={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.UNIVERSE,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.DISTANCE,isFooterVisible:!0},f={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.RESULTS,padding:"0",isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.VIDEOS,isFooterVisible:!1},C={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.GAMES,isFooterVisible:!0},k={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.TAKEN_CORNERS,isFooterVisible:!0},U={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.HOW_WAS_CORNER,isFooterVisible:!0},q={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.ZONE,isFooterVisible:!0},A={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.WHAT_HAPPENED,isFooterVisible:!0},v=e.ref(!1),Y=e.ref(!1),J=e.ref(0),x=e.ref(0),T=e.ref({}),S=e.ref(null),F=e.ref(null),P=e.computed(()=>o.isForTemplateForm?"0":"unset"),H=e.computed(()=>o.buttonFilterProps&&o.buttonFilterProps.text?o.buttonFilterProps.text:o.menuButtonText||O()),Z=e.computed(()=>o.isFromTemplates?N.RESULTS:o.filterType),de=e.computed(()=>o.expansionPanelText||O()),ae=e.ref(null);e.watch(()=>o.filterType,_=>{if(_===N.PRODUCTIVITY)T.value={...s,...o.templateProps,productivityCategories:o.filters||qJ};else if(_===N.PLAYS)T.value={...l,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||YJ};else if(_===N.FIELD)T.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(_===N.DETAILS)T.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:tt.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||tt.playingAs,gameSections:o.filters&&o.filters.gameSections||tt.gameSections,statisticType:o.filters?o.filters.statisticType:tt.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:tt.isStatisticTypeVisible};else if(_===N.TOURNAMENTS){const b=o.filters||KJ;o.isOneTournamentOnly&&b.forEach(w=>{w.isSelected=w.id===o.defaultTournamentId}),T.value={...c,...o.templateProps,tournaments:b}}else _===N.PERSONAL_DATA?T.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:_===N.PLAYS_TYPES?T.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||XJ}:_===N.GOLSTATS?T.value={...m,...o.templateProps,playsGolstatsCategories:o.filters||QJ}:_===N.UNIVERSE?T.value={...h,...o.templateProps,universeFilters:o.filters||ZJ}:_===N.DISTANCE?T.value={...d,...o.templateProps,distanceFilters:o.filters||eq}:_===N.RESULTS?T.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:_===N.RESULTS_BY_TIME?T.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||Us}:_===N.GAMES?T.value={...C,...o.templateProps,gamesFilters:o.filters||[]}:_===N.VIDEOS?T.value={...g,...o.templateProps,token:o.token}:_===N.TAKEN_CORNERS?T.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:_===N.HOW_WAS_CORNER?T.value={...U,...o.templateProps,howWasCornerFilters:o.filters||Ds}:_===N.ZONE?T.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:_===N.WHAT_HAPPENED&&(T.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});T.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===N.PRODUCTIVITY)T.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===N.PLAYS)T.value={...l,...o.templateProps,playsCategories:o.filters};else if(o.filterType===N.FIELD)T.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===N.DETAILS)T.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:tt.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:tt.playingAs,gameSections:o.filters?o.filters.gameSections:tt.gameSections,statisticType:o.filters?o.filters.statisticType:tt.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:tt.isStatisticVisible};else if(o.filterType===N.TOURNAMENTS){const _=o.filters;o.isOneTournamentOnly&&_.forEach(b=>{b.isSelected=b.id===o.defaultTournamentId}),T.value={...c,...o.templateProps,tournaments:_}}else o.filterType===N.PERSONAL_DATA?T.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:o.filterType===N.PLAYS_TYPES?T.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===N.GOLSTATS?T.value={...m,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===N.UNIVERSE?T.value={...h,...o.templateProps,universeFilters:o.filters}:o.filterType===N.DISTANCE?T.value={...d,...o.templateProps,distanceFilters:o.filters}:o.filterType===N.RESULTS?T.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:o.filterType===N.RESULTS_BY_TIME?T.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||Us}:o.filterType===N.GAMES?T.value={...C,...o.templateProps,gamesFilters:o.filters}:o.filterType===N.VIDEOS?T.value={...g,...o.templateProps,token:o.token}:o.filterType===N.TAKEN_CORNERS?T.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===N.HOW_WAS_CORNER?T.value={...U,...o.templateProps,howWasCornerFilters:o.filters||Ds}:o.filterType===N.ZONE?T.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:o.filterType===N.WHAT_HAPPENED&&(T.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});T.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")}),e.watch(v,_=>{_||a("close",ae.value)}),e.watch(Y,_=>{_||a("close",ae.value)});function E(_){J.value=_}function V(){o.isExpansionPanel?Y.value=!1:v.value=!1,a("apply",ae.value)}function O(){if(o.filterType===N.PRODUCTIVITY)return o.isFromTemplates?"Tipos de jugadas":"Características de juego";if(o.filterType===N.PLAYS)return"Jugada(s)";if(o.filterType===N.FIELD)return"Zona de cancha";if(o.filterType===N.DETAILS)return"Detalles";if(o.filterType===N.TOURNAMENTS)return"Ligas";if(o.filterType===N.PERSONAL_DATA)return"Datos personales";if(o.filterType===N.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===N.GOLSTATS)return"Filtros Golstats";if(o.filterType===N.UNIVERSE)return"Universo";if(o.filterType===N.DISTANCE)return"Distancia";if([N.RESULTS,N.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===N.GAMES)return"Partidos";if(o.filterType===N.VIDEOS)return"Videos";if(o.filterType===N.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===N.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===N.ZONE)return"Zona";if(o.filterType===N.WHAT_HAPPENED)return"¿Qué sucedió?"}function $(_){T.value.fieldAreas=_,J.value=_.length,z(_)}function W(_){let b=0;_.value&&_.value.statistics&&(_.value.minutesPlayed&&b++,_.value.percentMinutesPlayed&&b++,_.value.lastMonths&&b++,_.value.statistics.totals&&b++,_.value.statistics.averagePerGame&&b++,_.value.statistics.averagePerMinute&&b++),T.value.universe=_.value,J.value=b,z(_.value)}function z(_){ae.value=_,a("update:filters",_)}function G(_){x.value=_}function j(_=null){S.value&&S.value.clearFilters(_),F.value&&F.value.clearFilters(_)}return i({clearFilters:j}),(_,b)=>(e.openBlock(),e.createElementBlock("div",tq,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",aq,[e.createVNode(e.unref(JJ),e.mergeProps(t.expansionPanelProps,{modelValue:Y.value,"onUpdate:modelValue":b[0]||(b[0]=w=>Y.value=w),text:de.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",iq,[e.createVNode(Hc,e.mergeProps(T.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateExpansionPanel",ref:F,onChangeFieldAreas:$,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,onApply:V,"onUpdate:filters":z,onTotalFilters:G}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",oq,[e.createVNode(e.unref(JH),{modelValue:v.value,"onUpdate:modelValue":b[1]||(b[1]=w=>v.value=w),width:t.width,"left-menu":P.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(IJ,e.mergeProps(t.buttonFilterProps,{text:H.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":J.value,"filters-total":x.value.value,"is-active":v.value,"icon-type":Z.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Hc,e.mergeProps(T.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateMenu",ref:S,onChangeFieldAreas:$,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,"onUpdate:filters":z,onTotalFilters:G,onApply:V}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},vs=le(sq,[["__scopeId","data-v-a8b543ef"]]),lq={class:"dropdown__position"},rq={key:0,class:"label"},nq={class:"selected-item"},qc={__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const a=t,o={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),l=e.computed(()=>{const c={...ut};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c}),r=e.computed(()=>{let c=a.positions&&a.positions.length?[...a.positions]:[];const p=c[0];return(!p||p.id!==0)&&c.unshift(o),c.sort((y,m)=>y.id-m.id),c});e.watch(r,c=>{const p=c.filter(y=>y.isSelected);p.length===r.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?s.value="Todas las posiciones":p.length===1?s.value=p[0].name:s.value=`${p.length} seleccionadas`,i("change-positions",c)},{immediate:!0,deep:!0});function n(c,p){p.id===0?r.value.forEach(y=>{y.isSelected=c}):(p.isSelected=c,r.value[0].isSelected=r.value.every((y,m)=>m===0?!0:y.isSelected))}return(c,p)=>(e.openBlock(),e.createElementBlock("div",lq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",rq,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(He),e.mergeProps(l.value,{"is-multiple-option":"",items:r.value,arrowWidth:"10"}),{default:e.withCtx(()=>[e.createElementVNode("div",nq,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s.value),1)],64))])]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":y.isSelected,label:t.isFemale?y.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):y.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":m=>n(m,y)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},dq={class:"dropdown-years"},cq={key:0,class:"label"},pq={class:"selected-item"},Yc={__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-year"],setup(t,{emit:i}){const a=t,o=e.computed(()=>{const r={...ut};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{r[n]=a.dropdownProps[n]}),r}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function l(r){i("change-year",r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",dq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",cq,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(He),e.mergeProps({"model-value":t.selectedYear,arrowWidth:"10"},o.value,{items:s.value,"onUpdate:modelValue":l}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",pq,e.toDisplayString(c),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},mq=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),uq={class:"dropdown-templates"},hq={key:0,class:"label"},yq={class:"selected-item"},fq={class:"item"},gq={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_q=mq(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1)),bq=[_q],Sq={__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const a=t,o=e.ref([]),s=e.ref(null),l=e.computed(()=>{const c={...ut};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c});e.watch(()=>a.teamId,c=>{c&&n()},{immediate:!0});function r(c){s.value=c,i("change-template",c)}async function n(){try{const c=await Pt.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});o.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return n(),(c,p)=>(e.openBlock(),e.createElementBlock("div",uq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",hq,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(He),e.mergeProps({"model-value":t.selectedTemplate},l.value,{items:o.value,"arrow-width":"10",onInput:r}),{default:e.withCtx(({selectedItem:y})=>[e.createElementVNode("div",yq,e.toDisplayString(y.name),1)]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",fq,[e.createElementVNode("div",null,e.toDisplayString(y.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",gq,bq,512)),[[e.vShow,s.value.name===y.name]])])]),_:1},16,["model-value","items"])]))}},Cq=le(Sq,[["__scopeId","data-v-8bd3ce77"]]);function Gs(){return{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!1}}function Zc(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function wq(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 0px",textFontFamily:"'Poppins-Regular'"}}const Ii="/group-427321501.svg",Kc="/shape.svg",kq="_filtersContainer_b9wc6_1",Eq="_filtersContainer1232_b9wc6_1",Vq="_closeFiltersPc_b9wc6_1",xq="_textleyemdmultipleleagues_b9wc6_1",Tq="_textleyemdmultipleleagues380_b9wc6_1",Nq="_filtersContainer760_b9wc6_1",Bq="_filtersContainer460_b9wc6_1",Fq="_containerSectionPlay_b9wc6_1",Pq="_containerSectionPlay1232_b9wc6_1",$q="_containerSectionPlay960_b9wc6_1",zq="_containerSectionPlay320_b9wc6_1",Aq="_containerSectionPlay350_b9wc6_1",Iq="_containerSection_b9wc6_1",Mq="_containerSection1232_b9wc6_1",Rq="_containerSection960_b9wc6_1",Lq="_containerSection320_b9wc6_1",Oq="_containerSection350_b9wc6_1",Dq="_templateLosMejores_b9wc6_1",jq="_templateLosMejores1232_b9wc6_1",Wq="_templateLosMejores960_b9wc6_1",Uq="_templateLosMejores420_b9wc6_1",vq="_templateLosMejores320_b9wc6_1",Gq="_templateLosMejores540_b9wc6_1",Hq="_templateLosMejores350_b9wc6_1",Jq="_topFiltersParent_b9wc6_1",qq="_topFiltersParent1232_b9wc6_1",Yq="_topFiltersParent960_b9wc6_1",Zq="_topFiltersParent460_b9wc6_1",Kq="_topFiltersParent420_b9wc6_1",Xq="_containerTheBest_b9wc6_1",Qq="_containerTheBest1232_b9wc6_1",eY="_containerTheBest960_b9wc6_1",tY="_containerTheBest320_b9wc6_1",aY="_titleSection_b9wc6_1",iY="_titleSection540_b9wc6_1",oY="_containerTables_b9wc6_1",sY="_containerTables960_b9wc6_1",lY="_containerTables760_b9wc6_1",rY="_containerTables320_b9wc6_1",nY="_toniKroosWrapper_b9wc6_1",dY="_toniKroosWrapper1080_b9wc6_1",cY="_toniKroosWrapper975_b9wc6_1",pY="_toniKroosWrapper760_b9wc6_1",mY="_toniKroosWrapper420_b9wc6_1",uY="_toniKroosWrapper320_b9wc6_1",hY="_frameChild_b9wc6_1",yY="_filtros_b9wc6_1",fY="_groupParent_b9wc6_1",gY="_shapeIcon_b9wc6_1",_Y="_btnFilters_b9wc6_1",bY="_btnFiltersPC_b9wc6_1",SY="_quitarFiltros_b9wc6_1",CY="_quitarFiltros730_b9wc6_1",wY="_quitarFiltros480_b9wc6_1",kY="_quitarFiltros380_b9wc6_1",EY="_btnCloseFilters_b9wc6_1",VY="_mejoresJugadores_b9wc6_1",xY="_mejoresJugadores730_b9wc6_1",TY="_mejoresJugadores480_b9wc6_1",NY="_mejoresJugadoresSM_b9wc6_1",BY="_toniKroos_b9wc6_1",FY="_teamBar_b9wc6_1",PY="_menuSection_b9wc6_1",$Y="_menuSection960_b9wc6_1",zY="_menuSectionPlay_b9wc6_1",AY="_menuSectionPlay960_b9wc6_1",IY="_containerMenu_b9wc6_1",MY="_containerMenu760_b9wc6_1",RY="_containerFilters_b9wc6_1",LY="_teamBarParent_b9wc6_1",OY="_topFilters_b9wc6_1",DY="_topFilters1232_b9wc6_1",jY="_topFilters420_b9wc6_1",WY="_topFilters460_b9wc6_1",UY="_losMejores_b9wc6_1",vY="_losMejores380_b9wc6_1",GY="_losMejores530_b9wc6_1",HY="_losMejores730_b9wc6_1",JY="_menuSectionHeader_b9wc6_1",qY="_menuSectionHeader1232_b9wc6_1",YY="_menuSectionHeader960_b9wc6_1",ZY="_menuSectionHeader730_b9wc6_1",KY="_dropdown_b9wc6_1",XY="_dropdown730_b9wc6_1",QY="_dropdown1_b9wc6_1",eZ="_dropdown1730_b9wc6_1",tZ="_dropdownParent_b9wc6_1",aZ="_dropdownParent730_b9wc6_1",iZ="_menuSectionParentHeader_b9wc6_1",oZ="_menuSectionParentHeader1232_b9wc6_1",sZ="_menuSectionParentHeader960_b9wc6_1",lZ="_menuSectionParentHeader730_b9wc6_1",rZ="_menuSectionParentHeader430_b9wc6_1",nZ="_descubreVideos_b9wc6_1",dZ="_descubreVideos1232_b9wc6_1",cZ="_descubreVideos960_b9wc6_1",pZ="_allCategories_b9wc6_1",mZ="_containerScountingBtn_b9wc6_3",uZ="_btnDeleteAplica_b9wc6_13",hZ="_SearchBtnBar_b9wc6_33",yZ="_btnLeyendTxt_b9wc6_52",fZ="_BtnSearchScounting_b9wc6_61",gZ="_containerPredefined_b9wc6_85",_Z="_containerPredefinedScounting_b9wc6_92",bZ="_titleContainerPredefined_b9wc6_100",SZ="_subtitleContainerPredefined_b9wc6_111",CZ={filtersContainer:kq,filtersContainer1232:Eq,closeFiltersPc:Vq,textleyemdmultipleleagues:xq,textleyemdmultipleleagues380:Tq,filtersContainer760:Nq,filtersContainer460:Bq,containerSectionPlay:Fq,containerSectionPlay1232:Pq,containerSectionPlay960:$q,containerSectionPlay320:zq,containerSectionPlay350:Aq,containerSection:Iq,containerSection1232:Mq,containerSection960:Rq,containerSection320:Lq,containerSection350:Oq,templateLosMejores:Dq,templateLosMejores1232:jq,templateLosMejores960:Wq,templateLosMejores420:Uq,templateLosMejores320:vq,templateLosMejores540:Gq,templateLosMejores350:Hq,topFiltersParent:Jq,topFiltersParent1232:qq,topFiltersParent960:Yq,topFiltersParent460:Zq,topFiltersParent420:Kq,containerTheBest:Xq,containerTheBest1232:Qq,containerTheBest960:eY,containerTheBest320:tY,titleSection:aY,titleSection540:iY,containerTables:oY,containerTables960:sY,containerTables760:lY,containerTables320:rY,toniKroosWrapper:nY,toniKroosWrapper1080:dY,toniKroosWrapper975:cY,toniKroosWrapper760:pY,toniKroosWrapper420:mY,toniKroosWrapper320:uY,frameChild:hY,filtros:yY,groupParent:fY,shapeIcon:gY,btnFilters:_Y,btnFiltersPC:bY,quitarFiltros:SY,quitarFiltros730:CY,quitarFiltros480:wY,quitarFiltros380:kY,btnCloseFilters:EY,mejoresJugadores:VY,mejoresJugadores730:xY,mejoresJugadores480:TY,mejoresJugadoresSM:NY,toniKroos:BY,teamBar:FY,menuSection:PY,menuSection960:$Y,menuSectionPlay:zY,menuSectionPlay960:AY,containerMenu:IY,containerMenu760:MY,containerFilters:RY,teamBarParent:LY,topFilters:OY,topFilters1232:DY,topFilters420:jY,topFilters460:WY,losMejores:UY,losMejores380:vY,losMejores530:GY,losMejores730:HY,menuSectionHeader:JY,menuSectionHeader1232:qY,menuSectionHeader960:YY,menuSectionHeader730:ZY,dropdown:KY,dropdown730:XY,dropdown1:QY,dropdown1730:eZ,dropdownParent:tZ,dropdownParent730:aZ,menuSectionParentHeader:iZ,menuSectionParentHeader1232:oZ,menuSectionParentHeader960:sZ,menuSectionParentHeader730:lZ,menuSectionParentHeader430:rZ,descubreVideos:nZ,descubreVideos1232:dZ,descubreVideos960:cZ,allCategories:pZ,containerScountingBtn:mZ,btnDeleteAplica:uZ,SearchBtnBar:hZ,btnLeyendTxt:yZ,BtnSearchScounting:fZ,containerPredefined:gZ,containerPredefinedScounting:_Z,titleContainerPredefined:bZ,subtitleContainerPredefined:SZ},wZ=e.ref(Gs()),kZ={components:{GSCTableHeader:Qo,GscSwitchComponent:hs,GSCFilterperteam:hd,GSCFilters:vs,GSCExpandedInfo:ns,GSCLabel:Nd,GSCSeasonSelect:ed,GSCTopCategory:Xz,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={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},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...wZ.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Le(t);return{myDivRefTopsFull:t,elementSize:i}},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},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{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:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{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}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{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}],statisticType:"total",isStatisticTypeVisible:!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}],fvTypeStats:"totals",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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,teamselect: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:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:N,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,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(ie.All),i.clearFilters(ie.AGE_RANGE),i.clearFilters(ie.YEAR),i.clearFilters(ie.NATIONALITY),i.clearFilters(ie.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[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(t){this.$emit("openmedia",t)},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||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",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].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 s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[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=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.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,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;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});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="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}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.isSelection?(this.detailsObjectSelection.gameSections[0].isSelected=!0,this.detailsObjectSelection.gameSections[1].isSelected=!0,this.detailsObjectSelection.gameSections[2].isSelected=!0,this.detailsObjectSelection.gameSections[3].isSelected=!0,this.detailsObjectSelection.gameSections[4].isSelected=!0,this.detailsObjectSelection.gameSections[5].isSelected=!0):(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}),t=="onFiltersDetailsPlayingAs"&&(this.isSelection?(this.detailsObjectSelection.playingAs[0].isSelected=!0,this.detailsObjectSelection.playingAs[1].isSelected=!0):(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}),t=="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(ie.NATIONALITY)),t=="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(ie.POSITION)),t=="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(ie.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(ie.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(ie.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(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].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},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,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(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(ie.All),a.clearFilters(ie.AGE_RANGE),a.clearFilters(ie.YEAR),a.clearFilters(ie.NATIONALITY),a.clearFilters(ie.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h]);var l=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let h=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let d=0;d<t.nationalities.length;d++)t.nationalities[d].isSelected&&(this.fVnationalities.add(t.nationalities[d].id),h++);if(h===t.nationalities.length){var l=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}if(t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let h=0;for(let d=0;d<t.positions.length;d++)t.positions[d].isSelected&&(this.fVsetPositionsIds.push(t.positions[d].id),h++);if(h===t.positions.length){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(h=>h.isSelected===!0);var c=t.positions.filter(h=>h.isSelected===!0);if(c.length==1&&(o=c[0].name),t.hasOwnProperty("nationalities")&&n.length==1&&(s=n[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 p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");p!=-1?this.arrayFiltersPlays[p].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var p=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[r].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");y!=-1?this.arrayFiltersPlays[y].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.ageLimits&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");m!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[m].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(m,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 m=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");m!=-1&&this.arrayFiltersPlays.splice(m,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},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}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.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}},this.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}]},this.detailsObjectSelection={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}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(ie.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.onClickDeleteFilterAux(),this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){if(this.isSelection){if(this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,t=="Más productivos"){this.optionSelected="Scouting",this.resetFilter(),this.resetLeagues(),this.filterScounting.nationalities=[138],this.filterScounting.last_months=6,this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=me.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=me.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?y=y.replace(/Jugadoras/g,"Equipos"):y=y.replace(/Jugadores/g,"Equipos")),p.setNationalitiesIds=[],r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(c=k.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=k.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((d=(h=k.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=k.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=k.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=me.create({headers:{Authorization:`${this.token}`}}),i=this.isSelection?`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20&nat=138`:`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=me.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},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.loadPreloadedTops();const t=await me.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.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(t){throw new Error(t)}}},EZ={ref:"myDivRefTopsFull"},VZ={key:0,class:"overlay-loading"},xZ=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),TZ=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),NZ=[xZ,TZ],BZ=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),FZ=[BZ],PZ={key:0,class:"cont-leyemd-multipleleagues"},$Z=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),zZ={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},AZ={key:0,style:{"margin-left":"10px"}},IZ=e.createElementVNode("span",null,"Todas las categorías",-1),MZ=[IZ],RZ=e.createElementVNode("span",null,"Tipo de Jugada",-1),LZ=e.createElementVNode("span",null,"Filtro GolStats",-1),OZ={key:3,style:{width:"100%",height:"295px"}};function DZ(t,i,a,o,s,l){const r=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCFilterperteam"),y=e.resolveComponent("GSCFilters"),m=e.resolveComponent("GSCLabel"),h=e.resolveComponent("GSCTopCategory"),d=e.resolveComponent("GSCTableHeader"),f=e.resolveComponent("GSCRowTable"),u=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",EZ,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",VZ,NZ)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(c,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(p,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...g)=>l.clickOpenFilters&&l.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...g)=>l.clickCloseFilters&&l.clickCloseFilters(...g))},FZ,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(c,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(c,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0,"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:a.isSelection?s.detailsObjectSelection:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(y,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[4]||(i[4]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",PZ,[$Z,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(p,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",zZ," No se muestran jugadores que hayan jugado menos de 90 minutos ")):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.titleSectionClass)},[s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.mejoresJugadoresClass)},[s.arrayFiltersPlays.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Equipos"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Mejores jugadoras: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores jugadores: ")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores equipos:")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[this.filterScounting.tournaments.length==1&&this.filterScounting.tournaments[0]==1001?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadoras más productivas:")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugadores más productivos:")],64))],64))],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.showFullTable?(e.openBlock(),e.createElementBlock("div",AZ,[e.createVNode(m,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:{"margin-left":"10px"}},[e.createVNode(m,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:g.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(g=>g.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[5]||(i[5]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},MZ,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(h,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":l.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[RZ,e.createTextVNode(" y un "),LZ,e.createTextVNode(" en la")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(d,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:l.setMediaData,data:{position:g.position,player_name:g.player_name,player_photo:g.player_photo,total:g.total,id:g.id,player_age:g.player_age,team_abrev:g.team_abrev,team_logo:g.team_logo,player_position:s.positions[g.player_position-1].fullname,player_country_flag:g.player_country_flag,player_games:g.player_games,player_min:g.player_min,league_name:g.league_name,seasons:g.seasons,season_id:g.season_id},height:"71px",background:C%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==g.id?(e.openBlock(),e.createBlock(u,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:g.team_name,age:g.player_age,dataofbirth:g.date,nationality:g.nationality_name,countryFlag:g.player_country_flag,position:s.positions[g.player_position-1].name,games:g.player_games,min:g.player_min,goals:g.total,effectiveness:"-",category:"total",id:g.id},onViewprofile:k=>l.viewprofile(k,g.season_id,g.team_id),background:C%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[6]||(i[6]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[7]||(i[7]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",OZ)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const jZ={$style:CZ},WZ=Se(kZ,[["render",DZ],["__cssModules",jZ]]),Hs={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Xc=()=>{e.useCssVars(t=>({"39b08ebc":t.backgroundColor,"5bd2cafa":t.widthCircle,"73104bac":t.heightCircle}))},Qc=Hs.setup;Hs.setup=Qc?(t,i)=>(Xc(),Qc(t,i)):Xc;const UZ=["width","src"],vZ=["checked"],GZ=["width","src"];function HZ(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(l.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["text-left",{inactive:s.OptionDefault}])},e.toDisplayString(a.textOptionLeft),3)):e.createCommentVNode("",!0),a.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA,class:e.normalizeClass({inactive:s.OptionDefault})},null,10,UZ)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>l.handleSwitchChange&&l.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,vZ),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([l.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB,class:e.normalizeClass({inactive:!s.OptionDefault})},null,10,GZ)):e.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["text-right",{inactive:!s.OptionDefault}])},e.toDisplayString(a.textOptionRight),3)):e.createCommentVNode("",!0)],4)}const JZ=Se(Hs,[["render",HZ],["__scopeId","data-v-a583325d"]]),qZ={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},listId:{type:Number,required:!0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref(new Set),s=e.ref(""),l=e.ref([]),r=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=e.ref(null),p=u=>{document.body.style.overflow=u?"hidden":"auto"},y=()=>{o.value.clear(),s.value="",c.value=null,l.value=[]},m=()=>{y(),i("close")},h=()=>{s.value=""},d=async()=>{if(t.userId){r.value=!0;try{const u=await me.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);l.value=u.data.data}catch(u){console.error("Error al obtener las listas:",u)}finally{r.value=!1}}};e.watch(()=>t.isVisible,u=>{p(u),u&&t.userId&&d()}),e.watch(()=>t.userId,u=>{u&&t.isVisible&&d()}),e.onMounted(()=>{t.isVisible&&p(!0)}),e.onUnmounted(()=>{p(!1)});const f=e.computed(()=>{if(!s.value)return l.value;const u=s.value.toLowerCase();return l.value.filter(g=>g.name.toLowerCase().includes(u))});return{modalContent:a,selectedPlayers:o,searchQuery:s,closeModal:m,clearSearch:h,playlists:l,isLoading:r,filteredPlaylists:f,selectedPlaylist:c,handlePlaylistSelection:u=>{c.value=u},handleCreatePlaylist:async()=>{if(c.value)try{const u=me.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:c.value,players:[t.player]};await u.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${c.value}/players`,g),m()}catch(u){console.error("Error al guardar el jugador en la lista:",u)}},handleCreateListClick:()=>{i("create-list"),y()}}}},yt=t=>(e.pushScopeId("data-v-2e88a2e7"),t=t(),e.popScopeId(),t),YZ={class:"modal-header"},ZZ=yt(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Agregar a lista")],-1)),KZ=yt(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),XZ=[KZ],QZ={class:"modal-body"},eK={class:"search-section"},tK={class:"search-container"},aK={class:"search-input"},iK=yt(()=>e.createElementVNode("svg",{class:"search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.25 15.25L11.8855 11.8795L15.25 15.25ZM13.75 7.375C13.75 9.06576 13.0784 10.6873 11.8828 11.8828C10.6873 13.0784 9.06576 13.75 7.375 13.75C5.68424 13.75 4.06274 13.0784 2.86719 11.8828C1.67165 10.6873 1 9.06576 1 7.375C1 5.68424 1.67165 4.06274 2.86719 2.86719C4.06274 1.67165 5.68424 1 7.375 1C9.06576 1 10.6873 1.67165 11.8828 2.86719C13.0784 4.06274 13.75 5.68424 13.75 7.375V7.375Z",stroke:"white","stroke-opacity":"0.43","stroke-width":"1.5","stroke-linecap":"round"})],-1)),oK=yt(()=>e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)),sK=[oK],lK=yt(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),rK={class:"players-table-container"},nK={class:"players-table"},dK={key:0,class:"loading-message"},cK={key:1,class:"empty-message"},pK={class:"checkbox-container"},mK=["id","checked","onChange"],uK=yt(()=>e.createElementVNode("div",{class:"folder-icon"},[e.createElementVNode("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 2H10L8 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V4C20 2.9 19.1 2 18 2Z",fill:"#ffffff","fill-opacity":"0.3"})])],-1)),hK={class:"list-content"},yK={class:"title"},fK={class:"subtitle"},gK={class:"modal-footer"},_K={class:"buttons-container buttons-container-step2"},bK=yt(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),SK=yt(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),CK=[bK,SK],wK={class:"right-buttons"},kK=["disabled"];function EK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[8]||(i[8]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[7]||(i[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",YZ,[ZZ,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},XZ)]),e.createElementVNode("div",QZ,[e.createElementVNode("div",eK,[e.createElementVNode("div",tK,[e.createElementVNode("div",aK,[iK,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.searchQuery=r),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,o.searchQuery]]),o.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:i[2]||(i[2]=(...r)=>o.clearSearch&&o.clearSearch(...r))},sK)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:i[3]||(i[3]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},[lK,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",rK,[e.createElementVNode("div",nK,[o.isLoading?(e.openBlock(),e.createElementBlock("div",dK," Cargando listas... ")):o.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",cK," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.filteredPlaylists,r=>{var n;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"list-item"},[e.createElementVNode("div",pK,[e.createElementVNode("input",{type:"checkbox",id:r.id,checked:o.selectedPlaylist===r.id,onChange:c=>o.handlePlaylistSelection(r.id)},null,40,mK)]),uK,e.createElementVNode("div",hK,[e.createElementVNode("div",yK,e.toDisplayString(r==null?void 0:r.name),1),e.createElementVNode("div",fK,e.toDisplayString((n=r==null?void 0:r.template)==null?void 0:n.name),1)])])}),128))])])]),e.createElementVNode("div",gK,[e.createElementVNode("div",_K,[e.createElementVNode("button",{class:"create-list-link",onClick:i[4]||(i[4]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},CK),e.createElementVNode("div",wK,[e.createElementVNode("button",{class:"cancelar",onClick:i[5]||(i[5]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[6]||(i[6]=(...r)=>o.handleCreatePlaylist&&o.handleCreatePlaylist(...r)),disabled:!o.selectedPlaylist}," Guardar ",8,kK)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const VK=Se(qZ,[["render",EK],["__scopeId","data-v-2e88a2e7"]]),xK={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref([]),s=e.ref({title:"",templateId:""}),l=e.ref(0),r=()=>{a.value&&(l.value=a.value.offsetWidth)},n=d=>{document.body.style.overflow=d?"hidden":"auto"},c="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",p=()=>{r(),t.isVisible&&n(!0)},y=()=>{s.value={title:"",templateId:""},i("close")},m=async()=>{if(!(!s.value.title||!s.value.templateId))try{const d=o.value.find(g=>g.id===s.value.templateId),f={user_id:t.userId,name:s.value.title,template:d,players:[t.player]},u=await me.create({headers:{Authorization:`${c}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,f);y()}catch(d){console.error("Error al crear la lista:",d)}},h=async()=>{try{const d=await me.create({headers:{Authorization:`${c}`}}).get("https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/templates");o.value=d.data.data}catch(d){console.error("Error al obtener templates:",d)}};return e.onMounted(()=>{window.addEventListener("resize",p),h()}),e.onUnmounted(()=>{window.removeEventListener("resize",p),n(!1)}),e.watch(()=>t.isVisible,d=>{d?(setTimeout(r,0),n(!0)):n(!1)}),e.watch(()=>t.listData,d=>{d&&(d.name&&(s.value.title=d.name),d.template&&(s.value.templateId=Number(d.template)))},{immediate:!0}),{modalContent:a,playlistData:s,modalWidth:l,closeModal:y,handleNext:m,templates:o}}},Js=t=>(e.pushScopeId("data-v-5af4ce4d"),t=t(),e.popScopeId(),t),TK={class:"modal-header"},NK=Js(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Crear lista")],-1)),BK=Js(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),FK=[BK],PK={class:"modal-body"},$K=Js(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),zK=["value"],AK={class:"modal-footer"},IK={class:"buttons-container buttons-container-step1"},MK=["disabled"];function RK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[6]||(i[6]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",TK,[NK,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},FK)]),e.createElementVNode("div",PK,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.playlistData.title=r),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,o.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.playlistData.templateId=r),class:"select-position"},[$K,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.templates,r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.name),9,zK))),128))],512),[[e.vModelSelect,o.playlistData.templateId]])]),e.createElementVNode("div",AK,[e.createElementVNode("div",IK,[e.createElementVNode("button",{class:"cancelar",onClick:i[3]||(i[3]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[4]||(i[4]=(...r)=>o.handleNext&&o.handleNext(...r)),disabled:!o.playlistData.title||!o.playlistData.templateId}," Guardar ",8,MK)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const LK=Se(xK,[["render",RK],["__scopeId","data-v-5af4ce4d"]]),OK=[{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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],DK=[{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:1933,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}]}],jK=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},WK={key:1},UK={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vK=["fill"],GK={key:0,class:"checkbox__teams"},HK={class:"checkbox__teams__logo"},JK=["src"],qK={class:"checkbox__teams__logo"},YK=["src"],ZK={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",WK,[(e.openBlock(),e.createElementBlock("svg",UK,[e.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:t.boxValueColor},null,8,vK)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",GK,[e.createElementVNode("div",HK,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,JK)]),e.createElementVNode("div",qK,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,YK)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},KK=jK(ZK,[["__scopeId","data-v-b6f124d8"]]),XK=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},qs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ep=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},tp=qs.setup;qs.setup=tp?(t,i)=>(ep(),tp(t,i)):ep;const QK=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),eX=["src"],tX={key:1,class:"text"},aX=["src"],iX={class:"stats"},oX=QK(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),sX={class:"numstats"},lX={class:"leyend"};function rX(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,eX)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",tX,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,aX)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",iX,[oX,e.createElementVNode("div",sX,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",lX,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const nX=XK(qs,[["render",rX],["__scopeId","data-v-f3ee6b2b"]]),ap=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},dX=t=>(e.pushScopeId("data-v-d03b93c8"),t=t(),e.popScopeId(),t),cX={key:0,class:"overlay"},pX=dX(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),mX=["onClick"],uX={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const h=o.availablePlayers[0];return h?h.stats:[]}),c=e.computed(()=>{const h=`repeat(${n.value.length}, max-content) 36px`;let d="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(f=>{d+=`${f.offsetWidth}px `}),{"--grid-template-columns":h,"--grid-template-columns-totals":d||h}});function p(){s.value=new ResizeObserver(h=>{for(const d of h){const{width:f}=d.contentRect;r.value=f}}),s.value.observe(l.value)}function y(h,d){const f=document.querySelectorAll(".scrollable-row-totals")[h+1];f&&(f.style.marginTop=`${d}px`)}function m({player:h,stat:d}){!d.total||d==="0%"||!d.seasons||!d.seasons.length||a("open-media",{...h,stat:d})}return e.onMounted(()=>{p()}),i({setMarginTopDetails:y}),(h,d)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(c.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",cX)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,f=>(e.openBlock(),e.createElementBlock("div",{key:`t-${f.category_id}`,class:"column-title-2"},e.toDisplayString(f.name),1))),128)),pX],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${f.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.stats,g=>(e.openBlock(),e.createElementBlock("div",{key:g.category_id,class:e.normalizeClass(["row data-info",{odd:u%2!==0,underline:!!g.total&&g.total!=="0%"&&g.seasons&&g.seasons.length}]),onClick:C=>m({player:f,stat:g})},e.toDisplayString(g.total),11,mX))),128))]))),128))],4))}},hX=ap(uX,[["__scopeId","data-v-d03b93c8"]]),Be=t=>(e.pushScopeId("data-v-378d650a"),t=t(),e.popScopeId(),t),yX={class:"table__static-column"},fX=Be(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),gX={class:"container"},_X={class:"details-row__info"},bX={class:"details-row__info__personal"},SX={class:"bold"},CX={class:"bold"},wX={class:"bold"},kX={class:"bold"},EX={class:"details-row__info__games"},VX={class:"bold"},xX={class:"bold"},TX=["onClick"],NX=Be(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),BX=Be(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),FX=[NX,BX],PX=["onClick"],$X=Be(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),zX=Be(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),AX=[$X,zX],IX=["onClick"],MX=Be(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),RX=Be(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),LX=[MX,RX],OX=["onClick"],DX=Be(()=>e.createElementVNode("div",null,"Ver perfil",-1)),jX=[DX],WX={class:"static-row__info-player"},UX={class:"position"},vX=["onClick"],GX=Be(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),HX=Be(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),JX=Be(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),qX=[GX,HX,JX],YX=["onClick"],ZX=Be(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),KX=Be(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),XX=Be(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),QX=[ZX,KX,XX],eQ={class:"player-photo"},tQ=["src"],aQ={class:"player-name"},iQ={class:"arrow"},oQ=["onClick"],sQ=Be(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),lQ=[sQ],rQ={class:"table__scrollable-columns"},nQ=e.createStaticVNode('<div class="titles scrollable-row" data-v-378d650a><div class="column-title" data-v-378d650a>Equipo</div><div class="column-title" data-v-378d650a>Posición</div><div class="column-title" data-v-378d650a>Edad</div><div class="column-title" data-v-378d650a>País</div><div class="column-title" data-v-378d650a>Partidos Jugados</div><div class="column-title" data-v-378d650a>Minutos Jugados</div><div class="column-title" data-v-378d650a>Liga</div><div class="column-title" data-v-378d650a>Videos</div><div class="column-title" data-v-378d650a></div></div>',1),dQ={class:"team-logo"},cQ=["src"],pQ={class:"team-name data-info"},mQ=["src"],uQ={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref(-1);e.ref(!1);const m=e.ref(null),h=e.computed(()=>({"--width-details":`${c.value}px`,"--gap-static-row":`${d.value?"8px":"18px"}`,"--width-static-column":`${d.value?"50%":"256px"}`})),d=e.computed(()=>c.value<600);e.watch(()=>a.players,x=>{x&&x.length&&(l.value=x.map((T,S)=>{const F=S+1;return{...T,position:F<10?`0${F}`:`${F}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S}}))},{immediate:!0}),e.watch(()=>a.isEditMode,x=>{x&&l.value.forEach(T=>{T.isSelected=!1})}),e.watch(p,x=>{const T=document.querySelectorAll(".static-row")[y.value+1];T&&(T.style.marginTop=`${x}px`),a.isGeneral?f(y.value,x):n.value&&n.value.setMarginTopDetails(y.value,x),x===0&&m.value&&J(m.value)});function f(x,T){const S=document.querySelectorAll(".scrollable-row")[x+2];S&&(S.style.marginTop=`${T}px`)}function u(x){const T=x.player||x.objeto_player,S=T?T.player_id||T.id||T.playerId:x.id||x.player_id,F=T?T.team_id||T.teamId:x.team_id||x.teamId,P={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:F||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(x.stat&&x.stat.seasons&&x.stat.seasons.length||x.seasons&&x.seasons.length){const H=[...x.stat&&x.stat.seasons&&x.stat.seasons.length?x.stat.seasons:x.seasons];H.sort((Z,de)=>Z-de),P.seasonId=H.shift(),P.seasonsIds=H}else(x.season_id||x.seasonId)&&(P.seasonId=x.season_id||x.seasonId);x.stat?x.stat.category_id?P.categoryIds=x.stat.category_id:x.stat.custom_category_id&&(P.customCategoryIds=[x.stat.custom_category_id]):P.categoryIds=k(x.player_position),i("open-media",P)}function g(){o=new ResizeObserver(x=>{for(const T of x)c.value=T.contentRect.width}),o.observe(r.value)}function C(x){s=new ResizeObserver(T=>{for(const S of T)p.value=S.contentRect.height}),s.observe(x)}function k(x){return x==="POR"?[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]}function U(x,T){T.isSelected=x;const S=l.value.filter(F=>F.isSelected);i("change-selected-players",S)}function q(x){i("view-profile",x)}function A(x){i("delete-from-list",x)}function v(x){i("add-to-list",x)}function Y(x){i("show-graph",x)}function J(x){if(x.isExpanded){x.isExpanded=!1,m.value=null;return}const T=l.value.find(F=>F.isExpanded);if(T&&(T.isExpanded=!1),T){m.value=x;return}const S=document.querySelectorAll(".details-row")[x.index];y.value=x.index,C(S),x.isExpanded=!0}return e.onMounted(()=>{g()}),(x,T)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(h.value)},[e.createElementVNode("div",yX,[fX,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",gX,[e.createElementVNode("div",_X,[e.createElementVNode("div",bX,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",SX,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",CX,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",wX,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",kX,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",EX,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",VX,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",xX,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(d.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:F=>Y(S)},FX,8,TX),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:F=>A(S)},AX,8,PX)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:F=>v(S)},LX,8,IX)),e.createElementVNode("div",{role:"button",class:"button green",onClick:F=>q(S)},jX,8,OX)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(KK),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":F=>U(F,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",WX,[e.createElementVNode("div",UX,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>A(S)},qX,8,vX)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>v(S)},QX,8,YX)),e.createElementVNode("div",eQ,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,tQ)])]),e.createElementVNode("div",aQ,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",iQ,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:F=>J(S)},lQ,10,oQ))])],2))),128))]),e.createElementVNode("div",rQ,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[nQ,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",dQ,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,cQ)]),e.createElementVNode("div",pQ,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,mQ)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(nX),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:F=>u(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(hX,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:u},null,8,["available-players","is-edit-mode"]))])],4))}},hQ=ap(uQ,[["__scopeId","data-v-378d650a"]]),yQ="_tablePosition_s65tc_46",fQ="_tablePositionWrapper_s65tc_62",gQ="_imgHenrryIcon_s65tc_71",_Q="_americaIcon_s65tc_79",bQ="_playerPhoto_s65tc_91",SQ="_toniKroos_s65tc_100",CQ="_shapeIcon_s65tc_111",wQ="_menuiconsTeams_s65tc_117",kQ="_component31_s65tc_126",EQ="_playerName_s65tc_137",VQ="_icnPlayIcon_s65tc_145",xQ="_goles_s65tc_153",TQ="_americaIcon1_s65tc_160",NQ="_teamsAmerica_s65tc_174",BQ="_topAddPlayer_s65tc_181",FQ="_containerData_s65tc_185",PQ="_shapeIcon1_s65tc_193",$Q="_icnExpand1_s65tc_199",zQ="_icnExpand_s65tc_199",AQ="_playerData_s65tc_219",IQ="_playerInfo_s65tc_230",MQ="_headerTop_s65tc_245",RQ="_playerRow_s65tc_259",LQ="_groupsLeague_s65tc_270",OQ="_text_s65tc_279",DQ="_btnViewFullList_s65tc_287",jQ="_headerTops_s65tc_304",WQ="_btnVideosOptions_s65tc_376",UQ="_position_s65tc_553",vQ="_positionWrapper_s65tc_565",GQ="_imgNecaxaIcon_s65tc_573",HQ="_teamLogo_s65tc_579",JQ="_teamPhoto_s65tc_587",qQ="_name_s65tc_595",YQ="_icnPlayIconType1_s65tc_603",ZQ="_verVideosType1_s65tc_610",KQ="_btnVideosOptionsType1_s65tc_616",XQ="_btnVideosOptions1_s65tc_628",QQ="_leftContainer_s65tc_640",eee="_shapeIconType1_s65tc_649",tee="_icnExpandType1_s65tc_654",aee="_arrowExpand_s65tc_664",iee="_containerInfo_s65tc_672",oee="_headerTopTeam_s65tc_684",see="_containerHeader_s65tc_698",lee="_goles1_s65tc_707",ree="_golesType1_s65tc_710",nee="_golesWrapper_s65tc_715",dee="_btnViewAll_s65tc_724",cee="_headerTopsTeams_s65tc_741",pee="_arrowExpandIcon_s65tc_858",mee="_rotate_s65tc_863",uee={tablePosition:yQ,tablePositionWrapper:fQ,imgHenrryIcon:gQ,americaIcon:_Q,playerPhoto:bQ,toniKroos:SQ,shapeIcon:CQ,menuiconsTeams:wQ,component31:kQ,playerName:EQ,icnPlayIcon:VQ,goles:xQ,americaIcon1:TQ,teamsAmerica:NQ,topAddPlayer:BQ,containerData:FQ,shapeIcon1:PQ,icnExpand1:$Q,icnExpand:zQ,playerData:AQ,playerInfo:IQ,headerTop:MQ,playerRow:RQ,groupsLeague:LQ,text:OQ,btnViewFullList:DQ,headerTops:jQ,btnVideosOptions:WQ,position:UQ,positionWrapper:vQ,imgNecaxaIcon:GQ,teamLogo:HQ,teamPhoto:JQ,name:qQ,icnPlayIconType1:YQ,verVideosType1:ZQ,btnVideosOptionsType1:KQ,btnVideosOptions1:XQ,leftContainer:QQ,shapeIconType1:eee,icnExpandType1:tee,arrowExpand:aee,containerInfo:iee,headerTopTeam:oee,containerHeader:see,goles1:lee,golesType1:ree,golesWrapper:nee,btnViewAll:dee,headerTopsTeams:cee,arrowExpandIcon:pee,rotate:mee},Ys={components:{GSCButton:fi},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},ip=()=>{e.useCssVars(t=>({"585cd937":t.fontSizeTopNum,"32d8991a":t.fontFamilyTopNum,"16a25bef":t.fontColorTopNum,"3f30455f":t.opacityColorTopNum,"74b0c809":t.fontColorName,"051a53f4":t.fontFamilyName,"63f9f751":t.fontSizeName,"91c50268":t.backgroundColorHeader,"1c9cb9e7":t.fontFamilyCategory,"1bdd3278":t.fontSizeCategory,"35011b7c":t.fontColorCategory,"0582c83f":t.borderColorCategory}))},op=Ys.setup;Ys.setup=op?(t,i)=>(ip(),op(t,i)):ip;const hee=["src"],yee=["src"],fee=["src"],gee=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_ee=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),bee=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),See=[gee,_ee,bee],Cee=["fill"],wee=["fill"],kee=["src"],Eee=["fill"],Vee=["fill"];function xee(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,hee),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,yee)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(r,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,fee)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[1]||(i[1]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},See))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:i[2]||(i[2]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,wee)],10,Cee))],2)],2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.headerTopsTeams)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerHeader),id:"header-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTopTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamPhoto),id:"container-team"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.positionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.position)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamLogo)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgNecaxaIcon),alt:"",src:a.data.logo},null,10,kee)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[3]||(i[3]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:i[5]||(i[5]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Vee)],10,Eee))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const Tee={$style:uee},Nee=Se(Ys,[["render",xee],["__cssModules",Tee]]),Bee="_rotate_1tou5_3",Fee="_positionContainer_1tou5_50",Pee="_positionContainer620_1tou5_57",$ee="_rowwPlayer_1tou5_64",zee="_rowwPlayer960_1tou5_80",Aee="_rowwPlayer420_1tou5_95",Iee="_rowwPlayer460_1tou5_111",Mee="_containerLeft_1tou5_128",Ree="_containerLeft420_1tou5_136",Lee="_containerLeft620_1tou5_144",Oee="_iconFavoritesType1_1tou5_151",Dee="_iconFavoritesType1320_1tou5_159",jee="_iconFavorites_1tou5_151",Wee="_iconFavorites420_1tou5_175",Uee="_playerContainer_1tou5_183",vee="_playerContainer420_1tou5_195",Gee="_playerContainer460_1tou5_207",Hee="_playerContainerType1_1tou5_219",Jee="_playerContainerType1320_1tou5_229",qee="_playerContainerType1460_1tou5_239",Yee="_imgPlayerIcon_1tou5_249",Zee="_imgPlayerIcon460_1tou5_259",Kee="_imgPlayerIcon420_1tou5_269",Xee="_manchesterUnited_1tou5_279",Qee="_manchesterUnited360_1tou5_290",ete="_manchesterUnited420_1tou5_301",tte="_manchesterUnited460_1tou5_312",ate="_containerRight_1tou5_323",ite="_containerRight960_1tou5_332",ote="_containerRight420_1tou5_342",ste="_numberOfVideos_1tou5_353",lte="_numberOfVideos620_1tou5_359",rte="_block02_1tou5_365",nte="_block02960_1tou5_375",dte="_block02620_1tou5_384",cte="_block02420_1tou5_391",pte="_verVideos_1tou5_399",mte="_verVideos620_1tou5_405",ute="_numberPosition_1tou5_408",hte="_shapeIcon_1tou5_414",yte="_chivasIcon_1tou5_419",fte="_imgTeamIcon_1tou5_430",gte="_teamName_1tou5_435",_te="_nameTeam_1tou5_441",bte="_dfC_1tou5_450",Ste="_position_1tou5_50",Cte="_age_1tou5_460",wte="_manchesterUnitedIcon_1tou5_468",kte="_country_1tou5_475",Ete="_playedGames_1tou5_482",Vte="_playedMinutes_1tou5_489",xte="_block01_1tou5_496",Tte="_leagueName_1tou5_503",Nte="_roleCharacterIcon_1tou5_509",Bte="_btnVideos_1tou5_517",Fte="_containerBtnVideos_1tou5_532",Pte="_containerBtnVideos620_1tou5_542",$te="_containesOptions_1tou5_551",zte="_arrowExpandIcon_1tou5_558",Ate="_rowTeam_1tou5_567",Ite="_rowTeam420_1tou5_585",Mte="_rowTeam320_1tou5_603",Rte="_rowTeam460_1tou5_622",Lte="_rowTeam350_1tou5_641",Ote="_containerLeftType1_1tou5_659",Dte="_containerLeftType1680_1tou5_665",jte="_containerLeftType1320_1tou5_672",Wte="_containerLeftType1350_1tou5_680",Ute="_positionContainertype1_1tou5_687",vte="_positionContainertype1380_1tou5_695",Gte="_positionContainertype1680_1tou5_703",Hte="_positionContainertype1420_1tou5_711",Jte="_manchesterUnitedType1_1tou5_719",qte="_manchesterUnitedType1460_1tou5_725",Yte="_manchesterUnitedType1320_1tou5_732",Zte="_containerRightType1_1tou5_739",Kte="_containerRightType1420_1tou5_750",Xte="_containerRightType1320_1tou5_761",Qte="_teamNameWrapperType1_1tou5_772",eae="_teamNameWrapperType1960_1tou5_779",tae="_teamNameWrapperType11086_1tou5_786",aae="_ageWrapperType1_1tou5_793",iae="_ageWrapperType1680_1tou5_800",oae="_ageWrapperType11086_1tou5_808",sae="_ageType1_1tou5_816",lae="_ageType1960_1tou5_824",rae="_playedGamesWrapperType1_1tou5_827",nae="_playedGamesWrapperType1680_1tou5_834",dae="_playedGamesWrapperType1960_1tou5_837",cae="_playedGamesType1_1tou5_840",pae="_playedGamesType1540_1tou5_847",mae="_playedGamesType1960_1tou5_851",uae="_playedGamesType11086_1tou5_854",hae="_playedMinutesWrapperType1_1tou5_857",yae="_playedMinutesWrapperType11086_1tou5_864",fae="_playedMinutesType1_1tou5_871",gae="_playedMinutesType1680_1tou5_878",_ae="_block02Type1_1tou5_881",bae="_block02Type1680_1tou5_889",Sae="_block02Type1320_1tou5_897",Cae="_block02Type1350_1tou5_906",wae="_leagueNameWrapperType1_1tou5_914",kae="_leagueNameWrapperType1680_1tou5_922",Eae="_leagueNameWrapperType1960_1tou5_925",Vae="_leagueNameType1_1tou5_933",xae="_leagueNameType1960_1tou5_943",Tae="_numberOfVideosType1_1tou5_953",Nae="_numberOfVideosType1680_1tou5_960",Bae="_numberOfVideosType11232_1tou5_967",Fae="_vectorIconType1_1tou5_974",Pae="_block01TitlesType1_1tou5_991",$ae="_numberPositionType1_1tou5_998",zae="_shapeIconType1_1tou5_1004",Aae="_tijuanaIconType1_1tou5_1010",Iae="_tijuanaWrapperType1_1tou5_1016",Mae="_tijuanaWrapperType1NoBg_1tou5_1027",Rae="_teamNameType1_1tou5_1035",Lae="_roleCharacterIconType1_1tou5_1042",Oae="_verVideosType1_1tou5_1049",Dae="_btnVideosType1_1tou5_1055",jae="_containerBtnVideosType1_1tou5_1070",Wae="_containesOptionsType1_1tou5_1081",Uae="_arrowExpandIconType1_1tou5_1089",vae="_templateTablaProductividadType1_1tou5_1095",Gae="_verVideosType11232_1tou5_1107",Hae="_templateTablaProductividadType1320_1tou5_1111",Jae="_verVideosType1680_1tou5_1115",qae={rotate:Bee,positionContainer:Fee,positionContainer620:Pee,rowwPlayer:$ee,rowwPlayer960:zee,rowwPlayer420:Aee,rowwPlayer460:Iee,containerLeft:Mee,containerLeft420:Ree,containerLeft620:Lee,iconFavoritesType1:Oee,iconFavoritesType1320:Dee,iconFavorites:jee,iconFavorites420:Wee,playerContainer:Uee,playerContainer420:vee,playerContainer460:Gee,playerContainerType1:Hee,playerContainerType1320:Jee,playerContainerType1460:qee,imgPlayerIcon:Yee,imgPlayerIcon460:Zee,imgPlayerIcon420:Kee,manchesterUnited:Xee,manchesterUnited360:Qee,manchesterUnited420:ete,manchesterUnited460:tte,containerRight:ate,containerRight960:ite,containerRight420:ote,numberOfVideos:ste,numberOfVideos620:lte,block02:rte,block02960:nte,block02620:dte,block02420:cte,verVideos:pte,verVideos620:mte,numberPosition:ute,shapeIcon:hte,chivasIcon:yte,imgTeamIcon:fte,teamName:gte,nameTeam:_te,dfC:bte,position:Ste,age:Cte,manchesterUnitedIcon:wte,country:kte,playedGames:Ete,playedMinutes:Vte,block01:xte,leagueName:Tte,roleCharacterIcon:Nte,btnVideos:Bte,containerBtnVideos:Fte,containerBtnVideos620:Pte,containesOptions:$te,arrowExpandIcon:zte,rowTeam:Ate,rowTeam420:Ite,rowTeam320:Mte,rowTeam460:Rte,rowTeam350:Lte,containerLeftType1:Ote,containerLeftType1680:Dte,containerLeftType1320:jte,containerLeftType1350:Wte,positionContainertype1:Ute,positionContainertype1380:vte,positionContainertype1680:Gte,positionContainertype1420:Hte,manchesterUnitedType1:Jte,manchesterUnitedType1460:qte,manchesterUnitedType1320:Yte,containerRightType1:Zte,containerRightType1420:Kte,containerRightType1320:Xte,teamNameWrapperType1:Qte,teamNameWrapperType1960:eae,teamNameWrapperType11086:tae,ageWrapperType1:aae,ageWrapperType1680:iae,ageWrapperType11086:oae,ageType1:sae,ageType1960:lae,playedGamesWrapperType1:rae,playedGamesWrapperType1680:nae,playedGamesWrapperType1960:dae,playedGamesType1:cae,playedGamesType1540:pae,playedGamesType1960:mae,playedGamesType11086:uae,playedMinutesWrapperType1:hae,playedMinutesWrapperType11086:yae,playedMinutesType1:fae,playedMinutesType1680:gae,block02Type1:_ae,block02Type1680:bae,block02Type1320:Sae,block02Type1350:Cae,leagueNameWrapperType1:wae,leagueNameWrapperType1680:kae,leagueNameWrapperType1960:Eae,leagueNameType1:Vae,leagueNameType1960:xae,numberOfVideosType1:Tae,numberOfVideosType1680:Nae,numberOfVideosType11232:Bae,vectorIconType1:Fae,block01TitlesType1:Pae,numberPositionType1:$ae,shapeIconType1:zae,tijuanaIconType1:Aae,tijuanaWrapperType1:Iae,tijuanaWrapperType1NoBg:Mae,teamNameType1:Rae,roleCharacterIconType1:Lae,verVideosType1:Oae,btnVideosType1:Dae,containerBtnVideosType1:jae,containesOptionsType1:Wae,arrowExpandIconType1:Uae,templateTablaProductividadType1:vae,verVideosType11232:Gae,templateTablaProductividadType1320:Hae,verVideosType1680:Jae},Zs={components:{GSCButton:fi},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:i}=Le(t);return{myDivRef2:t,elementSize:i}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},sp=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},lp=Zs.setup;Zs.setup=lp?(t,i)=>(sp(),lp(t,i)):sp;const Yae={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},Zae=["src"],Kae=["src"],Xae=["src"],Qae=["src"],eie=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),tie=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),aie=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),iie=[eie,tie,aie],oie=["fill"],sie=["fill"],lie=["src"],rie=["src"],nie=["fill"],die=["fill"],cie=["src"],pie=["src"],mie=["src"],uie=["src"],hie=["fill"],yie=["fill"];function fie(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Yae,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,Zae),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},[o.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,Kae)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,Xae),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,Qae)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[o.elementSize.width>635?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[1]||(i[1]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),o.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[2]||(i[2]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},iie))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[3]||(i[3]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,sie)],10,oie))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.rowTeamClass),style:e.normalizeStyle(o.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(l.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,lie)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,rie)],2),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[o.elementSize.width>679?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[5]||(i[5]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(l.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[6]||(i[6]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,die)],10,nie))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,cie),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,pie)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,mie),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,uie)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[e.createVNode(r,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:o.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[7]||(i[7]=n=>l.emitEventMedia(a.data)),style:e.normalizeStyle(o.elementSize.width<=680?o.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[8]||(i[8]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,yie)],10,hie))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const gie={$style:qae},_ie=Se(Zs,[["render",fie],["__cssModules",gie]]),bie="_containerLeftTitles_1rde2_60",Sie="_containerLeftTitles420_1rde2_68",Cie="_containerLeftTitles620_1rde2_76",wie="_containerLeftTitlesTeam_1rde2_85",kie="_containerLeftTitlesTeam1180_1rde2_93",Eie="_containerLeftTitlesTeam1090_1rde2_101",Vie="_containerLeftTitlesTeam960_1rde2_109",xie="_containerLeftTitlesTeam860_1rde2_117",Tie="_containerLeftTitlesTeam768_1rde2_125",Nie="_containerLeftTitlesTeam680_1rde2_133",Bie="_containerLeftTitlesTeam620_1rde2_141",Fie="_containerLeftTitlesTeam420_1rde2_149",Pie="_headTitles_1rde2_158",$ie="_headTitles960_1rde2_173",zie="_headTitles420_1rde2_188",Aie="_headTitles540_1rde2_208",Iie="_headTitles460_1rde2_223",Mie="_headTitles620_1rde2_238",Rie="_position_1rde2_253",Lie="_position420_1rde2_262",Oie="_player_1rde2_265",Die="_player420_1rde2_276",jie="_containerRightType1_1rde2_280",Wie="_containerRightTitles_1rde2_287",Uie="_containerRightTitles960_1rde2_296",vie="_block02Titles_1rde2_305",Gie="_block02Titles620_1rde2_313",Hie="_mon1Scouting_1rde2_317",Jie="_mon1Scouting960_1rde2_327",qie="_mon1_1rde2_317",Yie="_mon1420_1rde2_345",Zie="_mon1620_1rde2_355",Kie="_icnIcon_1rde2_365",Xie="_icnIcon960_1rde2_370",Qie="_icnIcon420_1rde2_376",eoe="_teamTitle_1rde2_380",toe="_positionTitle_1rde2_390",aoe="_ageTitle_1rde2_398",ioe="_partidos_1rde2_406",ooe="_playedGamesTitle_1rde2_410",soe="_playedMinutesTitle_1rde2_420",loe="_block01Titles_1rde2_429",roe="_mon_1rde2_317",noe="_containesOptionsTitles_1rde2_445",doe="_templateTablaProductividadType1_1rde2_452",coe="_templateTablaProductividadType1400_1rde2_464",poe="_headTitlesType1_1rde2_478",moe="_headTitlesType1420_1rde2_491",uoe="_headTitlesType1400_1rde2_507",hoe="_headTitlesType1540_1rde2_523",yoe="_headTitlesType1460_1rde2_537",foe="_headTitlesType1680_1rde2_551",goe="_headTitlesType1350_1rde2_564",_oe="_positionType1_1rde2_579",boe="_positionType1400_1rde2_588",Soe="_teamType1_1rde2_598",Coe="_teamType1400_1rde2_607",woe="_frecuenciaType1_1rde2_617",koe="_frecuenciaType1540_1rde2_625",Eoe="_containerLeftTitlesType1_1rde2_634",Voe="_frecuenciaWrapperType1_1rde2_642",xoe="_frecuenciaWrapperType1680_1rde2_651",Toe="_promedioPartidoType1_1rde2_659",Noe="_promedioEstePartidoType1_1rde2_663",Boe="_promedioEstePartidoType1960_1rde2_671",Foe="_promedioEstePartidoWrapperType1_1rde2_675",Poe="_promedioEstePartidoWrapperType11200_1rde2_683",$oe="_promedioEstePartidoWrapperType11090_1rde2_692",zoe="_promedioEstePartidoWrapperType11086_1rde2_702",Aoe="_promedioPartidosType1_1rde2_711",Ioe="_promedioPartidosWrapperType1_1rde2_718",Moe="_promedioPartidosWrapperType1960_1rde2_726",Roe="_promedioPartidosWrapperType11086_1rde2_729",Loe="_partidosJugadosType1_1rde2_732",Ooe="_partidosJugadosType1960_1rde2_738",Doe="_partidosJugadosWrapperType1_1rde2_745",joe="_partidosJugadosWrapperType11200_1rde2_753",Woe="_partidosJugadosWrapperType11180_1rde2_761",Uoe="_partidosJugadosWrapperType11170_1rde2_769",voe="_partidosJugadosWrapperType11140_1rde2_777",Goe="_partidosJugadosWrapperType11086_1rde2_785",Hoe="_partidosJugadosWrapperType1960_1rde2_793",Joe="_partidosJugadosWrapperType1880_1rde2_801",qoe="_partidosJugadosWrapperType1860_1rde2_809",Yoe="_partidosJugadosWrapperType1830_1rde2_817",Zoe="_partidosJugadosWrapperType1790_1rde2_825",Koe="_partidosJugadosWrapperType1930_1rde2_833",Xoe="_partidosJugadosWrapperType1770_1rde2_841",Qoe="_block01TitlesType1_1rde2_844",ese="_monType1_1rde2_852",tse="_monType1960_1rde2_861",ase="_monType1680_1rde2_871",ise="_videosType1_1rde2_874",ose="_videosType1680_1rde2_884",sse="_videosType1600_1rde2_893",lse="_videosType1540_1rde2_902",rse="_videosType1420_1rde2_911",nse="_videosType1400_1rde2_920",dse="_containesOptionsTitlesType1_1rde2_932",cse="_containesOptionsTitlesType1768_1rde2_940",pse="_containesOptionsTitlesType1730_1rde2_947",mse="_containesOptionsTitlesType1690_1rde2_954",use="_icnIconType1_1rde2_961",hse="_icnIconType1420_1rde2_967",yse="_icnIconType1400_1rde2_974",fse="_block02TitlesType1_1rde2_978",gse="_block02TitlesType1680_1rde2_985",_se="_block02TitlesType1350_1rde2_992",bse="_containerRightTitlesType1_1rde2_999",Sse="_containerRightTitlesType1420_1rde2_1008",Cse={containerLeftTitles:bie,containerLeftTitles420:Sie,containerLeftTitles620:Cie,containerLeftTitlesTeam:wie,containerLeftTitlesTeam1180:kie,containerLeftTitlesTeam1090:Eie,containerLeftTitlesTeam960:Vie,containerLeftTitlesTeam860:xie,containerLeftTitlesTeam768:Tie,containerLeftTitlesTeam680:Nie,containerLeftTitlesTeam620:Bie,containerLeftTitlesTeam420:Fie,headTitles:Pie,headTitles960:$ie,headTitles420:zie,headTitles540:Aie,headTitles460:Iie,headTitles620:Mie,position:Rie,position420:Lie,player:Oie,player420:Die,containerRightType1:jie,containerRightTitles:Wie,containerRightTitles960:Uie,block02Titles:vie,block02Titles620:Gie,mon1Scouting:Hie,mon1Scouting960:Jie,mon1:qie,mon1420:Yie,mon1620:Zie,icnIcon:Kie,icnIcon960:Xie,icnIcon420:Qie,teamTitle:eoe,positionTitle:toe,ageTitle:aoe,partidos:ioe,playedGamesTitle:ooe,playedMinutesTitle:soe,block01Titles:loe,mon:roe,containesOptionsTitles:noe,templateTablaProductividadType1:doe,templateTablaProductividadType1400:coe,headTitlesType1:poe,headTitlesType1420:moe,headTitlesType1400:uoe,headTitlesType1540:hoe,headTitlesType1460:yoe,headTitlesType1680:foe,headTitlesType1350:goe,positionType1:_oe,positionType1400:boe,teamType1:Soe,teamType1400:Coe,frecuenciaType1:woe,frecuenciaType1540:koe,containerLeftTitlesType1:Eoe,frecuenciaWrapperType1:Voe,frecuenciaWrapperType1680:xoe,promedioPartidoType1:Toe,promedioEstePartidoType1:Noe,promedioEstePartidoType1960:Boe,promedioEstePartidoWrapperType1:Foe,promedioEstePartidoWrapperType11200:Poe,promedioEstePartidoWrapperType11090:$oe,promedioEstePartidoWrapperType11086:zoe,promedioPartidosType1:Aoe,promedioPartidosWrapperType1:Ioe,promedioPartidosWrapperType1960:Moe,promedioPartidosWrapperType11086:Roe,partidosJugadosType1:Loe,partidosJugadosType1960:Ooe,partidosJugadosWrapperType1:Doe,partidosJugadosWrapperType11200:joe,partidosJugadosWrapperType11180:Woe,partidosJugadosWrapperType11170:Uoe,partidosJugadosWrapperType11140:voe,partidosJugadosWrapperType11086:Goe,partidosJugadosWrapperType1960:Hoe,partidosJugadosWrapperType1880:Joe,partidosJugadosWrapperType1860:qoe,partidosJugadosWrapperType1830:Yoe,partidosJugadosWrapperType1790:Zoe,partidosJugadosWrapperType1930:Koe,partidosJugadosWrapperType1770:Xoe,block01TitlesType1:Qoe,monType1:ese,monType1960:tse,monType1680:ase,videosType1:ise,videosType1680:ose,videosType1600:sse,videosType1540:lse,videosType1420:rse,videosType1400:nse,containesOptionsTitlesType1:dse,containesOptionsTitlesType1768:cse,containesOptionsTitlesType1730:pse,containesOptionsTitlesType1690:mse,icnIconType1:use,icnIconType1420:hse,icnIconType1400:yse,block02TitlesType1:fse,block02TitlesType1680:gse,block02TitlesType1350:_se,containerRightTitlesType1:bse,containerRightTitlesType1420:Sse},Ks={components:{},computed:{icnIconType1Class(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400:t<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400:t<=420?this.$style.videosType1420:t<=540?this.$style.videosType1540:t<=600?this.$style.videosType1600:t<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const t=this.elementSize.width;return t<=680?this.$style.monType1680:t<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350:t<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400:t<=690?this.$style.containesOptionsTitlesType1690:t<=730?this.$style.containesOptionsTitlesType1730:t<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770:t<=790?this.$style.partidosJugadosWrapperType1790:t<=830?this.$style.partidosJugadosWrapperType1830:t<=860?this.$style.partidosJugadosWrapperType1860:t<=880?this.$style.partidosJugadosWrapperType1880:t<=930?this.$style.partidosJugadosWrapperType1930:t<=960?this.$style.partidosJugadosWrapperType1960:t<=1086?this.$style.partidosJugadosWrapperType11086:t<=1140?this.$style.partidosJugadosWrapperType11140:t<=1170?this.$style.partidosJugadosWrapperType11170:t<=1180?this.$style.partidosJugadosWrapperType11180:t<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960:t<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350:t<=400?this.$style.headTitlesType1400:t<=420?this.$style.headTitlesType1420:t<=460?this.$style.headTitlesType1460:t<=540?this.$style.headTitlesType1540:t<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420:t<=460?this.$style.headTitles460:t<=540?this.$style.headTitles540:t<=620?this.$style.headTitles620:t<=960?this.$style.headTitles960:this.$style.headTitles},containerLeftTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420:t<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420:t<=620?this.$style.containerLeftTitlesTeam620:t<=680?this.$style.containerLeftTitlesTeam680:t<=768?this.$style.containerLeftTitlesTeam768:t<=860?this.$style.containerLeftTitlesTeam860:t<=960?this.$style.containerLeftTitlesTeam960:t<=1090?this.$style.containerLeftTitlesTeam1090:t<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420:t<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086:t<=1090?this.$style.promedioEstePartidoWrapperType11090:t<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1Class(){return this.elementSize.width<=420?this.$style.containerRightType1420:this.$style.containerRightType1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClass(){return this.elementSize.width<=960?this.$style.containerRightTitles960:this.$style.containerRightTitles},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},rp=()=>{e.useCssVars(t=>({"6dc11a4e":t.background,"50d0e647":t.height,aabba3e0:t.fontSize,ae76b998:t.fontColor,"742961b3":t.fontFamily,"15fe2144":t.heightTeam}))},np=Ks.setup;Ks.setup=np?(t,i)=>(rp(),np(t,i)):rp;const wse={ref:"myDivRef"},kse=e.createElementVNode("br",null,null,-1),Ese=e.createElementVNode("br",null,null,-1),Vse=e.createElementVNode("br",null,null,-1);function xse(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",wse,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.mon)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),kse,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.mon1Class)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.templateTablaProductividadType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.headTitlesType1Class),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassTeam),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionType1Class)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.teamType1Class)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.frecuenciaWrapperType1Class)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.frecuenciaType1Class)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.promedioEstePartidoWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.promedioEstePartidoType1Class)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.promedioPartidosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Promedio partido"),Ese,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.partidosJugadosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Partidos "),Vse,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containesOptionsTitlesType1Class)},[o.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.monType1Class)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.videosType1Class)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[e.createElementVNode("div",{class:e.normalizeClass(l.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const Tse={$style:Cse},Nse=Se(Ks,[["render",xse],["__cssModules",Tse]]),Bse="_equipo_1lpaa_38",Fse="_atlasSeleccin_1lpaa_43",Pse="_equipoAtlasSeleccinMexi_1lpaa_47",$se="_aos_1lpaa_51",zse="_span12_1lpaa_55",Ase="_nacionalidadMex_1lpaa_58",Ise="_manchesterUnited_1lpaa_61",Mse="_manchesterUnited12_1lpaa_68",Rse="_containerInfo_1lpaa_78",Lse="_verPerfil12_1lpaa_87",Ose="_btnProfile_1lpaa_96",Dse="_containerButton_1lpaa_112",jse="_containerButton2_1lpaa_119",Wse="_dataContainer_1lpaa_125",Use="_expandedInfoPlayer_1lpaa_135",vse="_containerDataBg_1lpaa_225",Gse="_containerDataSm_1lpaa_236",Hse="_span_1lpaa_55",Jse="_manchesterUnited14_1lpaa_247",qse="_filter_1lpaa_252",Yse="_verPerfil_1lpaa_87",Zse="_manchesterUnited8_1lpaa_273",Kse="_manchesterUnitedParent1_1lpaa_279",Xse="_manchesterUnited1_1lpaa_68",Qse="_manchesterUnitedParent_1lpaa_279",ele="_frameDiv_1lpaa_301",tle="_infoExpanded_1lpaa_309",ale="_countryFlag_1lpaa_462",ile={equipo:Bse,atlasSeleccin:Fse,equipoAtlasSeleccinMexi:Pse,aos:$se,span12:zse,nacionalidadMex:Ase,manchesterUnited:Ise,manchesterUnited12:Mse,containerInfo:Rse,verPerfil12:Lse,btnProfile:Ose,containerButton:Dse,containerButton2:jse,dataContainer:Wse,expandedInfoPlayer:Use,containerDataBg:vse,containerDataSm:Gse,span:Hse,manchesterUnited14:Jse,filter:qse,verPerfil:Yse,manchesterUnited8:Zse,manchesterUnitedParent1:Kse,manchesterUnited1:Xse,manchesterUnitedParent:Qse,frameDiv:ele,infoExpanded:tle,countryFlag:ale},Xs={components:{GSCButton:bd},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},dp=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},cp=Xs.setup;Xs.setup=cp?(t,i)=>(dp(),cp(t,i)):dp;const Ae=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),ole={ref:"myDivRef"},sle=["src"],lle=Ae(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),rle=Ae(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),nle=Ae(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),dle=Ae(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),cle=Ae(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),ple=Ae(()=>e.createElementVNode("span",null,"xG: ",-1)),mle=Ae(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),ule=Ae(()=>e.createElementVNode("span",null,"xG: ",-1)),hle=Ae(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),yle=Ae(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),fle=Ae(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),gle=Ae(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),_le=Ae(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),ble=Ae(()=>e.createElementVNode("span",null,"xG: ",-1));function Sle(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",ole,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.expandedInfoPlayer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.dataContainer),id:"data-container"},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerInfo,a.additionalClass]),id:"container-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},[a.viewTeam?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.equipoAtlasSeleccinMexi)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Equipo: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.atlasSeleccin)},e.toDisplayString(a.data.teams),3)],2)):e.createCommentVNode("",!0),a.viewAge?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Edad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.age)+" años",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)}," ("+e.toDisplayString(a.data.dataofbirth)+")",3)],2)):e.createCommentVNode("",!0),a.viewNationality?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Nacionalidad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.countryFlag)},[e.createElementVNode("img",{src:a.data.countryFlag},null,8,sle)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[0]||(i[0]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:i[1]||(i[1]=n=>l.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:i[2]||(i[2]=n=>l.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[lle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[rle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[nle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[dle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited1)},[cle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[ple,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited8)},[mle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness)+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[ule,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerDataSm)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameDiv)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[hle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[yle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[fle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[gle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent1)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited14)},[_le,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[ble,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[3]||(i[3]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const Qs={components:{GSCCarousel:Vd,GSCLeaders:Nee,GSCRowTable:_ie,GSCTableHeader:Nse,GSCExpandedInfo:Se(Xs,[["render",Sle],["__cssModules",{$style:ile}],["__scopeId","data-v-83d82c67"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,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,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],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"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{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]}[t]||[]},getCoordinatePointPerCategory(t){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}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p,h=t.player_id;let d=[],f=this.isTeam?t.id:this.filterTeam;h?this.isTeam?f=h:(d=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?f=t.id:(d=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:f||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p;let h=[],d=this.isTeam?t.id:this.filterTeam;this.isTeam?d=t.id:(h=[t.id],n=n.filter(u=>!u.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:d||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",f)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await me.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,p=n.teamName[0].acronym,y=a[n.teamName[0].team_id].name,m=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,d=this.positions[n.numberPositionId-1].name,f=n.countryId[0].nationality_id,u=n.effectiveness,g=n.min,C=n.games,k=n.date;n.arrayNationalities.forEach(U=>{l.add(U.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:c,team:p,teamname:y,teamid:m,position:h,positionfull:d,effectiveness:u,country:f,games_played:C,minutes_played:g,nationalityId:g,date:k,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!c.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(c.numberPositionId))return!1;if(i.arrayAgeRange){const p=c.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&c.date<r||i.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},pp=()=>{e.useCssVars(t=>({bd5e65b4:t.borderRadius,cbb92a9c:t.borderWidth,cde72762:t.borderColor}))},mp=Qs.setup;Qs.setup=mp?(t,i)=>(pp(),mp(t,i)):pp;const Mi=t=>(e.pushScopeId("data-v-ace3d22f"),t=t(),e.popScopeId(),t),Cle={ref:"myDivRef"},wle={class:"text"},kle={class:"groupsLeague"},Ele={class:"row-table-carrousel"},Vle={key:1,class:"container-no-search-result"},xle={key:0,class:"overlay-loading-top"},Tle=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),Nle=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),Ble=[Tle,Nle],Fle=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Ple=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function $le(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Cle,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=m=>l.clickMore(a.category))},[e.createElementVNode("div",wle,[e.createElementVNode("div",kle,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:m})=>[e.createElementVNode("div",Ele,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(h,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onAddPlayer:l.HandlerAddplayer,onMediadata:i[1]||(i[1]=f=>l.emitEventMedia(f,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onAddPlayer:l.HandlerAddplayer,onMediadata:i[2]||(i[2]=f=>l.emitEventMedia(f,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:" Liga MX "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:d%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:f=>l.viewprofile(f,h.teamid),background:d%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",Vle,[t.isloading?(e.openBlock(),e.createElementBlock("div",xle,Ble)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Fle,Ple],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(y,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.displayData,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==d.id&&t.expand,onMediadata:i[3]||(i[3]=u=>l.emitEventMediaFullTable(u,a.category,a.categoryName)),onAddPlayer:l.HandlerAddplayer,data:a.typeTable==0?{position:d.top,player_name:d.name,player_short:d.name_short,player_photo:d.img,total:d.total,id:d.id,player_age:d.age,team_abrev:d.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.teamid+".png",player_position:d.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+d.country+".jpg",player_games:d.games,player_min:d.minutes,league_name:" Liga MX "}:{position:d.positiontable,team_logo:d.img,team_abrev:d.name,frequency:d.frecuency,promthistournament:d.game_avg,promlasttournament:d.game_avg_last_season,category:a.category,team_games:d.games_played,total:d.total,id:d.id},height:"71px",background:((h+1)*5+f)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==d.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":d.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:d.teamname,age:d.age,dataofbirth:d.date,nationality:d.nationality,countryFlag:d.player_country_flag,position:d.position,positionfull:d.positionfull,games:d.games,min:d.minutes,goals:d.originalTotal||d.total,effectiveness:d.effectiveness,category:l.getCategoryName(a.category),id:d.id}:{position:d.positiontable,goals:d.goals,goals_received:d.goalsrecived,games_played:d.games_played,category:a.categoryName,effectiveness:d.effectiveness,xg:d.xg,total:d.originalTotal||d.total,category:l.getCategoryName(a.category),attendance:"-",id:d.id},onViewprofile:u=>l.viewprofile(u,d.teamid),background:f%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const zle=Se(Qs,[["render",$le],["__scopeId","data-v-ace3d22f"]]),Ale="_filtersContainer_b9wc6_1",Ile="_filtersContainer1232_b9wc6_1",Mle="_closeFiltersPc_b9wc6_1",Rle="_textleyemdmultipleleagues_b9wc6_1",Lle="_textleyemdmultipleleagues380_b9wc6_1",Ole="_filtersContainer760_b9wc6_1",Dle="_filtersContainer460_b9wc6_1",jle="_containerSectionPlay_b9wc6_1",Wle="_containerSectionPlay1232_b9wc6_1",Ule="_containerSectionPlay960_b9wc6_1",vle="_containerSectionPlay320_b9wc6_1",Gle="_containerSectionPlay350_b9wc6_1",Hle="_containerSection_b9wc6_1",Jle="_containerSection1232_b9wc6_1",qle="_containerSection960_b9wc6_1",Yle="_containerSection320_b9wc6_1",Zle="_containerSection350_b9wc6_1",Kle="_templateLosMejores_b9wc6_1",Xle="_templateLosMejores1232_b9wc6_1",Qle="_templateLosMejores960_b9wc6_1",ere="_templateLosMejores420_b9wc6_1",tre="_templateLosMejores320_b9wc6_1",are="_templateLosMejores540_b9wc6_1",ire="_templateLosMejores350_b9wc6_1",ore="_topFiltersParent_b9wc6_1",sre="_topFiltersParent1232_b9wc6_1",lre="_topFiltersParent960_b9wc6_1",rre="_topFiltersParent460_b9wc6_1",nre="_topFiltersParent420_b9wc6_1",dre="_containerTheBest_b9wc6_1",cre="_containerTheBest1232_b9wc6_1",pre="_containerTheBest960_b9wc6_1",mre="_containerTheBest320_b9wc6_1",ure="_titleSection_b9wc6_1",hre="_titleSection540_b9wc6_1",yre="_containerTables_b9wc6_1",fre="_containerTables960_b9wc6_1",gre="_containerTables760_b9wc6_1",_re="_containerTables320_b9wc6_1",bre="_toniKroosWrapper_b9wc6_1",Sre="_toniKroosWrapper1080_b9wc6_1",Cre="_toniKroosWrapper975_b9wc6_1",wre="_toniKroosWrapper760_b9wc6_1",kre="_toniKroosWrapper420_b9wc6_1",Ere="_toniKroosWrapper320_b9wc6_1",Vre="_frameChild_b9wc6_1",xre="_filtros_b9wc6_1",Tre="_groupParent_b9wc6_1",Nre="_shapeIcon_b9wc6_1",Bre="_btnFilters_b9wc6_1",Fre="_btnFiltersPC_b9wc6_1",Pre="_quitarFiltros_b9wc6_1",$re="_quitarFiltros730_b9wc6_1",zre="_quitarFiltros480_b9wc6_1",Are="_quitarFiltros380_b9wc6_1",Ire="_btnCloseFilters_b9wc6_1",Mre="_mejoresJugadores_b9wc6_1",Rre="_mejoresJugadores730_b9wc6_1",Lre="_mejoresJugadores480_b9wc6_1",Ore="_mejoresJugadoresSM_b9wc6_1",Dre="_toniKroos_b9wc6_1",jre="_teamBar_b9wc6_1",Wre="_menuSection_b9wc6_1",Ure="_menuSection960_b9wc6_1",vre="_menuSectionPlay_b9wc6_1",Gre="_menuSectionPlay960_b9wc6_1",Hre="_containerMenu_b9wc6_1",Jre="_containerMenu760_b9wc6_1",qre="_containerFilters_b9wc6_1",Yre="_teamBarParent_b9wc6_1",Zre="_topFilters_b9wc6_1",Kre="_topFilters1232_b9wc6_1",Xre="_topFilters420_b9wc6_1",Qre="_topFilters460_b9wc6_1",ene="_losMejores_b9wc6_1",tne="_losMejores380_b9wc6_1",ane="_losMejores530_b9wc6_1",ine="_losMejores730_b9wc6_1",one="_menuSectionHeader_b9wc6_1",sne="_menuSectionHeader1232_b9wc6_1",lne="_menuSectionHeader960_b9wc6_1",rne="_menuSectionHeader730_b9wc6_1",nne="_dropdown_b9wc6_1",dne="_dropdown730_b9wc6_1",cne="_dropdown1_b9wc6_1",pne="_dropdown1730_b9wc6_1",mne="_dropdownParent_b9wc6_1",une="_dropdownParent730_b9wc6_1",hne="_menuSectionParentHeader_b9wc6_1",yne="_menuSectionParentHeader1232_b9wc6_1",fne="_menuSectionParentHeader960_b9wc6_1",gne="_menuSectionParentHeader730_b9wc6_1",_ne="_menuSectionParentHeader430_b9wc6_1",bne="_descubreVideos_b9wc6_1",Sne="_descubreVideos1232_b9wc6_1",Cne="_descubreVideos960_b9wc6_1",wne="_allCategories_b9wc6_1",kne="_containerScountingBtn_b9wc6_3",Ene="_btnDeleteAplica_b9wc6_13",Vne="_SearchBtnBar_b9wc6_33",xne="_btnLeyendTxt_b9wc6_52",Tne="_BtnSearchScounting_b9wc6_61",Nne="_containerPredefined_b9wc6_85",Bne="_containerPredefinedScounting_b9wc6_92",Fne="_titleContainerPredefined_b9wc6_100",Pne="_subtitleContainerPredefined_b9wc6_111",$ne={filtersContainer:Ale,filtersContainer1232:Ile,closeFiltersPc:Mle,textleyemdmultipleleagues:Rle,textleyemdmultipleleagues380:Lle,filtersContainer760:Ole,filtersContainer460:Dle,containerSectionPlay:jle,containerSectionPlay1232:Wle,containerSectionPlay960:Ule,containerSectionPlay320:vle,containerSectionPlay350:Gle,containerSection:Hle,containerSection1232:Jle,containerSection960:qle,containerSection320:Yle,containerSection350:Zle,templateLosMejores:Kle,templateLosMejores1232:Xle,templateLosMejores960:Qle,templateLosMejores420:ere,templateLosMejores320:tre,templateLosMejores540:are,templateLosMejores350:ire,topFiltersParent:ore,topFiltersParent1232:sre,topFiltersParent960:lre,topFiltersParent460:rre,topFiltersParent420:nre,containerTheBest:dre,containerTheBest1232:cre,containerTheBest960:pre,containerTheBest320:mre,titleSection:ure,titleSection540:hre,containerTables:yre,containerTables960:fre,containerTables760:gre,containerTables320:_re,toniKroosWrapper:bre,toniKroosWrapper1080:Sre,toniKroosWrapper975:Cre,toniKroosWrapper760:wre,toniKroosWrapper420:kre,toniKroosWrapper320:Ere,frameChild:Vre,filtros:xre,groupParent:Tre,shapeIcon:Nre,btnFilters:Bre,btnFiltersPC:Fre,quitarFiltros:Pre,quitarFiltros730:$re,quitarFiltros480:zre,quitarFiltros380:Are,btnCloseFilters:Ire,mejoresJugadores:Mre,mejoresJugadores730:Rre,mejoresJugadores480:Lre,mejoresJugadoresSM:Ore,toniKroos:Dre,teamBar:jre,menuSection:Wre,menuSection960:Ure,menuSectionPlay:vre,menuSectionPlay960:Gre,containerMenu:Hre,containerMenu760:Jre,containerFilters:qre,teamBarParent:Yre,topFilters:Zre,topFilters1232:Kre,topFilters420:Xre,topFilters460:Qre,losMejores:ene,losMejores380:tne,losMejores530:ane,losMejores730:ine,menuSectionHeader:one,menuSectionHeader1232:sne,menuSectionHeader960:lne,menuSectionHeader730:rne,dropdown:nne,dropdown730:dne,dropdown1:cne,dropdown1730:pne,dropdownParent:mne,dropdownParent730:une,menuSectionParentHeader:hne,menuSectionParentHeader1232:yne,menuSectionParentHeader960:fne,menuSectionParentHeader730:gne,menuSectionParentHeader430:_ne,descubreVideos:bne,descubreVideos1232:Sne,descubreVideos960:Cne,allCategories:wne,containerScountingBtn:kne,btnDeleteAplica:Ene,SearchBtnBar:Vne,btnLeyendTxt:xne,BtnSearchScounting:Tne,containerPredefined:Nne,containerPredefinedScounting:Bne,titleContainerPredefined:Fne,subtitleContainerPredefined:Pne},zne=e.ref(Gs()),Ane=e.ref(wq()),Ine=e.ref(Zc()),Mne={components:{GSCTableHeader:Qo,GscSwitchComponent:hs,GSCFilterperteam:hd,DropdownYears:Yc,GSCFilters:vs,DropdownPositions:qc,GSCExpandedInfo:ns,GSCLabel:Nd,GSCSeasonSelect:ed,GSCTopCategory:zle,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={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},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...zne.value}},filterButtonPropsAux(){return{...Ane.value}},filterButtonPropsTournaments(){return{...Ine.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!0},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Le(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,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},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{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:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{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}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{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}],statisticType:"total",isStatisticTypeVisible:!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}],fvTypeStats:"totals",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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,seasonsArray:[{id:1933,tournament:1}],updateTablesfull:0,teamselect: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:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:N,personalDataFilters:Yt,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,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{onChangeYear(t){this.personalDataFilters.selectedYear=t},onChangePositions(){},async fillPersonalDataFilters(){try{this.personalDataFilters=await AD(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(ie.All),i.clearFilters(ie.AGE_RANGE),i.clearFilters(ie.YEAR),i.clearFilters(ie.NATIONALITY),i.clearFilters(ie.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[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(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id);if(o){const s={id:t.id,player_name:o.stringFullName,position:t.position,is_female:(o==null?void 0:o.is_female)||0,team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,nationality:o.stringNationalityName,photo:o.stringImageUrl,countryFlag:o.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id||t.player_id);if(o){const s={player_id:o.numberId,name:o.stringFullName,position:o.numberPositionId,is_female:(o==null?void 0:o.is_female)||0,dob:"",team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:o.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||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",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].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 s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[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=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.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(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;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});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="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}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="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}),t=="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}),t=="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(ie.NATIONALITY)),t=="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(ie.POSITION)),t=="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(ie.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(ie.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(ie.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,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(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].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},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,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(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(ie.All),a.clearFilters(ie.AGE_RANGE),a.clearFilters(ie.YEAR),a.clearFilters(ie.NATIONALITY),a.clearFilters(ie.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let h=0;h<t.nationalities.length;h++)t.nationalities[h].isSelected&&this.fVnationalities.add(t.nationalities[h].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;for(let h=0;h<t.positions.length;h++)t.positions[h].isSelected&&this.fVsetPositionsIds.push(t.positions[h].id);if(t.hasOwnProperty("nationalities"))var l=t.nationalities.filter(h=>h.isSelected===!0);var r=t.positions.filter(h=>h.isSelected===!0);if(r.length==1&&(o=r[0].name),t.hasOwnProperty("nationalities")&&l.length==1&&(s=l[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 n=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");p!=-1?this.arrayFiltersPlays[p].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("ageLimits")&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");y!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[y].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(y,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 y=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");y!=-1&&this.arrayFiltersPlays.splice(y,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");m!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[m].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},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}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.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}},this.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}]},this.detailsObjectSelection={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}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(ie.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=me.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=me.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=o,t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(c=k.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=k.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((d=(h=k.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=k.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=k.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=me.create({headers:{Authorization:`${this.token}`}}),i=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=me.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},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.loadPreloadedTops();const t=await me.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.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),this.fillPersonalDataFilters()}catch(t){throw new Error(t)}}},Rne={ref:"myDivRefTopsFull",class:"play-tops"},Lne={key:0,class:"overlay-loading"},One=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),Dne=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),jne=[One,Dne],Wne=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),Une=[Wne],vne={key:0},Gne={style:{display:"contents"}},Hne={style:{display:"contents"}},Jne={key:0,class:"cont-leyemd-multipleleagues"},qne=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),Yne={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},Zne={key:0,style:{"margin-left":"10px"}},Kne=e.createElementVNode("span",null,"Todas las categorías",-1),Xne=[Kne],Qne=e.createElementVNode("span",null,"Tipo de Jugada",-1),ede=e.createElementVNode("span",null,"Filtro GolStats",-1),tde={key:3,style:{width:"100%",height:"295px"}};function ade(t,i,a,o,s,l){var r,n,c;const p=e.resolveComponent("GSCTournamentSelect"),y=e.resolveComponent("GSCSeasonSelect"),m=e.resolveComponent("GscSwitchComponent"),h=e.resolveComponent("GSCFilterperteam"),d=e.resolveComponent("GSCFilters"),f=e.resolveComponent("DropdownPositions"),u=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),C=e.resolveComponent("GSCTopCategory"),k=e.resolveComponent("GSCTableHeader"),U=e.resolveComponent("GSCRowTable"),q=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",Rne,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",Lne,jne)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(m,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(h,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...A)=>l.clickOpenFilters&&l.clickOpenFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...A)=>l.clickCloseFilters&&l.clickCloseFilters(...A))},Une,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(o.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:i[4]||(i[4]=(...A)=>l.toggleAdvancedView&&l.toggleAdvancedView(...A))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),s.isAvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vne,"Liga: ")),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":o.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,"button-filter-props":s.isAvanced?l.filterButtonPropsTournaments:l.filterButtonProps,width:"100%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",Gne,[e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 61px;"))},"Posición: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,positions:(r=s.personalDataFilters)==null?void 0:r.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(u,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",Hne,[e.withDirectives(e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonPropsTournaments,filters:s.personalDataFilters},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[5]||(i[5]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",Jne,[qne,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(h,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",Yne," No se muestran jugadores que hayan jugado menos de 90 minutos ")):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.titleSectionClass)},[s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.mejoresJugadoresClass)},[s.arrayFiltersPlays.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Equipos"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Mejores jugadoras: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores jugadores: ")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores equipos:")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[this.filterScounting.tournaments.length==1&&this.filterScounting.tournaments[0]==1001?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadoras más productivas:")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugadores más productivos:")],64))],64))],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.showFullTable?(e.openBlock(),e.createElementBlock("div",Zne,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(A,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":A.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:A.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(A=>A.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[6]||(i[6]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},Xne,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(A,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(C,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[A.id],"border-radius":"12px","filters-prop":l.filterChange,category:A.id,"type-table":s.typeTable,categoryName:A.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Qne,e.createTextVNode(" y un "),ede,e.createTextVNode(" en la")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(k,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(A,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v},[s.teamselectrec==0||s.teamselectrec==A.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(U,{type:2,"is-expanded":s.playerexpand==A.id&&s.expand,onMediadata:l.setMediaData,data:{position:A.position,player_name:A.player_name,player_photo:A.player_photo,total:A.total,id:A.id,player_age:A.player_age,team_abrev:A.team_abrev,team_logo:A.team_logo,player_position:s.positions[A.player_position-1].fullname,player_country_flag:A.player_country_flag,player_games:A.player_games,player_min:A.player_min,league_name:A.league_name,seasons:A.seasons,season_id:A.season_id},height:"71px",background:v%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==A.id?(e.openBlock(),e.createBlock(q,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:A.team_name,age:A.player_age,dataofbirth:A.date,nationality:A.nationality_name,countryFlag:A.player_country_flag,position:s.positions[A.player_position-1].name,games:A.player_games,min:A.player_min,goals:A.total,effectiveness:"-",category:"total",id:A.id},onViewprofile:Y=>l.viewprofile(Y,A.season_id,A.team_id),background:v%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[7]||(i[7]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[8]||(i[8]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",tde)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const ide={$style:$ne},ode=Se(Mne,[["render",ade],["__cssModules",ide]]),sde=e.ref(Gs()),lde=e.ref(Zc()),rde={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0}},components:{GscSwitchComponent:hs,GSCRadioToggle:JZ,ModalAddPlayList:VK,DropdownTemplates:Cq,GSCTableScrollable:hQ,GSCFilters:vs,ModalAddLista:LK,DropdownYears:Yc,DropdownPositions:qc,PlayTops:ode},computed:{filterButtonProps(){return{...sde.value}},filterButtonPropsTournamentsAdvanced(){return{...lde.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{MobileFilterDesing:{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"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,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],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,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],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:N,personalDataFilters:Yt,personalDataSubFiltersTypes:ie,tournamentsToFilter:OK,tournamentsToFilterVariables:DK,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},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:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),i=e.ref(null),a=e.ref(null),{elementSize:o}=Le(t),{elementSize:s}=Le(i),{elementSize:l}=Le(a);return{myDivRefTopsBestPlay:t,midLayoutRef:i,filterBoxRef:a,elementSize:o,midLayoutSize:s,filterBoxSize:l}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,await new Promise(t=>{const i=()=>{this.filtersObject.template_id?t(!0):setTimeout(i,100)};i()}),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",t)},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),i=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==i},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(i=>i.isSelected).map(i=>i.id),this.seasonsArray=t.filter(i=>i.isSelected).map(i=>({id:i.seasons[0].id,tournamentId:i.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[o,s],this.filtersObject.age_or_year=1}else this.filtersObject.range_age=[];t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0):this.filtersObject.year=0;var i=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[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.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=i,this.checkSearchButton(),this.updateActiveFilters()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,this.checkSearchButton()},onFiltersProductivity(t){var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filtersObject.categories=i,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(i=>i.isSelected&&i.id!==0).map(i=>i.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){if(this.isSearchActive)try{this.isLoading=!0;const t=await(await fetch("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(this.filtersObject)})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=t.map(i=>({objeto_player:i,player_photo:i.photo,player_name:i.acronym,player_age:this.calculateAge(i.dob),team_abrev:i.teams[0].acronym,jersey:i.jersey,nationality:i.nationality,team_name:i.team_name,is_female:i.is_female,position_name:this.positions[i.position_id-1].fullname,player_position:this.positions[i.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${i.nationality_id}.jpg`,player_games:i.games_played,player_min:i.minutes_played,...i.stats&&{stats:i.stats},nationality_name:ct[i.nationality_id],league_name:i.tournament_name,seasons:i.seasons,season_id:i.seasons[0]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(t){console.error("Error al realizar la búsqueda:",t)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&delete this.filtersObject.template_id,this.checkSearchButton()):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t&&(this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton())},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const i=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));i&&t.push(i.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const i=this.filtersObject.nationalities.length;i===1?t.push("Nacionalidad "+ct[this.filtersObject.nationalities[0]]):t.push(`${i} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const i=this.positions.find(a=>a.id===this.filtersObject.positions[0]);i&&t.push(i.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==12&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const i=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(i)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",this.formattedPlayers)}}},ot=t=>(e.pushScopeId("data-v-e46dc5e1"),t=t(),e.popScopeId(),t),nde={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},dde={class:"overlay-loading"},cde=ot(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),pde=ot(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),mde=[cde,pde],ude={class:"strip-menu"},hde={class:"strip-options-vars"},yde={key:0,class:"desktop-layout"},fde={class:"left-containers"},gde={class:"filter-container filter-container-variables container-372"},_de={key:0,class:"filter-container filter-container-variables container-291"},bde=ot(()=>e.createElementVNode("div",{class:"variables-label"},"Variables:",-1)),Sde={class:"variables-indicator"},Cde=ot(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),wde={class:"filter-container-box"},kde=ot(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),Ede={class:"filter-container-box-2"},Vde=ot(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),xde={class:"filter-container-box-3"},Tde={class:"advanced-row-top"},Nde=ot(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),Bde={class:"stats-section"},Fde={class:"filters-applied"},Pde=ot(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),$de={class:"filters-tags-wrapper"},zde={class:"filters-tags"},Ade=ot(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),Ide={key:0,class:"no-results"},Mde={key:1,class:"content-container"};function Rde(t,i,a,o,s,l){const r=e.resolveComponent("ModalAddPlayList"),n=e.resolveComponent("ModalAddLista"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCRadioToggle"),y=e.resolveComponent("DropdownTemplates"),m=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),d=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),u=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock("div",nde,[e.createVNode(r,{isVisible:s.visibleModalAddPlaylist,onClose:l.closeModalAddPlaylist,"user-id":a.userId,onCreateList:l.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(n,{isVisible:s.showCreatePlaylistModal,onClose:l.closeCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","player"]),e.withDirectives(e.createElementVNode("div",dde,mde,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",ude,[e.createVNode(c,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":l.sizeTabsFontMP,width:l.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",hde,[o.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",yde,[e.createElementVNode("div",fde,[e.createElementVNode("div",gde,[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",_de,[bde,e.createElementVNode("div",Sde,[e.createVNode(y,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:i[0]||(i[0]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":o.elementSize.width<=480,"mid-layout":o.elementSize.width<=780&&o.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":o.elementSize.width<=780&&o.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":o.elementSize.width<=480}])},[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),o.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[1]||(i[1]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":o.elementSize.width<=480,"mid-container":o.elementSize.width<=780&&o.elementSize.width>480,"container-292":o.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":o.elementSize.width<=480}])},"Variables:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":o.elementSize.width<=480}])},[e.createVNode(y,{"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),o.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[2]||(i[2]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var g,C;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":o.elementSize.width<=890,"layout-480":o.elementSize.width<=480}])},[e.createElementVNode("div",Tde,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({width:"99.7%","button-filter-props":l.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":l.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":o.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[4]||(i[4]=(...k)=>l.toggleSearch&&l.toggleSearch(...k))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":o.elementSize.width<=780,"gap-reduced-850":o.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-tournament":o.elementSize.width<=1e3}])},[Cde,e.createElementVNode("div",wde,[e.createVNode(m,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.selectedRadioOption!="Variables propias"?s.tournamentsToFilter:s.tournamentsToFilterVariables,"onUpdate:filters":l.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-position":o.elementSize.width<=1e3}])},[kde,e.createElementVNode("div",Ede,[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(g=s.personalDataFilters)==null?void 0:g.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced":o.elementSize.width<=1e3}])},[Vde,e.createElementVNode("div",xde,[e.createVNode(d,{"dropdown-props":s.dropdownProps,years:(C=s.personalDataFilters)==null?void 0:C.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[3]||(i[3]=(...k)=>l.toggleSearch&&l.toggleSearch(...k))},"Buscar",2)],2)],2)],2))]}),_:1}),Nde,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":o.elementSize.width<=780}])},[e.createElementVNode("div",Bde,[e.createElementVNode("div",Fde,[Pde,e.createElementVNode("div",$de,[e.createElementVNode("div",zde,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(g,C)=>(e.openBlock(),e.createElementBlock("span",{key:C,class:"filter-tag"},e.toDisplayString(g),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":o.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:i[5]||(i[5]=(...g)=>l.handleCompareClick&&l.handleCompareClick(...g))},[e.createTextVNode(" Comparar jugadores "),Ade])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",Ide," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",Mde,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:l.onViewProfile,onAddToList:l.onAddToList,onShowGraph:l.onShowGraph,onOpenMedia:l.onOpenMedia},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(u,{key:1,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded,onShowGraph:l.onShowGraph,onAddPlayer:l.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)}const Lde=Se(rde,[["render",Rde],["__scopeId","data-v-e46dc5e1"]]),Ode={name:"SwitchTopsType",components:{TopsFull:WZ,TopsBestAndPlay:Lde},data(){return{templates:[],hasTemplates:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const i=await me.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.teamId}/templates`);this.templates=i.data,this.hasTemplates=((t=i.data)==null?void 0:t.data)&&Array.isArray(i.data.data)&&i.data.data.length>0}catch(i){console.error("Error al obtener templates:",i)}},topsLoaded(t){this.$emit("tops-loaded",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},changeSeasonId(t){this.$emit("change-season-id",t)},comparePlayers(t){this.$emit("compare-players",t)},onOpenMedia(t){this.$emit("open-media",t)},onShowGraph(t){this.$emit("show-graph",t)},onOpenProfilePlayer(t){this.$emit("open-profile-player",t)},onAddToList(t){this.$emit("add-to-list",t)}}};function Dde(t,i,a,o,s,l){const r=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(r,{key:0,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded},null,8,["onChangeSeasonId","onOpenmedia","team-id","current-season-id","is-selection","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,onOpenMedia:l.onOpenMedia,onShowGraph:l.onShowGraph,onComparePlayers:l.comparePlayers,onOpenProfilePlayer:l.onOpenProfilePlayer,onAddToList:l.onAddToList,onChangeSeasonId:l.changeSeasonId,onOpenProfileTeam:l.openProfileTeam,onTopsLoaded:l.topsLoaded,"user-id":a.userId},null,8,["team-id","has-templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id"]))])}const jde=Se(Ode,[["render",Dde]]),Wde={class:"elegibles"},up=Qt(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=y=>{i("openmedia",y)},s=y=>{i("open-profile-team",y)},l=y=>{i("open-profile-player",y)};function r(y){i("showGraph",y)}function n(y){i("change-season-id",y)}function c(y){i("tops-loaded",y)}function p(y){i("comparePlayers",y)}return(y,m)=>(e.openBlock(),e.createElementBlock("div",Wde,[e.createVNode(e.unref(jde),{"is-selection":!0,type:1,"user-id":a.userId,"default-section":"Jugadores",onOpenmedia:o,onComparePlayers:p,onOpenMedia:o,onOpenProfileTeam:s,onOpenProfilePlayer:l,onShowGraph:r,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id"])]))}}),[["__scopeId","data-v-0e5759d1"]]),Ude=(t=>(e.pushScopeId("data-v-cd150b8a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),vde={class:""},Gde={class:"tabs"},Hde=Qt({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:i}){const a=t,o={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=["Detección de jugadores","Lista de seguimientos","Última convocatoria"],l=e.ref("Detección de jugadores"),r=e.ref({width:0}),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref([]),m=e.ref([]),h=e.ref(!1),d=e.ref(!1),f=e.ref({}),u=e.ref([]),g=e.ref({});e.ref([]),e.watch(()=>a.tournamentId,z=>{z&&U()},{immediate:!0}),e.watch(()=>a.teamId,async z=>{z&&(await k(),await U())},{immediate:!0});const C=z=>{l.value=z};async function k(){try{const z=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[G,j]=await Promise.all(z),_=await G.json(),b=await j.json();_.forEach(w=>{w.seasonsIds=new Set(w.seasons.map(D=>D.id)),w.availableTournaments=w.seasonsIds?b.reduce((D,_e)=>{if(_e.seasons.some(De=>w.seasonsIds.has(De.id))){const De=_e.seasons.filter(Oi=>w.seasonsIds.has(Oi.id));D.push({..._e.tournament,seasonsIds:w.seasonsIds,seasons:De,teamId:w.team_id})}return D},[]):[]}),u.value=_,g.value=_[0]}catch(z){console.error(z)}}async function U(){try{if(c.value!==a.tournamentId||p.value!==a.teamId){const z=[A()];c.value=a.tournamentId,p.value=a.teamId;const[G]=await Promise.all(z);m.value=G}}catch(z){console.error("Error filling data",z)}}function q(){v().then(z=>{y.value=z})}async function A(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/in-followed/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(z){console.error("Error fetching in followed",z)}}async function v(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${f.value.id}/teams/${f.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(z){console.error("Error fetching last called",z)}}const Y=()=>{n.value&&(r.value.width=n.value.offsetWidth,h.value=r.value.width<700,d.value=r.value.width<420)};e.onMounted(()=>{Y();const z=new ResizeObserver(Y);n.value&&z.observe(n.value)});const J=e.computed(()=>{const z=r.value.width;return z<=560?"170px":(z<=650||z<=768,"225px")}),x=e.computed(()=>{const z=r.value.width;return z<=460?"12px":z<=650?"13px":z<=768?"14px":"16px"});e.computed(()=>r.value.width<=380?"18px":"22px");const T=e.computed(()=>{switch(l.value){case"Detección de jugadores":return up;case"Lista de seguimientos":return a7;case"Última convocatoria":return Gm;default:return up}}),S=e.computed(()=>d.value||h.value?"100%":"179px"),F=z=>{i("openmedia",z)},P=z=>{i("showGraph",z)},H=z=>{i("open-profile-team",z)},Z=z=>{i("open-profile-player",z)},de=z=>{i("open-profile-player",z)},ae=z=>{i("comparePlayers",z)};function E(z){i("change-season-id",z)}function V(z){i("tops-loaded",z)}const O=z=>{f.value=z,q()};function $(z){g.value=z}function W(z){g.value=z}return(z,G)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":h.value}])},[Ude,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":h.value}])},[t.isSeleccionUser&&l.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[e.createVNode(e.unref(Ip),e.mergeProps(o,{"model-value":g.value,items:u.value,onInput:$,"onUpdate:modelValue":W}),{default:e.withCtx(({selectedItem:j})=>[e.createElementVNode("div",vde,e.toDisplayString(j.team_name),1)]),availableItem:e.withCtx(({item:j})=>[e.createElementVNode("div",null,e.toDisplayString(j.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(rm),{key:0,items:g.value.availableTournaments,width:S.value,onInput:O},null,8,["items","width"])):e.createCommentVNode("",!0)],2)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",Gde,[e.createVNode(e.unref(Bm),{type:2,buttons:s,"font-family":"Poppins-Medium","selected-option":l.value,"font-size":x.value,width:J.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:C},null,8,["selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":l.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value),{"parent-width":r.value.width,"user-id":a.userId,"user-team-id":a.userTeamId,"last-called-players":y.value,"in-followed-players":m.value,onShowGraph:P,onShowProfile:de,onOpenmedia:F,onOpenMedia:F,onOpenProfileTeam:H,onOpenProfilePlayer:Z,onChangeSeasonId:E,onTopsLoaded:V,onComparePlayers:ae},null,40,["parent-width","user-id","user-team-id","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-cd150b8a"]]),Jde={class:"subcategory-group"},qde={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Jde,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(se),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Yde=re(qde,[["__scopeId","data-v-ae6f3d72"]]),Zde={class:"filter-subcategories"},Kde=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Zde,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(Yde,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ri=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),Xde={class:"details__header"},Qde=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),ece={class:"details__header__checkbox"},tce={class:"details__body"},ace={class:"details__body__playing-as"},ice=["onClick"],oce={class:"details__header"},sce=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),lce={class:"details__header__checkbox"},rce={class:"details__body"},nce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),dce={class:"details__body__game-section"},cce=["onClick"],pce={class:"details__body"},mce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),uce={class:"details__body__game-section"},hce=["onClick"],yce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__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(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",Xde,[Qde,e.createElementVNode("div",ece,[e.createVNode(e.unref(se),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",tce,[e.createElementVNode("div",ace,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,ice))),128))])]),e.createElementVNode("div",oce,[sce,e.createElementVNode("div",lce,[e.createVNode(e.unref(se),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",rce,[nce,e.createElementVNode("div",dce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,cce))),128))])]),e.createElementVNode("div",pce,[mce,e.createElementVNode("div",uce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,hce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),fce={class:"filter-field"},gce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",fce,[e.createVNode(e.unref(_r),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),_ce={class:"subcategory-group"},bce={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",_ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(oe),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Sce=le(bce,[["__scopeId","data-v-ae6f3d72"]]),Cce={class:"filter-subcategories"},wce=Object.freeze(Object.defineProperty({__proto__:null,default:le({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Cce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(Sce,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Li=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),kce={class:"details__header"},Ece=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Vce={class:"details__header__checkbox"},xce={class:"details__body"},Tce={class:"details__body__playing-as"},Nce=["onClick"],Bce={class:"details__header"},Fce=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Pce={class:"details__header__checkbox"},$ce={class:"details__body"},zce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Ace={class:"details__body__game-section"},Ice=["onClick"],Mce={class:"details__body"},Rce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Lce={class:"details__body__game-section"},Oce=["onClick"],Dce=Object.freeze(Object.defineProperty({__proto__:null,default:le({__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(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",kce,[Ece,e.createElementVNode("div",Vce,[e.createVNode(e.unref(oe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",xce,[e.createElementVNode("div",Tce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,Nce))),128))])]),e.createElementVNode("div",Bce,[Fce,e.createElementVNode("div",Pce,[e.createVNode(e.unref(oe),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",$ce,[zce,e.createElementVNode("div",Ace,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Ice))),128))])]),e.createElementVNode("div",Mce,[Rce,e.createElementVNode("div",Lce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Oce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),jce={class:"filter-field"},Wce=Object.freeze(Object.defineProperty({__proto__:null,default:le({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",jce,[e.createVNode(e.unref(Kd),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));ft.GSCPlayersTracking=Hde,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
|
|
25
|
+
`+s):a.stack=s}catch{}}throw a}}_request(t,i){typeof t=="string"?(i=i||{},i.url=t):i=t||{},i=Ft(this.defaults,i);const{transitional:a,paramsSerializer:o,headers:s}=i;a!==void 0&&Bi.assertOptions(a,{silentJSONParsing:et.transitional(et.boolean),forcedJSONParsing:et.transitional(et.boolean),clarifyTimeoutError:et.transitional(et.boolean)},!1),o!=null&&(L.isFunction(o)?i.paramsSerializer={serialize:o}:Bi.assertOptions(o,{encode:et.function,serialize:et.function},!0)),i.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?i.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:i.allowAbsoluteUrls=!0),Bi.assertOptions(i,{baseUrl:et.spelling("baseURL"),withXsrfToken:et.spelling("withXSRFToken")},!0),i.method=(i.method||this.defaults.method||"get").toLowerCase();let l=s&&L.merge(s.common,s[i.method]);s&&L.forEach(["delete","get","head","post","put","patch","common"],d=>{delete s[d]}),i.headers=qe.concat(l,s);const r=[];let n=!0;this.interceptors.request.forEach(function(d){typeof d.runWhen=="function"&&d.runWhen(i)===!1||(n=n&&d.synchronous,r.unshift(d.fulfilled,d.rejected))});const c=[];this.interceptors.response.forEach(function(d){c.push(d.fulfilled,d.rejected)});let p,y=0,m;if(!n){const d=[Fc.bind(this),void 0];for(d.unshift.apply(d,r),d.push.apply(d,c),m=d.length,p=Promise.resolve(i);y<m;)p=p.then(d[y++],d[y++]);return p}m=r.length;let h=i;for(y=0;y<m;){const d=r[y++],f=r[y++];try{h=d(h)}catch(u){f.call(this,u);break}}try{p=Fc.call(this,h)}catch(d){return Promise.reject(d)}for(y=0,m=c.length;y<m;)p=p.then(c[y++],c[y++]);return p}getUri(t){t=Ft(this.defaults,t);const i=Cc(t.baseURL,t.url,t.allowAbsoluteUrls);return mc(i,t.params,t.paramsSerializer)}};L.forEach(["delete","get","head","options"],function(t){Fi.prototype[t]=function(i,a){return this.request(Ft(a||{},{method:t,url:i,data:(a||{}).data}))}}),L.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,l){return this.request(Ft(l||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Fi.prototype[t]=i(),Fi.prototype[t+"Form"]=i(!0)});const Pi=Fi;class As{constructor(i){if(typeof i!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(s){a=s});const o=this;this.promise.then(s=>{if(!o._listeners)return;let l=o._listeners.length;for(;l-- >0;)o._listeners[l](s);o._listeners=null}),this.promise.then=s=>{let l;const r=new Promise(n=>{o.subscribe(n),l=n}).then(s);return r.cancel=function(){o.unsubscribe(l)},r},i(function(s,l,r){o.reason||(o.reason=new qt(s,l,r),a(o.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(i){if(this.reason){i(this.reason);return}this._listeners?this._listeners.push(i):this._listeners=[i]}unsubscribe(i){if(!this._listeners)return;const a=this._listeners.indexOf(i);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const i=new AbortController,a=o=>{i.abort(o)};return this.subscribe(a),i.signal.unsubscribe=()=>this.unsubscribe(a),i.signal}static source(){let i;return{token:new As(function(a){i=a}),cancel:i}}}const nD=As;function dD(t){return function(i){return t.apply(null,i)}}function cD(t){return L.isObject(t)&&t.isAxiosError===!0}const Is={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Is).forEach(([t,i])=>{Is[i]=t});const pD=Is;function zc(t){const i=new Pi(t),a=Xd(Pi.prototype.request,i);return L.extend(a,Pi.prototype,i,{allOwnKeys:!0}),L.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return zc(Ft(t,o))},a}const ge=zc(Ns);ge.Axios=Pi,ge.CanceledError=qt,ge.CancelToken=nD,ge.isCancel=gc,ge.VERSION=Pc,ge.toFormData=wi,ge.AxiosError=te,ge.Cancel=ge.CanceledError,ge.all=function(t){return Promise.all(t)},ge.spread=dD,ge.isAxiosError=cD,ge.mergeConfig=Ft,ge.AxiosHeaders=qe,ge.formToJSON=t=>yc(L.isHTMLForm(t)?new FormData(t):t),ge.getAdapter=Bc.getAdapter,ge.HttpStatusCode=pD,ge.default=ge;const Pt=ge,Yt={isAgeByRange:!0,isAgeByYear:!1,minAge:14,maxAge:43,availableYears:Array.from({length:30},(t,i)=>1981+i).sort((t,i)=>i-t),nationalTeams:[{booleanIsSelected:!1,stringName:"Selección mexicana",setAvailablePlayersIds:{},numberId:392}],isEligibilitySelected:!1,eligibility:[{isSelected:!0,id:138,name:"Mexicana"}],nationalities:[{isSelected:!0,id:138,name:"Mexicana"},{isSelected:!0,id:10,name:"Argentina"},{isSelected:!0,id:29,name:"Brasileña"},{isSelected:!0,id:47,name:"Colombiana"},{isSelected:!0,id:62,name:"Ecuatoriana"},{isSelected:!0,id:223,name:"Uruguaya"},{isSelected:!0,id:198,name:"Española"},{isSelected:!0,id:74,name:"Francesa"},{isSelected:!0,id:43,name:"Chilena"},{isSelected:!0,id:222,name:"Americana"},{isSelected:!0,id:165,name:"Paraguaya"},{isSelected:!0,id:226,name:"Venezolana"},{isSelected:!0,id:52,name:"Marfileña"},{isSelected:!0,id:166,name:"Peruana"}],positions:[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},Ac={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"},Ic={1:"Portero",2:"Defensa Central",3:"Lateral por izquierda",4:"Lateral por derecha",5:"Volante por izquierda",6:"Volante por derecha",7:"Volante defensivo",8:"Volante ofensivo",9:"Delantero",10:"Desconocida"};function $i(t){"@babel/helpers - typeof";return $i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},$i(t)}function it(t){if(t===null||t===!0||t===!1)return NaN;var i=Number(t);return isNaN(i)?i:i<0?Math.ceil(i):Math.floor(i)}function he(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function pe(t){he(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||$i(t)==="object"&&i==="[object Date]"?new Date(t.getTime()):typeof t=="number"||i==="[object Number]"?new Date(t):((typeof t=="string"||i==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function mD(t,i){he(2,arguments);var a=pe(t),o=it(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function uD(t,i){he(2,arguments);var a=pe(t),o=it(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),l=new Date(a.getTime());l.setMonth(a.getMonth()+o+1,0);var r=l.getDate();return s>=r?l:(a.setFullYear(l.getFullYear(),l.getMonth(),s),a)}function Ca(t,i){if(he(2,arguments),!i||$i(i)!=="object")return new Date(NaN);var a=i.years?it(i.years):0,o=i.months?it(i.months):0,s=i.weeks?it(i.weeks):0,l=i.days?it(i.days):0,r=i.hours?it(i.hours):0,n=i.minutes?it(i.minutes):0,c=i.seconds?it(i.seconds):0,p=pe(t),y=o||a?uD(p,o+a*12):p,m=l||s?mD(y,l+s*7):y,h=n+r*60,d=c+h*60,f=d*1e3,u=new Date(m.getTime()+f);return u}function Mc(t){var i=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return i.setUTCFullYear(t.getFullYear()),t.getTime()-i.getTime()}function Rc(t){he(1,arguments);var i=pe(t);return i.setHours(0,0,0,0),i}var hD=864e5;function yD(t,i){he(2,arguments);var a=Rc(t),o=Rc(i),s=a.getTime()-Mc(a),l=o.getTime()-Mc(o);return Math.round((s-l)/hD)}function Zt(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var fD=6e4,gD=36e5;function _D(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=a.getFullYear()-o.getFullYear(),l=a.getMonth()-o.getMonth();return s*12+l}function bD(t,i){he(2,arguments);var a=pe(t),o=pe(i);return a.getFullYear()-o.getFullYear()}function Lc(t,i){var a=t.getFullYear()-i.getFullYear()||t.getMonth()-i.getMonth()||t.getDate()-i.getDate()||t.getHours()-i.getHours()||t.getMinutes()-i.getMinutes()||t.getSeconds()-i.getSeconds()||t.getMilliseconds()-i.getMilliseconds();return a<0?-1:a>0?1:a}function SD(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=Lc(a,o),l=Math.abs(yD(a,o));a.setDate(a.getDate()-s*l);var r=+(Lc(a,o)===-s),n=s*(l-r);return n===0?0:n}function Ms(t,i){return he(2,arguments),pe(t).getTime()-pe(i).getTime()}var CD={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},wD="trunc";function Rs(t){return CD[wD]}function kD(t,i,a){he(2,arguments);var o=Ms(t,i)/gD;return Rs()(o)}function ED(t,i,a){he(2,arguments);var o=Ms(t,i)/fD;return Rs()(o)}function VD(t){he(1,arguments);var i=pe(t);return i.setHours(23,59,59,999),i}function xD(t){he(1,arguments);var i=pe(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function TD(t){he(1,arguments);var i=pe(t);return VD(i).getTime()===xD(i).getTime()}function ND(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=Zt(a,o),l=Math.abs(_D(a,o)),r;if(l<1)r=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*l);var n=Zt(a,o)===-s;TD(pe(t))&&l===1&&Zt(t,o)===1&&(n=!1),r=s*(l-Number(n))}return r===0?0:r}function BD(t,i,a){he(2,arguments);var o=Ms(t,i)/1e3;return Rs()(o)}function FD(t,i){he(2,arguments);var a=pe(t),o=pe(i),s=Zt(a,o),l=Math.abs(bD(a,o));a.setFullYear(1584),o.setFullYear(1584);var r=Zt(a,o)===-s,n=s*(l-Number(r));return n===0?0:n}function Oc(t){return he(1,arguments),pe(t).getFullYear()}function Dc(t){he(1,arguments);var i=pe(t.start),a=pe(t.end);if(isNaN(i.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var o={};o.years=Math.abs(FD(a,i));var s=Zt(a,i),l=Ca(i,{years:s*o.years});o.months=Math.abs(ND(a,l));var r=Ca(l,{months:s*o.months});o.days=Math.abs(SD(a,r));var n=Ca(r,{days:s*o.days});o.hours=Math.abs(kD(a,n));var c=Ca(n,{hours:s*o.hours});o.minutes=Math.abs(ED(a,c));var p=Ca(c,{minutes:s*o.minutes});return o.seconds=Math.abs(BD(a,p)),o}const PD="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",$D="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",$t={...Yt},jc=new Set([1]);async function zD(t,i=""){try{const a={Authorization:i||PD},o={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:$D,s=await Pt.get(o+t.id,{headers:a});return s.data?s.data.players:[]}catch(a){return Promise.reject(a)}}async function AD(t=[],i=""){try{const a=t.map(o=>zD(o,i));if(a.length){const o=new Set,s=new Date,l=[],r=new Map,n=new Map,c=await Promise.all(a);for(const p of c)for(const y of p){const m=new Date(y.dob),h=Oc(m),d=Dc({start:m,end:s});r.has(y.nationality_id)||r.set(y.nationality_id,{id:y.nationality_id,isSelected:!0,name:Ac[`${y.nationality_id}`]}),n.has(y.position_id)||n.set(y.position_id,{id:y.position_id,isSelected:!0,name:Ic[`${y.position_id}`]}),o.add(h),l.push(d.years)}return $t.minAge=Math.min(...l),$t.maxAge=Math.max(...l),$t.availableYears=[...o].sort((p,y)=>y-p),$t.nationalities=[...r.values()],$t.positions=[...n.values()],$t.isEligibilitySwitchVisible=t.some(p=>jc.has(p.tournamentId)),$t}else return null}catch(a){return Promise.reject(a)}}const ID={__name:"SwitchCustom",props:{modelValue:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(null);e.watch(()=>a.modelValue,()=>{s()},{immediate:!0});function s(){o.value&&(o.value.checked=a.modelValue)}function l(r){i("update:modelValue",r.target.checked)}return e.onMounted(()=>{s()}),(r,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:l},null,544))}},wa=le(ID,[["__scopeId","data-v-e3a6ae4e"]]),zt=t=>(e.pushScopeId("data-v-8c3ead4b"),t=t(),e.popScopeId(),t),MD={class:"personal-data"},RD={class:"personal-data__age"},LD={class:"personal-data__age__toggle"},OD={class:"personal-data__age__range"},DD={class:"personal-data__age__dropdown"},jD=zt(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),WD={class:"selected-item"},UD=zt(()=>e.createElementVNode("div",{class:"separator"},null,-1)),vD={class:"personal-data__nationality-position"},GD={key:0,class:"personal-data__nationality-position__switch"},HD=zt(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),JD=zt(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),qD={class:"personal-data__nationality-position__nationality"},YD=zt(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),ZD={class:"selected-item"},KD=zt(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),XD={class:"selected-item"},QD={class:"personal-data__nationality-position__position"},ej=zt(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),tj={class:"selected-item"},aj="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",ij={__name:"TemplatePersonalData",props:{filters:{type:Object,default:()=>null},isFemale:{type:Boolean,default:!1},season:{type:Object,default:()=>({})},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},fontFamily:{type:String,default:"'Poppins-Regular'"},awaitForFilters:{type:Boolean,default:!1}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},r=e.ref({...Yt}),n=e.ref(["Por edad","Por año"]),c=e.ref(0),p=e.ref({min:Yt.minAge,max:Yt.maxAge}),y=e.ref(ut),m=e.ref(""),h=e.ref(""),d=e.ref(r.value.availableYears[r.value.availableYears.length-1]),f=e.ref(0),u=e.computed(()=>{const S=r.value.nationalities?[...r.value.nationalities]:[];o.isSeleccion&&S.forEach(P=>{P.isSelected=P.id===138});const F=S[0];return(!F||F.id!==0)&&S.unshift(s),S}),g=e.computed(()=>{let S=(o.filter&&o.filter.positions?o.filter.positions:r.value.positions)?[...r.value.positions]:[];const F=S[0];return(!F||F.id!==0)&&S.unshift(l),S.sort((P,H)=>P.id-H.id),S}),C=e.computed(()=>o.season&&o.season.tournamentId&&jc.has(o.season.tournamentId)||o.filters&&o.filters.isEligibilitySwitchVisible);e.watch(u,S=>{const F=S.reduce((P,H,Z)=>(Z!==0&&H.isSelected&&P++,P),0);F===u.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?m.value="Todas las nacionalidades":m.value=`${F} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(g,S=>{const F=S.reduce((P,H,Z)=>(Z!==0&&H.isSelected&&P++,P),0);F===g.value.length-1&&(S[0].isSelected=!0),S[0]&&S[0].isSelected?h.value="Todas las posiciones":h.value=`${F} seleccionadas`,J()},{immediate:!0,deep:!0}),e.watch(()=>o.filters,S=>{if(S&&S.availableYears){const F=!Number.isNaN(Number(S.selectedYear));r.value=S,c.value=r.value.selectedYear&&F?1:0,d.value=F?r.value.selectedYear:r.value.availableYears[0],p.value.min=r.value.minAge,p.value.max=r.value.maxAge,l.isSelected=S.positions.every(P=>P.isSelected),J()}},{immediate:!0,deep:!0}),e.watch(()=>r.value.isEligibilitySelected,()=>{J()}),e.watch(()=>o.season,S=>{S&&S.id!==f.value&&!o.awaitForFilters&&(f.value=S.id,k(S))},{immediate:!0,deep:!1});async function k(S){try{if(S&&S.id){const F=new Set,P=await q(S.id),H=new Date,Z=[],de=new Map,ae=new Map;P.forEach(E=>{const V=new Date(E.dob),O=Oc(V),$=Dc({start:V,end:H});de.has(E.nationality_id)||de.set(E.nationality_id,{id:E.nationality_id,isSelected:!0,name:Ac[`${E.nationality_id}`]}),ae.has(E.position_id)||ae.set(E.position_id,{id:E.position_id,isSelected:!0,name:Ic[`${E.position_id}`]}),F.add(O),Z.push($.years)}),r.value.minAge=Math.min(...Z),r.value.maxAge=Math.max(...Z),r.value.availableYears=[...F].sort((E,V)=>V-E),d.value=r.value.availableYears[0],r.value.nationalities=[...de.values()],r.value.positions=[...ae.values()],p.value.min=r.value.minAge,p.value.max=r.value.maxAge}}catch(F){throw new Error(F)}}function U(S=null){const F=!S||S===ie.All;(F||S===ie.NATIONALITY)&&u.value.forEach(P=>{P.isSelected=!0}),(F||S===ie.ELIGIBILITY)&&(r.value.isEligibilitySelected=!1),(F||S===ie.POSITION)&&g.value.forEach(P=>{P.isSelected=!0}),(F||S===ie.AGE_RANGE)&&(p.value.min=r.value.minAge,p.value.max=r.value.maxAge,c.value=0),(F||S===ie.YEAR)&&(d.value=o.isScouting?r.value.availableYears[r.value.availableYears.length-1]:r.value.availableYears[0],c.value=0),J()}async function q(S){try{const F={Authorization:localStorage.getItem("user_token")||o.token},P={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:aj,H=await Pt.get(P+S,{headers:F});return H.data?H.data.players:[]}catch(F){return Promise.reject(F)}}function A(S){c.value=S.index,o.filters&&o.filters.availableYears&&S.index===0?o.filters.selectedYear="Sin límite":o.filters&&o.filters.availableYears&&S.index===1&&(o.filters.selectedYear=o.filters.availableYears[0])}function v(S){p.value.min=S.minValue,p.value.max=S.maxValue,J()}function Y(S,F){F.id===0?u.value.forEach(P=>{P.isSelected=S}):(F.isSelected=S,u.value[0].isSelected=u.value.every((P,H)=>H===0?!0:P.isSelected))}function J(){const S=c.value===0,F={};S?(F.ageByRange=p.value,F.ageLimits={min:r.value.minAge,max:r.value.maxAge}):F.year=d.value,r.value.isEligibilitySelected?F.eligibility=[...r.value.eligibility]:F.nationalities=u.value.reduce((P,H,Z)=>(Z!==0&&P.push({...H}),P),[]),F.positions=g.value.reduce((P,H,Z)=>(Z!==0&&P.push({...H}),P),[]),a("update:filters",F)}function x(S,F){F.id===0?g.value.forEach(P=>{P.isSelected=S}):(F.isSelected=S,g.value[0].isSelected=g.value.every((P,H)=>H===0?!0:P.isSelected))}function T(S){d.value=S,o.filters&&(o.filters.selectedYear=S),J()}return i({onClearFilters:U}),(S,F)=>(e.openBlock(),e.createElementBlock("div",MD,[e.createElementVNode("div",RD,[e.createElementVNode("div",LD,[e.createVNode(zL,{"selected-button-index":c.value,buttons:n.value,width:"220px",onChange:A},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",OD,[e.createVNode(e.unref(vd),{"border-width":"0","background-color":"#0D1D29",height:"30px","font-size-value":"14px","font-size":"12px","border-width-indicador":"2px","line-in-range-color":"white","background-indicador":"#CBEE6B","min-limit":r.value.minAge,"max-limit":r.value.maxAge,"min-value":p.value.min,"max-value":p.value.max,onInput:v},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",DD,[jD,e.createVNode(e.unref(He),e.mergeProps({"model-value":d.value},y.value,{items:r.value.availableYears,onInput:T}),{default:e.withCtx(({selectedItem:P})=>[e.createElementVNode("div",WD,e.toDisplayString(P),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,e.toDisplayString(P),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),UD,e.createElementVNode("div",vD,[C.value?(e.openBlock(),e.createElementBlock("div",GD,[HD,e.createVNode(wa,{modelValue:r.value.isEligibilitySelected,"onUpdate:modelValue":F[0]||(F[0]=P=>r.value.isEligibilitySelected=P)},null,8,["modelValue"]),JD])):e.createCommentVNode("",!0),e.createElementVNode("div",qD,[r.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[KD,e.createVNode(e.unref(He),e.mergeProps(y.value,{"is-multiple-option":"",items:r.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:P})=>[e.createElementVNode("div",XD,e.toDisplayString(P.name),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":P.isSelected,label:P.name,fontFamily:t.fontFamily,width:"100%","avoid-interaction":""},null,8,["model-value","label","fontFamily"])])]),_:1},16,["items"])],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[YD,e.createVNode(e.unref(He),e.mergeProps(y.value,{"is-multiple-option":"",items:u.value}),{default:e.withCtx(()=>[e.createElementVNode("div",ZD,e.toDisplayString(m.value),1)]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":P.isSelected,label:P.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Y(H,P)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",QD,[ej,e.createVNode(e.unref(He),e.mergeProps(y.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",tj,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(h.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(h.value),1)],64))])]),availableItem:e.withCtx(({item:P})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":P.isSelected,label:t.isFemale?P.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):P.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>x(H,P)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},oj=le(ij,[["__scopeId","data-v-8c3ead4b"]]),sj={class:"plays"},lj={class:"plays__body__offensive"},rj={class:"plays__body__title"},nj={class:"number-of-categories"},dj={class:"plays__body__categories"},cj={class:"plays__body__defensive-possession-offenses"},pj={class:"plays__body__title"},mj={class:"number-of-categories"},uj={class:"plays__body__categories"},hj={class:"plays__body__title"},yj={class:"number-of-categories"},fj={class:"plays__body__categories"},gj={class:"plays__body__title"},_j={class:"number-of-categories"},bj={class:"plays__body__categories"},Sj={__name:"TemplatePlays",props:{componentWidth:{type:Number,default:0},playsCategories:{type:Object,required:!0},isExpansionMode:{type:Boolean,default:!0},fontFamily:{type:String,default:"'Poppins-Regular'"}},setup(t){const i=t,a=e.ref(!1),o=e.ref(!1),s=e.ref(!1),l=e.ref(!1),r=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),c=e.computed(()=>i.playsCategories.defensive.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),p=e.computed(()=>i.playsCategories.possession.categories.reduce((d,f)=>(f.isSelected&&d++,d),0)),y=e.computed(()=>i.playsCategories.offenses.categories.reduce((d,f)=>(f.isSelected&&d++,d),0));function m(d,f){f.isSelected=d}function h(d){d==="offensive"?a.value=!a.value:d==="defensive"?o.value=!o.value:d==="possession"?s.value=!s.value:d==="offenses"&&(l.value=!l.value)}return(d,f)=>(e.openBlock(),e.createElementBlock("div",sj,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",lj,[e.createElementVNode("div",rj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[0]||(f[0]=u=>h("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",nj,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[1]||(f[1]=u=>h("offensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",dj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",cj,[e.createElementVNode("div",pj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[2]||(f[2]=u=>h("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",mj,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[3]||(f[3]=u=>h("defensive"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",uj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.defensive.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",hj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[4]||(f[4]=u=>h("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",yj,"("+e.toDisplayString(p.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[5]||(f[5]=u=>h("possession"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",fj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.possession.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",gj,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:f[6]||(f[6]=u=>h("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",_j,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:f[7]||(f[7]=u=>h("offenses"))},[e.withDirectives(e.createVNode(Nt,{"is-expanded":l.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",bj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.playsCategories.offenses.categories,u=>(e.openBlock(),e.createElementBlock("div",{key:u.id,class:"plays__checkbox"},[e.createVNode(e.unref(oe),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>m(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||l.value]])])],4)]))}},Cj=le(Sj,[["__scopeId","data-v-364e6cae"]]),wj={class:"template-results"},kj={__name:"TemplateResults",props:{resultsFilters:{type:Object,default:()=>({results:[]})}},emits:["update:resultsFilters"],setup(t,{emit:i}){const a=t,o=e.computed(()=>a.resultsFilters.results.filter(s=>s.isSelected).length);return e.watch(()=>a.resultsFilters,s=>{i("update:resultsFilters",s)},{deep:!0,immediate:!0}),(s,l)=>(e.openBlock(),e.createElementBlock("div",wj,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(r,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(oe),{modelValue:r.isSelected,"onUpdate:modelValue":c=>r.isSelected=c,label:r.name,"avoid-interaction":o.value===1&&r.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},Ej=le(kj,[["__scopeId","data-v-453e89c2"]]),Vj={__name:"ButtonCustom",props:{text:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},padding:{type:String,default:"0px"},borderRadius:{type:String,default:"0px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"#d9d9d9"},backgroundColor:{type:String,default:"#FFFFFF"},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},activeFontColor:{type:String,default:""},fontColor:{type:String,default:"#000000"},fontSize:{type:String,default:"16px"},fontFamily:{type:String,default:"Poppins-Regular, sans-serif"},isActive:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:i}){const a=t,o=e.computed(()=>({"--height":a.height,"--width":a.width,"--padding":a.padding,"--border-radius":a.borderRadius,"--border":`solid ${a.borderWidth} ${a.borderColor}`,"--background-color":a.backgroundColor,"--font-color":a.fontColor,"--font-size":a.fontSize,"--font-family":a.fontFamily,"--active-background-color":a.activeBackgroundColor||a.backgroundColor,"--active-border-color":a.activeBorderColor||a.borderColor,"--active-font-color":a.activeFontColor||a.fontColor}));function s(){i("click")}return(l,r)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},ka=le(Vj,[["__scopeId","data-v-9688933e"]]),xj={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},Wc={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},Tj={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},Nj={4:"OF",5:"Cf",6:"S",7:"F"};function Ls(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Bj={class:"dropdown"},Fj={class:"selected-item"},Pj={__name:"DropdownTextOnly",props:{items:{type:Array,default:()=>[]},itemTextKey:{type:String,default:""},isListSameWidth:{type:Boolean,default:!0}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Bj,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",Fj,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?l[t.itemTextKey]:l),1)]),_:1},16,["is-list-same-width","items"])]))}},ze=le(Pj,[["__scopeId","data-v-064d5f86"]]),$j={class:"dropdown"},zj={class:"game-item"},Aj={key:0,class:"item-game"},Ij={class:"match-day"},Mj={class:"team-logo"},Rj=["src"],Lj={class:"text"},Oj={class:"text score"},Dj={class:"text"},jj={class:"team-logo"},Wj=["src"],Uj={class:"item-game"},vj={class:"team-logo"},Gj=["src"],Hj={class:"text"},Jj={class:"text score"},qj={class:"text"},Yj={class:"team-logo"},Zj=["src"],Kj={__name:"DropdownGame",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",$j,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",zj,[l.homeTeam?(e.openBlock(),e.createElementBlock("div",Aj,[e.createElementVNode("div",Ij,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",Mj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Rj)]),e.createElementVNode("div",Lj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Oj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",Dj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",jj,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,Wj)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",Uj,[e.createElementVNode("div",null,e.toDisplayString(l.roundAbbreviation),1),e.createElementVNode("div",vj,[e.createElementVNode("img",{src:l.homeTeam.logo,alt:""},null,8,Gj)]),e.createElementVNode("div",Hj,e.toDisplayString(l.homeTeam.acronym),1),e.createElementVNode("div",Jj,e.toDisplayString(l.score[0])+" - "+e.toDisplayString(l.score[1]),1),e.createElementVNode("div",qj,e.toDisplayString(l.awayTeam.acronym),1),e.createElementVNode("div",Yj,[e.createElementVNode("img",{src:l.awayTeam.logo,alt:""},null,8,Zj)])])]),_:1},16,["items"])]))}},zi=le(Kj,[["__scopeId","data-v-7883a91e"]]),Ai=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),Xj={class:"container"},Qj={class:"container__row"},eW={class:"container__row__wrapper"},tW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),aW={class:"container__row__wrapper__input"},iW={class:"container__row two-items"},oW={class:"container__row__wrapper"},sW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),lW={key:0,class:"container__row__wrapper__input"},rW={class:"container__row__wrapper"},nW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),dW={key:0,class:"container__row__wrapper__input"},cW={class:"container__row"},pW={class:"container__row__wrapper"},mW=Ai(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),uW={key:0,class:"container__row__wrapper__input"},hW={class:"container__action"},yW={__name:"VideosGoals",props:{tournaments:{type:Array,required:!0}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},o=e.ref(null),s=e.ref(null),l=e.ref(null),r=e.ref(null);function n(m){o.value=m,i("update:tournament",m)}function c(m){s.value=m,i("update:season",m)}function p(m){l.value=m}function y(m){r.value=m}return(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",Xj,[e.createElementVNode("div",Qj,[e.createElementVNode("div",eW,[tW,e.createElementVNode("div",aW,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",iW,[e.createElementVNode("div",oW,[sW,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",lW,[e.createVNode(ze,{items:o.value.seasons,itemTextKey:"name",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",rW,[nW,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",dW,[e.createVNode(ze,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:p},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",cW,[e.createElementVNode("div",pW,[mW,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",uW,[e.createVNode(zi,{items:l.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",hW,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},fW=le(yW,[["__scopeId","data-v-b63e9c84"]]),gW={class:"dropdown"},_W={class:"item-team"},bW={class:"team-logo"},SW=["src"],CW={class:"team-acronym"},wW={class:"item-team"},kW={class:"team-logo"},EW=["src"],VW={class:"team-acronym"},xW={__name:"DropdownTeam",props:{items:{type:Array,default:()=>[]}},emits:["input"],setup(t,{emit:i}){function a(o){i("input",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",gW,[e.createVNode(e.unref(He),e.mergeProps(e.unref(ut),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:l})=>[e.createElementVNode("div",_W,[e.createElementVNode("div",bW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,SW)]),e.createElementVNode("div",CW,e.toDisplayString(l.acronym),1)])]),availableItem:e.withCtx(({item:l})=>[e.createElementVNode("div",wW,[e.createElementVNode("div",kW,[e.createElementVNode("img",{src:l.logo,alt:""},null,8,EW)]),e.createElementVNode("div",VW,e.toDisplayString(l.acronym),1)])]),_:1},16,["items"])]))}},Uc=le(xW,[["__scopeId","data-v-afd2bee8"]]),TW={class:"advanced-filters"},NW={class:"advanced-filters__buttons"},BW=["onClick"],FW={class:"advanced-filters__filters"},PW={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>wce)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Dce)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>Wce)),l=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],r=e.ref(l[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function c(p){r.value=p}return(p,y)=>(e.openBlock(),e.createElementBlock("div",TW,[e.createElementVNode("div",NW,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(l,m=>e.createElementVNode("div",{key:m.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:r.value.name===m.name}]),onClick:h=>c(m)},e.toDisplayString(m.name),11,BW)),64))]),e.createElementVNode("div",FW,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(r.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Os=le(PW,[["__scopeId","data-v-c62c5b9c"]]),At=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),$W={class:"container"},zW={class:"container__row"},AW={class:"container__row__wrapper"},IW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),MW={class:"container__row__wrapper__input"},RW={class:"container__row two-items"},LW={class:"container__row__wrapper"},OW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),DW={key:0,class:"container__row__wrapper__input"},jW={class:"container__row__wrapper"},WW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),UW={key:0,class:"container__row__wrapper__input"},vW={class:"container__row"},GW={class:"container__row__wrapper"},HW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),JW={key:0,class:"container__row__wrapper__input"},qW={class:"container__row"},YW={class:"container__row__wrapper"},ZW=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),KW={key:0,class:"container__row__wrapper__input"},XW={class:"container__row type-and-advanced"},QW={class:"container__row__wrapper"},eU=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),tU={class:"container__row__wrapper__input"},aU={class:"container__row__wrapper center"},iU=At(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),oU={class:"container__row__wrapper__input"},sU={class:"container__row"},lU={class:"container__action"},rU={__name:"VideosPlayer",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({player:[],goalkeeper:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(null),y=e.ref(!0),m=e.computed(()=>c.value?c.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function h(k){s.value=k,i("update:tournament",k)}function d(k){l.value=k,i("update:season",k)}function f(k){n.value=k,i("update:team",k)}function u(k){c.value=k}function g(k){r.value=k}function C(k){p.value=k}return(k,U)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",$W,[e.createElementVNode("div",zW,[e.createElementVNode("div",AW,[IW,e.createElementVNode("div",MW,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:h},null,8,["items"])])])]),e.createElementVNode("div",RW,[e.createElementVNode("div",LW,[OW,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",DW,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",jW,[WW,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",UW,[e.createVNode(Uc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",vW,[e.createElementVNode("div",GW,[HW,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",JW,[e.createVNode(ze,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",qW,[e.createElementVNode("div",YW,[ZW,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",KW,[e.createVNode(zi,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",XW,[e.createElementVNode("div",QW,[eU,e.createElementVNode("div",tU,[e.createVNode(ze,{items:m.value,itemTextKey:"name","is-list-same-width":!1,onInput:C},null,8,["items"])])]),e.createElementVNode("div",aU,[iU,e.createElementVNode("div",oU,[e.createVNode(wa,{modelValue:y.value,"onUpdate:modelValue":U[0]||(U[0]=q=>y.value=q)},null,8,["modelValue"])])])]),e.createElementVNode("div",sU,[e.createVNode(Os,{"selected-category":p.value},null,8,["selected-category"])])]),e.createElementVNode("div",lU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},nU=le(rU,[["__scopeId","data-v-575b26b5"]]),Kt=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),dU={class:"container"},cU={class:"container__row"},pU={class:"container__row__wrapper"},mU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),uU={class:"container__row__wrapper__input"},hU={class:"container__row two-items"},yU={class:"container__row__wrapper"},fU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),gU={key:0,class:"container__row__wrapper__input"},_U={class:"container__row__wrapper"},bU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),SU={key:0,class:"container__row__wrapper__input"},CU={class:"container__row"},wU={class:"container__row__wrapper"},kU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),EU={key:0,class:"container__row__wrapper__input"},VU={class:"container__row type-and-advanced"},xU={class:"container__row__wrapper"},TU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),NU={class:"container__row__wrapper__input"},BU={class:"container__row__wrapper center"},FU=Kt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),PU={class:"container__row__wrapper__input"},$U={class:"container__row"},zU={class:"container__action"},AU={__name:"VideosTeam",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({team:[]})}},emits:["update:tournament","update:season","update:team"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null);e.ref(null);const r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.team);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){n.value=g,i("update:team",g)}function f(g){r.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",dU,[e.createElementVNode("div",cU,[e.createElementVNode("div",pU,[mU,e.createElementVNode("div",uU,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",hU,[e.createElementVNode("div",yU,[fU,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",gU,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",_U,[bU,l.value&&l.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",SU,[e.createVNode(Uc,{items:l.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",CU,[e.createElementVNode("div",wU,[kU,l.value&&l.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",EU,[e.createVNode(zi,{items:l.value.mapGamesByTeam.get(n.value.team_id),onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",VU,[e.createElementVNode("div",xU,[TU,e.createElementVNode("div",NU,[e.createVNode(ze,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",BU,[FU,e.createElementVNode("div",PU,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",$U,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",zU,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},IU=le(AU,[["__scopeId","data-v-6d73d5e6"]]),Xt=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),MU={class:"container"},RU={class:"container__row"},LU={class:"container__row__wrapper"},OU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),DU={class:"container__row__wrapper__input"},jU={class:"container__row two-items"},WU={class:"container__row__wrapper"},UU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),vU={key:0,class:"container__row__wrapper__input"},GU={class:"container__row__wrapper"},HU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),JU={key:0,class:"container__row__wrapper__input"},qU={class:"container__row"},YU={class:"container__row__wrapper"},ZU=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),KU={key:0,class:"container__row__wrapper__input"},XU={class:"container__row type-and-advanced"},QU={class:"container__row__wrapper"},ev=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),tv={class:"container__row__wrapper__input"},av={class:"container__row__wrapper center"},iv=Xt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),ov={class:"container__row__wrapper__input",style:{width:"fit-content"}},sv={class:"container__row"},lv={class:"container__action"},rv={__name:"VideosGame",props:{tournaments:{type:Array,required:!0},advancedFilterCategories:{type:Object,default:()=>({games:[]})}},emits:["update:tournament","update:season"],setup(t,{emit:i}){const a=t,o={text:"Buscar",width:"100%",padding:"12px 0",borderRadius:"34px",backgroundColor:"#CBEE6B",borderColor:"#CBEE6B",fontColor:"#132634"},s=e.ref(null),l=e.ref(null),r=e.ref(null),n=e.ref(null),c=e.ref(null),p=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.games);function m(g){s.value=g,i("update:tournament",g)}function h(g){l.value=g,i("update:season",g)}function d(g){r.value=g}function f(g){n.value=g}function u(g){c.value=g}return(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",MU,[e.createElementVNode("div",RU,[e.createElementVNode("div",LU,[OU,e.createElementVNode("div",DU,[e.createVNode(ze,{items:t.tournaments,itemTextKey:"name",onInput:m},null,8,["items"])])])]),e.createElementVNode("div",jU,[e.createElementVNode("div",WU,[UU,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",vU,[e.createVNode(ze,{items:s.value.seasons,itemTextKey:"name",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",GU,[HU,l.value&&l.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",JU,[e.createVNode(ze,{items:l.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",qU,[e.createElementVNode("div",YU,[ZU,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",KU,[e.createVNode(zi,{items:r.value.arrayGames,onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",XU,[e.createElementVNode("div",QU,[ev,e.createElementVNode("div",tv,[e.createVNode(ze,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",av,[iv,e.createElementVNode("div",ov,[e.createVNode(wa,{modelValue:p.value,"onUpdate:modelValue":C[0]||(C[0]=k=>p.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",sv,[e.createVNode(Os,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",lv,[e.createVNode(ka,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},nv=le(rv,[["__scopeId","data-v-6e904db8"]]),dv={class:"template-videos"},cv={class:"template-videos__header"},pv={class:"template-videos__body"},mv=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:fW,VideosPlayer:nU,VideosTeam:IU,VideosGame:nv}}),uv=Object.assign(mv,{props:{gamesUrl:{type:String,default:"https://qyyibs1w0d.execute-api.us-west-2.amazonaws.com/prod/calendar/gamesBySeason?"},tournamentsUrl:{type:String,default:"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/tournaments"},playersUrl:{type:String,default:"https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/"},token:{type:String,default:""}},emits:["loading-data"],setup(t,{emit:i}){const a=t,o={padding:"4px 18px",borderRadius:"160px",backgroundColor:"#3A4851",borderColor:"#3A4851",activeBorderColor:"#CBEE6B",fontSize:"11px",fontColor:"#FFFFFF"},s=[],l=["g-23","g-24","g-25"],r={games:[607,608,12,55,54,35,14,52,15,53,466,477],team:[607,608,12,55,54,35,14,52,15,53,466,477,40,257,39],player:{regular:[12,35,10,27,607,61,519,98,101,109,112,121,122,127,128,135,136,141,142,161,170,179,702,730,466,217,211,232,235,239,242,282,284,289,291,296,485,486,487,488,14,15,257],goalkeeper:[55,324,323,608,39,774,802,52,53,40,54]}},n={player:1,team:2,goalkeeper:3},c=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),p=e.ref([]),y=e.ref(c.value[0]),m=e.ref({}),h=e.ref({}),d=e.ref({}),f=e.ref({}),u=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const C=e.ref(null);e.watch(m,E=>{h.value.numberSeasonSelectedIndex=h.value.seasons.findIndex(V=>V.id===E.id),E.arrayMatchDays?(f.value=E.arrayMatchDays[0]||{},d.value=E.arrayTeams[0]||{}):(v(E),Y(E))}),e.watch(d,()=>{setTimeout(()=>{m.value.mapPlayersByTeam&&(!d.value.arrayPlayers||!d.value.arrayPlayers.length)&&(d.value.arrayPlayers=m.value.mapPlayersByTeam.get(d.value.team_id))},700)});async function k(){try{p.value=await U()}catch(E){throw new Error(E)}}async function U(){try{const E={Authorization:Ls()||a.token},V={}.API_TOURNAMENTS||a.tournamentsUrl,O=await Pt.get(V,{headers:E});return O.data?O.data.map($=>({...$.tournament,seasons:$.seasons})):[]}catch(E){return Promise.reject(E)}}async function q(E,V,O=""){i("loading-data");let $=O;try{$||($={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,E.forEach((j,_)=>{$+=`${_===0?"":"&"}seasons=${j}`}));const W={Authorization:Ls()||a.token},{data:{data:z,teams:G}}=await Pt.get($,{headers:W});return{seasonsAndGames:z,seasonsAndTeams:G}}catch(W){if(V>0)return q(E,V-1,$);throw new Error(W)}finally{i("loading-data")}}async function A(E){try{const V={Authorization:Ls()||a.token},O=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${E.seasonId}`,$=await Pt.get(O,{headers:V});return $.data?$.data.players:[]}catch(V){return Promise.reject(V)}}async function v(E){try{const{seasonsAndGames:V,seasonsAndTeams:O}=await q([E.id,...E.related_seasons.map(G=>G.id)],3),$=O.find(G=>G._id===E.id);m.value.arrayTeams=[],m.value.mapTeams=new Map;const W=$.teams.reduce((G,j)=>(m.value.arrayTeams.push(j),m.value.mapTeams.set(j.team_id,{name:j.colloquial_name,acronym:j.acronym,logo:j.logo,id:j.team_id}),G.set(j.team_id,j),G),new Map);d.value=m.value.arrayTeams[0],m.value.mapGames=new Map,m.value.mapGamesByTeam=new Map;const z=Array.from(V.reduce((G,j)=>(j.games.forEach(_=>{if(_.game_status===1&&_.has_video){(!m.value.maxGameId||_.game_id>m.value.maxGameId)&&(m.value.maxGameId=_.game_id);let b=_.matchday_abbreviation.replace("M","J"),w=_.matchday_abbreviation.replace("M","Jornada ");const D=_.matchday_abbreviation.replace("M","");j.season_type===0?h.value.tournament_type===1&&(_.seasonId===881?(b=Nj[D]||b,w=Tj[D]||w):(b=Wc[_.matchday_abbreviation]?_.matchday_abbreviation:b,w=Wc[_.matchday_abbreviation]||w,b==="FINAL"&&(b="F"))):j.season_type===1?(b=xj[_.matchday_abbreviation],w=b):(b=_.matchday_abbreviation.replace("PO","R"),w="Repechaje"),_.roundAbbreviation=b,_.roundName=w,m.value.mapGames.set(_.game_id,{id:_.game_id,date:_.date,dateTimeMillis:new Date(_.date_time_utc).valueOf(),homeTeam:m.value.mapTeams.get(_.home_team),awayTeam:m.value.mapTeams.get(_.visiting_team),roundAbbreviation:_.roundAbbreviation,roundName:_.roundName,score:_.score,gameResult:_.score[0]>_.score[1]?1:_.score[0]<_.score[1]?2:3,seasonId:j.season_id});const _e=G.get(_.roundAbbreviation);_.numberDateTimeMillis=new Date(_.date_time_utc).getTime(),_.homeTeam=W.get(_.home_team),_.awayTeam=W.get(_.visiting_team);const st=m.value.mapGamesByTeam.get(_.home_team),De=m.value.mapGamesByTeam.get(_.visiting_team);st?st.push(_):m.value.mapGamesByTeam.set(_.home_team,[_]),De?De.push(_):m.value.mapGamesByTeam.set(_.visiting_team,[_]),_e?_e.arrayGames.push(_):G.set(_.roundAbbreviation,{stringMatchDayAbbreviation:_.roundAbbreviation,stringMatchDayName:_.roundName,arrayGames:[_]})}}),G),new Map).values());z.reverse(),z.forEach(G=>{G.arrayGames.sort((j,_)=>j.numberDateTimeMillis-_.numberDateTimeMillis)}),m.value.arrayMatchDays=z,f.value=z[0]||{}}catch(V){throw new Error(V)}}async function Y(E){try{const V=await F(E.id);m.value.mapPlayers=new Map,m.value.mapPlayersByTeam=V.reduce((O,$)=>{m.value.mapPlayers.set($.player_id,{id:$.player_id,name:$.player_name,shortName:$.shortName,photo:$.player_photo,teamId:$.team_id,positionId:$.position_id});const W=O.get($.team_id);return W?W.push($):O.set($.team_id,[$]),O},new Map)}catch(V){throw new Error(V)}}async function J(){try{let E=[];u.value.isEmpty?(E=await P(),g.value={...E}):E=g.value;const V=[];if(E&&E.length){u.value=E.reduce((j,_)=>{if(_.group_id!=="g-55"){const b={idAux:_.group_id,ids:[..._.ids?_.ids:[],..._.rival_Ids?_.rival_Ids:[]],type:_.type,name:_.name,coordinatePoint:_.coordinate_point,requiresRivalTransform:l.includes(_.group_id)};b.idsAux=[...b.ids],b.subcategoryGroups=_.group_id==="g-12"?[]:x(_,0,new Map,!1,{},b.idsAux),V.push(b),b.type.includes(n.player)&&j.player.push(b),b.type.includes(n.team)&&(b.idAux!=="g-2"&&j.games.push(b),j.team.push(b)),b.type.includes(n.goalkeeper)&&j.goalkeeper.push(b)}return j},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const O=new Map,$="Resumen",W="Todas sus jugadas",z=u.value.player.reduce((j,_)=>{const b=T(_);return b.forEach(w=>{O.set(w,_.name)}),j.push(...b),j},[]),G=u.value.goalkeeper.reduce((j,_)=>{const b=T(_);return b.forEach(w=>{O.set(w,_.name)}),j.push(...b),j},[]);u.value.games.unshift({name:$,arrayCategoriesIds:r.games,booleanIsBestPlays:!0}),u.value.team.unshift({name:$,arrayCategoriesIds:r.team,booleanIsBestPlays:!0}),u.value.player.unshift({name:$,arrayCategoriesIds:r.player.regular,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:z,booleanIsMinutesPlayed:!0}),u.value.goalkeeper.unshift({name:$,arrayCategoriesIds:r.player.goalkeeper,booleanIsBestPlays:!0},{name:W,arrayCategoriesIds:G,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function x(E,V=0,O=new Map,$=!1,W={},z=[]){if(!E.group_id)return;let G=O.get(V);const j=$?`${E.id_category}_r`:E.id_category;E.id_category&&z.push(E.id_category);let _={ids:[j],groupId:E.group_id,level:V,name:E.name,isSelected:!0,fatherCategories:V>0?[W]:[],idsByFatherCategory:{[E.category_father]:[j]}};if(V>0&&V===1&&(_.id=E.id_category),G&&V!==0){const b=E.group_id.charAt(E.group_id.length-1),w=G.find(D=>D.groupId.endsWith(b));w&&!s.includes(_.groupId)?(_=w,w.ids.push(j),w.fatherCategories.push(W),w.fatherCategories.forEach(D=>{D.childCategories?D.childCategories.find(_e=>_e.groupId===_.groupId)||D.childCategories.push(_):D.childCategories=[_]}),w.idsByFatherCategory[E.category_father]?w.idsByFatherCategory[E.category_father].push(j):w.idsByFatherCategory[E.category_father]=[j]):(_.fatherCategories.forEach(D=>{D.childCategories?D.childCategories.find(_e=>_e.groupId===_.groupId)||D.childCategories.push(_):D.childCategories=[_]}),G.push(_))}else V!==0&&(W.childCategories?W.childCategories.push(_):W.childCategories=[_],G=[_],O.set(V,G));if(E.categories&&E.categories.length?E.categories.forEach(b=>{x(b,V+1,O,$,_,z)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(b=>{x(b,V+1,O,!0,_,z)}),V===0)return Array.from(O.values())}function T(E){const V=E||E;if(V.booleanIsBestPlays)return V.arrayCategoriesIds;const O={total:[],toRemove:[]};if(V.subcategoryGroups&&V.subcategoryGroups.length?V.subcategoryGroups[0].forEach($=>{S($,null,O)}):(V.ids&&O.total.push(...V.ids),V.rival_ids&&V.rival_ids.forEach($=>{O.total.push(`${$}_r`)})),O.total=O.total.reduce(($,W)=>(O.toRemove.includes(W)||$.push(W),$),[]),!E){const $=V.name.toLowerCase().includes("recibid");C.value.isRivalSubject=$,C.value.avoidCategorySingleName=$,C.value.coordinatePoint=V.coordinatePoint,C.value.requiresRivalTransform=V.requiresRivalTransform}return O.total}function S(E,V=[],O={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach($=>{const W=V?Object.entries(E.idsByFatherCategory).reduce((z,[G,j])=>(V.includes(Number(G))&&j.forEach(_=>{typeof _=="string"&&_.endsWith("_r")?z.push(Number(_.split("_")[0])):z.push(_)}),z),[]):[E.id];S($,W,O)}):V?Object.entries(E.idsByFatherCategory).forEach(([$,W])=>{V.includes(Number($))&&W.forEach(z=>{O.total.push(z)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([$,W])=>{W.forEach(z=>{O.total.push(z)})}):O.total.push(E.id):E.childCategories||E.ids.forEach($=>{O.toRemove.push($)})}async function F(E){try{const V=await A({seasonId:E});return V.forEach(O=>{const[$,W]=O.player_name.split(","),z=$.split(" ");let G="";for(const j of z)if(G+=` ${j}`,j.length>3)break;O.shortName=W&&$?`${W.trim().charAt(0)}.${G}`:""}),V}catch(V){return Promise.reject(V)}}async function P(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await Pt.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function H(E){y.value=E}function Z(E){h.value=E,m.value=E.seasons[0]}function de(E){m.value=E}function ae(E){d.value=E}return k(),J(),(E,V)=>(e.openBlock(),e.createElementBlock("div",dv,[e.createElementVNode("div",cv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,O=>(e.openBlock(),e.createBlock(ka,e.mergeProps({key:O.name},o,{text:O.name,"is-active":y.value.componentName===O.componentName,tournaments:p.value,onClick:$=>H(O)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",pv,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value.componentName),{tournaments:p.value,"advanced-filter-categories":u.value,"onUpdate:tournament":Z,"onUpdate:season":de,"onUpdate:team":ae},null,40,["tournaments","advanced-filter-categories"]))])]))}}),hv=le(uv,[["__scopeId","data-v-d6f7aec8"]]),vc=new Map([[1,"Portero"],[2,"Defensa Central"],[3,"Lateral por izquierda"],[4,"Lateral por derecha"],[5,"Volante por izquierda"],[6,"Volante por derecha"],[7,"Volante defensivo"],[8,"Volante ofensivo"],[9,"Delantero "],[10,"Desconocida"]]),yv={class:"template-taken-corners"},fv={class:"template-taken-corners__header"},gv={class:"template-taken-corners__header__all"},_v={class:"template-taken-corners__body"},bv={class:"template-taken-corners__body__players"},Sv={class:"template-taken-corners__body__players__player__jersey"},Cv={class:"template-taken-corners__body__players__player__photo"},wv={class:"template-taken-corners__body__players__player__photo__img"},kv=["src"],Ev={class:"template-taken-corners__body__players__player__info"},Vv={class:"template-taken-corners__body__players__player__info__name"},xv={class:"template-taken-corners__body__players__player__info__position"},Tv={class:"template-taken-corners__body__players__player__info__position__nationality"},Nv=["src"],Bv={class:"template-taken-corners__body__players__player__info__position__name"},Fv={class:"template-taken-corners__body__players__player__checkbox"},Pv={__name:"TemplateTakenCorners",props:{isFemale:{type:Boolean,default:!1},isExpansionMode:{type:Boolean,default:!1},takenCornersFilters:{type:Array,default:()=>[]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!1),l=e.ref([]),r=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>l.value.reduce((u,g)=>g.isSelected?u+1:u,0));e.watch(()=>o.takenCornersFilters,u=>{l.value=u.map(g=>{const C={...g};return(g.isSelected===void 0||g.isSelected===null)&&(C.isSelected=!0),C})},{immediate:!0,deep:!0}),e.watch(n,u=>{s.value=u===l.value.length,a("change-filters-selected",u),a("update:filters",l.value)},{immediate:!0});function c(u){return`https://golstatsimages.blob.core.windows.net/flags/${u}.jpg`}function p(u){return`https://golstatsimages.blob.core.windows.net/players-profile/${u}.png`}function y(u){let g=!1;return u.split(" ").reduce((C,k)=>(g||(k.length>3?(C=k,g=!0):C+=`${k} `),C),"").trim()}function m(u){return`${y(u.last_name)}, ${u.first_name.trim()}`}function h(u){return o.isFemale?vc.get(u.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):vc.get(u.positions[0])}function d(u){u?l.value.forEach(g=>{g.isSelected=!0}):l.value.forEach((g,C)=>{g.isSelected=C===0})}function f(){l.value.forEach(u=>{u.isSelected=!0})}return i({clearFilters:f}),(u,g)=>(e.openBlock(),e.createElementBlock("div",yv,[e.createElementVNode("div",fv,[e.createElementVNode("div",{class:"template-taken-corners__header__text",style:e.normalizeStyle({opacity:t.isExpansionMode?"0.6":1,"font-size":t.isExpansionMode?"12px":"14px"})},e.toDisplayString(r.value),5),e.createElementVNode("div",gv,[e.createVNode(e.unref(oe),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",_v,[e.createElementVNode("div",bv,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",Sv,e.toDisplayString(C.jersey),1),e.createElementVNode("div",Cv,[e.createElementVNode("div",wv,[e.createElementVNode("img",{src:p(C.player_id),alt:"player photo",width:"36",height:"36"},null,8,kv)])]),e.createElementVNode("div",Ev,[e.createElementVNode("div",Vv,e.toDisplayString(m(C)),1),e.createElementVNode("div",xv,[e.createElementVNode("div",Tv,[e.createElementVNode("img",{src:c(C.nationality_id),alt:"country flag"},null,8,Nv)]),e.createElementVNode("div",Bv,e.toDisplayString(h(C)),1)])]),e.createElementVNode("div",Fv,[e.createVNode(e.unref(oe),{modelValue:C.isSelected,"onUpdate:modelValue":k=>C.isSelected=k,"avoid-interaction":n.value===1&&C.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},$v=le(Pv,[["__scopeId","data-v-763fcc54"]]),Ds={cornerType:"left",left:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[120]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[126]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[327]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-izquierda.png",howMany:0,isSelected:!0,categoriesIds:[133]}],right:[{title:"Comba hacia afuera",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-afuera-derecha.png",howMany:0,isSelected:!0,categoriesIds:[134]},{title:"Comba hacia adentro",imgSrc:"https://golstatsimages.blob.core.windows.net/content/comba-adentro-derecha.png",howMany:0,isSelected:!0,categoriesIds:[140]},{title:"Raso al área",imgSrc:"https://golstatsimages.blob.core.windows.net/content/raz-area-derecha.png",howMany:0,isSelected:!0,categoriesIds:[146]},{title:"En corto",imgSrc:"https://golstatsimages.blob.core.windows.net/content/en-corto-derecha.png",howMany:0,isSelected:!0,categoriesIds:[147]}]},js=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),zv={class:"template-how-was-corner"},Av={class:"template-how-was-corner__header"},Iv=js(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),Mv={class:"template-how-was-corner__header__radio-input"},Rv={class:"template-how-was-corner__header__radio-input__radio"},Lv=js(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),Ov={class:"template-how-was-corner__header__radio-input"},Dv={class:"template-how-was-corner__header__radio-input__radio"},jv=js(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),Wv=["onClick"],Uv={class:"template-how-was-corner__content__corner-type__img"},vv=["src","alt"],Gv={class:"template-how-was-corner__content__corner-type__info"},Hv={class:"template-how-was-corner__content__corner-type__info__title"},Jv={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ds},isExpansionMode:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{emit:i}){const a=t,o=e.ref("left"),s=e.computed(()=>a.howWasCornerFilters[a.howWasCornerFilters.cornerType]),l=e.computed(()=>s.value.filter(n=>n.isSelected).length);e.watch(()=>o.value,n=>{a.howWasCornerFilters.cornerType=n}),e.watch(()=>a.howWasCornerFilters,n=>{i("change-filters-selected",a.howWasCornerFilters[n.cornerType].reduce((c,p)=>p.isSelected?c+1:c,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function r(n){n.isSelected&&l.value===1||(n.isSelected=!n.isSelected)}return(n,c)=>(e.openBlock(),e.createElementBlock("div",zv,[e.createElementVNode("div",Av,[Iv,e.createElementVNode("div",Mv,[e.createElementVNode("div",Rv,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":c[0]||(c[0]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),Lv])]),e.createElementVNode("div",Ov,[e.createElementVNode("div",Dv,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":c[1]||(c[1]=p=>o.value=p)},null,512),[[e.vModelRadio,o.value]]),jv])])]),e.createElementVNode("div",{class:e.normalizeClass(["template-how-was-corner__content",{"is-expansion-mode":t.isExpansionMode}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value,(p,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":p.isSelected}]),onClick:m=>r(p)},[e.createElementVNode("div",Uv,[e.createElementVNode("img",{src:p.imgSrc,alt:p.title},null,8,vv)]),e.createElementVNode("div",Gv,[e.createElementVNode("div",Hv,e.toDisplayString(p.title),1)])],10,Wv))),128))],2)]))}},qv=le(Jv,[["__scopeId","data-v-b7e3b8e0"]]),Ea=[1,2,3,4,5,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],ht=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),Yv={class:"template-zone"},Zv={class:"controls-zone-container"},Kv={class:"controls-zone-container-title-checkcon"},Xv={class:"controls-zone-container-title-checkcon-check"},Qv={class:"gsc-field-img-container"},eG={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},tG=["fill"],aG=["fill"],iG=["fill"],oG=["fill"],sG=["fill"],lG=["fill"],rG=["fill"],nG=["fill"],dG=["fill"],cG=["fill"],pG=["fill"],mG=["fill"],uG=["fill"],hG=["fill"],yG=["fill"],fG=["fill"],gG=["fill"],_G=["fill"],bG=["fill"],SG=["fill"],CG=["fill"],wG=["fill"],kG=["fill"],EG=["fill"],VG=["fill"],xG=["fill"],TG=["fill"],NG=["fill"],BG=["fill"],FG=["fill"],PG=["fill"],$G=["fill"],zG=["fill"],AG=["fill"],IG=["fill"],MG=ht(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),RG=ht(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),LG=["id"],OG=ht(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),DG=[OG],jG=["mask"],WG=ht(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),UG=[WG],vG=ht(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),GG=ht(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),HG={class:"template-zone__total-corners"},JG=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),qG=ht(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),YG=[JG,qG],ZG={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...Ea]},widthContainer:{type:Number,default:1280},show:{type:Boolean,default:!1}},emits:["update:filters","change-filters-selected"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(!0),l=e.ref([]),r=e.computed(()=>new Date().getTime());e.watch(l,y=>{s.value=y.length===35}),e.watch(()=>o.zoneFilters,y=>{l.value=y},{immediate:!0,deep:!0}),e.watch(()=>l.value,y=>{a("update:filters",y),a("change-filters-selected",y.length)},{deep:!0});function n(y){y?(l.value=Ea,s.value=!0):(l.value=[],s.value=!1)}function c(y){l.value.includes(y)?l.value=l.value.filter(m=>m!==y):l.value.push(y),s.value=l.value.length===35}function p(){l.value=[...Ea]}return i({clearFilters:p}),(y,m)=>(e.openBlock(),e.createElementBlock("div",Yv,[e.createElementVNode("div",Zv,[e.createElementVNode("div",{class:"controls-zone-container-title",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 11px;":"#2e3b46")}," ¿A donde fue el balón?: ",4),e.createElementVNode("div",Kv,[e.createElementVNode("div",{class:"controls-zone-container-title-checkcon-label",style:e.normalizeStyle(t.widthContainer<=440?"font-size: 12px;":"#2e3b46")}," Todas las zonas ",4),e.createElementVNode("div",Xv,[e.createVNode(e.unref(oe),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",Qv,[(e.openBlock(),e.createElementBlock("svg",eG,[e.createElementVNode("rect",{onClick:m[0]||(m[0]=h=>c(1)),class:"sector-field",x:"0.347042",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,tG),e.createElementVNode("rect",{onClick:m[1]||(m[1]=h=>c(9)),class:"sector-field",x:"288.347",y:"0.347042",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,aG),e.createElementVNode("rect",{onClick:m[2]||(m[2]=h=>c(17)),class:"sector-field",x:"0.347042",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,iG),e.createElementVNode("rect",{onClick:m[3]||(m[3]=h=>c(25)),class:"sector-field",x:"288.347",y:"44.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,oG),e.createElementVNode("rect",{onClick:m[4]||(m[4]=h=>c(26)),class:"sector-field",x:"0.347042",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,sG),e.createElementVNode("rect",{onClick:m[5]||(m[5]=h=>c(27)),class:"sector-field",x:"91.347",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,lG),e.createElementVNode("rect",{onClick:m[6]||(m[6]=h=>c(28)),class:"sector-field",x:"157.015",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,rG),e.createElementVNode("rect",{onClick:m[7]||(m[7]=h=>c(29)),class:"sector-field",x:"222.679",y:"88.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,nG),e.createElementVNode("rect",{onClick:m[8]||(m[8]=h=>c(30)),class:"sector-field",x:"288.347",y:"88.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,dG),e.createElementVNode("rect",{onClick:m[9]||(m[9]=h=>c(31)),class:"sector-field",x:"0.347042",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,cG),e.createElementVNode("rect",{onClick:m[10]||(m[10]=h=>c(32)),class:"sector-field",x:"91.347",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,pG),e.createElementVNode("rect",{onClick:m[11]||(m[11]=h=>c(33)),class:"sector-field",x:"157.015",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,mG),e.createElementVNode("rect",{onClick:m[12]||(m[12]=h=>c(34)),class:"sector-field",x:"222.679",y:"132.347",width:"65.9726",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,uG),e.createElementVNode("rect",{onClick:m[13]||(m[13]=h=>c(35)),class:"sector-field",x:"288.347",y:"132.347",width:"91.3059",height:"44.3059",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,hG),e.createElementVNode("rect",{onClick:m[14]||(m[14]=h=>c(2)),class:"sector-field",x:"91.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,yG),e.createElementVNode("rect",{onClick:m[15]||(m[15]=h=>c(3)),class:"sector-field",x:"114.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,fG),e.createElementVNode("rect",{onClick:m[16]||(m[16]=h=>c(4)),class:"sector-field",x:"137.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,gG),e.createElementVNode("rect",{onClick:m[17]||(m[17]=h=>c(5)),class:"sector-field",x:"172.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,_G),e.createElementVNode("rect",{onClick:m[18]||(m[18]=h=>c(6)),class:"sector-field",x:"207.347",y:"0.347042",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,bG),e.createElementVNode("rect",{onClick:m[19]||(m[19]=h=>c(7)),class:"sector-field",x:"242.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,SG),e.createElementVNode("rect",{onClick:m[20]||(m[20]=h=>c(8)),class:"sector-field",x:"265.347",y:"0.347042",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,CG),e.createElementVNode("rect",{onClick:m[21]||(m[21]=h=>c(10)),class:"sector-field",x:"91.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,wG),e.createElementVNode("rect",{onClick:m[22]||(m[22]=h=>c(11)),class:"sector-field",x:"114.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,kG),e.createElementVNode("rect",{onClick:m[23]||(m[23]=h=>c(12)),class:"sector-field",x:"137.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,EG),e.createElementVNode("rect",{onClick:m[24]||(m[24]=h=>c(13)),class:"sector-field",x:"172.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,VG),e.createElementVNode("rect",{onClick:m[25]||(m[25]=h=>c(14)),class:"sector-field",x:"207.347",y:"29.6804",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,xG),e.createElementVNode("rect",{onClick:m[26]||(m[26]=h=>c(15)),class:"sector-field",x:"242.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,TG),e.createElementVNode("rect",{onClick:m[27]||(m[27]=h=>c(16)),class:"sector-field",x:"265.347",y:"29.6804",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,NG),e.createElementVNode("rect",{onClick:m[28]||(m[28]=h=>c(18)),class:"sector-field",x:"91.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,BG),e.createElementVNode("rect",{onClick:m[29]||(m[29]=h=>c(19)),class:"sector-field",x:"114.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,FG),e.createElementVNode("rect",{onClick:m[30]||(m[30]=h=>c(20)),class:"sector-field",x:"137.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,PG),e.createElementVNode("rect",{onClick:m[31]||(m[31]=h=>c(21)),class:"sector-field",x:"172.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,$G),e.createElementVNode("rect",{onClick:m[32]||(m[32]=h=>c(22)),class:"sector-field",x:"207.347",y:"59.0137",width:"35.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,zG),e.createElementVNode("rect",{onClick:m[33]||(m[33]=h=>c(23)),class:"sector-field",x:"242.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,AG),e.createElementVNode("rect",{onClick:m[34]||(m[34]=h=>c(24)),class:"sector-field",x:"265.347",y:"59.0137",width:"23.3059",height:"29.6392",stroke:"#9ECF55","stroke-width":"0.694084","stroke-dasharray":"2 2",fill:l.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,IG),MG,RG,e.createElementVNode("mask",{id:r.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},DG,8,LG),e.createElementVNode("g",{mask:`url(#${r.value})`},UG,8,jG),vG,GG]))]),e.withDirectives(e.createElementVNode("div",HG,YG,512),[[e.vShow,!1]])]))}},KG=le(ZG,[["__scopeId","data-v-378bf7e2"]]),Ws=[{text:"Rematado con destino a portería",isSelected:!0,child:[{text:"Fue gol",isSelected:!0,categoryIds:[583,585,587,589]},{text:"No fue gol",isSelected:!0,categoryIds:[584,586,588,590]}]},{text:"Rematado sin destino a portería",isSelected:!0,categoryIds:[122,128,136,142]},{text:"Ganados por portero rival",isSelected:!0,categoryIds:[123,129,137,143]},{text:"Ganados por jugador rival",isSelected:!0,categoryIds:[124,130,138,144]},{text:"Sin destino",isSelected:!0,categoryIds:[125,131,139,145]}],XG={class:"what-happened"},QG={class:"what-happened__all"},eH={class:"what-happened__filters"},tH={key:0,class:"what-happened__filters__filter__composed"},aH={class:"what-happened__filters__filter__composed__main"},iH={key:1,class:"what-happened__filters__filter__single"},oH={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Ws]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?f.child.forEach(u=>{u.isSelected&&d++}):f.isSelected&&d++,d),0)),l=e.computed(()=>o.whatHappenedFilters.reduce((d,f)=>(f.child?d+=f.child.length:d++,d),0)),r=e.computed(()=>s.value===l.value),n=e.computed(()=>s.value===1);e.watch(()=>o.whatHappenedFilters,d=>{a("change-filters-selected",s.value),a("update:filters",d)},{deep:!0,immediate:!0});function c(d){o.whatHappenedFilters.forEach(f=>{d?(f.isSelected=d,f.child&&f.child.forEach(u=>{u.isSelected=d})):f.child?(f.isSelected=!0,f.child.forEach(u=>{u.isSelected=!0})):f.isSelected=!1})}function p(d,f){f.isSelected=d,f.child.forEach(u=>{u.isSelected=d})}function y(d,f,u){u.isSelected=d,f.isSelected=f.child.every(g=>g.isSelected)}function m(d,f){f.isSelected=d}function h(){o.whatHappenedFilters.forEach(d=>{d.child?d.child.forEach(f=>{f.isSelected=!0}):d.isSelected=!0})}return i({onResetFilters:h}),(d,f)=>(e.openBlock(),e.createElementBlock("div",XG,[e.createElementVNode("div",QG,[e.createVNode(e.unref(oe),{label:"Todos","model-value":r.value,"box-position":"right","onUpdate:modelValue":c},null,8,["model-value"])]),e.createElementVNode("div",eH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.whatHappenedFilters,(u,g)=>(e.openBlock(),e.createElementBlock("div",{key:g,class:"what-happened__filters__filter"},[u.child?(e.openBlock(),e.createElementBlock("div",tH,[e.createElementVNode("div",aH,[e.createVNode(e.unref(oe),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>p(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.child,(C,k)=>(e.openBlock(),e.createElementBlock("div",{key:`c${k}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(oe),{"model-value":C.isSelected,label:t.isFemale?C.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):C.text,"avoid-interaction":n.value&&C.isSelected,"onUpdate:modelValue":U=>y(U,u,C)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",iH,[e.createVNode(e.unref(oe),{"model-value":u.isSelected,label:t.isFemale?u.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):u.text,"avoid-interaction":n.value&&u.isSelected,"onUpdate:modelValue":C=>m(C,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},sH=le(oH,[["__scopeId","data-v-8f375a1a"]]),Us={isMoment:!1,isMomentOnly:!1,results:{final:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}],moment:[{name:"Iba ganando",value:1,isSelected:!0},{name:"Iba perdiendo",value:2,isSelected:!0},{name:"Iba empatando",value:3,isSelected:!0}]}},Gc=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),lH={class:"template-results"},rH={class:"template-results__type-switch"},nH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),dH=Gc(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),cH={class:"template-results__info"},pH={key:0,class:"template-results__group"},mH={key:1,class:"template-results__group"},uH={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...Us})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.computed(()=>{const c=s.value.isMoment?s.value.results.moment.filter(p=>p.isSelected).length:s.value.results.final.filter(p=>p.isSelected).length;return a("change-filters-selected",c),c}),r=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,c=>{s.value===null&&(s.value={...c})},{deep:!0,immediate:!0}),e.watch(s,c=>{a("update:filters",c)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(c=>{c.isSelected=!0}),s.value.results.final.forEach(c=>{c.isSelected=!0})}return i({removeFilters:n}),(c,p)=>(e.openBlock(),e.createElementBlock("div",lH,[e.withDirectives(e.createElementVNode("div",rH,[nH,e.createVNode(wa,{modelValue:s.value.isMoment,"onUpdate:modelValue":p[0]||(p[0]=y=>s.value.isMoment=y)},null,8,["modelValue"]),dH],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",cH,e.toDisplayString(r.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",pH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(oe),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",mH,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(y,m)=>(e.openBlock(),e.createElementBlock("div",{key:m,class:"template-results__result"},[e.createVNode(e.unref(oe),{modelValue:y.isSelected,"onUpdate:modelValue":h=>y.isSelected=h,label:y.name,"avoid-interaction":l.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},hH=le(uH,[["__scopeId","data-v-ee3b28d3"]]),yH=t=>(e.pushScopeId("data-v-6f640dee"),t=t(),e.popScopeId(),t),fH={key:0,class:"productivity__header__text"},gH={key:0},_H=yH(()=>e.createElementVNode("span",null,"mínimo 5 categorías y máximo 12",-1)),bH={key:1},SH={key:2},CH={key:1,class:"productivity__header__checkbox"},wH={class:"templates__body"},kH={key:0,class:"templates-plays"},EH={key:1,class:"templates-productivity"},VH={key:2,class:"template-field"},xH={key:3,class:"template-details"},TH={key:4,class:"template-personal-data"},NH={key:5,class:"template-leagues"},BH={key:6,class:"template-plays"},FH={key:7,class:"template-plays"},PH={key:8,class:"template-universe"},$H={key:9,class:"template-distance"},zH={key:10,class:"template-results"},AH={key:11,class:"template-results-by-type"},IH={key:12,class:"template-games"},MH={key:13,class:"template-taken-corners"},RH={key:14,class:"template-videos"},LH={key:15,class:"template-how-was-corner"},OH={key:16,class:"template-zone"},DH={key:17,class:"template-what-happened"},jH={key:1,class:"templates__footer"},WH={class:"templates__footer__button"},UH={class:"templates__footer__button"},vH={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0},productivityCategories:{type:[Object,null],default:()=>null},playsCategories:{type:[Object,null],default:()=>null},fieldAreas:{type:[Array,null],default:()=>[]},playingAs:{type:Array,default:()=>[{name:"Local",isSelected:!0},{name:"Visitante",isSelected:!0}]},statisticType:{type:String,default:"total"},isStatisticTypeVisible:{type:Boolean,default:!1},isPlayingAsHidden:{type:Boolean,default:!1},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},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}]},isFemale:{type:Boolean,default:!1},tournaments:{type:Array,default:()=>[]},playsGolstatsCategories:{type:Array,default:()=>[]},universeFilters:{type:Object,default:()=>({minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}})},zoneFilters:{type:Array,default:()=>[]},whatHappenedFilters:{type:Array,default:()=>[]},personalDataFilters:{type:Object,default:()=>({})},distanceFilters:{type:Object,default:()=>({minValue:5,maxValue:30,minLimit:5,maxLimit:30})},resultsFilters:{type:Object,default:()=>({})},resultsByTimeFilters:{type:Object,default:()=>({})},gamesFilters:{type:Array,default:()=>[]},takenCornersFilters:{type:Array,default:()=>[]},howWasCornerFilters:{type:Object,default:()=>({})},awaitForFilters:{type:Boolean,default:!1},backgroundColor:{type:String,default:"#2E3B46"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0)"},borderWidth:{type:String,default:"1px"},boxShadow:{type:String,default:"0 14px 28px 0 rgba(0, 0, 0, 0.25)"},padding:{type:String,default:"20px"},footerBorderColor:{type:String,default:"#626970"},footerBorderWidth:{type:String,default:"1px"},textColor:{type:String,default:"#FFFFFF"},fontFamily:{type:String,default:"'Poppins-Regular'"},isExpansionMode:{type:Boolean,default:!0},isFooterVisible:{type:Boolean,default:!1},isFooterCancelOnly:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},isScouting:{type:Boolean,default:!1},fieldComponentProps:{type:Object,default:()=>{}},season:{type:Object,default:()=>({})},token:{type:String,default:""},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1}},emits:["change-categories-selected","change-filters-selected","change-universe-filters","change-field-areas","apply","click-cancel","update:filters","total-filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(!1),r=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),c=e.ref(null),p=e.ref(null),y=e.ref(null),m=e.ref(null),h=e.ref(null),d=e.computed(()=>({"--width":o.width,"--max-width":o.maxWidth,"--background-color":o.backgroundColor,"--border-radius":o.borderRadius,"--border-color":o.borderColor,"--border-width":o.borderWidth,"--box-shadow":o.boxShadow,"--padding":o.filterType!==N.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),f=e.computed(()=>{const b=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(w=>{w.categories&&w.categories.forEach(D=>{b.push(D)})}),b}),u=e.computed(()=>{const b=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(w=>{w.categories&&w.categories.forEach(D=>{b.push(D)})}),b}),g=e.computed(()=>{const b=f.value.filter(w=>w.isSelected);return q(b),o.filterType===N.PRODUCTIVITY&&a("change-categories-selected",b.length),b.length}),C=e.computed(()=>g.value>=o.productivityMaxCategories),k=e.computed(()=>g.value<=o.productivityMinCategories),U=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(r,b=>{o.filterType===N.DETAILS&&a("update:filters",b)},{immediate:!0,deep:!0}),e.watch(()=>U.value,b=>{if(o.filterType===N.DETAILS){const w=b.filter(D=>D.isSelected);a("change-filters-selected",w.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,b=>{if(o.filterType===N.PLAYS_TYPES||o.filterType===N.GOLSTATS){const w=b.filter(D=>D.isSelected);a("change-filters-selected",w.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,b=>{o.filterType===N.FIELD&&a("change-filters-selected",b.length)}),e.watch(u,()=>{o.filterType===N.PLAYS&&P()},{immediate:!0,deep:!0}),e.watch(f,()=>{o.filterType===N.PRODUCTIVITY&&H()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,b=>{o.filterType===N.RESULTS&&a("change-filters-selected",b.results.filter(w=>w.isSelected).length)},{immediate:!0,deep:!0});function q(b){setTimeout(()=>{b.sort((w,D)=>w.priority-D.priority),b.forEach((w,D)=>{w.priority=D+1})},10)}function A(b=null){v(b)}function v(b=null){o.filterType===N.PRODUCTIVITY?f.value.forEach(w=>{w.isSelected=!1}):o.filterType===N.PLAYS?(u.value.forEach(w=>{w.isSelected=!0}),l.value=!0):o.filterType===N.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===N.DETAILS?(o.playingAs.forEach(w=>{w.isSelected=!0}),o.gameSections.forEach(w=>{w.isSelected=!0})):o.filterType===N.TOURNAMENTS?(o.tournaments.forEach((w,D)=>{o.isOneTournamentOnly?w.isSelected=D===0:w.isSelected=!0}),a("change-filters-selected",0)):o.filterType===N.PLAYS_TYPES?o.playsGolstatsCategories.forEach(w=>{w.isSelected=!0}):o.filterType===N.GOLSTATS?o.playsGolstatsCategories.forEach(w=>{w.isSelected=!1}):o.filterType===N.UNIVERSE?c.value&&c.value.resetFilters():o.filterType===N.PERSONAL_DATA?(s.value&&s.value.onClearFilters(b||ie.All),a("change-personal-data-filters",{})):o.filterType===N.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===N.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(w=>(w.isSelected=!0,w))}):o.filterType===N.RESULTS_BY_TIME?h.value&&h.value.removeFilters():o.filterType===N.GAMES?o.gamesFilters.forEach(w=>{w.isSelected=!0}):o.filterType===N.TAKEN_CORNERS?p.value.clearFilters():o.filterType===N.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(w=>{w.isSelected=!0}),o.howWasCornerFilters.right.forEach(w=>{w.isSelected=!0})):o.filterType===N.ZONE?y.value&&y.value.clearFilters():o.filterType===N.WHAT_HAPPENED&&m.value&&m.value.onResetFilters()}function Y(b){o.filterType===N.TOURNAMENTS&&a("change-filters-selected",b)}function J(b){o.filterType===N.UNIVERSE&&a("change-universe-filters",b)}function x(b){o.filterType===N.FIELD&&a("change-field-areas",b)}function T(b){o.filterType===N.GOLSTATS&&a("change-filters-selected",b)}function S(b){a("change-filters-selected",b)}function F(b){o.filterType===N.PRODUCTIVITY?f.value.forEach(w=>{w.isSelected=b}):(l.value=b,o.playsCategories.offensive.categories.forEach(w=>{w.isSelected=b}),o.playsCategories.defensive.categories.forEach(w=>{w.isSelected=b}),o.playsCategories.possession.categories.forEach(w=>{w.isSelected=b}),o.playsCategories.offenses.categories.forEach(w=>{w.isSelected=b}))}function P(){let b=0;const w={playsCategories:u.value.filter(D=>D.isSelected)};l.value=w.playsCategories.length===u.value.length,b=w.playsCategories.length,Object.values(n.value).forEach(D=>{D&&b++}),a("change-filters-selected",b),a("update:filters",w)}function H(){let b=0;const w={productivityFilters:f.value.filter(D=>D.isSelected),offensesConditions:n.value};b=w.productivityFilters.length,Object.values(n.value).forEach(D=>{D&&b++}),a("change-filters-selected",b),a("update:filters",w)}function Z(){a("apply")}function de(){(o.filterType===N.PLAYS_TYPES||o.filterType===N.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(b=>{b.isSelected=!1}),o.filterType===N.PRODUCTIVITY&&f.value.forEach(b=>{b.isSelected=!1}),a("apply")}function ae(b){a("update:filters",b)}function E(b){o.filterType===N.PERSONAL_DATA&&a("update:filters",b)}function V(b){o.filterType===N.TOURNAMENTS&&a("update:filters",b)}function O(b){(o.filterType===N.PLAYS_TYPES||o.filterType===N.GOLSTATS)&&a("update:filters",b)}function $(b){o.filterType===N.PRODUCTIVITY&&(n.value=b,H())}function W(b){o.filterType===N.DISTANCE&&a("update:filters",b)}function z(b){o.filterType===N.RESULTS&&a("update:filters",b)}function G(b){o.filterType===N.GAMES&&(a("update:filters",b),a("change-filters-selected",b.filter(w=>w.isSelected).length))}function j(b){r.value.statisticType=b}const _=e.computed(()=>o.filterType===N.PLAYS?u.value.length:o.filterType===N.PRODUCTIVITY?f.value.length:o.filterType===N.FIELD?16:o.filterType===N.UNIVERSE?6:o.filterType===N.DETAILS?8:o.filterType===N.RESULTS||o.filterType===N.RESULTS_BY_TIME?3:o.filterType===N.GAMES?o.gamesFilters.length:0);return a("total-filters",_),i({clearFilters:A}),(b,w)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(d.value)},[t.filterType===e.unref(N).PRODUCTIVITY||t.filterType===e.unref(N).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(N).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",fH,[t.isFromTemplates?(e.openBlock(),e.createElementBlock("div",gH,[e.createTextVNode(" Elige tipo de jugadas: "),_H])):t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",bH,"Tipo de participación")):(e.openBlock(),e.createElementBlock("div",SH,"Selecciona hasta 5 categorias en orden de importancia"))])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PLAYS||t.isForTemplateForm?(e.openBlock(),e.createElementBlock("div",CH,[e.createVNode(e.unref(oe),{label:t.isForTemplateForm?"Seleccionar todas":"Todos los tipos de jugadas","box-position":t.isForTemplateForm?"right":"left",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":l.value,"label-color":t.textColor,"onUpdate:modelValue":F},null,8,["label","box-position","model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",wH,[t.filterType===e.unref(N).PLAYS?(e.openBlock(),e.createElementBlock("div",kH,[e.createVNode(Cj,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",EH,[e.createVNode(fI,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":C.value,"are-min-categories-reached":k.value,"is-expansion-mode":t.isExpansionMode,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"onUpdate:offensesConditions":$},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","are-min-categories-reached","is-expansion-mode","is-from-templates","is-for-template-form"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).FIELD?(e.openBlock(),e.createElementBlock("div",VH,[e.createVNode(e.unref(Kd),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":x}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).DETAILS?(e.openBlock(),e.createElementBlock("div",xH,[e.createVNode(JI,{"is-playing-as-hidden":t.isPlayingAsHidden,"playing-as":t.playingAs,"game-sections":t.gameSections,"font-gamily":t.fontFamily,"is-statistic-type-visible":t.isStatisticTypeVisible,"statistic-type":t.statisticType,onChangeStatisticType:j},null,8,["is-playing-as-hidden","playing-as","game-sections","font-gamily","is-statistic-type-visible","statistic-type"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",TH,[e.createVNode(oj,{"is-female":t.isFemale,ref_key:"templatePersonalData",ref:s,"personal-data-filters":t.personalDataFilters,season:t.season,"is-seleccion":t.isSeleccion,"is-scouting":t.isScouting,token:t.token,filters:t.personalDataFilters,"onUpdate:filters":E},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token","filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",NH,[e.createVNode(QI,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:Y,"onUpdate:filters":V},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",BH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).GOLSTATS?(e.openBlock(),e.createElementBlock("div",FH,[e.createVNode(Ad,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:T,"onUpdate:filters":O},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).UNIVERSE?(e.openBlock(),e.createElementBlock("div",PH,[e.createVNode(qM,{ref_key:"templateUniverse",ref:c,"universe-filters":t.universeFilters,"onUpdate:universeFilters":J},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).DISTANCE?(e.openBlock(),e.createElementBlock("div",$H,[e.createVNode(yR,{distance:t.distanceFilters,"onUpdate:distanceFilters":W},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).RESULTS?(e.openBlock(),e.createElementBlock("div",zH,[e.createVNode(Ej,{ref_key:"templateResults",ref:h,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":z},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",AH,[e.createVNode(hH,{ref_key:"templateResults",ref:h,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).GAMES?(e.openBlock(),e.createElementBlock("div",IH,[e.createVNode(wR,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":G},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",MH,[e.createVNode($v,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:p,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).VIDEOS?(e.openBlock(),e.createElementBlock("div",RH,[e.createVNode(hv,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",LH,[e.createVNode(qv,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).ZONE?(e.openBlock(),e.createElementBlock("div",OH,[e.createVNode(KG,{ref_key:"templateZone",ref:y,"zone-filters":t.zoneFilters,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(N).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",DH,[e.createVNode(sH,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:m,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:S,"onUpdate:filters":ae},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",jH,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"white","background-color":"rgba(255, 255, 255, 0.06)",onClick:de})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",WH,[t.isForTemplateForm?(e.openBlock(),e.createBlock(e.unref(gi),{key:0,"text-value":"Cancelar","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:de})):(e.openBlock(),e.createBlock(e.unref(gi),{key:1,"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:v}))]),e.createElementVNode("div",UH,[e.createVNode(e.unref(gi),{"text-value":"Listo","font-size":"12px",height:"22px",width:"72px","border-radius":"62px","border-width":.8,"border-color":"#cbee6b",onClick:Z})])],64))])):e.createCommentVNode("",!0)],4))}},Hc=le(vH,[["__scopeId","data-v-6f640dee"]]),GH=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},HH={__name:"GSC-Menu",props:{menuMarginTop:{type:Number,default:0,validator(t){return!Number.isNaN(t)}},modelValue:{type:Boolean,default:!1},width:{type:String,default:"fit-content"},menuWidth:{type:String,default:"fit-content"},zIndexOpen:{type:Number,default:3},leftMenu:{type:String,default:"unset"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(d=>({"398d9242":t.width,f164e302:c.value,"4bb88040":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),l=e.ref(null),r=e.ref({}),n=e.computed(()=>{const d={top:"0px","--left-menu":a.leftMenu};if(o.value){const f=o.value.getBoundingClientRect();d.top=`${f.height+a.menuMarginTop}px`}return d}),c=e.computed(()=>s.value?a.zIndexOpen:1);e.watch(()=>a.modelValue,d=>{d!==s.value&&(s.value=d)},{immediate:!0}),e.watch(s,d=>{d||setTimeout(()=>{r.value["--translate-x"]="0px"},500)});function p(d){const f=window.innerWidth,u=d.boundingClientRect.x,g=d.boundingClientRect.x+d.boundingClientRect.width,C=u<=0?Math.abs(u)+4:g>=f?f-(g+10):0;r.value["--translate-x"]=`${C}px`}function y(){new IntersectionObserver(d=>{d[0].intersectionRatio>0&&p(d[0])}).observe(l.value)}function m(){s.value=!s.value,i("update:modelValue",s.value)}function h(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{y()})}),(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:h})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:m},[e.renderSlot(d.$slots,"trigger",{},void 0,!0)],512),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"menu",ref:l,class:"menu-container__menu",style:e.normalizeStyle(n.value)},[e.renderSlot(d.$slots,"menu",{},void 0,!0)],4),[[e.vShow,s.value]])]),_:3})],4)],64))}},JH=GH(HH,[["__scopeId","data-v-18c0df61"]]),It=t=>(e.pushScopeId("data-v-2504d135"),t=t(),e.popScopeId(),t),qH={key:0,class:"button__icon"},YH={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},ZH=["stroke"],KH=["stroke"],XH=["stroke"],QH={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},eJ=["stroke"],tJ=["stroke"],aJ=["fill"],iJ={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},oJ=["fill"],sJ={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},lJ=["stroke"],rJ=["stroke"],nJ=["stroke"],dJ=["stroke"],cJ=["stroke"],pJ={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},mJ=It(()=>e.createElementVNode("path",{d:"M1.85113 13.0897C1.9303 13.2137 2.01739 13.3404 2.10447 13.4617C2.30239 13.7361 2.51878 14 2.74837 14.2507C3.74589 15.3298 5.01785 16.1504 6.41385 16.5963C6.4719 16.6148 6.52996 16.6332 6.58802 16.6491C6.60385 16.6544 6.61704 16.657 6.63024 16.6623C6.70413 16.6834 6.77538 16.7045 6.84927 16.723C7.54859 16.9077 8.27429 17 9.00264 17C9.73098 17 10.4593 16.9077 11.1586 16.7256C11.3064 16.686 11.4542 16.6438 11.5967 16.5989C11.9187 16.496 12.2353 16.372 12.5414 16.2322C12.7895 16.1187 13.0296 15.9921 13.2645 15.8549C14.2963 15.2533 15.2041 14.438 15.9034 13.467C15.9668 13.3799 16.0301 13.2876 16.0908 13.1926C16.1119 13.1609 16.133 13.1293 16.1541 13.095C16.9432 11.8681 17.405 10.4486 17.4868 8.98945C17.4947 8.84169 17.5 8.69393 17.5 8.54618C17.5 8.53034 17.5 8.51715 17.5 8.50132C17.5 6.90765 17.0646 5.37995 16.2386 4.04222C16.1198 3.85224 15.9932 3.66491 15.8612 3.48021C15.8586 3.47493 15.8559 3.4723 15.8533 3.46702C15.8084 3.40633 15.7636 3.34565 15.7161 3.2876C15.6712 3.22955 15.6237 3.1715 15.5789 3.1161C14.6526 1.98417 13.4466 1.10818 12.0928 0.580475C11.9556 0.525066 11.8105 0.474934 11.668 0.42744C10.8103 0.145118 9.91307 0 9.00264 0C8.09221 0 7.19497 0.14248 6.33732 0.424802C6.19482 0.472295 6.04967 0.525066 5.91245 0.577836C4.55604 1.10554 3.35005 1.98417 2.42378 3.11346C2.37364 3.17678 2.32086 3.24011 2.27072 3.30607C2.2285 3.35884 2.18892 3.41161 2.14933 3.46702C2.14933 3.46702 2.14933 3.46966 2.14669 3.4723C2.14669 3.47493 2.14405 3.47757 2.14142 3.48021C1.43418 4.44591 0.94598 5.53034 0.69792 6.68074C0.660975 6.85224 0.626669 7.02639 0.600279 7.20053C0.571251 7.39578 0.547501 7.59103 0.531667 7.78892C0.521111 7.91293 0.513195 8.03694 0.507917 8.16095C0.502639 8.27441 0.5 8.38786 0.5 8.50132V8.61214C0.502639 8.73615 0.507917 8.8628 0.513195 8.98945C0.595002 10.4486 1.05681 11.8681 1.84586 13.0923L1.85113 13.0897ZM1.82738 7.64908C1.82738 7.63325 1.83002 7.62005 1.83266 7.60422C1.84322 7.52771 1.85377 7.45119 1.86433 7.37731C1.86433 7.36412 1.86697 7.35092 1.86961 7.33773C1.8828 7.25594 1.89863 7.1715 1.91447 7.08971C1.91711 7.07124 1.92238 7.05541 1.92502 7.03694C1.94086 6.95778 1.95933 6.87599 1.9778 6.79683V6.78628C1.99891 6.70449 2.02266 6.62269 2.04378 6.5409C2.04905 6.52243 2.05433 6.5066 2.05961 6.48813C2.08336 6.40897 2.10711 6.32718 2.1335 6.24802L2.14142 6.22164C2.16517 6.14776 2.19156 6.07652 2.21794 6.00264C2.22322 5.98681 2.23114 5.97098 2.23642 5.95515C2.26545 5.87863 2.29711 5.79947 2.32878 5.72559C2.33406 5.70976 2.34197 5.69657 2.34725 5.68338C2.37628 5.61478 2.40795 5.54617 2.43962 5.47757C2.44489 5.46702 2.45017 5.45383 2.45545 5.44063C2.48975 5.36676 2.5267 5.29024 2.56628 5.21636C2.5742 5.20053 2.58212 5.1847 2.59267 5.16887C2.63226 5.09499 2.6692 5.02375 2.71143 4.94987V4.94195H2.7167L3.2656 6.63061L1.82738 7.67546C1.82738 7.67546 1.82738 7.65699 1.83002 7.64908H1.82738ZM4.08367 7.6095L5.62745 8.31926L6.52204 11.0712L5.62481 12.1108H2.74309C2.23642 11.2348 1.92238 10.2612 1.81683 9.25594L4.08367 7.6095ZM7.58026 1.41161C7.65942 1.39578 7.74123 1.37995 7.8204 1.36675C7.84151 1.36412 7.86262 1.35884 7.88109 1.3562C7.96026 1.34301 8.03679 1.33245 8.11596 1.32454C8.13971 1.3219 8.16346 1.31926 8.18721 1.31662C8.24791 1.30871 8.30596 1.30343 8.36666 1.29815C8.39305 1.29815 8.42207 1.29288 8.44846 1.29024C8.52235 1.28496 8.59361 1.27968 8.6675 1.27705C8.69916 1.27705 8.73347 1.27441 8.76514 1.27177C8.82319 1.27177 8.88125 1.26913 8.94194 1.26913C8.98153 1.26913 9.01847 1.26913 9.05806 1.26913C9.11611 1.26913 9.17681 1.26913 9.23487 1.27177C9.26653 1.27177 9.30084 1.27177 9.33251 1.27705C9.4064 1.27968 9.48029 1.28496 9.55154 1.29024C9.58057 1.29024 9.60696 1.29551 9.63334 1.29815C9.69404 1.30343 9.75473 1.30871 9.81279 1.31662C9.83654 1.31926 9.86029 1.3219 9.88668 1.32454C9.96585 1.33509 10.045 1.34565 10.1215 1.3562L10.1849 1.36675C10.264 1.37995 10.3459 1.39314 10.425 1.41161C10.4277 1.41161 10.4303 1.41161 10.4356 1.41161H10.4382L9 2.45646L7.56178 1.41161H7.56442C7.56442 1.41161 7.5697 1.41161 7.57234 1.41161H7.58026ZM9.00528 6.56728L11.1138 8.10026L10.3089 10.5805H7.70165L6.89677 8.10026L9.00528 6.56728ZM15.3018 4.94459V4.94987C15.3466 5.02111 15.3862 5.09499 15.4232 5.16887L15.4469 5.21636C15.4839 5.29024 15.5208 5.36676 15.5577 5.44063C15.563 5.45119 15.5683 5.46438 15.5736 5.47493C15.6052 5.54354 15.6369 5.61214 15.6659 5.68338C15.6712 5.69657 15.6791 5.7124 15.6844 5.72559C15.7161 5.80211 15.7478 5.87863 15.7768 5.95778C15.7821 5.97361 15.79 5.98945 15.7953 6.00528C15.8216 6.07916 15.848 6.1504 15.8718 6.22428C15.8744 6.23219 15.8771 6.24011 15.8797 6.25066C15.9061 6.32982 15.9298 6.40897 15.9536 6.49077C15.9589 6.50923 15.9641 6.52771 15.9694 6.54618C15.9905 6.62797 16.0143 6.70976 16.0328 6.78892C16.0328 6.7942 16.0328 6.79683 16.0328 6.80211C16.0512 6.88127 16.0697 6.96042 16.0855 7.03958L16.0961 7.09235C16.1119 7.17414 16.1278 7.25594 16.141 7.33773C16.141 7.35092 16.1462 7.36412 16.1462 7.37731C16.1568 7.45119 16.1673 7.52771 16.1779 7.60422C16.1779 7.62005 16.1805 7.63325 16.1832 7.64908C16.1832 7.65699 16.1832 7.66755 16.1858 7.67546L14.7476 6.63061L15.2965 4.93931L15.3018 4.94459ZM13.9295 7.61214L16.1937 9.25858C16.0882 10.2639 15.7715 11.2401 15.2675 12.1135H12.3858L11.4912 11.0739L12.3858 8.3219L13.9295 7.61214ZM14.3306 13.3879C14.3306 13.3879 14.3254 13.3931 14.3227 13.3958C14.2673 13.4565 14.2093 13.5172 14.1512 13.5752C14.138 13.5884 14.1248 13.6016 14.1116 13.6148C14.0536 13.6728 13.9929 13.7309 13.9322 13.7889C13.9216 13.7995 13.9111 13.81 13.8979 13.8206C13.8424 13.8707 13.7844 13.9235 13.729 13.971C13.7184 13.9789 13.7079 13.9894 13.6973 14C13.634 14.0554 13.5706 14.1055 13.5047 14.1583C13.4888 14.1715 13.473 14.1821 13.4598 14.1953C13.3938 14.2454 13.3278 14.2955 13.2619 14.3456C13.2619 14.3456 13.2566 14.3483 13.2566 14.3509C13.188 14.4011 13.1194 14.4486 13.0481 14.496C13.0323 14.5066 13.0165 14.5172 12.998 14.5277C12.9294 14.5726 12.8581 14.6174 12.7895 14.6623C12.7763 14.6702 12.7658 14.6781 12.7526 14.6834C12.6892 14.723 12.6233 14.7599 12.5573 14.7968C12.5441 14.8048 12.5283 14.8127 12.5151 14.8206C12.4438 14.8602 12.3699 14.8997 12.296 14.9367C12.2802 14.9446 12.2617 14.9525 12.2459 14.9631C12.1746 15 12.1007 15.0343 12.0295 15.0686C12.0242 15.0686 12.0189 15.0739 12.0137 15.0765H12.0084L12.5573 13.3879H14.3306ZM6.00217 15.0765L5.98898 15.0712C5.91509 15.0369 5.8412 15 5.76731 14.9631C5.75147 14.9551 5.73564 14.9472 5.71981 14.9393C5.64592 14.9024 5.57203 14.8628 5.49814 14.8206C5.48494 14.8127 5.47175 14.8048 5.45855 14.7995C5.39258 14.7625 5.32661 14.723 5.26063 14.6834C5.25008 14.6781 5.23688 14.6702 5.22633 14.6623C5.15508 14.6201 5.08646 14.5726 5.01521 14.5277C4.99938 14.5172 4.98355 14.5066 4.96771 14.496C4.89646 14.4486 4.82785 14.4011 4.75924 14.3509H4.75396C4.68799 14.2982 4.61937 14.248 4.5534 14.1953C4.53757 14.1821 4.52437 14.1715 4.50854 14.1583C4.44256 14.1055 4.37923 14.0554 4.3159 14C4.30534 13.9894 4.29478 13.9815 4.28159 13.971C4.22353 13.9208 4.16812 13.8707 4.1127 13.8206C4.10214 13.81 4.08895 13.7995 4.07839 13.7889C4.0177 13.7335 3.957 13.6755 3.89894 13.6148C3.88575 13.6016 3.87256 13.5884 3.85936 13.5752C3.8013 13.5172 3.74589 13.4591 3.69047 13.3984C3.68783 13.3958 3.68519 13.3931 3.67991 13.3879H5.45328L6.00217 15.0765C6.00217 15.0765 5.99954 15.0765 5.9969 15.0765H6.00217ZM7.50636 15.5726L6.63552 12.8971L7.53012 11.8602H10.4804L11.375 12.8971L10.5042 15.5726C9.52251 15.7784 8.48805 15.781 7.50373 15.5726H7.50636ZM14.3755 3.66755L13.4809 6.41953L11.9371 7.12929L9.6439 5.46174V3.57784L11.9503 1.90237C12.8713 2.31135 13.6999 2.91557 14.3781 3.66755H14.3755ZM6.06287 1.90237L8.3693 3.57784V5.46174L6.07606 7.12929L4.53229 6.41953L3.63769 3.66755C4.3159 2.91557 5.14452 2.31398 6.06551 1.90237H6.06287Z",fill:"#979DA2"},null,-1)),uJ=[mJ],hJ={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},yJ=It(()=>e.createElementVNode("path",{d:"M17.182 5.9a.538.538 0 0 0-.13-.416L14.24 2.109a.558.558 0 0 0-.433-.203h-2.25c-.017 0-.034.012-.056.012a.557.557 0 0 0-.563.41 1.68 1.68 0 0 1-1.63 1.266 1.68 1.68 0 0 1-1.632-1.266.55.55 0 0 0-.563-.41c-.017 0-.033-.012-.056-.012h-2.25a.558.558 0 0 0-.433.203L1.561 5.484a.586.586 0 0 0-.129.416c.017.152.09.287.208.382l2.605 2.082v8.167c0 .31.253.563.562.563h9c.31 0 .563-.253.563-.563V8.364l2.604-2.082a.59.59 0 0 0 .208-.382zm-3.937 4.444H5.37V9.78h7.875v.563zM5.37 15.969v-4.5h7.875v4.5H5.37zm9-9.045v-.518a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v2.25H5.37v-2.25a.564.564 0 0 0-.563-.562.564.564 0 0 0-.562.562v.518L2.793 5.765l2.278-2.734h1.66A2.802 2.802 0 0 0 9.307 4.72a2.803 2.803 0 0 0 2.576-1.688h1.66l2.278 2.734-1.451 1.159z",fill:"#98A2B3"},null,-1)),fJ=[yJ],gJ={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_J=It(()=>e.createElementVNode("path",{d:"M15.426 3.353a2.384 2.384 0 0 0-2.381 2.381 2.384 2.384 0 0 0 2.381 2.382 2.384 2.384 0 0 0 2.381-2.382 2.384 2.384 0 0 0-2.381-2.38zm0 3.766a1.386 1.386 0 0 1-1.385-1.385c0-.763.622-1.384 1.385-1.384s1.385.621 1.385 1.384c0 .764-.622 1.385-1.385 1.385zM1.424 6.558a.497.497 0 0 0 .704 0l1.295-1.296L4.72 6.558a.497.497 0 0 0 .704 0 .498.498 0 0 0 0-.705L4.128 4.558l1.295-1.295a.498.498 0 0 0-.705-.705L3.423 3.853 2.128 2.558a.499.499 0 0 0-.704.705l1.295 1.295-1.295 1.295a.498.498 0 0 0 0 .705zM13.013 12.443a.498.498 0 0 0-.705 0l-1.295 1.295-1.295-1.295a.499.499 0 0 0-.704.704l1.295 1.295-1.295 1.295a.499.499 0 0 0 .704.705l1.295-1.295 1.295 1.295a.497.497 0 0 0 .705 0 .498.498 0 0 0 0-.705l-1.295-1.295 1.295-1.295a.498.498 0 0 0 0-.704zM12.052 5.455l-2.01-1.747a.498.498 0 0 0-.654.753l1.066.926c-3.145.411-5.008 2.055-6.043 3.444a9.569 9.569 0 0 0-1.501 3.012 2.384 2.384 0 0 0-2.103 2.364 2.384 2.384 0 0 0 2.381 2.381 2.384 2.384 0 0 0 2.381-2.381 2.385 2.385 0 0 0-1.647-2.265 8.674 8.674 0 0 1 1.312-2.547C6.53 7.674 8.33 6.66 10.594 6.372l-.992 1.142a.498.498 0 0 0 .752.654l1.747-2.01a.498.498 0 0 0-.05-.703zm-7.48 8.752c0 .763-.62 1.384-1.384 1.384a1.386 1.386 0 0 1-1.384-1.384c0-.764.62-1.385 1.384-1.385.763 0 1.385.622 1.385 1.385z",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":".3"},null,-1)),bJ=[_J],SJ={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},CJ=It(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),wJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:".9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),kJ=It(()=>e.createElementVNode("rect",{x:".707",y:"8.9",width:"5.2",height:"5.2",rx:".8",fill:"#98A2B3",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),EJ=It(()=>e.createElementVNode("rect",{x:"8.707",y:"8.9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),VJ=[CJ,wJ,kJ,EJ],xJ={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},TJ=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-2504d135><path d="M9.307.5C4.505.5.598 4.407.598 9.209c0 2 .69 3.938 1.946 5.486l-.754 3.159a.524.524 0 0 0 .727.599l3.038-1.384a8.743 8.743 0 0 0 3.752.848c4.802 0 8.709-3.907 8.709-8.708C18.016 4.407 14.109.5 9.307.5zm0 16.368a7.574 7.574 0 0 1-3.502-.845.525.525 0 0 0-.457-.011l-2.289 1.042.566-2.372a.524.524 0 0 0-.113-.465A7.657 7.657 0 0 1 1.647 9.21c0-4.224 3.436-7.66 7.66-7.66s7.66 3.436 7.66 7.66c0 4.223-3.436 7.66-7.66 7.66z" data-v-2504d135></path><path d="M9.68 5.199c-1.094-.115-2.459.397-3.041 1.797a.524.524 0 0 0 .968.403c.375-.902 1.255-1.231 1.964-1.157.721.075 1.232.542 1.365 1.25.13.693-.136 1.097-1.097 1.662-1.042.613-1.372.874-1.372 2.27a.524.524 0 0 0 1.049 0c0-.479.033-.715.118-.843.094-.14.33-.283.737-.523.666-.392 1.905-1.12 1.596-2.76-.221-1.171-1.098-1.975-2.288-2.1zM9.145 12.673a.608.608 0 0 0-.506.17c-.13.13-.19.31-.17.505a.525.525 0 0 0 .939.263.523.523 0 0 0-.263-.938z" data-v-2504d135></path></g><defs data-v-2504d135><clipPath id="gpdeo9cu3a" data-v-2504d135><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-2504d135></path></clipPath></defs>',2),NJ=[TJ],BJ={class:"button__text"},FJ={key:0,class:"info-container"},PJ={key:1,style:{width:"20px"}},$J={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},zJ=["fill"],AJ={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},showBadge:{type:Boolean,default:!0},showBadgeOnFilterFull:{type:Boolean,default:!0},text:{type:String,default:""},infoValue:{type:[String,Number],default:""},filtersTotal:{type:Number,default:0},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"14px"},fontColor:{type:String,default:"white"},infoBackgroundColor:{type:String,default:"#424D58"},infoFontColor:{type:String,default:"#CBEE6B"},infoFontFamily:{type:String,default:"sans-serif"},infoFontSize:{type:String,default:"10px"},infoBorderColor:{type:String,default:"#0D1D29"},infoBorderRadius:{type:String,default:"4px"},infoHeight:{type:String,default:"20px"},infoWidth:{type:String,default:"20px"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#0D1D29"},borderRadius:{type:String,default:"8px"},borderColor:{type:String,default:"#172531"},borderColorActive:{type:String,default:"white"},borderWidth:{type:String,default:"1px"},padding:{type:String,default:"12px"},arrowColor:{type:String,default:"#92929D"},iconColor:{type:String,default:"#92929D"},iconType:{type:String,default:"productivity"},showIcon:{type:Boolean,default:!0}},setup(t){const i=t,a=e.computed(()=>({"--height":i.height,"--width":i.width,"--text-font-family":i.textFontFamily,"--text-font-size":i.textFontSize,"--background-color":i.backgroundColor,"--border-radius":i.borderRadius,"--border-color":i.isActive?i.borderColorActive:i.borderColor,"--border-width":i.borderWidth,"--padding":i.padding,"--font-color":i.fontColor})),o=e.computed(()=>({"--info-background-color":i.infoValue?i.infoBackgroundColor:"transparent","--info-border-color":i.infoValue?i.infoBorderColor:"transparent","--info-border-radius":i.infoBorderRadius,"--info-font-family":i.infoFontFamily,"--info-font-size":i.infoFontSize,"--info-font-color":i.infoFontColor,"--info-height":i.infoHeight,"--info-width":i.infoWidth})),s=e.computed(()=>[N.PLAYS_TYPES,N.GOLSTATS,N.TOURNAMENTS,N.PLAYS,N.RESULTS,N.RESULTS_BY_TIME].includes(i.iconType)),l=e.computed(()=>[N.FIELD,N.GAMES].includes(i.iconType)),r=e.computed(()=>[N.DETAILS,N.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[N.PERSONAL_DATA].includes(i.iconType)),c=e.computed(()=>[N.PRODUCTIVITY].includes(i.iconType)),p=e.computed(()=>[N.HOW_WAS_CORNER].includes(i.iconType)),y=e.computed(()=>[N.TAKEN_CORNERS].includes(i.iconType)),m=e.computed(()=>[N.ZONE].includes(i.iconType)),h=e.computed(()=>[N.WHAT_HAPPENED].includes(i.iconType));return(d,f)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[t.showIcon?(e.openBlock(),e.createElementBlock("div",qH,[n.value?(e.openBlock(),e.createElementBlock("svg",YH,[e.createElementVNode("path",{d:"M12.6665 16.0001V14.3334C12.6665 13.4494 12.3153 12.6015 11.6902 11.9764C11.0651 11.3513 10.2173 11.0001 9.33323 11.0001H4.33329C3.44925 11.0001 2.60141 11.3513 1.9763 11.9764C1.35119 12.6015 1 13.4494 1 14.3334V16.0001",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,ZH),e.createElementVNode("path",{d:"M6.83329 7.66658C8.67422 7.66658 10.1666 6.17422 10.1666 4.33329C10.1666 2.49237 8.67422 1 6.83329 1C4.99237 1 3.5 2.49237 3.5 4.33329C3.5 6.17422 4.99237 7.66658 6.83329 7.66658Z",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,KH),e.createElementVNode("path",{d:"M15.164 5.16663V10.1666M17.664 7.66659H12.6641",stroke:t.iconColor,"stroke-opacity":"1","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,8,XH)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",QH,[e.createElementVNode("path",{d:"M11.3464 15.7091C13.2744 15.7091 14.8373 14.1462 14.8373 12.2182C14.8373 10.2902 13.2744 8.72729 11.3464 8.72729C9.4184 8.72729 7.85547 10.2902 7.85547 12.2182C7.85547 14.1462 9.4184 15.7091 11.3464 15.7091Z",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,eJ),e.createElementVNode("path",{d:"M15.9996 16.8727L14.8359 15.7091",stroke:t.iconColor,"stroke-width":"1.2","stroke-linecap":"round","stroke-linejoin":"round"},null,8,tJ),e.createElementVNode("path",{d:"M1.74545 14.1136H5.57341C5.80365 14.6432 6.11192 15.1265 6.4797 15.5591H1.74545C0.85957 15.5591 0.15 14.8495 0.15 13.9636V1.74545C0.15 0.85957 0.85957 0.15 1.74545 0.15H13.9636C14.8495 0.15 15.5591 0.85957 15.5591 1.74545V8.27117C15.1619 7.74472 14.6701 7.28299 14.1136 6.90213V1.74545V1.59545H13.9636H1.74545H1.59545V1.74545V13.9636V14.1136H1.74545ZM3.64091 3.64091H12.0682V5.08636H3.64091V3.64091ZM3.64091 7.13182H7.39844C6.87199 7.52898 6.41026 8.02079 6.0294 8.57727H3.64091V7.13182ZM3.64091 10.6227H5.20065C5.12651 11.0081 5.08636 11.3945 5.08636 11.7818V12.0682H3.64091V10.6227Z",fill:t.iconColor,stroke:"#353F47","stroke-width":"0.3"},null,8,aJ)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",iJ,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.5 0C13.1944 0 17 3.80558 17 8.5C17 13.1944 13.1944 17 8.5 17C3.80558 17 0 13.1944 0 8.5C0 3.80558 3.80558 0 8.5 0ZM8.49751 1.54553C4.65662 1.54553 1.54297 4.65919 1.54297 8.50008C1.54297 12.341 4.65662 15.4546 8.49751 15.4546C12.3384 15.4546 15.4521 12.341 15.4521 8.50008C15.4521 4.65919 12.3384 1.54553 8.49751 1.54553ZM8.49929 3.09082C8.92605 3.09082 9.27202 3.43678 9.27202 3.86355V8.12198L12.451 10.5945C12.7878 10.8565 12.8485 11.342 12.5865 11.6789C12.3245 12.0157 11.839 12.0764 11.5022 11.8144L8.02488 9.10986C7.83666 8.96347 7.72656 8.73837 7.72656 8.49991V3.86355C7.72656 3.43678 8.07252 3.09082 8.49929 3.09082Z",fill:t.iconColor},null,8,oJ)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",sJ,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,lJ),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,rJ),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,nJ),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,dJ),e.createElementVNode("path",{d:"M13.5033 9.00032C13.5033 10.5651 12.2348 11.8337 10.67 11.8337C9.1052 11.8337 7.83667 10.5651 7.83667 9.00032C7.83667 7.43552 9.1052 6.16699 10.67 6.16699C12.2348 6.16699 13.5033 7.43552 13.5033 9.00032Z",stroke:t.iconColor},null,8,cJ)])):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",pJ,uJ)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",hJ,fJ)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",gJ,bJ)):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",SJ,VJ)):e.createCommentVNode("",!0),h.value?(e.openBlock(),e.createElementBlock("svg",xJ,NJ)):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",BJ,e.toDisplayString(t.text),1),t.showBadge?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.showBadgeOnFilterFull?(e.openBlock(),e.createElementBlock("div",FJ,[e.createElementVNode("div",{class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)])):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[t.filtersTotal>0&&t.filtersTotal!=parseInt(t.infoValue)?(e.openBlock(),e.createElementBlock("div",{key:0,class:"button__info",style:e.normalizeStyle(o.value)},[e.withDirectives(e.createElementVNode("span",null,e.toDisplayString(t.infoValue),513),[[e.vShow,t.infoValue]])],4)):t.filtersTotal>0?(e.openBlock(),e.createElementBlock("div",PJ)):e.createCommentVNode("",!0)],64))],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",$J,[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 2.62045L6.86193 0.167368C7.12228 -0.0557892 7.54439 -0.0557892 7.80474 0.167368C8.06509 0.390524 8.06509 0.752333 7.80474 0.97549L4.4714 3.83263C4.21105 4.05579 3.78895 4.05579 3.5286 3.83263L0.195262 0.97549C-0.0650874 0.752333 -0.0650874 0.390524 0.195262 0.167368C0.455612 -0.0557892 0.877722 -0.0557892 1.13807 0.167368L4 2.62045Z",fill:t.arrowColor},null,8,zJ)]))],2)],4))}},IJ=le(AJ,[["__scopeId","data-v-2504d135"]]),MJ=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},RJ=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),LJ={class:"panel__activator__icon"},OJ=["src"],DJ={class:"panel__activator__text"},jJ=["height","width"],WJ=["stroke"],UJ={class:"panel__content"},vJ=RJ(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),GJ={class:"panel__content__slot"},HJ={__name:"GSC-ExpansionPanel",props:{modelValue:{type:Boolean,default:!1},text:{type:String,default:""},textColor:{type:String,default:"white"},textFontFamily:{type:String,default:"sans-serif"},textFontSize:{type:String,default:"12px"},icon:{type:String,default:""},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},backgroundColor:{type:String,default:"#2E3A45"},borderRadius:{type:String,default:"4px"},borderWidth:{type:String,default:"1px"},borderColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},arrowHeight:{type:Number,default:24},arrowWidth:{type:Number,default:24},arrowColor:{type:String,default:"white"},separatorWidth:{type:String,default:"100%"},separatorColor:{type:String,default:"rgba(255, 255, 255, 0.1)"},panelPadding:{type:String,default:"0px 6px"}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t,o=e.ref(a.modelValue),s=e.computed(()=>({"--activator-height":a.height,"--activator-text-font-family":a.textFontFamily,"--activator-text-font-size":a.textFontSize,"--activator-text-color":a.textColor,"--background-color":a.backgroundColor,"--panel-width":a.width,"--panel-padding":a.panelPadding,"--panel-border-radius":a.borderRadius,"--panel-border-color":a.borderColor,"--panel-border-width":a.borderWidth,"--arrow-height":a.arrowHeight,"--arrow-width":a.arrowWidth,"--separator-width":a.separatorWidth,"--separator-color":a.separatorColor}));e.watch(()=>a.modelValue,r=>{o.value=r},{immediate:!0});function l(){o.value=!o.value,i("update:modelValue",o.value)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:l},[e.createElementVNode("div",LJ,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,OJ)):e.createCommentVNode("",!0)]),e.createElementVNode("div",DJ,e.toDisplayString(t.text),1),e.createElementVNode("div",{class:e.normalizeClass(["panel__activator__arrow",{"rotated-180":o.value}])},[(e.openBlock(),e.createElementBlock("svg",{height:t.arrowHeight,width:t.arrowWidth,viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18.394 9.13501L13.1302 14.3988C12.5086 15.0204 11.4914 15.0204 10.8697 14.3988L5.60596 9.13501",stroke:t.arrowColor},null,8,WJ)],8,jJ))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",UJ,[vJ,e.createElementVNode("div",GJ,[e.renderSlot(r.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},JJ=MJ(HJ,[["__scopeId","data-v-0ca35abc"]]),tt={isPlayingAsHidden:!1,playingAs:[{name:"Local",isSelected:!0,value:1},{name:"Visitante",isSelected:!0,value:2}],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}],statisticType:"total",isStatisticTypeVisible:!1},qJ={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},YJ={offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!0,id:1},{name:"Tiros a gol",isSelected:!0,id:2},{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:21},{name:"Faltas recibidas",isSelected:!0,id:19},{name:"Tarjetas amarillas",isSelected:!0,id:20},{name:"Tarjetas rojas",isSelected:!0,id:21}]}},ZJ={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},KJ=[{name:"Sub-20",logo:null,isSelected:!0,id:44,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Clausura 2023",related_seasons:[{type:1,id:1752}],id:1713,type:0},{name:"Apertura 2022",related_seasons:[{type:1,id:1592}],id:1542,type:0},{name:"Grita Mexico C22",related_seasons:[{type:1,id:1521}],id:1486,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}]},{name:"Tournoi Maurice Revello",logo:null,isSelected:!0,id:108,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Tournoi Maurice Revello 23",related_seasons:[],id:1770,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:"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:"FIFA World Cup",logo:null,isSelected:!0,id:33,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa del Mundo 2022",related_seasons:[],id:1512,type:0},{name:"Copa del Mundo 2018",related_seasons:[],id:881,type:0}]},{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 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:"Copa Oro",logo:null,isSelected:!0,id:29,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Copa Oro 2023",related_seasons:[],id:1741,type:0}]},{name:"Women Revelations Cup",logo:null,isSelected:!0,id:1137,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Women Revelations Cup 2023",related_seasons:[],id:1731,type:0}]},{name:"Leagues Cup",logo:null,isSelected:!0,id:1046,show_logos:0,tournament_type:1,tournament_status:0,seasons:[{name:"Leagues Cup 2023",related_seasons:[],id:1784,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}]}],XJ=[{id:1,name:"Goles",isSelected:!1},{id:2,name:"Tiros a gol",isSelected:!1},{id:3,name:"Asistencias",isSelected:!1},{id:4,name:"Centros",isSelected:!1},{id:5,name:"Balones ganados en área propia",isSelected:!1},{id:6,name:"Participaciones en gol",isSelected:!1},{id:7,name:"Cabeceo area rival",isSelected:!1}],QJ=[{id:1,name:"Mas goles anotados",isSelected:!1,value:1},{id:2,name:"Mas goles durante los ultimos 15 min de 2do tiempo",isSelected:!1,value:7},{id:3,name:"Con mas goles como visitante",isSelected:!1,value:3},{id:4,name:"Con mas goles como local",isSelected:!1,value:3},{id:5,name:"Mas goles durante el 1er tiempo",isSelected:!1,value:3},{id:6,name:"Mas goles durante el 2do tiempo",isSelected:!1,value:3},{id:7,name:"Mas goles como local durante el 2do tiempo",isSelected:!1,value:7}],eq={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Jc={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},tq={class:"filters"},aq={key:0,class:"filters__expansion"},iq={class:"content"},oq={key:1,class:"filters__menus"},sq={__name:"GSC-Filters",props:{filterType:{type:String,default:""},isFromTemplates:{type:Boolean,default:!1},isForTemplateForm:{type:Boolean,default:!1},isForTemplatesForm:{type:Boolean,default:!1},isExpansionPanel:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},showBadgeOnFilterFull:{type:Boolean,default:!0},isScouting:{type:Boolean,default:!1},isSeleccion:{type:Boolean,default:!1},filters:{type:[Object,Array],default:()=>null},awaitForFilters:{type:Boolean,default:!1},menuButtonText:{type:String,default:""},expansionPanelText:{type:String,default:""},buttonFilterProps:{type:Object,default:()=>{}},expansionPanelProps:{type:Object,default:()=>{}},templateProps:{type:Object,default:()=>{}},fieldComponentProps:{type:Object,default:()=>{}},tournament:{type:Object,default:()=>null},season:{type:Object,default:()=>({})},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},width:{type:String,default:"fit-content"},modalHeight:{type:String,default:"fit-content"},isOneTournamentOnly:{type:Boolean,default:!1},defaultTournamentId:{type:Number,default:1},productivityMaxCategories:{type:Number,default:5},productivityMinCategories:{type:Number,default:0}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(_=>({"5e59eb26":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PRODUCTIVITY,isFooterVisible:!0},l={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PLAYS,isFooterVisible:!0},r={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.DETAILS,isFooterVisible:!0},c={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.TOURNAMENTS,isFooterVisible:!0},p={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},m={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},h={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.UNIVERSE,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.DISTANCE,isFooterVisible:!0},f={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.RESULTS,padding:"0",isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.VIDEOS,isFooterVisible:!1},C={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.GAMES,isFooterVisible:!0},k={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.TAKEN_CORNERS,isFooterVisible:!0},U={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.HOW_WAS_CORNER,isFooterVisible:!0},q={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.ZONE,isFooterVisible:!0},A={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:N.WHAT_HAPPENED,isFooterVisible:!0},v=e.ref(!1),Y=e.ref(!1),J=e.ref(0),x=e.ref(0),T=e.ref({}),S=e.ref(null),F=e.ref(null),P=e.computed(()=>o.isForTemplateForm?"0":"unset"),H=e.computed(()=>o.buttonFilterProps&&o.buttonFilterProps.text?o.buttonFilterProps.text:o.menuButtonText||O()),Z=e.computed(()=>o.isFromTemplates?N.RESULTS:o.filterType),de=e.computed(()=>o.expansionPanelText||O()),ae=e.ref(null);e.watch(()=>o.filterType,_=>{if(_===N.PRODUCTIVITY)T.value={...s,...o.templateProps,productivityCategories:o.filters||qJ};else if(_===N.PLAYS)T.value={...l,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||YJ};else if(_===N.FIELD)T.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(_===N.DETAILS)T.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:tt.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||tt.playingAs,gameSections:o.filters&&o.filters.gameSections||tt.gameSections,statisticType:o.filters?o.filters.statisticType:tt.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:tt.isStatisticTypeVisible};else if(_===N.TOURNAMENTS){const b=o.filters||KJ;o.isOneTournamentOnly&&b.forEach(w=>{w.isSelected=w.id===o.defaultTournamentId}),T.value={...c,...o.templateProps,tournaments:b}}else _===N.PERSONAL_DATA?T.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:_===N.PLAYS_TYPES?T.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||XJ}:_===N.GOLSTATS?T.value={...m,...o.templateProps,playsGolstatsCategories:o.filters||QJ}:_===N.UNIVERSE?T.value={...h,...o.templateProps,universeFilters:o.filters||ZJ}:_===N.DISTANCE?T.value={...d,...o.templateProps,distanceFilters:o.filters||eq}:_===N.RESULTS?T.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:_===N.RESULTS_BY_TIME?T.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||Us}:_===N.GAMES?T.value={...C,...o.templateProps,gamesFilters:o.filters||[]}:_===N.VIDEOS?T.value={...g,...o.templateProps,token:o.token}:_===N.TAKEN_CORNERS?T.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:_===N.HOW_WAS_CORNER?T.value={...U,...o.templateProps,howWasCornerFilters:o.filters||Ds}:_===N.ZONE?T.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:_===N.WHAT_HAPPENED&&(T.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});T.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===N.PRODUCTIVITY)T.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===N.PLAYS)T.value={...l,...o.templateProps,playsCategories:o.filters};else if(o.filterType===N.FIELD)T.value={...r,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===N.DETAILS)T.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:tt.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:tt.playingAs,gameSections:o.filters?o.filters.gameSections:tt.gameSections,statisticType:o.filters?o.filters.statisticType:tt.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:tt.isStatisticVisible};else if(o.filterType===N.TOURNAMENTS){const _=o.filters;o.isOneTournamentOnly&&_.forEach(b=>{b.isSelected=b.id===o.defaultTournamentId}),T.value={...c,...o.templateProps,tournaments:_}}else o.filterType===N.PERSONAL_DATA?T.value={...p,...o.templateProps,token:o.token,awaitForFilters:o.awaitForFilters,personalDataFilters:o.filters}:o.filterType===N.PLAYS_TYPES?T.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===N.GOLSTATS?T.value={...m,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===N.UNIVERSE?T.value={...h,...o.templateProps,universeFilters:o.filters}:o.filterType===N.DISTANCE?T.value={...d,...o.templateProps,distanceFilters:o.filters}:o.filterType===N.RESULTS?T.value={...f,...o.templateProps,resultsFilters:o.filters||Jc}:o.filterType===N.RESULTS_BY_TIME?T.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||Us}:o.filterType===N.GAMES?T.value={...C,...o.templateProps,gamesFilters:o.filters}:o.filterType===N.VIDEOS?T.value={...g,...o.templateProps,token:o.token}:o.filterType===N.TAKEN_CORNERS?T.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===N.HOW_WAS_CORNER?T.value={...U,...o.templateProps,howWasCornerFilters:o.filters||Ds}:o.filterType===N.ZONE?T.value={...q,...o.templateProps,zoneFilters:o.filters||[...Ea]}:o.filterType===N.WHAT_HAPPENED&&(T.value={...A,...o.templateProps,whatHappenedFilters:o.filters||[...Ws]});T.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(T.value.width="100%",T.value.maxWidth="100%")}),e.watch(v,_=>{_||a("close",ae.value)}),e.watch(Y,_=>{_||a("close",ae.value)});function E(_){J.value=_}function V(){o.isExpansionPanel?Y.value=!1:v.value=!1,a("apply",ae.value)}function O(){if(o.filterType===N.PRODUCTIVITY)return o.isFromTemplates?"Tipos de jugadas":"Características de juego";if(o.filterType===N.PLAYS)return"Jugada(s)";if(o.filterType===N.FIELD)return"Zona de cancha";if(o.filterType===N.DETAILS)return"Detalles";if(o.filterType===N.TOURNAMENTS)return"Ligas";if(o.filterType===N.PERSONAL_DATA)return"Datos personales";if(o.filterType===N.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===N.GOLSTATS)return"Filtros Golstats";if(o.filterType===N.UNIVERSE)return"Universo";if(o.filterType===N.DISTANCE)return"Distancia";if([N.RESULTS,N.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===N.GAMES)return"Partidos";if(o.filterType===N.VIDEOS)return"Videos";if(o.filterType===N.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===N.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===N.ZONE)return"Zona";if(o.filterType===N.WHAT_HAPPENED)return"¿Qué sucedió?"}function $(_){T.value.fieldAreas=_,J.value=_.length,z(_)}function W(_){let b=0;_.value&&_.value.statistics&&(_.value.minutesPlayed&&b++,_.value.percentMinutesPlayed&&b++,_.value.lastMonths&&b++,_.value.statistics.totals&&b++,_.value.statistics.averagePerGame&&b++,_.value.statistics.averagePerMinute&&b++),T.value.universe=_.value,J.value=b,z(_.value)}function z(_){ae.value=_,a("update:filters",_)}function G(_){x.value=_}function j(_=null){S.value&&S.value.clearFilters(_),F.value&&F.value.clearFilters(_)}return i({clearFilters:j}),(_,b)=>(e.openBlock(),e.createElementBlock("div",tq,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",aq,[e.createVNode(e.unref(JJ),e.mergeProps(t.expansionPanelProps,{modelValue:Y.value,"onUpdate:modelValue":b[0]||(b[0]=w=>Y.value=w),text:de.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",iq,[e.createVNode(Hc,e.mergeProps(T.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"default-tournament-id":t.defaultTournamentId,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateExpansionPanel",ref:F,onChangeFieldAreas:$,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,onApply:V,"onUpdate:filters":z,onTotalFilters:G}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","is-from-templates","is-for-template-form","default-tournament-id","productivity-max-categories","productivity-min-categories"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",oq,[e.createVNode(e.unref(JH),{modelValue:v.value,"onUpdate:modelValue":b[1]||(b[1]=w=>v.value=w),width:t.width,"left-menu":P.value,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(IJ,e.mergeProps(t.buttonFilterProps,{text:H.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":J.value,"filters-total":x.value.value,"is-active":v.value,"icon-type":Z.value}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Hc,e.mergeProps(T.value,{season:t.season,"is-female":t.isFemale,"is-scouting":t.isScouting,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,"is-from-templates":t.isFromTemplates,"is-for-template-form":t.isForTemplateForm,"productivity-max-categories":t.productivityMaxCategories,"productivity-min-categories":t.productivityMinCategories,ref_key:"filterTemplateMenu",ref:S,onChangeFieldAreas:$,onChangeCategoriesSelected:E,onChangeFiltersSelected:E,onChangeUniverseFilters:W,"onUpdate:filters":z,onTotalFilters:G,onApply:V}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id","is-from-templates","is-for-template-form","productivity-max-categories","productivity-min-categories"])]),_:1},8,["modelValue","width","left-menu"])]))]))}},vs=le(sq,[["__scopeId","data-v-a8b543ef"]]),lq={class:"dropdown__position"},rq={key:0,class:"label"},nq={class:"selected-item"},qc={__name:"DropdownPositions",props:{positions:{type:Array,default:()=>[{isSelected:!0,id:1,name:"Portero"},{isSelected:!0,id:2,name:"Defensa Central"},{isSelected:!0,id:3,name:"Lateral por izquierda"},{isSelected:!0,id:4,name:"Lateral por derecha"},{isSelected:!0,id:5,name:"Volante por izquierda"},{isSelected:!0,id:6,name:"Volante por derecha"},{isSelected:!0,id:7,name:"Volante defensivo"},{isSelected:!0,id:8,name:"Volante ofensivo"},{isSelected:!0,id:9,name:"Delantero"}]},isLabelVisible:{type:Boolean,default:!1},isFemale:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-positions"],setup(t,{emit:i}){const a=t,o={id:0,name:"Todas las posiciones",isSelected:!1},s=e.ref(""),l=e.computed(()=>{const c={...ut};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c}),r=e.computed(()=>{let c=a.positions&&a.positions.length?[...a.positions]:[];const p=c[0];return(!p||p.id!==0)&&c.unshift(o),c.sort((y,m)=>y.id-m.id),c});e.watch(r,c=>{const p=c.filter(y=>y.isSelected);p.length===r.value.length-1&&(c[0].isSelected=!0),c[0]&&c[0].isSelected?s.value="Todas las posiciones":p.length===1?s.value=p[0].name:s.value=`${p.length} seleccionadas`,i("change-positions",c)},{immediate:!0,deep:!0});function n(c,p){p.id===0?r.value.forEach(y=>{y.isSelected=c}):(p.isSelected=c,r.value[0].isSelected=r.value.every((y,m)=>m===0?!0:y.isSelected))}return(c,p)=>(e.openBlock(),e.createElementBlock("div",lq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",rq,"Posición")):e.createCommentVNode("",!0),e.createVNode(e.unref(He),e.mergeProps(l.value,{"is-multiple-option":"",items:r.value,arrowWidth:"10"}),{default:e.withCtx(()=>[e.createElementVNode("div",nq,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(s.value.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva")),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(s.value),1)],64))])]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(oe),{"model-value":y.isSelected,label:t.isFemale?y.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):y.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":m=>n(m,y)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])]))}},dq={class:"dropdown-years"},cq={key:0,class:"label"},pq={class:"selected-item"},Yc={__name:"DropdownYears",props:{years:{type:Array,default:()=>[]},selectedYear:{type:[Number,String],default:0},hasNoLimitOption:{type:Boolean,default:!0},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},dropdownProps:{type:Object,default:()=>null}},emits:["change-year"],setup(t,{emit:i}){const a=t,o=e.computed(()=>{const r={...ut};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(n=>{r[n]=a.dropdownProps[n]}),r}),s=e.computed(()=>a.hasNoLimitOption?["Sin límite",...a.years]:a.years);function l(r){i("change-year",r)}return(r,n)=>(e.openBlock(),e.createElementBlock("div",dq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",cq,"Año")):e.createCommentVNode("",!0),e.createVNode(e.unref(He),e.mergeProps({"model-value":t.selectedYear,arrowWidth:"10"},o.value,{items:s.value,"onUpdate:modelValue":l}),{default:e.withCtx(({selectedItem:c})=>[e.createElementVNode("div",pq,e.toDisplayString(c),1)]),availableItem:e.withCtx(({item:c})=>[e.createElementVNode("div",null,e.toDisplayString(c),1)]),_:1},16,["model-value","items"])]))}},mq=t=>(e.pushScopeId("data-v-8bd3ce77"),t=t(),e.popScopeId(),t),uq={class:"dropdown-templates"},hq={key:0,class:"label"},yq={class:"selected-item"},fq={class:"item"},gq={width:"13",height:"9",viewBox:"0 0 13 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},_q=mq(()=>e.createElementVNode("path",{d:"M12.7171 1.60412L5.34242 8.72375C5.16033 8.89955 4.91321 9 4.65308 9C4.39295 9 4.14582 8.89955 3.96373 8.72375L0.282891 5.17021C-0.0942971 4.80607 -0.0942971 4.20335 0.282891 3.8392C0.66008 3.47506 1.28439 3.47506 1.66158 3.8392L4.65308 6.72724L11.3384 0.273108C11.7156 -0.0910359 12.3399 -0.0910359 12.7171 0.273108C13.0943 0.637252 13.0943 1.22741 12.7171 1.60412Z",fill:"#CBEE6B"},null,-1)),bq=[_q],Sq={__name:"DropdownTemplates",props:{dropdownProps:{type:Object,default:()=>null},selectedTemplate:{type:Object,default:()=>{}},isLabelVisible:{type:Boolean,default:!1},fontFamily:{type:String,default:"'Poppins-Regular'"},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},teamId:{type:Number,default:0}},emits:["change-template"],setup(t,{emit:i}){const a=t,o=e.ref([]),s=e.ref(null),l=e.computed(()=>{const c={...ut};return a.dropdownProps&&Object.keys(a.dropdownProps).forEach(p=>{c[p]=a.dropdownProps[p]}),c});e.watch(()=>a.teamId,c=>{c&&n()},{immediate:!0});function r(c){s.value=c,i("change-template",c)}async function n(){try{const c=await Pt.get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${a.teamId}/templates`,{headers:{Authorization:a.token}});o.value=c.data&&c.data.data?c.data.data:[]}catch(c){console.error("Error filling templates: ",c)}}return n(),(c,p)=>(e.openBlock(),e.createElementBlock("div",uq,[t.isLabelVisible?(e.openBlock(),e.createElementBlock("div",hq,"Variables")):e.createCommentVNode("",!0),e.createVNode(e.unref(He),e.mergeProps({"model-value":t.selectedTemplate},l.value,{items:o.value,"arrow-width":"10",onInput:r}),{default:e.withCtx(({selectedItem:y})=>[e.createElementVNode("div",yq,e.toDisplayString(y.name),1)]),availableItem:e.withCtx(({item:y})=>[e.createElementVNode("div",fq,[e.createElementVNode("div",null,e.toDisplayString(y.name),1),e.withDirectives((e.openBlock(),e.createElementBlock("svg",gq,bq,512)),[[e.vShow,s.value.name===y.name]])])]),_:1},16,["model-value","items"])]))}},Cq=le(Sq,[["__scopeId","data-v-8bd3ce77"]]);function Gs(){return{backgroundColor:"#2e3b46",width:"96.2%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!1}}function Zc(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"0 4px",textFontFamily:"'Poppins-Regular'",showIcon:!0}}function wq(){return{backgroundColor:"#2e3b46",width:"100%",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 0px",textFontFamily:"'Poppins-Regular'"}}const Ii="/group-427321501.svg",Kc="/shape.svg",kq="_filtersContainer_b9wc6_1",Eq="_filtersContainer1232_b9wc6_1",Vq="_closeFiltersPc_b9wc6_1",xq="_textleyemdmultipleleagues_b9wc6_1",Tq="_textleyemdmultipleleagues380_b9wc6_1",Nq="_filtersContainer760_b9wc6_1",Bq="_filtersContainer460_b9wc6_1",Fq="_containerSectionPlay_b9wc6_1",Pq="_containerSectionPlay1232_b9wc6_1",$q="_containerSectionPlay960_b9wc6_1",zq="_containerSectionPlay320_b9wc6_1",Aq="_containerSectionPlay350_b9wc6_1",Iq="_containerSection_b9wc6_1",Mq="_containerSection1232_b9wc6_1",Rq="_containerSection960_b9wc6_1",Lq="_containerSection320_b9wc6_1",Oq="_containerSection350_b9wc6_1",Dq="_templateLosMejores_b9wc6_1",jq="_templateLosMejores1232_b9wc6_1",Wq="_templateLosMejores960_b9wc6_1",Uq="_templateLosMejores420_b9wc6_1",vq="_templateLosMejores320_b9wc6_1",Gq="_templateLosMejores540_b9wc6_1",Hq="_templateLosMejores350_b9wc6_1",Jq="_topFiltersParent_b9wc6_1",qq="_topFiltersParent1232_b9wc6_1",Yq="_topFiltersParent960_b9wc6_1",Zq="_topFiltersParent460_b9wc6_1",Kq="_topFiltersParent420_b9wc6_1",Xq="_containerTheBest_b9wc6_1",Qq="_containerTheBest1232_b9wc6_1",eY="_containerTheBest960_b9wc6_1",tY="_containerTheBest320_b9wc6_1",aY="_titleSection_b9wc6_1",iY="_titleSection540_b9wc6_1",oY="_containerTables_b9wc6_1",sY="_containerTables960_b9wc6_1",lY="_containerTables760_b9wc6_1",rY="_containerTables320_b9wc6_1",nY="_toniKroosWrapper_b9wc6_1",dY="_toniKroosWrapper1080_b9wc6_1",cY="_toniKroosWrapper975_b9wc6_1",pY="_toniKroosWrapper760_b9wc6_1",mY="_toniKroosWrapper420_b9wc6_1",uY="_toniKroosWrapper320_b9wc6_1",hY="_frameChild_b9wc6_1",yY="_filtros_b9wc6_1",fY="_groupParent_b9wc6_1",gY="_shapeIcon_b9wc6_1",_Y="_btnFilters_b9wc6_1",bY="_btnFiltersPC_b9wc6_1",SY="_quitarFiltros_b9wc6_1",CY="_quitarFiltros730_b9wc6_1",wY="_quitarFiltros480_b9wc6_1",kY="_quitarFiltros380_b9wc6_1",EY="_btnCloseFilters_b9wc6_1",VY="_mejoresJugadores_b9wc6_1",xY="_mejoresJugadores730_b9wc6_1",TY="_mejoresJugadores480_b9wc6_1",NY="_mejoresJugadoresSM_b9wc6_1",BY="_toniKroos_b9wc6_1",FY="_teamBar_b9wc6_1",PY="_menuSection_b9wc6_1",$Y="_menuSection960_b9wc6_1",zY="_menuSectionPlay_b9wc6_1",AY="_menuSectionPlay960_b9wc6_1",IY="_containerMenu_b9wc6_1",MY="_containerMenu760_b9wc6_1",RY="_containerFilters_b9wc6_1",LY="_teamBarParent_b9wc6_1",OY="_topFilters_b9wc6_1",DY="_topFilters1232_b9wc6_1",jY="_topFilters420_b9wc6_1",WY="_topFilters460_b9wc6_1",UY="_losMejores_b9wc6_1",vY="_losMejores380_b9wc6_1",GY="_losMejores530_b9wc6_1",HY="_losMejores730_b9wc6_1",JY="_menuSectionHeader_b9wc6_1",qY="_menuSectionHeader1232_b9wc6_1",YY="_menuSectionHeader960_b9wc6_1",ZY="_menuSectionHeader730_b9wc6_1",KY="_dropdown_b9wc6_1",XY="_dropdown730_b9wc6_1",QY="_dropdown1_b9wc6_1",eZ="_dropdown1730_b9wc6_1",tZ="_dropdownParent_b9wc6_1",aZ="_dropdownParent730_b9wc6_1",iZ="_menuSectionParentHeader_b9wc6_1",oZ="_menuSectionParentHeader1232_b9wc6_1",sZ="_menuSectionParentHeader960_b9wc6_1",lZ="_menuSectionParentHeader730_b9wc6_1",rZ="_menuSectionParentHeader430_b9wc6_1",nZ="_descubreVideos_b9wc6_1",dZ="_descubreVideos1232_b9wc6_1",cZ="_descubreVideos960_b9wc6_1",pZ="_allCategories_b9wc6_1",mZ="_containerScountingBtn_b9wc6_3",uZ="_btnDeleteAplica_b9wc6_13",hZ="_SearchBtnBar_b9wc6_33",yZ="_btnLeyendTxt_b9wc6_52",fZ="_BtnSearchScounting_b9wc6_61",gZ="_containerPredefined_b9wc6_85",_Z="_containerPredefinedScounting_b9wc6_92",bZ="_titleContainerPredefined_b9wc6_100",SZ="_subtitleContainerPredefined_b9wc6_111",CZ={filtersContainer:kq,filtersContainer1232:Eq,closeFiltersPc:Vq,textleyemdmultipleleagues:xq,textleyemdmultipleleagues380:Tq,filtersContainer760:Nq,filtersContainer460:Bq,containerSectionPlay:Fq,containerSectionPlay1232:Pq,containerSectionPlay960:$q,containerSectionPlay320:zq,containerSectionPlay350:Aq,containerSection:Iq,containerSection1232:Mq,containerSection960:Rq,containerSection320:Lq,containerSection350:Oq,templateLosMejores:Dq,templateLosMejores1232:jq,templateLosMejores960:Wq,templateLosMejores420:Uq,templateLosMejores320:vq,templateLosMejores540:Gq,templateLosMejores350:Hq,topFiltersParent:Jq,topFiltersParent1232:qq,topFiltersParent960:Yq,topFiltersParent460:Zq,topFiltersParent420:Kq,containerTheBest:Xq,containerTheBest1232:Qq,containerTheBest960:eY,containerTheBest320:tY,titleSection:aY,titleSection540:iY,containerTables:oY,containerTables960:sY,containerTables760:lY,containerTables320:rY,toniKroosWrapper:nY,toniKroosWrapper1080:dY,toniKroosWrapper975:cY,toniKroosWrapper760:pY,toniKroosWrapper420:mY,toniKroosWrapper320:uY,frameChild:hY,filtros:yY,groupParent:fY,shapeIcon:gY,btnFilters:_Y,btnFiltersPC:bY,quitarFiltros:SY,quitarFiltros730:CY,quitarFiltros480:wY,quitarFiltros380:kY,btnCloseFilters:EY,mejoresJugadores:VY,mejoresJugadores730:xY,mejoresJugadores480:TY,mejoresJugadoresSM:NY,toniKroos:BY,teamBar:FY,menuSection:PY,menuSection960:$Y,menuSectionPlay:zY,menuSectionPlay960:AY,containerMenu:IY,containerMenu760:MY,containerFilters:RY,teamBarParent:LY,topFilters:OY,topFilters1232:DY,topFilters420:jY,topFilters460:WY,losMejores:UY,losMejores380:vY,losMejores530:GY,losMejores730:HY,menuSectionHeader:JY,menuSectionHeader1232:qY,menuSectionHeader960:YY,menuSectionHeader730:ZY,dropdown:KY,dropdown730:XY,dropdown1:QY,dropdown1730:eZ,dropdownParent:tZ,dropdownParent730:aZ,menuSectionParentHeader:iZ,menuSectionParentHeader1232:oZ,menuSectionParentHeader960:sZ,menuSectionParentHeader730:lZ,menuSectionParentHeader430:rZ,descubreVideos:nZ,descubreVideos1232:dZ,descubreVideos960:cZ,allCategories:pZ,containerScountingBtn:mZ,btnDeleteAplica:uZ,SearchBtnBar:hZ,btnLeyendTxt:yZ,BtnSearchScounting:fZ,containerPredefined:gZ,containerPredefinedScounting:_Z,titleContainerPredefined:bZ,subtitleContainerPredefined:SZ},wZ=e.ref(Gs()),kZ={components:{GSCTableHeader:Qo,GscSwitchComponent:hs,GSCFilterperteam:hd,GSCFilters:vs,GSCExpandedInfo:ns,GSCLabel:Nd,GSCSeasonSelect:ed,GSCTopCategory:Xz,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={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},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...wZ.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Le(t);return{myDivRefTopsFull:t,elementSize:i}},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},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{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:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{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}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{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}],statisticType:"total",isStatisticTypeVisible:!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}],fvTypeStats:"totals",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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,updateTablesfull:0,teamselect: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:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:N,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,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilterAux(){this.resetPredefinedTeamAll()},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(ie.All),i.clearFilters(ie.AGE_RANGE),i.clearFilters(ie.YEAR),i.clearFilters(ie.NATIONALITY),i.clearFilters(ie.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[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(t){this.$emit("openmedia",t)},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||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",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].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 s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[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=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.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,elegible:this.FVeligible,setPositionsIds:this.fVsetPositionsIds,setYear:this.FVYear,booleanAreNationalTeamsVisible:this.FVbooleanAreNationalTeamsVisible,setAvailableNationalTeamsPlayersIds:this.FVsetAvailableNationalTeamsPlayersIds},this.loadingActive=!1},1e3)},getRandomNumber(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;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});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="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}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="onFiltersDetailsTime"&&(this.isSelection?(this.detailsObjectSelection.gameSections[0].isSelected=!0,this.detailsObjectSelection.gameSections[1].isSelected=!0,this.detailsObjectSelection.gameSections[2].isSelected=!0,this.detailsObjectSelection.gameSections[3].isSelected=!0,this.detailsObjectSelection.gameSections[4].isSelected=!0,this.detailsObjectSelection.gameSections[5].isSelected=!0):(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}),t=="onFiltersDetailsPlayingAs"&&(this.isSelection?(this.detailsObjectSelection.playingAs[0].isSelected=!0,this.detailsObjectSelection.playingAs[1].isSelected=!0):(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}),t=="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(ie.NATIONALITY)),t=="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(ie.POSITION)),t=="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(ie.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(ie.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(ie.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(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].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},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,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(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(ie.All),a.clearFilters(ie.AGE_RANGE),a.clearFilters(ie.YEAR),a.clearFilters(ie.NATIONALITY),a.clearFilters(ie.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange&&(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a]),t.year&&(this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h]);var l=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}else if(this.FVeligible=!1,t.hasOwnProperty("nationalities")){let h=0;this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let d=0;d<t.nationalities.length;d++)t.nationalities[d].isSelected&&(this.fVnationalities.add(t.nationalities[d].id),h++);if(h===t.nationalities.length){var l=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersNationality");l!==-1&&this.arrayFiltersPlays.splice(l,1)}}if(t.hasOwnProperty("nationalities")&&!this.FVeligible&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}if(t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;if(t.hasOwnProperty("positions")){let h=0;for(let d=0;d<t.positions.length;d++)t.positions[d].isSelected&&(this.fVsetPositionsIds.push(t.positions[d].id),h++);if(h===t.positions.length){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!==-1&&this.arrayFiltersPlays.splice(r,1)}}if(t.hasOwnProperty("nationalities"))var n=t.nationalities.filter(h=>h.isSelected===!0);var c=t.positions.filter(h=>h.isSelected===!0);if(c.length==1&&(o=c[0].name),t.hasOwnProperty("nationalities")&&n.length==1&&(s=n[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 p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");p!=-1?this.arrayFiltersPlays[p].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var p=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");p!=-1&&this.arrayFiltersPlays.splice(p,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var r=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersPosition");r!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[r].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(r,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");y!=-1?this.arrayFiltersPlays[y].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.ageLimits&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");m!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[m].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(m,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 m=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");m!=-1&&this.arrayFiltersPlays.splice(m,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var l=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersNationality");l!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[l].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(l,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},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}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.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}},this.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}]},this.detailsObjectSelection={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}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(ie.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.onClickDeleteFilterAux(),this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){if(this.isSelection){if(this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0,t=="Más productivos"){this.optionSelected="Scouting",this.resetFilter(),this.resetLeagues(),this.filterScounting.nationalities=[138],this.filterScounting.last_months=6,this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}else this.optionSelected="Jugadores",this.typeTable=0,this.isTeam=!1,this.resetFilterTeamAndPlayers(),this.resetScouting(),await this.loadPreloadedTops();this.optionSelectedSubmenu=t}else t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=me.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=me.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,this.optionSelected=="Equipos"&&(this.tournamentSelectedObj.is_female?y=y.replace(/Jugadoras/g,"Equipos"):y=y.replace(/Jugadores/g,"Equipos")),p.setNationalitiesIds=[],r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(c=k.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=k.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((d=(h=k.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=k.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=k.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=me.create({headers:{Authorization:`${this.token}`}}),i=this.isSelection?`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20&nat=138`:`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=me.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},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.loadPreloadedTops();const t=await me.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.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(t){throw new Error(t)}}},EZ={ref:"myDivRefTopsFull"},VZ={key:0,class:"overlay-loading"},xZ=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),TZ=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),NZ=[xZ,TZ],BZ=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),FZ=[BZ],PZ={key:0,class:"cont-leyemd-multipleleagues"},$Z=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),zZ={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},AZ={key:0,style:{"margin-left":"10px"}},IZ=e.createElementVNode("span",null,"Todas las categorías",-1),MZ=[IZ],RZ=e.createElementVNode("span",null,"Tipo de Jugada",-1),LZ=e.createElementVNode("span",null,"Filtro GolStats",-1),OZ={key:3,style:{width:"100%",height:"295px"}};function DZ(t,i,a,o,s,l){const r=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCFilterperteam"),y=e.resolveComponent("GSCFilters"),m=e.resolveComponent("GSCLabel"),h=e.resolveComponent("GSCTopCategory"),d=e.resolveComponent("GSCTableHeader"),f=e.resolveComponent("GSCRowTable"),u=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",EZ,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",VZ,NZ)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(c,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(r,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(n,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(p,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...g)=>l.clickOpenFilters&&l.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 15px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...g)=>l.clickCloseFilters&&l.clickCloseFilters(...g))},FZ,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(c,{key:1,type:2,buttons:["Todas las jugadas","Predeterminados"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(c,{key:2,type:2,buttons:["Todas las jugadas","Más productivos"],"font-family":"Poppins-Regular","selected-option":s.optionSelectedSubmenu,"font-size":t.sizeTabsFontMS,width:t.sizeTabsMS,arrow:!1,borderWidth:"1px","background-option-active":"#172531",background:"#172531",height:"28px",onInput:l.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...g)=>l.openMenuFilters&&l.openMenuFilters(...g))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.isSelection?(e.openBlock(),e.createBlock(y,e.mergeProps({key:0,"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:a.isSelection?s.detailsObjectSelection:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"?(e.openBlock(),e.createBlock(y,e.mergeProps({key:1,"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","is-seleccion","filter-type","season","token","onUpdate:filters"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:a.isSelection?s.tournamentsToFilterSelection:s.tournamentsToFilter,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[4]||(i[4]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",PZ,[$Z,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(p,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",zZ," No se muestran jugadores que hayan jugado menos de 90 minutos ")):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.titleSectionClass)},[s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.mejoresJugadoresClass)},[s.arrayFiltersPlays.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Equipos"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Mejores jugadoras: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores jugadores: ")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores equipos:")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[this.filterScounting.tournaments.length==1&&this.filterScounting.tournaments[0]==1001?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadoras más productivas:")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugadores más productivos:")],64))],64))],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.showFullTable?(e.openBlock(),e.createElementBlock("div",AZ,[e.createVNode(m,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:{"margin-left":"10px"}},[e.createVNode(m,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:g.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(g=>g.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[5]||(i[5]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},MZ,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(g,C)=>(e.openBlock(),e.createElementBlock("div",{key:C,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(h,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":l.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded},null,8,["is-female","is-team","type-stats","is-selection","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(g.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":a.isSelection,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(h,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia},null,8,["is-female","is-team","type-stats","is-selection","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[RZ,e.createTextVNode(" y un "),LZ,e.createTextVNode(" en la")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(d,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(g,C)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:C},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(f,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:l.setMediaData,data:{position:g.position,player_name:g.player_name,player_photo:g.player_photo,total:g.total,id:g.id,player_age:g.player_age,team_abrev:g.team_abrev,team_logo:g.team_logo,player_position:s.positions[g.player_position-1].fullname,player_country_flag:g.player_country_flag,player_games:g.player_games,player_min:g.player_min,league_name:g.league_name,seasons:g.seasons,season_id:g.season_id},height:"71px",background:C%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==g.id?(e.openBlock(),e.createBlock(u,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:g.team_name,age:g.player_age,dataofbirth:g.date,nationality:g.nationality_name,countryFlag:g.player_country_flag,position:s.positions[g.player_position-1].name,games:g.player_games,min:g.player_min,goals:g.total,effectiveness:"-",category:"total",id:g.id},onViewprofile:k=>l.viewprofile(k,g.season_id,g.team_id),background:C%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[6]||(i[6]=(...g)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...g))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[7]||(i[7]=(...g)=>l.getScoutingData&&l.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",OZ)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const jZ={$style:CZ},WZ=Se(kZ,[["render",DZ],["__cssModules",jZ]]),Hs={props:{textOptionLeft:String,valueDefault:{type:String,default:""},textOptionRight:String,hiddenLabels:{type:Boolean,default:!1},width:{type:String,default:"50px"},height:{type:String,default:"32px"},heightCircle:{type:String,default:"24px"},widthCircle:{type:String,default:"24px"},widthIcons:{type:String,default:"22"},borderRadius:{type:String,default:"30px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:1},borderColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"14px"},fontColor:{type:String,default:"#000000"},iconA:{type:String,default:""},iconB:{type:String,default:""},fontFamily:{type:String,default:"Poppins-Light"},backgroundColor:{type:String,default:"#2e3b46"},circleColorSwitch:{type:String,default:"#FFFFFF"}},data(){return{OptionDefault:!1}},watch:{valueDefault:{immediate:!0,handler:async function(t){try{t==this.textOptionLeft&&(this.OptionDefault=!1),t==this.textOptionRight&&(this.OptionDefault=!0)}catch(i){throw new Error(i)}}}},computed:{customStyle(){return{width:this.width,height:this.height,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,backgroundColor:this.backgroundColor,circleColor:this.circleColorSwitch}},customText(){return{color:this.fontColor,fontSize:this.fontSize,fontFamily:`${this.fontFamily} !important`}}},methods:{handleSwitchChange(t){t.target.checked?this.$emit("change",this.textOptionRight):this.$emit("change",this.textOptionLeft)}}},Xc=()=>{e.useCssVars(t=>({"39b08ebc":t.backgroundColor,"5bd2cafa":t.widthCircle,"73104bac":t.heightCircle}))},Qc=Hs.setup;Hs.setup=Qc?(t,i)=>(Xc(),Qc(t,i)):Xc;const UZ=["width","src"],vZ=["checked"],GZ=["width","src"];function HZ(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",{class:"gsc-switch-radio",style:e.normalizeStyle(l.customText)},[a.textOptionLeft!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["text-left",{inactive:s.OptionDefault}])},e.toDisplayString(a.textOptionLeft),3)):e.createCommentVNode("",!0),a.iconA!=""?(e.openBlock(),e.createElementBlock("img",{key:1,width:a.widthIcons,src:a.iconA,class:e.normalizeClass({inactive:s.OptionDefault})},null,10,UZ)):e.createCommentVNode("",!0),e.createElementVNode("input",{type:"checkbox",id:"toggle-btn",onChange:i[0]||(i[0]=(...r)=>l.handleSwitchChange&&l.handleSwitchChange(...r)),checked:s.OptionDefault},null,40,vZ),e.createElementVNode("label",{for:"toggle-btn",style:e.normalizeStyle([l.customStyle,{"--circle-color":a.circleColorSwitch}])},null,4),a.iconB!=""?(e.openBlock(),e.createElementBlock("img",{key:2,width:a.widthIcons,src:a.iconB,class:e.normalizeClass({inactive:!s.OptionDefault})},null,10,GZ)):e.createCommentVNode("",!0),a.textOptionRight!=""&&!a.hiddenLabels?(e.openBlock(),e.createElementBlock("span",{key:3,class:e.normalizeClass(["text-right",{inactive:!s.OptionDefault}])},e.toDisplayString(a.textOptionRight),3)):e.createCommentVNode("",!0)],4)}const JZ=Se(Hs,[["render",HZ],["__scopeId","data-v-a583325d"]]),qZ={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},listId:{type:Number,required:!0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref(new Set),s=e.ref(""),l=e.ref([]),r=e.ref(!1),n="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",c=e.ref(null),p=u=>{document.body.style.overflow=u?"hidden":"auto"},y=()=>{o.value.clear(),s.value="",c.value=null,l.value=[]},m=()=>{y(),i("close")},h=()=>{s.value=""},d=async()=>{if(t.userId){r.value=!0;try{const u=await me.create({headers:{Authorization:`${n}`}}).get(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`);l.value=u.data.data}catch(u){console.error("Error al obtener las listas:",u)}finally{r.value=!1}}};e.watch(()=>t.isVisible,u=>{p(u),u&&t.userId&&d()}),e.watch(()=>t.userId,u=>{u&&t.isVisible&&d()}),e.onMounted(()=>{t.isVisible&&p(!0)}),e.onUnmounted(()=>{p(!1)});const f=e.computed(()=>{if(!s.value)return l.value;const u=s.value.toLowerCase();return l.value.filter(g=>g.name.toLowerCase().includes(u))});return{modalContent:a,selectedPlayers:o,searchQuery:s,closeModal:m,clearSearch:h,playlists:l,isLoading:r,filteredPlaylists:f,selectedPlaylist:c,handlePlaylistSelection:u=>{c.value=u},handleCreatePlaylist:async()=>{if(c.value)try{const u=me.create({headers:{Authorization:`${n}`}}),g={user_id:t.userId,id:c.value,players:[t.player]};await u.put(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed/${c.value}/players`,g),m()}catch(u){console.error("Error al guardar el jugador en la lista:",u)}},handleCreateListClick:()=>{i("create-list"),y()}}}},yt=t=>(e.pushScopeId("data-v-2e88a2e7"),t=t(),e.popScopeId(),t),YZ={class:"modal-header"},ZZ=yt(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Agregar a lista")],-1)),KZ=yt(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),XZ=[KZ],QZ={class:"modal-body"},eK={class:"search-section"},tK={class:"search-container"},aK={class:"search-input"},iK=yt(()=>e.createElementVNode("svg",{class:"search-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M15.25 15.25L11.8855 11.8795L15.25 15.25ZM13.75 7.375C13.75 9.06576 13.0784 10.6873 11.8828 11.8828C10.6873 13.0784 9.06576 13.75 7.375 13.75C5.68424 13.75 4.06274 13.0784 2.86719 11.8828C1.67165 10.6873 1 9.06576 1 7.375C1 5.68424 1.67165 4.06274 2.86719 2.86719C4.06274 1.67165 5.68424 1 7.375 1C9.06576 1 10.6873 1.67165 11.8828 2.86719C13.0784 4.06274 13.75 5.68424 13.75 7.375V7.375Z",stroke:"white","stroke-opacity":"0.43","stroke-width":"1.5","stroke-linecap":"round"})],-1)),oK=yt(()=>e.createElementVNode("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M1 1L13 13M1 13L13 1",stroke:"white","stroke-width":"2","stroke-linecap":"round"})],-1)),sK=[oK],lK=yt(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),rK={class:"players-table-container"},nK={class:"players-table"},dK={key:0,class:"loading-message"},cK={key:1,class:"empty-message"},pK={class:"checkbox-container"},mK=["id","checked","onChange"],uK=yt(()=>e.createElementVNode("div",{class:"folder-icon"},[e.createElementVNode("svg",{width:"20",height:"16",viewBox:"0 0 20 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M18 2H10L8 0H2C0.9 0 0 0.9 0 2V14C0 15.1 0.9 16 2 16H18C19.1 16 20 15.1 20 14V4C20 2.9 19.1 2 18 2Z",fill:"#ffffff","fill-opacity":"0.3"})])],-1)),hK={class:"list-content"},yK={class:"title"},fK={class:"subtitle"},gK={class:"modal-footer"},_K={class:"buttons-container buttons-container-step2"},bK=yt(()=>e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})],-1)),SK=yt(()=>e.createElementVNode("span",null,"Crear nueva lista",-1)),CK=[bK,SK],wK={class:"right-buttons"},kK=["disabled"];function EK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[8]||(i[8]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[7]||(i[7]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",YZ,[ZZ,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},XZ)]),e.createElementVNode("div",QZ,[e.createElementVNode("div",eK,[e.createElementVNode("div",tK,[e.createElementVNode("div",aK,[iK,e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.searchQuery=r),type:"text",placeholder:"Buscar lista..."},null,512),[[e.vModelText,o.searchQuery]]),o.searchQuery?(e.openBlock(),e.createElementBlock("button",{key:0,class:"clear-search",onClick:i[2]||(i[2]=(...r)=>o.clearSearch&&o.clearSearch(...r))},sK)):e.createCommentVNode("",!0)]),e.createElementVNode("button",{class:"crear-playlist",onClick:i[3]||(i[3]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},[lK,e.createTextVNode(" Crear nueva lista ")])])]),e.createElementVNode("div",rK,[e.createElementVNode("div",nK,[o.isLoading?(e.openBlock(),e.createElementBlock("div",dK," Cargando listas... ")):o.filteredPlaylists.length===0?(e.openBlock(),e.createElementBlock("div",cK," No hay listas disponibles ")):(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:2},e.renderList(o.filteredPlaylists,r=>{var n;return e.openBlock(),e.createElementBlock("div",{key:r.id,class:"list-item"},[e.createElementVNode("div",pK,[e.createElementVNode("input",{type:"checkbox",id:r.id,checked:o.selectedPlaylist===r.id,onChange:c=>o.handlePlaylistSelection(r.id)},null,40,mK)]),uK,e.createElementVNode("div",hK,[e.createElementVNode("div",yK,e.toDisplayString(r==null?void 0:r.name),1),e.createElementVNode("div",fK,e.toDisplayString((n=r==null?void 0:r.template)==null?void 0:n.name),1)])])}),128))])])]),e.createElementVNode("div",gK,[e.createElementVNode("div",_K,[e.createElementVNode("button",{class:"create-list-link",onClick:i[4]||(i[4]=(...r)=>o.handleCreateListClick&&o.handleCreateListClick(...r))},CK),e.createElementVNode("div",wK,[e.createElementVNode("button",{class:"cancelar",onClick:i[5]||(i[5]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[6]||(i[6]=(...r)=>o.handleCreatePlaylist&&o.handleCreatePlaylist(...r)),disabled:!o.selectedPlaylist}," Guardar ",8,kK)])])])],512)])):e.createCommentVNode("",!0)]),_:1})}const VK=Se(qZ,[["render",EK],["__scopeId","data-v-2e88a2e7"]]),xK={name:"ModalCreatePlayList",props:{isVisible:{type:Boolean,default:!1},userId:{type:Number,default:0},player:{type:Object,required:!0}},setup(t,{emit:i}){const a=e.ref(null),o=e.ref([]),s=e.ref({title:"",templateId:""}),l=e.ref(0),r=()=>{a.value&&(l.value=a.value.offsetWidth)},n=d=>{document.body.style.overflow=d?"hidden":"auto"},c="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",p=()=>{r(),t.isVisible&&n(!0)},y=()=>{s.value={title:"",templateId:""},i("close")},m=async()=>{if(!(!s.value.title||!s.value.templateId))try{const d=o.value.find(g=>g.id===s.value.templateId),f={user_id:t.userId,name:s.value.title,template:d,players:[t.player]},u=await me.create({headers:{Authorization:`${c}`}}).post(`https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/users/${t.userId}/in-followed`,f);y()}catch(d){console.error("Error al crear la lista:",d)}},h=async()=>{try{const d=await me.create({headers:{Authorization:`${c}`}}).get("https://4j4nfvoh0d.execute-api.us-east-2.amazonaws.com/prod/templates");o.value=d.data.data}catch(d){console.error("Error al obtener templates:",d)}};return e.onMounted(()=>{window.addEventListener("resize",p),h()}),e.onUnmounted(()=>{window.removeEventListener("resize",p),n(!1)}),e.watch(()=>t.isVisible,d=>{d?(setTimeout(r,0),n(!0)):n(!1)}),e.watch(()=>t.listData,d=>{d&&(d.name&&(s.value.title=d.name),d.template&&(s.value.templateId=Number(d.template)))},{immediate:!0}),{modalContent:a,playlistData:s,modalWidth:l,closeModal:y,handleNext:m,templates:o}}},Js=t=>(e.pushScopeId("data-v-5af4ce4d"),t=t(),e.popScopeId(),t),TK={class:"modal-header"},NK=Js(()=>e.createElementVNode("div",{class:"title-section"},[e.createElementVNode("svg",{width:"29",height:"22",viewBox:"0 0 23 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M12.249 4.88982H1.56809C0.980641 4.88982 0.5 5.35635 0.5 5.92655C0.5 6.49675 0.980641 6.96327 1.56809 6.96327H12.249C12.8365 6.96327 13.3171 6.49675 13.3171 5.92655C13.3171 5.35635 12.8365 4.88982 12.249 4.88982ZM12.249 0.74292H1.56809C0.980641 0.74292 0.5 1.20945 0.5 1.77965C0.5 2.34984 0.980641 2.81637 1.56809 2.81637H12.249C12.8365 2.81637 13.3171 2.34984 13.3171 1.77965C13.3171 1.20945 12.8365 0.74292 12.249 0.74292ZM17.5895 9.03673V5.92655C17.5895 5.35635 17.1088 4.88982 16.5214 4.88982C15.9339 4.88982 15.4533 5.35635 15.4533 5.92655V9.03673H12.249C11.6616 9.03673 11.1809 9.50325 11.1809 10.0735C11.1809 10.6437 11.6616 11.1102 12.249 11.1102H15.4533V14.2204C15.4533 14.7906 15.9339 15.2571 16.5214 15.2571C17.1088 15.2571 17.5895 14.7906 17.5895 14.2204V11.1102H20.7937C21.3812 11.1102 21.8618 10.6437 21.8618 10.0735C21.8618 9.50325 21.3812 9.03673 20.7937 9.03673H17.5895ZM1.56809 11.1102H7.97664C8.5641 11.1102 9.04474 10.6437 9.04474 10.0735C9.04474 9.50325 8.5641 9.03673 7.97664 9.03673H1.56809C0.980641 9.03673 0.5 9.50325 0.5 10.0735C0.5 10.6437 0.980641 11.1102 1.56809 11.1102Z",fill:"#ffffff",stroke:"#0D1D29","stroke-width":"0.191682"})]),e.createElementVNode("h2",null,"Crear lista")],-1)),BK=Js(()=>e.createElementVNode("img",{width:"22",src:"http://golstatsimages.blob.core.windows.net/playlist-icons/close@3x.png",alt:"Cerrar"},null,-1)),FK=[BK],PK={class:"modal-body"},$K=Js(()=>e.createElementVNode("option",{value:"",disabled:"",selected:""},"Selecciona una plantilla",-1)),zK=["value"],AK={class:"modal-footer"},IK={class:"buttons-container buttons-container-step1"},MK=["disabled"];function RK(t,i,a,o,s,l){return e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[a.isVisible?(e.openBlock(),e.createElementBlock("div",{key:0,class:"modal-overlay",onClick:i[6]||(i[6]=(...r)=>o.closeModal&&o.closeModal(...r))},[e.createElementVNode("div",{class:"modal-content",onClick:i[5]||(i[5]=e.withModifiers(()=>{},["stop"])),ref:"modalContent"},[e.createElementVNode("div",TK,[NK,e.createElementVNode("button",{class:"close-button",onClick:i[0]||(i[0]=(...r)=>o.closeModal&&o.closeModal(...r))},FK)]),e.createElementVNode("div",PK,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":i[1]||(i[1]=r=>o.playlistData.title=r),type:"text",class:"input-playlist",placeholder:"Nombre de tu lista..."},null,512),[[e.vModelText,o.playlistData.title]]),e.withDirectives(e.createElementVNode("select",{"onUpdate:modelValue":i[2]||(i[2]=r=>o.playlistData.templateId=r),class:"select-position"},[$K,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.templates,r=>(e.openBlock(),e.createElementBlock("option",{key:r.id,value:r.id},e.toDisplayString(r.name),9,zK))),128))],512),[[e.vModelSelect,o.playlistData.templateId]])]),e.createElementVNode("div",AK,[e.createElementVNode("div",IK,[e.createElementVNode("button",{class:"cancelar",onClick:i[3]||(i[3]=(...r)=>o.closeModal&&o.closeModal(...r))},"Cancelar"),e.createElementVNode("button",{class:"siguiente",onClick:i[4]||(i[4]=(...r)=>o.handleNext&&o.handleNext(...r)),disabled:!o.playlistData.title||!o.playlistData.templateId}," Guardar ",8,MK)])])],512)])):e.createCommentVNode("",!0)]),_:1})}const LK=Se(xK,[["render",RK],["__scopeId","data-v-5af4ce4d"]]),OK=[{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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],DK=[{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:1933,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}]}],jK=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},WK={key:1},UK={width:"10",height:"8",viewBox:"0 0 10 8",fill:"none",xmlns:"http://www.w3.org/2000/svg"},vK=["fill"],GK={key:0,class:"checkbox__teams"},HK={class:"checkbox__teams__logo"},JK=["src"],qK={class:"checkbox__teams__logo"},YK=["src"],ZK={__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(t){return["left","right","top","bottom"].includes(t)}},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(t,{emit:i}){const a=t;e.useCssVars(p=>({"7bd9d47b":t.width,"34dc7ddc":t.height}));const o=e.ref(!1),s=e.computed(()=>{const p={color:a.boxValueColor,"font-family":a.fontFamily,height:a.boxWidthAndHeight,width:a.boxWidthAndHeight,minWidth:a.boxWidthAndHeight,"border-radius":a.boxBorderRadius,"margin-top":a.boxMarginTop};return o.value?(p["background-color"]=a.boxBackgroundColor,p.border=`solid ${a.boxBorderWidth} ${a.boxBackgroundColor}`):p.border=`solid ${a.boxBorderWidth} ${a.boxBorderColor}`,p}),l=e.computed(()=>({"font-family":a.boxValueFontFamily,"font-size":a.boxValueFontSize,color:a.boxValueColor,"line-height":1})),r=e.computed(()=>{const p={color:a.labelColor,"font-family":a.fontFamily,"font-size":a.labelFontSize,"white-space":a.labelWhiteSpace,"text-align":a.boxPosition==="top"||a.boxPosition==="bottom"?"center":a.boxPosition};return(a.boxPosition==="left"||a.boxPosition==="right")&&(p[`margin-${a.boxPosition}`]=a.isBoxOnly?"0":a.teamsIds?"8px":"10px"),p});e.watch(()=>a.modelValue,p=>{p!==o.value&&(o.value=p)},{immediate:!0});function n(){a.avoidInteraction||!o.value&&a.avoidToCheck||(o.value=!o.value,i("update:modelValue",o.value))}function c(p){return`${{}.TEAM_LOGOS_URL||"https://golstatsimages.blob.core.windows.net/teams-80/"}${p}.png`}return(p,y)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["checkbox",`box-${t.boxPosition}`]),onClick:n},[e.createElementVNode("div",{class:"checkbox__box",style:e.normalizeStyle(s.value)},[o.value?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[a.boxValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"checkbox__box__value",style:e.normalizeStyle(l.value)},e.toDisplayString(t.boxValue),5)):(e.openBlock(),e.createElementBlock("div",WK,[(e.openBlock(),e.createElementBlock("svg",UK,[e.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:t.boxValueColor},null,8,vK)]))]))],64)):e.createCommentVNode("",!0)],4),t.teamsIds&&t.teamsIds.length?(e.openBlock(),e.createElementBlock("div",GK,[e.createElementVNode("div",HK,[e.createElementVNode("img",{src:c(t.teamsIds[0]),alt:""},null,8,JK)]),e.createElementVNode("div",qK,[e.createElementVNode("img",{src:c(t.teamsIds[1]),alt:""},null,8,YK)])])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"checkbox__label",style:e.normalizeStyle(r.value)},e.toDisplayString(t.label),5)],2))}},KK=jK(ZK,[["__scopeId","data-v-b6f124d8"]]),XK=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},qs={props:{type:{type:Number,default:0},value:{type:Boolean,default:!1},textValue:String,icon:String,iconPosition:{type:String,default:"left"},iconSize:String,fontColor:{type:String,default:"#FFFFFF"},textDecoration:String,fontSize:{type:String,default:"16px"},fontSizeStat:{type:String,default:"16px"},fontStyle:String,fontFamily:{type:String,default:"Poppins-Regular"},height:{type:String,default:"fit-content"},width:{type:String,default:"fit-content"},borderRadius:{type:String,default:"0px"},borderType:{type:String,default:"solid"},borderWidth:{type:Number,default:0},borderWidthBtn:{type:String,default:"2px"},borderColor:String,backgroundColor:{type:String,default:"none"},activeBackgroundColor:{type:String,default:"#000000"},activeBorderWidth:{type:Number,default:2},activeBorderType:{type:String,default:"solid"},activeBorderColor:{type:String,default:"#cbee6b"},activeColorText:{type:String,default:"#FFFFFF"},cursorType:{type:String,default:"default"},typeOnOff:{type:Boolean,default:!1},textCategory:String,textStat:String,marginLeftStat:{type:String,default:"15%"}},watch:{value:{deep:!0,immediate:!0,handler(t){this.status=t}}},data(){return{status:!1}},computed:{customStyle(){return{height:this.height,width:this.width,backgroundColor:this.backgroundColor,borderRadius:this.borderRadius,border:`${this.borderType} ${this.borderWidth}px ${this.borderColor}`,color:this.fontColor,textDecoration:this.textDecoration,cursor:this.cursorType,fontSize:this.fontSize,fontStyle:this.fontStyle,fontFamily:`${this.fontFamily} !important`}},customActive(){return{backgroundColor:this.activeBackgroundColor,color:this.activeColorText,border:`${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`}}},methods:{btnClick(t){this.$emit("click",t),this.typeOnOff&&(this.status=!this.status,this.$emit("status",this.status))}}},ep=()=>{e.useCssVars(t=>({"9d01acb4":t.height,"14e95081":t.borderWidthBtn,"38fec285":t.borderType,34353510:t.borderColor,"20d20dc6":t.borderRadius,17130967:t.width,"4ccb7d36":t.backgroundColor,"5d1e86a2":t.cursorType,ce65d4a2:t.fontSize,fe4ac47a:t.fontStyle,f98e44dc:t.fontFamily,"93b87770":t.marginLeftStat,c7f7beba:t.fontSizeStat}))},tp=qs.setup;qs.setup=tp?(t,i)=>(ep(),tp(t,i)):ep;const QK=t=>(e.pushScopeId("data-v-f3ee6b2b"),t=t(),e.popScopeId(),t),eX=["src"],tX={key:1,class:"text"},aX=["src"],iX={class:"stats"},oX=QK(()=>e.createElementVNode("img",{class:"iconstats",src:"https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png"},null,-1)),sX={class:"numstats"},lX={class:"leyend"};function rX(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["button",s.status&&a.typeOnOff&&"button-active"]),style:e.normalizeStyle([l.customStyle,s.status&&a.typeOnOff&&l.customActive]),onClick:i[0]||(i[0]=(...r)=>l.btnClick&&l.btnClick(...r))},[a.icon&&a.iconPosition.toLowerCase()==="left"?(e.openBlock(),e.createElementBlock("img",{key:0,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,eX)):e.createCommentVNode("",!0),a.textValue?(e.openBlock(),e.createElementBlock("div",tX,e.toDisplayString(a.textValue),1)):e.createCommentVNode("",!0),a.icon&&a.iconPosition.toLowerCase()==="right"?(e.openBlock(),e.createElementBlock("img",{key:2,class:"icon",style:e.normalizeStyle({width:a.iconSize}),src:a.icon},null,12,aX)):e.createCommentVNode("",!0)],6)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:"button-target",onClick:i[1]||(i[1]=(...r)=>l.btnClick&&l.btnClick(...r))},[e.createElementVNode("div",iX,[oX,e.createElementVNode("div",sX,e.toDisplayString(a.textStat),1)]),e.createElementVNode("div",lX,e.toDisplayString(a.textCategory),1)])):e.createCommentVNode("",!0)])}const nX=XK(qs,[["render",rX],["__scopeId","data-v-f3ee6b2b"]]),ap=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},dX=t=>(e.pushScopeId("data-v-d03b93c8"),t=t(),e.popScopeId(),t),cX={key:0,class:"overlay"},pX=dX(()=>e.createElementVNode("div",{class:"column-title-2"},null,-1)),mX=["onClick"],uX={__name:"ScrollColumns",props:{availablePlayers:{type:Array,default:()=>[]},isEditMode:{type:Boolean,default:!1}},emits:["expand","open-media"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),l=e.ref(null),r=e.ref(0);e.ref(!1);const n=e.computed(()=>{const h=o.availablePlayers[0];return h?h.stats:[]}),c=e.computed(()=>{const h=`repeat(${n.value.length}, max-content) 36px`;let d="";return r.value>0&&document.querySelectorAll(".column-title-2").forEach(f=>{d+=`${f.offsetWidth}px `}),{"--grid-template-columns":h,"--grid-template-columns-totals":d||h}});function p(){s.value=new ResizeObserver(h=>{for(const d of h){const{width:f}=d.contentRect;r.value=f}}),s.value.observe(l.value)}function y(h,d){const f=document.querySelectorAll(".scrollable-row-totals")[h+1];f&&(f.style.marginTop=`${d}px`)}function m({player:h,stat:d}){!d.total||d==="0%"||!d.seasons||!d.seasons.length||a("open-media",{...h,stat:d})}return e.onMounted(()=>{p()}),i({setMarginTopDetails:y}),(h,d)=>(e.openBlock(),e.createElementBlock("div",{class:"scroll-columns",style:e.normalizeStyle(c.value)},[t.isEditMode?(e.openBlock(),e.createElementBlock("div",cX)):e.createCommentVNode("",!0),e.createElementVNode("div",{ref_key:"titlesRow",ref:l,class:"scrollable-row-2"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(n.value,f=>(e.openBlock(),e.createElementBlock("div",{key:`t-${f.category_id}`,class:"column-title-2"},e.toDisplayString(f.name),1))),128)),pX],512),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.availablePlayers,(f,u)=>(e.openBlock(),e.createElementBlock("div",{key:`i-${f.id}`,class:"row scrollable-row-totals"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.stats,g=>(e.openBlock(),e.createElementBlock("div",{key:g.category_id,class:e.normalizeClass(["row data-info",{odd:u%2!==0,underline:!!g.total&&g.total!=="0%"&&g.seasons&&g.seasons.length}]),onClick:C=>m({player:f,stat:g})},e.toDisplayString(g.total),11,mX))),128))]))),128))],4))}},hX=ap(uX,[["__scopeId","data-v-d03b93c8"]]),Be=t=>(e.pushScopeId("data-v-378d650a"),t=t(),e.popScopeId(),t),yX={class:"table__static-column"},fX=Be(()=>e.createElementVNode("div",{class:"static-title column-title"},null,-1)),gX={class:"container"},_X={class:"details-row__info"},bX={class:"details-row__info__personal"},SX={class:"bold"},CX={class:"bold"},wX={class:"bold"},kX={class:"bold"},EX={class:"details-row__info__games"},VX={class:"bold"},xX={class:"bold"},TX=["onClick"],NX=Be(()=>e.createElementVNode("div",null,"Ver gráfica",-1)),BX=Be(()=>e.createElementVNode("svg",{width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("g",{"clip-path":"url(#clip0_3514_71971)"},[e.createElementVNode("path",{d:"M16.3338 6.02932L8.65108 0.447539C8.56099 0.38207 8.43896 0.38207 8.34886 0.447539C8.34292 0.451852 1.97661 5.07726 0.6663 6.02926C0.498706 6.09269 0.445831 6.30248 0.563113 6.43788L3.48277 15.4238C3.51717 15.5297 3.61589 15.6014 3.72727 15.6014H13.2635C13.3911 15.6014 13.484 15.5258 13.5172 15.4238L16.4368 6.43788C16.5544 6.3022 16.501 6.09269 16.3338 6.02932ZM13.1818 14.792L12.2937 13.5604C12.4178 13.3198 12.4262 13.0472 12.3402 12.813L13.4007 8.12035C13.7342 7.97885 13.9718 7.64673 13.9682 7.25316L15.8203 6.67173L13.1818 14.792ZM1.18005 6.67273L2.54311 7.10316C2.52677 7.60485 2.90696 8.01919 3.39221 8.06116L5.37836 11.3233C5.0798 11.6827 5.09336 12.2096 5.41452 12.5533L3.8173 14.7894L1.18005 6.67273ZM7.02283 11.9909C7.03952 11.7764 6.98346 11.5718 6.86936 11.4011L8.47839 9.14851L10.8495 12.4367C10.7173 12.5536 10.6187 12.7075 10.5697 12.8821L7.02283 11.9909ZM7.62217 4.78338C7.74714 5.00898 7.96299 5.17704 8.22033 5.23844V8.35679L4.40411 7.15166C4.40767 6.95926 4.35377 6.77813 4.25196 6.6232L7.62217 4.78338ZM12.2474 6.77016C12.151 6.92429 12.0998 7.10551 12.1071 7.29851L8.73449 8.35735V5.21526C8.94317 5.14495 9.11883 5.00291 9.23183 4.8182L12.2474 6.77016ZM4.25277 7.64307L8.06249 8.84613L6.47533 11.0681C6.26327 10.973 6.02383 10.9611 5.80383 11.0334L3.92524 7.94795C4.05761 7.87432 4.17008 7.76935 4.25277 7.64307ZM11.9237 12.3234C11.7375 12.2181 11.526 12.1827 11.3228 12.214L8.8943 8.84613L12.2678 7.78701C12.4038 7.98623 12.6151 8.12979 12.8607 8.17698L11.9237 12.3234ZM12.648 6.41704L9.36721 4.29329C9.35074 3.90045 9.09089 3.57073 8.73449 3.45063V1.14366L15.6674 6.18076L13.8211 6.76041C13.5672 6.3651 13.0654 6.22463 12.648 6.41704ZM8.22033 3.42748C7.83383 3.5197 7.54105 3.8527 7.50917 4.25923L3.8238 6.27107C3.42227 6.10782 2.95152 6.24232 2.70096 6.61379L1.33164 6.18138L8.22033 1.17648V3.42748ZM5.85711 12.8183C6.22189 12.9143 6.61096 12.7823 6.84071 12.4753L10.5778 13.4143C10.7578 13.9855 11.4215 14.2369 11.9331 13.9395L12.7607 15.0872H4.23642L5.85711 12.8183Z",fill:"white"})]),e.createElementVNode("defs",null,[e.createElementVNode("clipPath",{id:"clip0_3514_71971"},[e.createElementVNode("rect",{width:"16",height:"16",fill:"white",transform:"translate(0.5)"})])])],-1)),FX=[NX,BX],PX=["onClick"],$X=Be(()=>e.createElementVNode("div",null,"Eliminar de lista",-1)),zX=Be(()=>e.createElementVNode("svg",{width:"17",height:"15",viewBox:"0 0 20 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),AX=[$X,zX],IX=["onClick"],MX=Be(()=>e.createElementVNode("div",null,"Agregar a lista",-1)),RX=Be(()=>e.createElementVNode("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"}),e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),LX=[MX,RX],OX=["onClick"],DX=Be(()=>e.createElementVNode("div",null,"Ver perfil",-1)),jX=[DX],WX={class:"static-row__info-player"},UX={class:"position"},vX=["onClick"],GX=Be(()=>e.createElementVNode("path",{d:"M13.3345 16.5001V14.8334C13.3345 13.9494 12.9833 13.1015 12.3582 12.4764C11.7331 11.8513 10.8852 11.5001 10.0012 11.5001H5.00126C4.11722 11.5001 3.26938 11.8513 2.64427 12.4764C2.01915 13.1015 1.66797 13.9494 1.66797 14.8334V16.5001",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),HX=Be(()=>e.createElementVNode("path",{d:"M7.50126 8.16658C9.34219 8.16658 10.8346 6.67422 10.8346 4.83329C10.8346 2.99237 9.34219 1.5 7.50126 1.5C5.66033 1.5 4.16797 2.99237 4.16797 4.83329C4.16797 6.67422 5.66033 8.16658 7.50126 8.16658Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),JX=Be(()=>e.createElementVNode("path",{d:"M18.332 8.16663H13.332",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),qX=[GX,HX,JX],YX=["onClick"],ZX=Be(()=>e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),KX=Be(()=>e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),XX=Be(()=>e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"1","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)),QX=[ZX,KX,XX],eQ={class:"player-photo"},tQ=["src"],aQ={class:"player-name"},iQ={class:"arrow"},oQ=["onClick"],sQ=Be(()=>e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:"#D9D9D9"},null,-1)),lQ=[sQ],rQ={class:"table__scrollable-columns"},nQ=e.createStaticVNode('<div class="titles scrollable-row" data-v-378d650a><div class="column-title" data-v-378d650a>Equipo</div><div class="column-title" data-v-378d650a>Posición</div><div class="column-title" data-v-378d650a>Edad</div><div class="column-title" data-v-378d650a>País</div><div class="column-title" data-v-378d650a>Partidos Jugados</div><div class="column-title" data-v-378d650a>Minutos Jugados</div><div class="column-title" data-v-378d650a>Liga</div><div class="column-title" data-v-378d650a>Videos</div><div class="column-title" data-v-378d650a></div></div>',1),dQ={class:"team-logo"},cQ=["src"],pQ={class:"team-name data-info"},mQ=["src"],uQ={__name:"GSC-TableScrollable",props:{players:{type:Array,default:()=>[]},isGeneral:{type:Boolean,default:!0},isEditMode:{type:Boolean,default:!1},isTableFromList:{type:Boolean,default:!1}},emits:["change-selected-players","view-profile","add-to-list","view-graph","open-media"],setup(t,{emit:i}){const a=t;let o=null,s=null;const l=e.ref([]),r=e.ref(null),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref(-1);e.ref(!1);const m=e.ref(null),h=e.computed(()=>({"--width-details":`${c.value}px`,"--gap-static-row":`${d.value?"8px":"18px"}`,"--width-static-column":`${d.value?"50%":"256px"}`})),d=e.computed(()=>c.value<600);e.watch(()=>a.players,x=>{x&&x.length&&(l.value=x.map((T,S)=>{const F=S+1;return{...T,position:F<10?`0${F}`:`${F}`,isSelected:!1,isExpanded:!1,isOdd:S%2!==0,index:S}}))},{immediate:!0}),e.watch(()=>a.isEditMode,x=>{x&&l.value.forEach(T=>{T.isSelected=!1})}),e.watch(p,x=>{const T=document.querySelectorAll(".static-row")[y.value+1];T&&(T.style.marginTop=`${x}px`),a.isGeneral?f(y.value,x):n.value&&n.value.setMarginTopDetails(y.value,x),x===0&&m.value&&J(m.value)});function f(x,T){const S=document.querySelectorAll(".scrollable-row")[x+2];S&&(S.style.marginTop=`${T}px`)}function u(x){const T=x.player||x.objeto_player,S=T?T.player_id||T.id||T.playerId:x.id||x.player_id,F=T?T.team_id||T.teamId:x.team_id||x.teamId,P={isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:S?[S]:[],goalkeeperIds:[],teamId:F||0,matchResult:[1,2,3],categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:"Jugadas Relevantes"}};if(x.stat&&x.stat.seasons&&x.stat.seasons.length||x.seasons&&x.seasons.length){const H=[...x.stat&&x.stat.seasons&&x.stat.seasons.length?x.stat.seasons:x.seasons];H.sort((Z,de)=>Z-de),P.seasonId=H.shift(),P.seasonsIds=H}else(x.season_id||x.seasonId)&&(P.seasonId=x.season_id||x.seasonId);x.stat?x.stat.category_id?P.categoryIds=x.stat.category_id:x.stat.custom_category_id&&(P.customCategoryIds=[x.stat.custom_category_id]):P.categoryIds=k(x.player_position),i("open-media",P)}function g(){o=new ResizeObserver(x=>{for(const T of x)c.value=T.contentRect.width}),o.observe(r.value)}function C(x){s=new ResizeObserver(T=>{for(const S of T)p.value=S.contentRect.height}),s.observe(x)}function k(x){return x==="POR"?[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]}function U(x,T){T.isSelected=x;const S=l.value.filter(F=>F.isSelected);i("change-selected-players",S)}function q(x){i("view-profile",x)}function A(x){i("delete-from-list",x)}function v(x){i("add-to-list",x)}function Y(x){i("show-graph",x)}function J(x){if(x.isExpanded){x.isExpanded=!1,m.value=null;return}const T=l.value.find(F=>F.isExpanded);if(T&&(T.isExpanded=!1),T){m.value=x;return}const S=document.querySelectorAll(".details-row")[x.index];y.value=x.index,C(S),x.isExpanded=!0}return e.onMounted(()=>{g()}),(x,T)=>(e.openBlock(),e.createElementBlock("div",{class:"table",ref_key:"tableSC",ref:r,style:e.normalizeStyle(h.value)},[e.createElementVNode("div",yX,[fX,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`s-${S.id}`,class:e.normalizeClass(["row static-row",{odd:S.isOdd}])},[e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["details-row",{odd:S.isOdd}])},[e.createElementVNode("div",gX,[e.createElementVNode("div",_X,[e.createElementVNode("div",bX,[e.createElementVNode("div",null,[e.createTextVNode("Equipo: "),e.createElementVNode("span",SX,e.toDisplayString(S.team_name),1)]),e.createElementVNode("div",null,[e.createTextVNode("Edad: "),e.createElementVNode("span",CX,e.toDisplayString(S.player_age)+" Años",1)]),e.createElementVNode("div",null,[e.createTextVNode("Nacionalidad: "),e.createElementVNode("span",wX,e.toDisplayString(S.player_country),1)]),e.createElementVNode("div",null,[e.createTextVNode("Posición: "),e.createElementVNode("span",kX,e.toDisplayString(S.position_name),1)])]),e.createElementVNode("div",EX,[e.createElementVNode("div",null,[e.createTextVNode("Partidos Jugados: "),e.createElementVNode("span",VX,e.toDisplayString(S.player_games),1)]),e.createElementVNode("div",null,[e.createTextVNode("Minutos Jugados: "),e.createElementVNode("span",xX,e.toDisplayString(S.player_min),1)])])]),e.createElementVNode("div",{class:"details-row__buttons",style:e.normalizeStyle(d.value?"margin-left: 0; gap: 8px;":"")},[e.createElementVNode("div",{role:"button",class:"button",onClick:F=>Y(S)},FX,8,TX),t.isTableFromList?(e.openBlock(),e.createElementBlock("div",{key:0,role:"button",class:"button",onClick:F=>A(S)},AX,8,PX)):(e.openBlock(),e.createElementBlock("div",{key:1,role:"button",class:"button",onClick:F=>v(S)},LX,8,IX)),e.createElementVNode("div",{role:"button",class:"button green",onClick:F=>q(S)},jX,8,OX)],4)])],2),[[e.vShow,S.isExpanded]])]),_:2},1024),t.isEditMode?(e.openBlock(),e.createBlock(e.unref(KK),{key:0,fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":S.isSelected,"onUpdate:modelValue":F=>U(F,S)},null,8,["model-value","onUpdate:modelValue"])):e.createCommentVNode("",!0),e.createElementVNode("div",WX,[e.createElementVNode("div",UX,e.toDisplayString(S.position),1),t.isTableFromList?(e.openBlock(),e.createElementBlock("svg",{key:0,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>A(S)},qX,8,vX)):(e.openBlock(),e.createElementBlock("svg",{key:1,width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:F=>v(S)},QX,8,YX)),e.createElementVNode("div",eQ,[e.createElementVNode("div",null,[e.createElementVNode("img",{src:S.player_photo,alt:"player photo"},null,8,tQ)])]),e.createElementVNode("div",aQ,e.toDisplayString(S.player_name),1)]),e.createElementVNode("div",iQ,[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass(["_arrowExpandIcon_6ak64_1115 _rotate_6ak64_5",{expanded:S.isExpanded}]),width:"12",height:"8",viewBox:"0 0 12 8",fill:"#D9D9D9",xmlns:"http://www.w3.org/2000/svg",onClick:F=>J(S)},lQ,10,oQ))])],2))),128))]),e.createElementVNode("div",rQ,[t.isGeneral?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[nQ,(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,S=>(e.openBlock(),e.createElementBlock("div",{key:`i-${S.id}`,class:"row scrollable-row"},[e.createElementVNode("div",{class:e.normalizeClass(["row team-info",{odd:S.isOdd}])},[e.createElementVNode("div",dQ,[e.createElementVNode("img",{src:S.team_logo,alt:"team logo"},null,8,cQ)]),e.createElementVNode("div",pQ,e.toDisplayString(S.team_abrev),1)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_position),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_age),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createElementVNode("img",{src:S.player_country_flag,alt:"player country flag",class:"country-flag"},null,8,mQ)],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_games),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.player_min),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},e.toDisplayString(S.league_name),3),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},[e.createVNode(e.unref(nX),{icon:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png","icon-size":"19px","icon-position":"left",width:"98px",height:"30px","border-radius":"30px","border-width":"1","background-color":"#ffffff1a","font-family":"Poppins-Regular","border-color":"#55636e","text-value":"Ver videos","font-size":"10px",onClick:F=>u(S)},null,8,["onClick"])],2),e.createElementVNode("div",{class:e.normalizeClass(["row data-info",{odd:S.isOdd}])},null,2)]))),128))],64)):(e.openBlock(),e.createBlock(hX,{key:1,ref_key:"scrollColumns",ref:n,"available-players":l.value,"is-edit-mode":t.isEditMode,onOpenMedia:u},null,8,["available-players","is-edit-mode"]))])],4))}},hQ=ap(uQ,[["__scopeId","data-v-378d650a"]]),yQ="_tablePosition_s65tc_46",fQ="_tablePositionWrapper_s65tc_62",gQ="_imgHenrryIcon_s65tc_71",_Q="_americaIcon_s65tc_79",bQ="_playerPhoto_s65tc_91",SQ="_toniKroos_s65tc_100",CQ="_shapeIcon_s65tc_111",wQ="_menuiconsTeams_s65tc_117",kQ="_component31_s65tc_126",EQ="_playerName_s65tc_137",VQ="_icnPlayIcon_s65tc_145",xQ="_goles_s65tc_153",TQ="_americaIcon1_s65tc_160",NQ="_teamsAmerica_s65tc_174",BQ="_topAddPlayer_s65tc_181",FQ="_containerData_s65tc_185",PQ="_shapeIcon1_s65tc_193",$Q="_icnExpand1_s65tc_199",zQ="_icnExpand_s65tc_199",AQ="_playerData_s65tc_219",IQ="_playerInfo_s65tc_230",MQ="_headerTop_s65tc_245",RQ="_playerRow_s65tc_259",LQ="_groupsLeague_s65tc_270",OQ="_text_s65tc_279",DQ="_btnViewFullList_s65tc_287",jQ="_headerTops_s65tc_304",WQ="_btnVideosOptions_s65tc_376",UQ="_position_s65tc_553",vQ="_positionWrapper_s65tc_565",GQ="_imgNecaxaIcon_s65tc_573",HQ="_teamLogo_s65tc_579",JQ="_teamPhoto_s65tc_587",qQ="_name_s65tc_595",YQ="_icnPlayIconType1_s65tc_603",ZQ="_verVideosType1_s65tc_610",KQ="_btnVideosOptionsType1_s65tc_616",XQ="_btnVideosOptions1_s65tc_628",QQ="_leftContainer_s65tc_640",eee="_shapeIconType1_s65tc_649",tee="_icnExpandType1_s65tc_654",aee="_arrowExpand_s65tc_664",iee="_containerInfo_s65tc_672",oee="_headerTopTeam_s65tc_684",see="_containerHeader_s65tc_698",lee="_goles1_s65tc_707",ree="_golesType1_s65tc_710",nee="_golesWrapper_s65tc_715",dee="_btnViewAll_s65tc_724",cee="_headerTopsTeams_s65tc_741",pee="_arrowExpandIcon_s65tc_858",mee="_rotate_s65tc_863",uee={tablePosition:yQ,tablePositionWrapper:fQ,imgHenrryIcon:gQ,americaIcon:_Q,playerPhoto:bQ,toniKroos:SQ,shapeIcon:CQ,menuiconsTeams:wQ,component31:kQ,playerName:EQ,icnPlayIcon:VQ,goles:xQ,americaIcon1:TQ,teamsAmerica:NQ,topAddPlayer:BQ,containerData:FQ,shapeIcon1:PQ,icnExpand1:$Q,icnExpand:zQ,playerData:AQ,playerInfo:IQ,headerTop:MQ,playerRow:RQ,groupsLeague:LQ,text:OQ,btnViewFullList:DQ,headerTops:jQ,btnVideosOptions:WQ,position:UQ,positionWrapper:vQ,imgNecaxaIcon:GQ,teamLogo:HQ,teamPhoto:JQ,name:qQ,icnPlayIconType1:YQ,verVideosType1:ZQ,btnVideosOptionsType1:KQ,btnVideosOptions1:XQ,leftContainer:QQ,shapeIconType1:eee,icnExpandType1:tee,arrowExpand:aee,containerInfo:iee,headerTopTeam:oee,containerHeader:see,goles1:lee,golesType1:ree,golesWrapper:nee,btnViewAll:dee,headerTopsTeams:cee,arrowExpandIcon:pee,rotate:mee},Ys={components:{GSCButton:fi},props:{type:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},categoryName:{type:String,default:""},categoryId:{type:String,default:""},data:{type:Object,default:()=>{}},backgroundColor:{type:String,default:"#0d1d29"},backgroundColorHeader:{type:String,default:"#183143"},fontColorName:{type:String,default:"#F4F4F4"},fontSizeName:{type:String,default:"14px"},fontFamilyName:{type:String,default:"Poppins-Regular"},fontColorTopNum:{type:String,default:"#FFFFFF"},fontSizeTopNum:{type:String,default:"96px"},fontFamilyTopNum:{type:String,default:"Oswald-Bold"},fontColorCategory:{type:String,default:"#FFFFFF"},fontSizeCategory:{type:String,default:"12px"},fontFamilyCategory:{type:String,default:"Poppins-Regular"},opacityColorTopNum:{type:Number,default:.09},borderColorCategory:{type:String,default:"#cbee6b"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"18px"},iconPosition:{type:String,default:"left"},colorArrow:{type:String,default:"#D9D9D9"},buttonWidth:{type:String,default:"fit-content"},buttonMaxWidth:{type:String,default:"180px"},buttonHeight:{type:String,default:"24px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#cbee6b"},buttonFontSize:{type:String,default:"12px"}},data:()=>({expand:!1}),methods:{viewProfile(t){this.$emit("play",t)},clickMore(t){this.$emit("more",t)},clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},clickFav(t){this.$emit("fav",t)},clickEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},ip=()=>{e.useCssVars(t=>({"585cd937":t.fontSizeTopNum,"32d8991a":t.fontFamilyTopNum,"16a25bef":t.fontColorTopNum,"3f30455f":t.opacityColorTopNum,"74b0c809":t.fontColorName,"051a53f4":t.fontFamilyName,"63f9f751":t.fontSizeName,"91c50268":t.backgroundColorHeader,"1c9cb9e7":t.fontFamilyCategory,"1bdd3278":t.fontSizeCategory,"35011b7c":t.fontColorCategory,"0582c83f":t.borderColorCategory}))},op=Ys.setup;Ys.setup=op?(t,i)=>(ip(),op(t,i)):ip;const hee=["src"],yee=["src"],fee=["src"],gee=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),_ee=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),bee=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),See=[gee,_ee,bee],Cee=["fill"],wee=["fill"],kee=["src"],Eee=["fill"],Vee=["fill"];function xee(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",null,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.headerTops)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerRow),id:"player-row"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTop)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerPhoto),id:"container-player-photp"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.tablePositionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.tablePosition)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgHenrryIcon),alt:"",src:a.data.photo},null,10,hee),e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon),alt:"",src:a.data.logo},null,10,yee)],2),e.createElementVNode("main",{class:e.normalizeClass(t.$style.playerInfo),id:"container-player-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerName)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.toniKroos)},e.toDisplayString(a.data.name),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.playerData)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerData)},[e.createVNode(r,{"icon-size":"12px","icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.clickEventMedia(a.data))},null,8,["icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamsAmerica)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.americaIcon1),alt:"",src:a.data.logo},null,10,fee)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.topAddPlayer)},[(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[1]||(i[1]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},See))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.icnExpand),onClick:i[2]||(i[2]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,wee)],10,Cee))],2)],2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.headerTopsTeams)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerHeader),id:"header-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.headerTopTeam)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamPhoto),id:"container-team"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.positionWrapper)},[e.createElementVNode("b",{class:e.normalizeClass(t.$style.position)},e.toDisplayString(a.data.top),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamLogo)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgNecaxaIcon),alt:"",src:a.data.logo},null,10,kee)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerInfo)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.leftContainer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.name)},e.toDisplayString(a.data.name_team),3),e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[3]||(i[3]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnVideosOptions1)},[e.createVNode(r,{"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,"button-max-width":a.buttonMaxWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.data.total+" "+a.categoryName.toLowerCase(),"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.clickEventMedia(a.data))},null,8,["icon-size","icon-position","width","button-max-width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"]),e.createElementVNode("div",{class:e.normalizeClass(t.$style.verVideosType1)},e.toDisplayString(a.data.total),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.arrowExpand),onClick:i[5]||(i[5]=n=>l.clickExpand(a.data.player_id))},[(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg"},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,Vee)],10,Eee))],2)],2)],2)],2)],2)):e.createCommentVNode("",!0)])}const Tee={$style:uee},Nee=Se(Ys,[["render",xee],["__cssModules",Tee]]),Bee="_rotate_1tou5_3",Fee="_positionContainer_1tou5_50",Pee="_positionContainer620_1tou5_57",$ee="_rowwPlayer_1tou5_64",zee="_rowwPlayer960_1tou5_80",Aee="_rowwPlayer420_1tou5_95",Iee="_rowwPlayer460_1tou5_111",Mee="_containerLeft_1tou5_128",Ree="_containerLeft420_1tou5_136",Lee="_containerLeft620_1tou5_144",Oee="_iconFavoritesType1_1tou5_151",Dee="_iconFavoritesType1320_1tou5_159",jee="_iconFavorites_1tou5_151",Wee="_iconFavorites420_1tou5_175",Uee="_playerContainer_1tou5_183",vee="_playerContainer420_1tou5_195",Gee="_playerContainer460_1tou5_207",Hee="_playerContainerType1_1tou5_219",Jee="_playerContainerType1320_1tou5_229",qee="_playerContainerType1460_1tou5_239",Yee="_imgPlayerIcon_1tou5_249",Zee="_imgPlayerIcon460_1tou5_259",Kee="_imgPlayerIcon420_1tou5_269",Xee="_manchesterUnited_1tou5_279",Qee="_manchesterUnited360_1tou5_290",ete="_manchesterUnited420_1tou5_301",tte="_manchesterUnited460_1tou5_312",ate="_containerRight_1tou5_323",ite="_containerRight960_1tou5_332",ote="_containerRight420_1tou5_342",ste="_numberOfVideos_1tou5_353",lte="_numberOfVideos620_1tou5_359",rte="_block02_1tou5_365",nte="_block02960_1tou5_375",dte="_block02620_1tou5_384",cte="_block02420_1tou5_391",pte="_verVideos_1tou5_399",mte="_verVideos620_1tou5_405",ute="_numberPosition_1tou5_408",hte="_shapeIcon_1tou5_414",yte="_chivasIcon_1tou5_419",fte="_imgTeamIcon_1tou5_430",gte="_teamName_1tou5_435",_te="_nameTeam_1tou5_441",bte="_dfC_1tou5_450",Ste="_position_1tou5_50",Cte="_age_1tou5_460",wte="_manchesterUnitedIcon_1tou5_468",kte="_country_1tou5_475",Ete="_playedGames_1tou5_482",Vte="_playedMinutes_1tou5_489",xte="_block01_1tou5_496",Tte="_leagueName_1tou5_503",Nte="_roleCharacterIcon_1tou5_509",Bte="_btnVideos_1tou5_517",Fte="_containerBtnVideos_1tou5_532",Pte="_containerBtnVideos620_1tou5_542",$te="_containesOptions_1tou5_551",zte="_arrowExpandIcon_1tou5_558",Ate="_rowTeam_1tou5_567",Ite="_rowTeam420_1tou5_585",Mte="_rowTeam320_1tou5_603",Rte="_rowTeam460_1tou5_622",Lte="_rowTeam350_1tou5_641",Ote="_containerLeftType1_1tou5_659",Dte="_containerLeftType1680_1tou5_665",jte="_containerLeftType1320_1tou5_672",Wte="_containerLeftType1350_1tou5_680",Ute="_positionContainertype1_1tou5_687",vte="_positionContainertype1380_1tou5_695",Gte="_positionContainertype1680_1tou5_703",Hte="_positionContainertype1420_1tou5_711",Jte="_manchesterUnitedType1_1tou5_719",qte="_manchesterUnitedType1460_1tou5_725",Yte="_manchesterUnitedType1320_1tou5_732",Zte="_containerRightType1_1tou5_739",Kte="_containerRightType1420_1tou5_750",Xte="_containerRightType1320_1tou5_761",Qte="_teamNameWrapperType1_1tou5_772",eae="_teamNameWrapperType1960_1tou5_779",tae="_teamNameWrapperType11086_1tou5_786",aae="_ageWrapperType1_1tou5_793",iae="_ageWrapperType1680_1tou5_800",oae="_ageWrapperType11086_1tou5_808",sae="_ageType1_1tou5_816",lae="_ageType1960_1tou5_824",rae="_playedGamesWrapperType1_1tou5_827",nae="_playedGamesWrapperType1680_1tou5_834",dae="_playedGamesWrapperType1960_1tou5_837",cae="_playedGamesType1_1tou5_840",pae="_playedGamesType1540_1tou5_847",mae="_playedGamesType1960_1tou5_851",uae="_playedGamesType11086_1tou5_854",hae="_playedMinutesWrapperType1_1tou5_857",yae="_playedMinutesWrapperType11086_1tou5_864",fae="_playedMinutesType1_1tou5_871",gae="_playedMinutesType1680_1tou5_878",_ae="_block02Type1_1tou5_881",bae="_block02Type1680_1tou5_889",Sae="_block02Type1320_1tou5_897",Cae="_block02Type1350_1tou5_906",wae="_leagueNameWrapperType1_1tou5_914",kae="_leagueNameWrapperType1680_1tou5_922",Eae="_leagueNameWrapperType1960_1tou5_925",Vae="_leagueNameType1_1tou5_933",xae="_leagueNameType1960_1tou5_943",Tae="_numberOfVideosType1_1tou5_953",Nae="_numberOfVideosType1680_1tou5_960",Bae="_numberOfVideosType11232_1tou5_967",Fae="_vectorIconType1_1tou5_974",Pae="_block01TitlesType1_1tou5_991",$ae="_numberPositionType1_1tou5_998",zae="_shapeIconType1_1tou5_1004",Aae="_tijuanaIconType1_1tou5_1010",Iae="_tijuanaWrapperType1_1tou5_1016",Mae="_tijuanaWrapperType1NoBg_1tou5_1027",Rae="_teamNameType1_1tou5_1035",Lae="_roleCharacterIconType1_1tou5_1042",Oae="_verVideosType1_1tou5_1049",Dae="_btnVideosType1_1tou5_1055",jae="_containerBtnVideosType1_1tou5_1070",Wae="_containesOptionsType1_1tou5_1081",Uae="_arrowExpandIconType1_1tou5_1089",vae="_templateTablaProductividadType1_1tou5_1095",Gae="_verVideosType11232_1tou5_1107",Hae="_templateTablaProductividadType1320_1tou5_1111",Jae="_verVideosType1680_1tou5_1115",qae={rotate:Bee,positionContainer:Fee,positionContainer620:Pee,rowwPlayer:$ee,rowwPlayer960:zee,rowwPlayer420:Aee,rowwPlayer460:Iee,containerLeft:Mee,containerLeft420:Ree,containerLeft620:Lee,iconFavoritesType1:Oee,iconFavoritesType1320:Dee,iconFavorites:jee,iconFavorites420:Wee,playerContainer:Uee,playerContainer420:vee,playerContainer460:Gee,playerContainerType1:Hee,playerContainerType1320:Jee,playerContainerType1460:qee,imgPlayerIcon:Yee,imgPlayerIcon460:Zee,imgPlayerIcon420:Kee,manchesterUnited:Xee,manchesterUnited360:Qee,manchesterUnited420:ete,manchesterUnited460:tte,containerRight:ate,containerRight960:ite,containerRight420:ote,numberOfVideos:ste,numberOfVideos620:lte,block02:rte,block02960:nte,block02620:dte,block02420:cte,verVideos:pte,verVideos620:mte,numberPosition:ute,shapeIcon:hte,chivasIcon:yte,imgTeamIcon:fte,teamName:gte,nameTeam:_te,dfC:bte,position:Ste,age:Cte,manchesterUnitedIcon:wte,country:kte,playedGames:Ete,playedMinutes:Vte,block01:xte,leagueName:Tte,roleCharacterIcon:Nte,btnVideos:Bte,containerBtnVideos:Fte,containerBtnVideos620:Pte,containesOptions:$te,arrowExpandIcon:zte,rowTeam:Ate,rowTeam420:Ite,rowTeam320:Mte,rowTeam460:Rte,rowTeam350:Lte,containerLeftType1:Ote,containerLeftType1680:Dte,containerLeftType1320:jte,containerLeftType1350:Wte,positionContainertype1:Ute,positionContainertype1380:vte,positionContainertype1680:Gte,positionContainertype1420:Hte,manchesterUnitedType1:Jte,manchesterUnitedType1460:qte,manchesterUnitedType1320:Yte,containerRightType1:Zte,containerRightType1420:Kte,containerRightType1320:Xte,teamNameWrapperType1:Qte,teamNameWrapperType1960:eae,teamNameWrapperType11086:tae,ageWrapperType1:aae,ageWrapperType1680:iae,ageWrapperType11086:oae,ageType1:sae,ageType1960:lae,playedGamesWrapperType1:rae,playedGamesWrapperType1680:nae,playedGamesWrapperType1960:dae,playedGamesType1:cae,playedGamesType1540:pae,playedGamesType1960:mae,playedGamesType11086:uae,playedMinutesWrapperType1:hae,playedMinutesWrapperType11086:yae,playedMinutesType1:fae,playedMinutesType1680:gae,block02Type1:_ae,block02Type1680:bae,block02Type1320:Sae,block02Type1350:Cae,leagueNameWrapperType1:wae,leagueNameWrapperType1680:kae,leagueNameWrapperType1960:Eae,leagueNameType1:Vae,leagueNameType1960:xae,numberOfVideosType1:Tae,numberOfVideosType1680:Nae,numberOfVideosType11232:Bae,vectorIconType1:Fae,block01TitlesType1:Pae,numberPositionType1:$ae,shapeIconType1:zae,tijuanaIconType1:Aae,tijuanaWrapperType1:Iae,tijuanaWrapperType1NoBg:Mae,teamNameType1:Rae,roleCharacterIconType1:Lae,verVideosType1:Oae,btnVideosType1:Dae,containerBtnVideosType1:jae,containesOptionsType1:Wae,arrowExpandIconType1:Uae,templateTablaProductividadType1:vae,verVideosType11232:Gae,templateTablaProductividadType1320:Hae,verVideosType1680:Jae},Zs={components:{GSCButton:fi},computed:{manchesterUnitedType1Class(){const t=this.elementSize.width;return t<=320?this.$style.manchesterUnitedType1320:t<=460?this.$style.manchesterUnitedType1460:this.$style.manchesterUnitedType1},containerRightType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerRightType1320:t<=420?this.$style.containerRightType1420:this.$style.containerRightType1},teamNameWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.teamNameWrapperType1960:t<=1086?this.$style.teamNameWrapperType11086:this.$style.teamNameWrapperType1},ageWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.ageWrapperType1680:t<=1086?this.$style.ageWrapperType11086:this.$style.ageWrapperType1},ageType1Class(){return this.elementSize.width<=960?this.$style.ageType1960:this.$style.ageType1},playedGamesWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.playedGamesWrapperType1680:t<=960?this.$style.playedGamesWrapperType1960:this.$style.playedGamesWrapperType1},playedGamesType1Class(){const t=this.elementSize.width;return t<=540?this.$style.playedGamesType1540:t<=960?this.$style.playedGamesType1960:t<=1086?this.$style.playedGamesType11086:this.$style.playedGamesType1},playedMinutesWrapperType1Class(){return this.elementSize.width<=1086?this.$style.playedMinutesWrapperType11086:this.$style.playedMinutesWrapperType1},playedMinutesType1Class(){return this.elementSize.width<=680?this.$style.playedMinutesType1680:this.$style.playedMinutesType1},block02Type1Class(){const t=this.elementSize.width;return t<=320?this.$style.block02Type1320:t<=350?this.$style.block02Type1350:t<=680?this.$style.block02Type1680:this.$style.block02Type1},leagueNameWrapperType1Class(){const t=this.elementSize.width;return t<=680?this.$style.leagueNameWrapperType1680:t<=960?this.$style.leagueNameWrapperType1960:this.$style.leagueNameWrapperType1},leagueNameType1Class(){return this.elementSize.width<=960?this.$style.leagueNameType1960:this.$style.leagueNameType1},numberOfVideosType1Class(){const t=this.elementSize.width;return t<=680?this.$style.numberOfVideosType1680:t<=1232?this.$style.numberOfVideosType11232:this.$style.numberOfVideosType1},containerLeftType1Class(){const t=this.elementSize.width;return t<=320?this.$style.containerLeftType1320:t<=350?this.$style.containerLeftType1350:t<=680?this.$style.containerLeftType1680:this.$style.containerLeftType1},positionContainertype1Class(){const t=this.elementSize.width;return t<=380?this.$style.positionContainertype1380:t<=420?this.$style.positionContainertype1420:t<=680?this.$style.positionContainertype1680:this.$style.positionContainertype1},rowTeamClass(){const t=this.elementSize.width;return t<=320?this.$style.rowTeam320:t<=350?this.$style.rowTeam350:t<=420?this.$style.rowTeam420:t<=460?this.$style.rowTeam460:this.$style.rowTeam},containerBtnVideosClass(){return this.$style.containerBtnVideos},numberOfVideosClass(){return this.elementSize.width<=620?this.$style.numberOfVideos620:this.$style.numberOfVideos},block02Class(){const t=this.elementSize.width;return t<=420?this.$style.block02420:t<=620?this.$style.block02620:t<=960?this.$style.block02960:this.$style.block02},imgPlayerIconClass(){const t=this.elementSize.width;return t<=420?this.$style.imgPlayerIcon420:t<=460?this.$style.imgPlayerIcon460:this.$style.imgPlayerIcon},manchesterUnitedClass(){const t=this.elementSize.width;return t<=360?this.$style.manchesterUnited360:t<=420?this.$style.manchesterUnited420:t<=460?this.$style.manchesterUnited460:this.$style.manchesterUnited},containerRightClass(){const t=this.elementSize.width;return t<=420?this.$style.containerRight420:t<=960?this.$style.containerRight960:this.$style.containerRight},playerContainerType1Class(){const t=this.elementSize.width;return t<=320?this.$style.playerContainerType1320:t<=460?this.$style.playerContainerType1460:this.$style.playerContainerType1},playerContainerClass(){const t=this.elementSize.width;return t<=420?this.$style.playerContainer420:t<=460?this.$style.playerContainer460:this.$style.playerContainer},iconFavoritesClass(){return this.elementSize.width<=420?this.$style.iconFavorites420:this.$style.iconFavorites},iconFavoritesType1Class(){return this.elementSize.width<=320?this.$style.iconFavoritesType1320:this.$style.iconFavoritesType1},containerLeftClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeft420:t<=620?this.$style.containerLeft620:this.$style.containerLeft},positionContainerClass(){return this.elementSize.width<=620?this.$style.positionContainer620:this.$style.positionContainer},rowwPlayerClass(){const t=this.elementSize.width;return t<=420?this.$style.rowwPlayer420:t<=460?this.$style.rowwPlayer460:t<=960?this.$style.rowwPlayer960:this.$style.rowwPlayer}},setup(){const t=e.ref("myDivRef2"),{elementSize:i}=Le(t);return{myDivRef2:t,elementSize:i}},props:{type:{type:Number,default:0},typeView:{type:Number,default:0},isExpanded:{type:Boolean,default:!1},background:{type:String,default:"#172531"},height:{type:String,default:"35px"},fontColor:{type:String,default:"#F4F4F4"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"},data:{type:Object,default:()=>{}},colorArrow:{type:String,default:"#D9D9D9"},buttonTextValue:{type:String,default:"Ver videos"},iconVideos:{type:String,default:"https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png"},iconSize:{type:String,default:"13px"},iconSizeMini:{type:String,default:"13px"},iconPosition:{type:String,default:"left"},buttonWidth:{type:String,default:"93px"},buttonWidthMini:{type:String,default:"24px"},buttonHeightMini:{type:String,default:"24px"},buttonHeight:{type:String,default:"30px"},buttonRadius:{type:String,default:"30px"},buttonBorderWidth:{type:Number,default:1},buttonBackground:{type:String,default:"#ffffff1a"},buttonfontFamily:{type:String,default:"Poppins-Regular"},buttonBorderColor:{type:String,default:"#55636e"},buttonFontSize:{type:String,default:"10px"}},data:()=>({expand:!1}),methods:{clickExpand(t){this.$emit("expand",{expand:!this.isExpanded,id:t})},emitEventMedia(t){this.$emit("mediadata",t)},emitAddPlayer(t){this.$emit("add-player",t)}}},sp=()=>{e.useCssVars(t=>({"2f698a62":t.height,"48e438e9":t.background,"45a2376b":t.fontSize,"6dc5c539":t.fontColor,"4f4c804e":t.fontFamily}))},lp=Zs.setup;Zs.setup=lp?(t,i)=>(sp(),lp(t,i)):sp;const Yae={ref:"myDivRef2",style:{"border-left":"rgba(13,29,41,0.7) 1px solid","border-right":"rgba(13,29,41,0.7) 1px solid"}},Zae=["src"],Kae=["src"],Xae=["src"],Qae=["src"],eie=e.createElementVNode("path",{d:"M13.2016 17.2012V15.601C13.2016 14.7522 12.8645 13.9381 12.2643 13.3379C11.664 12.7377 10.85 12.4005 10.0012 12.4005H5.20047C4.35165 12.4005 3.5376 12.7377 2.9374 13.3379C2.33719 13.9381 2 14.7522 2 15.601V17.2012",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),tie=e.createElementVNode("path",{d:"M7.60086 9.19977C9.36843 9.19977 10.8013 7.76687 10.8013 5.9993C10.8013 4.23173 9.36843 2.79883 7.60086 2.79883C5.83329 2.79883 4.40039 4.23173 4.40039 5.9993C4.40039 7.76687 5.83329 9.19977 7.60086 9.19977Z",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),aie=e.createElementVNode("path",{d:"M15.5996 6.79944V11.6001M17.9999 9.19979H13.1992",stroke:"white","stroke-opacity":"0.5","stroke-width":"1.44023","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),iie=[eie,tie,aie],oie=["fill"],sie=["fill"],lie=["src"],rie=["src"],nie=["fill"],die=["fill"],cie=["src"],pie=["src"],mie=["src"],uie=["src"],hie=["fill"],yie=["fill"];function fie(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",Yae,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,Zae),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},[o.elementSize.width<=420?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(a.data.player_short),1)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode(e.toDisplayString(a.data.player_name),1)],64))],2),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,Kae)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,Xae),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,Qae)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.leagueName)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[o.elementSize.width>635?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[0]||(i[0]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[1]||(i[1]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),o.elementSize.width<=635?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.numberOfVideosClass)},e.toDisplayString(a.data.total),3)):e.createCommentVNode("",!0),(e.openBlock(),e.createElementBlock("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",onClick:i[2]||(i[2]=n=>l.emitAddPlayer(a.data)),style:{cursor:"pointer"}},iie))],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[3]||(i[3]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,sie)],10,oie))],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.rowTeamClass),style:e.normalizeStyle(o.elementSize.width>540?"border-bottom: 1px solid rgba(255, 255, 255, 0.1)":""),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftType1Class),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainertype1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPositionType1)},e.toDisplayString(a.data.position),3),e.createElementVNode("div",{class:e.normalizeClass(l.iconFavoritesType1Class)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIconType1),alt:"",src:a.data.team_logo},null,10,lie)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(a.typeView==0?t.$style.tijuanaWrapperType1:t.$style.tijuanaWrapperType1NoBg)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.tijuanaIconType1),alt:"",src:a.data.team_logo},null,10,rie)],2),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedType1Class)},e.toDisplayString(a.data.team_abrev),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01TitlesType1)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.teamNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamNameType1)},[e.createTextVNode(" C/"+e.toDisplayString(a.data.frequency)+" ",1),a.data.category!=2?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("min")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("segs")],64))],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.ageWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.ageType1Class)},e.toDisplayString(a.data.promthistournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.playedGamesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedGamesType1Class)},e.toDisplayString(a.data.promlasttournament),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(l.playedMinutesWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.playedMinutesType1Class)},e.toDisplayString(a.data.team_games),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Type1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsType1)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.leagueNameType1Class)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerBtnVideosType1)},[o.elementSize.width>679?(e.openBlock(),e.createBlock(r,{key:0,icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[4]||(i[4]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size"])):(e.openBlock(),e.createBlock(r,{key:1,mini:!0,icon:a.iconVideos,"icon-size":a.iconSizeMini,"icon-position":a.iconPosition,width:a.buttonWidthMini,height:a.buttonHeightMini,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"font-size":a.buttonFontSize,onClick:i[5]||(i[5]=n=>l.emitEventMedia(a.data))},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","font-size"])),e.createElementVNode("div",{class:e.normalizeClass(l.numberOfVideosType1Class)},e.toDisplayString(a.data.total),3)],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[6]||(i[6]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,die)],10,nie))],2)],2)],6)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.rowwPlayerClass),id:"container-row-player"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftClass),id:"container-left"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionContainerClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.numberPosition)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(l.playerContainerClass)},[e.createElementVNode("img",{class:e.normalizeClass(l.imgPlayerIconClass),src:a.data.player_photo},null,10,cie),e.createElementVNode("div",{class:e.normalizeClass(l.manchesterUnitedClass)},e.toDisplayString(a.data.player_name),3),o.elementSize.width<=420?(e.openBlock(),e.createElementBlock("img",{key:0,class:e.normalizeClass(t.$style.chivasIcon),alt:"",src:a.data.team_logo},null,10,pie)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightClass),id:"container-right"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01)},[o.elementSize.width>420?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.nameTeam)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.imgTeamIcon),alt:"",src:a.data.team_logo},null,10,mie),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamName)},e.toDisplayString(a.data.team_abrev),3)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.position)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.dfC)},e.toDisplayString(a.data.player_position),3)],2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.age)},e.toDisplayString(a.data.player_age),3)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.country)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.manchesterUnitedIcon),alt:"",src:a.data.player_country_flag},null,10,uie)],2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGames)},e.toDisplayString(a.data.player_games),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.player_min),3)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutes)},e.toDisplayString(a.data.league_name),3)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptions)},[e.createElementVNode("div",{class:e.normalizeClass(l.containerBtnVideosClass)},[e.createVNode(r,{icon:a.iconVideos,"icon-size":a.iconSize,"icon-position":a.iconPosition,width:o.elementSize.width<=680?"83px":a.buttonWidth,height:a.buttonHeight,"border-radius":a.buttonRadius,"border-width":a.buttonBorderWidth,"background-color":a.buttonBackground,"font-family":a.buttonfontFamily,"border-color":a.buttonBorderColor,"text-value":a.buttonTextValue,"font-size":a.buttonFontSize,onClick:i[7]||(i[7]=n=>l.emitEventMedia(a.data)),style:e.normalizeStyle(o.elementSize.width<=680?o.elementSize.width<=420?"margin-right: 35px;":"margin-right: 0px;":"")},null,8,["icon","icon-size","icon-position","width","height","border-radius","border-width","background-color","font-family","border-color","text-value","font-size","style"])],2)],2),(e.openBlock(),e.createElementBlock("svg",{class:e.normalizeClass([t.$style.arrowExpandIcon,a.isExpanded?t.$style.rotate:""]),width:"12",height:"8",viewBox:"0 0 12 8",fill:a.colorArrow,xmlns:"http://www.w3.org/2000/svg",onClick:i[8]||(i[8]=n=>l.clickExpand(a.data.id))},[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6 4.93631L10.2929 1.23496C10.6834 0.898244 11.3166 0.898244 11.7071 1.23496C12.0976 1.57167 12.0976 2.11759 11.7071 2.4543L6.70711 6.76532C6.31658 7.10203 5.68342 7.10203 5.29289 6.76532L0.292893 2.4543C-0.0976311 2.11759 -0.0976311 1.57167 0.292893 1.23496C0.683418 0.898244 1.31658 0.898244 1.70711 1.23496L6 4.93631Z",fill:a.colorArrow},null,8,yie)],10,hie))],2)],2)],2)):e.createCommentVNode("",!0)],512)}const gie={$style:qae},_ie=Se(Zs,[["render",fie],["__cssModules",gie]]),bie="_containerLeftTitles_1rde2_60",Sie="_containerLeftTitles420_1rde2_68",Cie="_containerLeftTitles620_1rde2_76",wie="_containerLeftTitlesTeam_1rde2_85",kie="_containerLeftTitlesTeam1180_1rde2_93",Eie="_containerLeftTitlesTeam1090_1rde2_101",Vie="_containerLeftTitlesTeam960_1rde2_109",xie="_containerLeftTitlesTeam860_1rde2_117",Tie="_containerLeftTitlesTeam768_1rde2_125",Nie="_containerLeftTitlesTeam680_1rde2_133",Bie="_containerLeftTitlesTeam620_1rde2_141",Fie="_containerLeftTitlesTeam420_1rde2_149",Pie="_headTitles_1rde2_158",$ie="_headTitles960_1rde2_173",zie="_headTitles420_1rde2_188",Aie="_headTitles540_1rde2_208",Iie="_headTitles460_1rde2_223",Mie="_headTitles620_1rde2_238",Rie="_position_1rde2_253",Lie="_position420_1rde2_262",Oie="_player_1rde2_265",Die="_player420_1rde2_276",jie="_containerRightType1_1rde2_280",Wie="_containerRightTitles_1rde2_287",Uie="_containerRightTitles960_1rde2_296",vie="_block02Titles_1rde2_305",Gie="_block02Titles620_1rde2_313",Hie="_mon1Scouting_1rde2_317",Jie="_mon1Scouting960_1rde2_327",qie="_mon1_1rde2_317",Yie="_mon1420_1rde2_345",Zie="_mon1620_1rde2_355",Kie="_icnIcon_1rde2_365",Xie="_icnIcon960_1rde2_370",Qie="_icnIcon420_1rde2_376",eoe="_teamTitle_1rde2_380",toe="_positionTitle_1rde2_390",aoe="_ageTitle_1rde2_398",ioe="_partidos_1rde2_406",ooe="_playedGamesTitle_1rde2_410",soe="_playedMinutesTitle_1rde2_420",loe="_block01Titles_1rde2_429",roe="_mon_1rde2_317",noe="_containesOptionsTitles_1rde2_445",doe="_templateTablaProductividadType1_1rde2_452",coe="_templateTablaProductividadType1400_1rde2_464",poe="_headTitlesType1_1rde2_478",moe="_headTitlesType1420_1rde2_491",uoe="_headTitlesType1400_1rde2_507",hoe="_headTitlesType1540_1rde2_523",yoe="_headTitlesType1460_1rde2_537",foe="_headTitlesType1680_1rde2_551",goe="_headTitlesType1350_1rde2_564",_oe="_positionType1_1rde2_579",boe="_positionType1400_1rde2_588",Soe="_teamType1_1rde2_598",Coe="_teamType1400_1rde2_607",woe="_frecuenciaType1_1rde2_617",koe="_frecuenciaType1540_1rde2_625",Eoe="_containerLeftTitlesType1_1rde2_634",Voe="_frecuenciaWrapperType1_1rde2_642",xoe="_frecuenciaWrapperType1680_1rde2_651",Toe="_promedioPartidoType1_1rde2_659",Noe="_promedioEstePartidoType1_1rde2_663",Boe="_promedioEstePartidoType1960_1rde2_671",Foe="_promedioEstePartidoWrapperType1_1rde2_675",Poe="_promedioEstePartidoWrapperType11200_1rde2_683",$oe="_promedioEstePartidoWrapperType11090_1rde2_692",zoe="_promedioEstePartidoWrapperType11086_1rde2_702",Aoe="_promedioPartidosType1_1rde2_711",Ioe="_promedioPartidosWrapperType1_1rde2_718",Moe="_promedioPartidosWrapperType1960_1rde2_726",Roe="_promedioPartidosWrapperType11086_1rde2_729",Loe="_partidosJugadosType1_1rde2_732",Ooe="_partidosJugadosType1960_1rde2_738",Doe="_partidosJugadosWrapperType1_1rde2_745",joe="_partidosJugadosWrapperType11200_1rde2_753",Woe="_partidosJugadosWrapperType11180_1rde2_761",Uoe="_partidosJugadosWrapperType11170_1rde2_769",voe="_partidosJugadosWrapperType11140_1rde2_777",Goe="_partidosJugadosWrapperType11086_1rde2_785",Hoe="_partidosJugadosWrapperType1960_1rde2_793",Joe="_partidosJugadosWrapperType1880_1rde2_801",qoe="_partidosJugadosWrapperType1860_1rde2_809",Yoe="_partidosJugadosWrapperType1830_1rde2_817",Zoe="_partidosJugadosWrapperType1790_1rde2_825",Koe="_partidosJugadosWrapperType1930_1rde2_833",Xoe="_partidosJugadosWrapperType1770_1rde2_841",Qoe="_block01TitlesType1_1rde2_844",ese="_monType1_1rde2_852",tse="_monType1960_1rde2_861",ase="_monType1680_1rde2_871",ise="_videosType1_1rde2_874",ose="_videosType1680_1rde2_884",sse="_videosType1600_1rde2_893",lse="_videosType1540_1rde2_902",rse="_videosType1420_1rde2_911",nse="_videosType1400_1rde2_920",dse="_containesOptionsTitlesType1_1rde2_932",cse="_containesOptionsTitlesType1768_1rde2_940",pse="_containesOptionsTitlesType1730_1rde2_947",mse="_containesOptionsTitlesType1690_1rde2_954",use="_icnIconType1_1rde2_961",hse="_icnIconType1420_1rde2_967",yse="_icnIconType1400_1rde2_974",fse="_block02TitlesType1_1rde2_978",gse="_block02TitlesType1680_1rde2_985",_se="_block02TitlesType1350_1rde2_992",bse="_containerRightTitlesType1_1rde2_999",Sse="_containerRightTitlesType1420_1rde2_1008",Cse={containerLeftTitles:bie,containerLeftTitles420:Sie,containerLeftTitles620:Cie,containerLeftTitlesTeam:wie,containerLeftTitlesTeam1180:kie,containerLeftTitlesTeam1090:Eie,containerLeftTitlesTeam960:Vie,containerLeftTitlesTeam860:xie,containerLeftTitlesTeam768:Tie,containerLeftTitlesTeam680:Nie,containerLeftTitlesTeam620:Bie,containerLeftTitlesTeam420:Fie,headTitles:Pie,headTitles960:$ie,headTitles420:zie,headTitles540:Aie,headTitles460:Iie,headTitles620:Mie,position:Rie,position420:Lie,player:Oie,player420:Die,containerRightType1:jie,containerRightTitles:Wie,containerRightTitles960:Uie,block02Titles:vie,block02Titles620:Gie,mon1Scouting:Hie,mon1Scouting960:Jie,mon1:qie,mon1420:Yie,mon1620:Zie,icnIcon:Kie,icnIcon960:Xie,icnIcon420:Qie,teamTitle:eoe,positionTitle:toe,ageTitle:aoe,partidos:ioe,playedGamesTitle:ooe,playedMinutesTitle:soe,block01Titles:loe,mon:roe,containesOptionsTitles:noe,templateTablaProductividadType1:doe,templateTablaProductividadType1400:coe,headTitlesType1:poe,headTitlesType1420:moe,headTitlesType1400:uoe,headTitlesType1540:hoe,headTitlesType1460:yoe,headTitlesType1680:foe,headTitlesType1350:goe,positionType1:_oe,positionType1400:boe,teamType1:Soe,teamType1400:Coe,frecuenciaType1:woe,frecuenciaType1540:koe,containerLeftTitlesType1:Eoe,frecuenciaWrapperType1:Voe,frecuenciaWrapperType1680:xoe,promedioPartidoType1:Toe,promedioEstePartidoType1:Noe,promedioEstePartidoType1960:Boe,promedioEstePartidoWrapperType1:Foe,promedioEstePartidoWrapperType11200:Poe,promedioEstePartidoWrapperType11090:$oe,promedioEstePartidoWrapperType11086:zoe,promedioPartidosType1:Aoe,promedioPartidosWrapperType1:Ioe,promedioPartidosWrapperType1960:Moe,promedioPartidosWrapperType11086:Roe,partidosJugadosType1:Loe,partidosJugadosType1960:Ooe,partidosJugadosWrapperType1:Doe,partidosJugadosWrapperType11200:joe,partidosJugadosWrapperType11180:Woe,partidosJugadosWrapperType11170:Uoe,partidosJugadosWrapperType11140:voe,partidosJugadosWrapperType11086:Goe,partidosJugadosWrapperType1960:Hoe,partidosJugadosWrapperType1880:Joe,partidosJugadosWrapperType1860:qoe,partidosJugadosWrapperType1830:Yoe,partidosJugadosWrapperType1790:Zoe,partidosJugadosWrapperType1930:Koe,partidosJugadosWrapperType1770:Xoe,block01TitlesType1:Qoe,monType1:ese,monType1960:tse,monType1680:ase,videosType1:ise,videosType1680:ose,videosType1600:sse,videosType1540:lse,videosType1420:rse,videosType1400:nse,containesOptionsTitlesType1:dse,containesOptionsTitlesType1768:cse,containesOptionsTitlesType1730:pse,containesOptionsTitlesType1690:mse,icnIconType1:use,icnIconType1420:hse,icnIconType1400:yse,block02TitlesType1:fse,block02TitlesType1680:gse,block02TitlesType1350:_se,containerRightTitlesType1:bse,containerRightTitlesType1420:Sse},Ks={components:{},computed:{icnIconType1Class(){const t=this.elementSize.width;return t<=400?this.$style.icnIconType1400:t<=420?this.$style.icnIconType1420:this.$style.icnIconType1},videosType1Class(){const t=this.elementSize.width;return t<=400?this.$style.videosType1400:t<=420?this.$style.videosType1420:t<=540?this.$style.videosType1540:t<=600?this.$style.videosType1600:t<=680?this.$style.videosType1680:this.$style.videosType1},monType1Class(){const t=this.elementSize.width;return t<=680?this.$style.monType1680:t<=960?this.$style.monType1960:this.$style.monType1},block02TitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.block02TitlesType1350:t<=680?this.$style.block02TitlesType1680:this.$style.block02TitlesType1},containesOptionsTitlesType1Class(){const t=this.elementSize.width;return t<=400?this.$style.containesOptionsTitlesType1400:t<=690?this.$style.containesOptionsTitlesType1690:t<=730?this.$style.containesOptionsTitlesType1730:t<=768?this.$style.containesOptionsTitlesType1768:this.$style.containesOptionsTitlesType1},partidosJugadosWrapperType1Class(){const t=this.elementSize.width;return t<=770?this.$style.promedioPartidosWrapperType1770:t<=790?this.$style.partidosJugadosWrapperType1790:t<=830?this.$style.partidosJugadosWrapperType1830:t<=860?this.$style.partidosJugadosWrapperType1860:t<=880?this.$style.partidosJugadosWrapperType1880:t<=930?this.$style.partidosJugadosWrapperType1930:t<=960?this.$style.partidosJugadosWrapperType1960:t<=1086?this.$style.partidosJugadosWrapperType11086:t<=1140?this.$style.partidosJugadosWrapperType11140:t<=1170?this.$style.partidosJugadosWrapperType11170:t<=1180?this.$style.partidosJugadosWrapperType11180:t<=1200?this.$style.partidosJugadosWrapperType11200:this.$style.partidosJugadosWrapperType1},promedioPartidosWrapperType1Class(){const t=this.elementSize.width;return t<=960?this.$style.promedioPartidosWrapperType1960:t<=1086?this.$style.promedioPartidosWrapperType11086:this.$style.promedioPartidosWrapperType1},partidosJugadosType1Class(){return this.elementSize.width<=960?this.$style.partidosJugadosType1960:this.$style.partidosJugadosType1},templateTablaProductividadType1Class(){return this.elementSize.width<=400?this.$style.templateTablaProductividadType1400:this.$style.templateTablaProductividadType1},promedioEstePartidoType1Class(){return this.elementSize.width<=960?this.$style.promedioEstePartidoType1960:this.$style.promedioEstePartidoType1},headTitlesType1Class(){const t=this.elementSize.width;return t<=350?this.$style.headTitlesType1350:t<=400?this.$style.headTitlesType1400:t<=420?this.$style.headTitlesType1420:t<=460?this.$style.headTitlesType1460:t<=540?this.$style.headTitlesType1540:t<=680?this.$style.headTitlesType1680:this.$style.headTitlesType1},headTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.headTitles420:t<=460?this.$style.headTitles460:t<=540?this.$style.headTitles540:t<=620?this.$style.headTitles620:t<=960?this.$style.headTitles960:this.$style.headTitles},containerLeftTitlesClass(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitles420:t<=620?this.$style.containerLeftTitles620:this.$style.containerLeftTitles},containerLeftTitlesClassTeam(){const t=this.elementSize.width;return t<=420?this.$style.containerLeftTitlesTeam420:t<=620?this.$style.containerLeftTitlesTeam620:t<=680?this.$style.containerLeftTitlesTeam680:t<=768?this.$style.containerLeftTitlesTeam768:t<=860?this.$style.containerLeftTitlesTeam860:t<=960?this.$style.containerLeftTitlesTeam960:t<=1090?this.$style.containerLeftTitlesTeam1090:t<=1180?this.$style.containerLeftTitlesTeam1180:this.$style.containerLeftTitlesTeam},icnIconClass(){const t=this.elementSize.width;return t<=420?this.$style.icnIcon420:t<=960?this.$style.icnIcon960:this.$style.icnIcon},mon1Class(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=620?this.$style.mon1620:this.$style.mon1},mon1ScoutingClass(){const t=this.elementSize.width;return t<=420?this.$style.mon1420:t<=960?this.$style.mon1Scouting960:this.$style.mon1Scouting},promedioEstePartidoWrapperType1Class(){const t=this.elementSize.width;return t<=1086?this.$style.promedioEstePartidoWrapperType11086:t<=1090?this.$style.promedioEstePartidoWrapperType11090:t<=1200?this.$style.promedioEstePartidoWrapperType11200:this.$style.promedioEstePartidoWrapperType1},frecuenciaWrapperType1Class(){return this.elementSize.width<=680?this.$style.frecuenciaWrapperType1680:this.$style.frecuenciaWrapperType1},frecuenciaType1Class(){return this.elementSize.width<=540?this.$style.frecuenciaType1540:this.$style.frecuenciaType1},positionType1Class(){return this.elementSize.width<=400?this.$style.positionType1400:this.$style.positionType1},containerRightType1Class(){return this.elementSize.width<=420?this.$style.containerRightType1420:this.$style.containerRightType1},containerRightTitlesType1Class(){return this.elementSize.width<=420?this.$style.containerRightTitlesType1420:this.$style.containerRightTitlesType1},teamType1Class(){return this.elementSize.width<=400?this.$style.teamType1400:this.$style.teamType1},playerClass(){return this.elementSize.width<=420?this.$style.player420:this.$style.player},positionClass(){return this.elementSize.width<=420?this.$style.position420:this.$style.position},containerRightTitlesClass(){return this.elementSize.width<=960?this.$style.containerRightTitles960:this.$style.containerRightTitles},block02TitlesClass(){return this.elementSize.width<=620?this.$style.block02Titles960:this.$style.block02Titles}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},props:{type:{type:Number,default:0},isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"total"},height:{type:String,default:"71px"},heightTeam:{type:String,default:"65px"},fontColor:{type:String,default:"#FFFFFF"},fontSize:{type:String,default:"12px"},fontFamily:{type:String,default:"Poppins-Regular"}},watch:{},data:()=>({}),async created(){},methods:{}},rp=()=>{e.useCssVars(t=>({"6dc11a4e":t.background,"50d0e647":t.height,aabba3e0:t.fontSize,ae76b998:t.fontColor,"742961b3":t.fontFamily,"15fe2144":t.heightTeam}))},np=Ks.setup;Ks.setup=np?(t,i)=>(rp(),np(t,i)):rp;const wse={ref:"myDivRef"},kse=e.createElementVNode("br",null,null,-1),Ese=e.createElementVNode("br",null,null,-1),Vse=e.createElementVNode("br",null,null,-1);function xse(t,i,a,o,s,l){return e.openBlock(),e.createElementBlock("div",wse,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.mon)},[a.typeStats==="total"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Total")],64)):e.createCommentVNode("",!0),a.typeStats==="average"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("PPP")],64)):e.createCommentVNode("",!0),a.typeStats==="every90"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode("Cada "),kse,e.createTextVNode("90'")],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.mon1Class)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.templateTablaProductividadType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.headTitlesType1Class),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClassTeam),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionType1Class)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.teamType1Class)},"Equipo",2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.frecuenciaWrapperType1Class)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.frecuenciaType1Class)},"Frecuencia",2)):e.createCommentVNode("",!0)],2),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.promedioEstePartidoWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(l.promedioEstePartidoType1Class)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"Promedio partido",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},"este Torneo",2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>1086?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(l.promedioPartidosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.promedioPartidosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Promedio partido"),Ese,e.createTextVNode("Torneo anterior")],2)],2)],2)):e.createCommentVNode("",!0),o.elementSize.width>770?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.partidosJugadosWrapperType1Class)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.partidosJugadosType1)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.promedioPartidoType1)},[e.createTextVNode("Partidos "),Vse,e.createTextVNode("Jugados")],2)],2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containesOptionsTitlesType1Class)},[o.elementSize.width>680?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(l.monType1Class)},"total",2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(l.videosType1Class)},"Videos",2)],2)],2)],2)):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(l.headTitlesClass),id:"container-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.containerLeftTitlesClass),id:"container-left-titles"},[e.createElementVNode("div",{class:e.normalizeClass(l.positionClass)},"Pos.",2),e.createElementVNode("div",{class:e.normalizeClass(l.playerClass)},[a.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadora")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugador")],64))],2)],2),e.createElementVNode("div",{class:e.normalizeClass(l.containerRightTitlesClass),id:"container-right-titles"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.block01Titles)},[o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamTitle)},"Equipo",2)):e.createCommentVNode("",!0),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.positionTitle)},"Posición",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.ageTitle)},"edad",2)):e.createCommentVNode("",!0),o.elementSize.width>960?(e.openBlock(),e.createElementBlock("div",{key:3,class:e.normalizeClass(t.$style.ageTitle)},"País",2)):e.createCommentVNode("",!0),o.elementSize.width>540?(e.openBlock(),e.createElementBlock("div",{key:4,class:e.normalizeClass(t.$style.playedGamesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Partidos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:5,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Minutos",2),e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Jugados",2)],2)):e.createCommentVNode("",!0),o.elementSize.width>635?(e.openBlock(),e.createElementBlock("div",{key:6,class:e.normalizeClass(t.$style.playedMinutesTitle)},[e.createElementVNode("p",{class:e.normalizeClass(t.$style.partidos)},"Liga",2)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(l.block02TitlesClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.containesOptionsTitles)},[e.createElementVNode("div",{class:e.normalizeClass(l.mon1ScoutingClass)},"Videos",2)],2)],2)],2)],2)):e.createCommentVNode("",!0)],512)}const Tse={$style:Cse},Nse=Se(Ks,[["render",xse],["__cssModules",Tse]]),Bse="_equipo_1lpaa_38",Fse="_atlasSeleccin_1lpaa_43",Pse="_equipoAtlasSeleccinMexi_1lpaa_47",$se="_aos_1lpaa_51",zse="_span12_1lpaa_55",Ase="_nacionalidadMex_1lpaa_58",Ise="_manchesterUnited_1lpaa_61",Mse="_manchesterUnited12_1lpaa_68",Rse="_containerInfo_1lpaa_78",Lse="_verPerfil12_1lpaa_87",Ose="_btnProfile_1lpaa_96",Dse="_containerButton_1lpaa_112",jse="_containerButton2_1lpaa_119",Wse="_dataContainer_1lpaa_125",Use="_expandedInfoPlayer_1lpaa_135",vse="_containerDataBg_1lpaa_225",Gse="_containerDataSm_1lpaa_236",Hse="_span_1lpaa_55",Jse="_manchesterUnited14_1lpaa_247",qse="_filter_1lpaa_252",Yse="_verPerfil_1lpaa_87",Zse="_manchesterUnited8_1lpaa_273",Kse="_manchesterUnitedParent1_1lpaa_279",Xse="_manchesterUnited1_1lpaa_68",Qse="_manchesterUnitedParent_1lpaa_279",ele="_frameDiv_1lpaa_301",tle="_infoExpanded_1lpaa_309",ale="_countryFlag_1lpaa_462",ile={equipo:Bse,atlasSeleccin:Fse,equipoAtlasSeleccinMexi:Pse,aos:$se,span12:zse,nacionalidadMex:Ase,manchesterUnited:Ise,manchesterUnited12:Mse,containerInfo:Rse,verPerfil12:Lse,btnProfile:Ose,containerButton:Dse,containerButton2:jse,dataContainer:Wse,expandedInfoPlayer:Use,containerDataBg:vse,containerDataSm:Gse,span:Hse,manchesterUnited14:Jse,filter:qse,verPerfil:Yse,manchesterUnited8:Zse,manchesterUnitedParent1:Kse,manchesterUnited1:Xse,manchesterUnitedParent:Qse,frameDiv:ele,infoExpanded:tle,countryFlag:ale},Xs={components:{GSCButton:bd},props:{isFemale:{type:Boolean,default:!1},background:{type:String,default:"#172531"},typeStats:{type:String,default:"totals"},type:{type:Number,default:1},viewButton:{type:Boolean,default:!0},viewTeam:{type:Boolean,default:!0},viewAge:{type:Boolean,default:!0},viewNationality:{type:Boolean,default:!0},viewPosition:{type:Boolean,default:!0},viewGames:{type:Boolean,default:!0},viewMin:{type:Boolean,default:!0},viewGoals:{type:Boolean,default:!0},viewEffectiveness:{type:Boolean,default:!0},height:{type:String,default:"134px"},fontColor:{type:String,default:"#ffffffb3"},fontColorValue:{type:String,default:"#ffffff"},fontFamily:{type:String,default:"Poppins-Regular"},fontSize:{type:String,default:"10px"},additionalClass:{type:String,default:""},data:{type:Object,default:()=>{}}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},data(){return{}},computed:{},methods:{viewProfile(t){this.$emit("viewprofile",t)},AddPlayer(t){this.$emit("add-player",t)},showGraph(t){this.$emit("show-graph",t)}}},dp=()=>{e.useCssVars(t=>({"07471fca":t.fontFamily,e7097386:t.fontColor,"2ebc8d98":t.fontColorValue,bd12f432:t.fontSize,"00ded865":t.background}))},cp=Xs.setup;Xs.setup=cp?(t,i)=>(dp(),cp(t,i)):dp;const Ae=t=>(e.pushScopeId("data-v-83d82c67"),t=t(),e.popScopeId(),t),ole={ref:"myDivRef"},sle=["src"],lle=Ae(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),rle=Ae(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),nle=Ae(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),dle=Ae(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),cle=Ae(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),ple=Ae(()=>e.createElementVNode("span",null,"xG: ",-1)),mle=Ae(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),ule=Ae(()=>e.createElementVNode("span",null,"xG: ",-1)),hle=Ae(()=>e.createElementVNode("span",null,"Posición en la tabla: ",-1)),yle=Ae(()=>e.createElementVNode("span",null,"Goles anotados: ",-1)),fle=Ae(()=>e.createElementVNode("span",null,"Goles recibidos: ",-1)),gle=Ae(()=>e.createElementVNode("span",null,"Partidos jugados: ",-1)),_le=Ae(()=>e.createElementVNode("span",null,"Efectividad de pases: ",-1)),ble=Ae(()=>e.createElementVNode("span",null,"xG: ",-1));function Sle(t,i,a,o,s,l){const r=e.resolveComponent("GSCButton");return e.openBlock(),e.createElementBlock("div",ole,[a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.expandedInfoPlayer)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.dataContainer),id:"data-container"},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerInfo,a.additionalClass]),id:"container-info"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited)},[a.viewTeam?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.equipoAtlasSeleccinMexi)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Equipo: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.atlasSeleccin)},e.toDisplayString(a.data.teams),3)],2)):e.createCommentVNode("",!0),a.viewAge?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.equipo)},"Edad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.age)+" años",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)}," ("+e.toDisplayString(a.data.dataofbirth)+")",3)],2)):e.createCommentVNode("",!0),a.viewNationality?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Nacionalidad: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.countryFlag)},[e.createElementVNode("img",{src:a.data.countryFlag},null,8,sle)],2)],2)],2)):e.createCommentVNode("",!0),a.viewPosition?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Posición: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.isFemale?a.data.position.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):a.data.position),3)],2)):e.createCommentVNode("",!0)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited12)},[a.viewGames?(e.openBlock(),e.createElementBlock("p",{key:0,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"partidos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.games),3)],2)):e.createCommentVNode("",!0),a.viewMin?(e.openBlock(),e.createElementBlock("p",{key:1,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Minutos Jugados: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.min),3)],2)):e.createCommentVNode("",!0),a.viewGoals?(e.openBlock(),e.createElementBlock("p",{key:2,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},e.toDisplayString(a.data.category)+": ",3),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.goals),3)],2)):e.createCommentVNode("",!0),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("p",{key:3,class:e.normalizeClass(t.$style.nacionalidadMex)},[e.createElementVNode("span",{class:e.normalizeClass(t.$style.span12)},"Efectividad de pases: ",2),e.createElementVNode("span",{class:e.normalizeClass(t.$style.aos)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(o.elementSize.width>360?t.$style.containerButton:t.$style.containerButton2),id:"btn-container"},[a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[0]||(i[0]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:1,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/add-list-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Agregar","font-size":"10px",onClick:i[1]||(i[1]=n=>l.AddPlayer(a.data))},null,8,["style"])):e.createCommentVNode("",!0),a.viewButton?(e.openBlock(),e.createBlock(r,{key:2,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/graph-icon.svg","icon-position":"right",style:e.normalizeStyle([{"margin-top":"7px"},a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 50px":""]),width:"110px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"rgba(255, 255, 255, .2)","text-value":"Ver grafica","font-size":"10px",onClick:i[2]||(i[2]=n=>l.showGraph(a.data))},null,8,["style"])):e.createCommentVNode("",!0)],2)],2)],2)):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.infoExpanded)},[e.createElementVNode("div",{class:e.normalizeClass([t.$style.containerDataBg,a.additionalClass])},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[lle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[rle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[nle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[dle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited1)},[cle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[ple,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited8)},[mle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness)+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[ule,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerDataSm)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.frameDiv)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[hle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.position),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[yle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[fle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.goals_received),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[gle,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.games_played),3)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnitedParent1)},[a.viewEffectiveness?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.manchesterUnited14)},[_le,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.effectiveness.toFixed(0))+"%",3)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[ble,e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.xg),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited1)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.manchesterUnited8)},[e.createElementVNode("span",null,e.toDisplayString(a.data.category)+": ",1),e.createElementVNode("span",{class:e.normalizeClass(t.$style.span)},e.toDisplayString(a.data.total),3)],2)],2)],2),a.viewButton?(e.openBlock(),e.createBlock(r,{key:0,style:e.normalizeStyle(a.additionalClass!=""&&o.elementSize.width>540?"margin-right: 42px":""),width:"88px",height:"30px","border-radius":"30px","border-width":1,"background-color":"#ffffff1a","font-family":"Poppins-Semibold","border-color":"#cbee6b","text-value":"Ver perfil","font-size":"10px",onClick:i[3]||(i[3]=n=>l.viewProfile(a.data.id))},null,8,["style"])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],512)}const Qs={components:{GSCCarousel:Vd,GSCLeaders:Nee,GSCRowTable:_ie,GSCTableHeader:Nse,GSCExpandedInfo:Se(Xs,[["render",Sle],["__cssModules",{$style:ile}],["__scopeId","data-v-83d82c67"]])},props:{isFemale:{type:Boolean,default:!1},preloaddata:{type:Boolean,default:!0},typeStats:{type:String,default:"totals"},isTeam:{type:Boolean,default:!1},typeTable:{type:Number,default:0},preload:{type:Array,default:()=>[]},isSelection:{type:Boolean,default:!1},filtersProp:{type:Object,default:()=>{}},filterTeam:{type:Number,default:0},category:{type:Number,default:1},categoryName:{type:String,default:"Goles"},season:{type:Number,default:1772},type:{type:Number,default:0},defaultFiltersFull:{zone:[1,10,11,12,13,14,15,16,2,3,4,5,6,7,8,9],playingAs:[1,2],sections:[1,2,3,4,5,6],matchResult:[1,2,3],arrayAgeRange:[16,43],typeZone:1,elegible:[],setNationalitiesIds:{},setPositionsIds:[1,2,3,4,5,6,7,8,9],setYear:1900,booleanAreNationalTeamsVisible:!1,setAvailableNationalTeamsPlayersIds:{}},borderRadius:{type:String,default:"8px"},borderWidth:{type:String,default:"2px"},borderColor:{type:String,default:"#cfcfcf"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},numRows:{type:Number,default:5}},setup(){const t=e.ref("myDivRef"),{elementSize:i}=Le(t);return{myDivRef:t,elementSize:i}},watch:{season:{immediate:!1,async handler(t){if(t){this.isloading=!0,await this.$nextTick(),this.playersInfo={},this.teamInfo={},this.statsData={},this.formatStats=[],this.formatFilterStats=[],this.updateSlider=0,this.filterEmitAux={},this.hasShownPreload=!1,await this.$nextTick();try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch{this.changeStateLoading(!1)}}}},filtersProp:{immediate:!1,deep:!0,async handler(t,i){if(t&&(this.isSelection?(!t.setNationalitiesIds||t.setNationalitiesIds.size===0)&&(t.setNationalitiesIds=new Set([138])):t.setNationalitiesIds||(t.setNationalitiesIds=new Set(this.setNationalityIds)),JSON.stringify(t)!==JSON.stringify(i)||this.sonConjuntosDistintos(t.setNationalitiesIds,i.setNationalitiesIds))){this.filterEmitAux=t;const a=[1,23,3,4,5,7,6,9,8,11,10,12,13,15,14,17,16,22];this.filterEmitAux.typeZone=a.includes(this.category)?1:2,this.formatFilterStats=await this.filterRecords(this.filterEmitAux)}}},preload:{handler(t,i){t.length>0&&JSON.stringify(t)!==JSON.stringify(i)&&(this.hasShownPreload=!1)},deep:!0}},computed:{displayData(){return Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0?(this.hasShownPreload=!0,this.changeStateLoading(!1),this.topData):this.preload&&Object.keys(this.preload).length>0&&!this.hasShownPreload?(this.changeStateLoading(!1),this.isTeam?this.formatArrayPaginate(this.preload.teams):this.formatArrayPaginate(this.preload.players)):this.isloading?[]:(this.is_data=!0,[])},topData(){if(Object.entries(this.statsData).length>0&&this.formatFilterStats.length>0){var t={},i={},a=[],o=[],s=[];return this.formatFilterStats.map(l=>{t[l.team_id]?(t[l.team_id].total+=l.total,t[l.team_id].uniqueGames.has(l.game_id)||t[l.team_id].uniqueGames.add(l.game_id)):this.teamInfo[l.team_id]&&(t[l.team_id]=this.initializeTeamData(l,this.teamInfo[l.team_id])),l.player_id!==0&&l.player_id!==62117&&(i[l.player_id]?(i[l.player_id].total+=l.total,i[l.player_id].uniqueGames.has(l.game_id)||i[l.player_id].uniqueGames.add(l.game_id)):i[l.player_id]=this.initializePlayerData(l,this.playersInfo[l.player_id]))}),this.typeStats!=="totals"&&this.calculateAverages(t,i),a=this.processTeamData(t),o=this.processPlayerData(i),this.filterTeam!==0&&!this.isTeam&&(s=o.filter(l=>l.teamid===this.filterTeam)),this.isTeam?this.formatArrayPaginate(a):this.formatArrayPaginate(this.filterTeam!==0?s:o)}else return[]}},data:()=>({url:"https://8grl16o77j.execute-api.us-west-2.amazonaws.com/prod/topsBySeasonAndCategory",is_data:!1,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,filterEmitAux:{},filtersSelect:{playingAs:[],matchResult:[],sections:[],setNationalitiesIds:[],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"},{id:2,name:"Pases acertados"},{id:3,name:"Balones recuperados en disputa"},{id:4,name:"Asistencias"},{id:5,name:"Participaciones en gol"},{id:6,name:"Tiros a gol"},{id:7,name:"Tiros a gol que llegaron a la portería"},{id:8},{id:9,name:"Cabeceos en área propia"},{id:10,name:"Centros"},{id:11,name:"Centros acertados"},{id:12,name:"1vs1 exitosos ofensivos"},{id:13,name:"1vs1 exitosos ofensivos que terminaron en gol"},{id:14,name:"1vs1 defensivos exitoso"},{id:15,name:"Rechaces"},{id:16,name:"Balones ganados en área propia"},{id:17,name:"Balones ganados en área rival"},{id:18,name:"Faltas cometidas"},{id:19,name:"Faltas recibidas"},{id:20,name:"Tarjetas amarillas"},{id:21,name:"Tarjetas rojas"},{id:22,name:"Atajadas"},{id:23,name:"Tiros de Esquina"}],hasShownPreload:!1,shouldUpdateFromPreload:!1}),methods:{changeStateLoading(t){this.isloading=t},compareObjectsMinutes(t,i){return t.total>i.total?-1:t.total<i.total?1:t.minutes<i.minutes?-1:t.minutes>i.minutes?1:0},sonConjuntosDistintos(t,i){const a=Array.from(t),o=Array.from(i);if(a.length!==o.length)return!0;for(let s=0;s<a.length;s++)if(!i.has(a[s]))return!0;return!1},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},changeCarrousel(){this.expand=!1,this.playerexpand=0},compareObjects(t,i){return t.total<i.total?-1:t.total>i.total?1:t.name<i.name?-1:t.name>i.name?1:0},sortAndSlice(t,i){return t.sort((a,o)=>(a.name<o.name?1:-1)&&(a.total<o.total?1:-1)).slice(0,i)},getCategoryName(t){let i="";for(let a=0;a<this.categories.length;a++)t==this.categories[a].id&&(i=this.categories[a].name);return i},translateTopCategories(t){return{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]}[t]||[]},getCoordinatePointPerCategory(t){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}[t]||0},emitEventMedia(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p,h=t.player_id;let d=[],f=this.isTeam?t.id:this.filterTeam;h?this.isTeam?f=h:(d=[h],n=n.filter(g=>!g.toString().includes("_r"))):this.isTeam?f=t.id:(d=[t.id],n=n.filter(g=>!g.toString().includes("_r")));const u={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:d,goalkeeperIds:[],categoryIds:this.translateTopCategories(i),teamId:f||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",u)},emitEventMediaFullTable(t,i,a){let o=this.filtersValues.matchResult,s=this.filtersValues.playingAs,l=this.filtersValues.sections,r=this.filtersValues.zone,n=this.translateTopCategories(i);Object.keys(this.filterEmitAux).length>0&&(o=this.filterEmitAux.matchResult,s=this.filterEmitAux.playingAs,l=this.filterEmitAux.sections,r=this.filterEmitAux.zone);const c=1,p=2,y=3,m=this.isTeam?y:p;let h=[],d=this.isTeam?t.id:this.filterTeam;this.isTeam?d=t.id:(h=[t.id],n=n.filter(u=>!u.toString().includes("_r")));const f={seasonId:this.season,isFeaturedPlayers:!1,mainSectionType:c,playListType:m,gameIds:null,playerIds:h,goalkeeperIds:[],categoryIds:n,teamId:d||0,matchResult:o,categorySingleName:"",isRivalSubject:!1,avoidCategorySingleName:!1,currentPlayIndex:0,playData:null,lastClashedGameId:null,tournamentsLastClashes:null,advancedFilter:{playListTitle:a,playingAs:s,timeSections:l,fieldSections:r,coordinatePoint:this.getCoordinatePointPerCategory(i)}};this.$emit("setopenmedia",f)},replaceImgPlayer(t){return t.replace("https://golstatsimages.blob.core.windows.net/players-profile/","https://golstatsimages.blob.core.windows.net/players-profile-no-bg/")},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},clickMore(t){this.$emit("more",{category:t,categoryName:this.categoryName})},morestats(){this.$emit("more",this.category)},viewprofile(t,i){this.$emit("clickprofile",{id:t,teamId:i,isTeam:this.isTeam})},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getCategoryStats(t){if(t){this.isloading=!0,this.is_data=!1;try{let i=[],a={},o={};this.arePlaysEmpty=!1;const s=await me.create({headers:{Authorization:`${this.token}`}}).get(this.url+"/"+t+"/"+this.category);if(s&&s.data&&s.data.data&&s.data.data.length>0){i=s.data.data.map(r=>this.formatStatsData(r)),s.data.teams.forEach(r=>{a[r[0]]={},a[r[0]].id=r[0],a[r[0]].name=r[1],a[r[0]].abrv=r[2],a[r[0]].img=r[3],a[r[0]].effectiveness=r[4],a[r[0]].games_played=r[5],a[r[0]].games_played_lastseason=r[6],a[r[0]].positiontable=r[7],a[r[0]].goals=r[8],a[r[0]].goalsrecived=r[9],a[r[0]].xg=r[10],a[r[0]].frecuency=r[11],a[r[0]].game_avg=r[12],a[r[0]].game_avg_last_season=r[13]});const l=new Set;s.data.players.forEach(r=>{const n=this.getObjectPlayer(r);this.mapPlayers.set(n.numberId,n);const c=n.numberAge,p=n.teamName[0].acronym,y=a[n.teamName[0].team_id].name,m=n.teamName[0].team_id,h=this.positions[n.numberPositionId-1].fullname,d=this.positions[n.numberPositionId-1].name,f=n.countryId[0].nationality_id,u=n.effectiveness,g=n.min,C=n.games,k=n.date;n.arrayNationalities.forEach(U=>{l.add(U.numberId)}),o[r[0]]={id:r[0],name:r[1],img:r[2],age:c,team:p,teamname:y,teamid:m,position:h,positionfull:d,effectiveness:u,country:f,games_played:C,minutes_played:g,nationalityId:g,date:k,nationality:r[3],player_country_flag:n.player_country_flag,positionId:n.numberPositionId}}),this.setNationalityIds=l,this.arrayAgeRange=[s.data.min_age,s.data.max_age]}else this.arePlaysEmpty=!0,this.changeStateLoading(!1);this.teamInfo=a,this.playersInfo=o,this.formatStats=i,this.formatFilterStats=this.filterRecords(this.filtersSelect),this.statsData=s}catch(i){return this.changeStateLoading(!1),this.is_data=!0,Promise.reject(i)}}},filterRecords(t){if(!this.formatStats.length)return[];const i={playingAs:t.playingAs.length>0,matchResult:t.matchResult.length>0,sections:t.sections.length>0,zone:t.zone.length>0,setNationalitiesIds:t.setNationalitiesIds&&t.setNationalitiesIds.size>0,setPositionsIds:t.setPositionsIds&&t.setPositionsIds.length>0,arrayAgeRange:t.arrayAgeRange&&t.arrayAgeRange.length===2,setYear:t.setYear&&t.setYear>0,elegible:typeof t.elegible=="boolean"&&t.elegible};if(this.isSelection&&!i.setNationalitiesIds&&(t.setNationalitiesIds=new Set([138]),i.setNationalitiesIds=!0),!Object.values(i).some(Boolean))return this.formatStats;const a=new Set(t.setNationalitiesIds),o=new Set(t.setPositionsIds),[s,l]=t.arrayAgeRange||[0,100],r=t.setYear||0;return this.formatStats.filter(n=>{const c=this.mapPlayers.get(n.player_id);if(!c||i.playingAs&&!t.playingAs.includes(n.playing_as)||i.matchResult&&!t.matchResult.includes(n.match_result)||i.sections&&!t.sections.includes(n.section)||i.zone&&!(t.typeZone===1?t.zone.includes(n.origen):t.zone.includes(n.destino))||i.setNationalitiesIds&&!c.arrayNationalitiesIds.some(p=>a.has(p))||i.setPositionsIds&&!o.has(c.numberPositionId))return!1;if(i.arrayAgeRange){const p=c.numberAge;if(p<s||p>l)return!1}return!(i.setYear&&c.date<r||i.elegible&&t.elegible&&!c.arrayNationalitiesIds.includes(138))})},createFilterConfig(t){const i={basic:{playingAs:new Set(t.playingAs),matchResult:new Set(t.matchResult),sections:new Set(t.sections),zone:new Set(t.zone),typeZone:t.typeZone},player:!this.isTeam&&{nationalities:new Set(t.setNationalitiesIds),positions:new Set(t.setPositionsIds),ageRange:t.arrayAgeRange,yearLimit:t.setYear,nationalTeams:{enabled:t.booleanAreNationalTeamsVisible,players:new Set(t.setAvailableNationalTeamsPlayersIds)}},hasFilters:!1};return i.hasFilters=this.checkActiveFilters(i),Object.freeze(i)},checkActiveFilters(t){const{basic:i,player:a}=t;return i.playingAs.size>0||i.matchResult.size>0||i.sections.size>0||i.zone.size>0?!0:a?a.nationalities.size>0||a.positions.size>0||a.nationalTeams.players.size>0:!1},generateCacheKey(t){return JSON.stringify({basic:{playingAs:Array.from(t.basic.playingAs),matchResult:Array.from(t.basic.matchResult),sections:Array.from(t.basic.sections),zone:Array.from(t.basic.zone),typeZone:t.basic.typeZone},player:t.player&&{nationalities:Array.from(t.player.nationalities),positions:Array.from(t.player.positions),ageRange:t.player.ageRange,yearLimit:t.player.yearLimit,nationalTeams:{enabled:t.player.nationalTeams.enabled,players:Array.from(t.player.nationalTeams.players)}}})},applyFilters(t,i){return t.filter(a=>!(!this.passesBasicFilters(a,i.basic)||i.player&&!this.passesPlayerFilters(a,i.player)))},passesBasicFilters(t,i){const{playingAs:a,matchResult:o,sections:s,zone:l,typeZone:r}=i;if(a.size&&!a.has(t.playing_as)||o.size&&!o.has(t.match_result)||s.size&&!s.has(t.section))return!1;if(l.size){const n=r===1?t.origen:t.destino;if(!l.has(n))return!1}return!0},passesPlayerFilters(t,i){const a=this.mapPlayers.get(t.player_id);if(!a)return!1;if(i.nationalTeams.enabled){if(i.nationalTeams.players.size&&!i.nationalTeams.players.has(t.player_id))return!1}else if(!a.arrayNationalitiesIds.some(l=>i.nationalities.has(l)))return!1;const{ageRange:o,yearLimit:s}=i;if(a.numberAge<o[0]||a.numberAge>o[1]||a.date<s||!i.positions.has(a.numberPositionId))return!1},updateSliderF(){this.updateSlider+=1},formatStatsData(t){const i={};return t[1]===0&&(t[2]===1||t[2]===2)&&(t[2]=3-t[2]),t[1]===0&&(t[3]===1||t[3]===2)&&(t[3]=3-t[3]),this.data_headers.forEach((a,o)=>{i[a]=t[o]}),i},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},formatArrayPaginate(t){const i=Math.ceil(t.length/this.numRows);return Array.from({length:i},(a,o)=>{const s=o*this.numRows,l=s+this.numRows;return t.slice(s,l)})},initializeTeamData(t,i){const a={total:t.total,uniqueGames:new Set([t.game_id]),id:i.id,name:i.name.replace(" Femenil",""),img:`https://golstatsimages.blob.core.windows.net/teams-80/${t.team_id}.png`,effectiveness:i.effectiveness,frecuency:i.frecuency,game_avg:i.game_avg,game_avg_last_season:i.game_avg_last_season,games_played:i.games_played,games_played_lastseason:i.games_played_lastseason,positiontable:i.positiontable,goals:i.goals,goalsrecived:i.goalsrecived,xg:i.xg};return this.typeStats==="every90"&&(a.minutes=i.minutes||0),a},initializePlayerData(t,i){const a={total:t.total,originalTotal:t.total,uniqueGames:new Set([t.game_id])};return i?Object.assign(a,{name:i.name,name_short:this.getnameshort(i.name),img:i.img,id:i.id,age:i.age,team:i.team,teamname:i.teamname,teamid:i.teamid,position:i.position,positionId:i.positionId,positionfull:i.positionfull,country:i.country,effectiveness:i.effectiveness,minutes:i.minutes_played,games:i.games_played,date:i.date,nationality:i.nationality,player_country_flag:i.player_country_flag,categoryName:this.categoryName,goals:i.goals||0,goalsrecived:i.goalsrecived||0,xg:i.xg||0,positiontable:i.positiontable||0}):Object.assign(a,this.getDefaultPlayerData(t)),a},getDefaultPlayerData(t){return{id:t.player_id,name:t.player_id,img:"SIN IMAGEN",age:"",teamname:"",team:"",teamid:0,position:"",positionId:0,positionfull:"",country:"",effectiveness:"",minutes:"",games:"",date:"00-00-0000",nationality:"",player_country_flag:"",categoryName:"",goals:0,goalsrecived:0,xg:0,positiontable:0}},calculateAverages(t,i){Object.values(t).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games_played>0?Number((Math.floor(a.total/a.games_played*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.total=a.minutes>0?Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):0)}),Object.values(i).forEach(a=>{a.originalTotal=a.total,this.typeStats==="average"?a.total=a.games>0?Number((Math.floor(a.total/a.games*100)/100).toFixed(2)):0:this.typeStats==="every90"&&(a.minutes>=90?a.total=Number((Math.floor(a.total*90/a.minutes*100)/100).toFixed(2)):a.total=-1)}),this.typeStats==="every90"&&Object.keys(i).forEach(a=>{i[a].minutes<90&&delete i[a]})},processTeamData(t){return Object.values(t).sort((i,a)=>a.total-i.total).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},processPlayerData(t){return Object.values(t).sort(this.compareObjectsMinutes).slice(0,60).map((i,a)=>{const o=a+1;return{...i,top:o<10?`0${o}`:`${o}`}})},HandlerAddplayer(t){this.$emit("add-player",t)},HandlerShowGraph(t){this.$emit("show-graph",t)}},async created(){try{setTimeout(async()=>{await this.getCategoryStats(this.season)},850)}catch(t){throw new Error(t)}}},pp=()=>{e.useCssVars(t=>({"14b8a4d8":t.borderRadius,c64876f8:t.borderWidth,c87673be:t.borderColor}))},mp=Qs.setup;Qs.setup=mp?(t,i)=>(pp(),mp(t,i)):pp;const Mi=t=>(e.pushScopeId("data-v-01e14e57"),t=t(),e.popScopeId(),t),Cle={ref:"myDivRef"},wle={class:"text"},kle={class:"groupsLeague"},Ele={class:"row-table-carrousel"},Vle={key:1,class:"container-no-search-result"},xle={key:0,class:"overlay-loading-top"},Tle=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),Nle=Mi(()=>e.createElementVNode("div",{class:"overlay-loading-top__text"},"Loading...",-1)),Ble=[Tle,Nle],Fle=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-title"},"No existen resultados",-1)),Ple=Mi(()=>e.createElementVNode("div",{class:"container-no-search-result-subtitle"},[e.createTextVNode(" No existen resultados para este tipo de"),e.createElementVNode("br"),e.createTextVNode(" jugada, considerando el torneo y otros"),e.createElementVNode("br"),e.createTextVNode(" filtros que has seleccionado. ")],-1));function $le(t,i,a,o,s,l){const r=e.resolveComponent("GSCLeaders"),n=e.resolveComponent("GSCRowTable"),c=e.resolveComponent("GSCExpandedInfo"),p=e.resolveComponent("GSCCarousel"),y=e.resolveComponent("GSCTableHeader");return e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(a.type==0?"gsc-top":"gsc-top-full")},[e.createElementVNode("div",Cle,[l.topData&&a.type==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:"btnViewFullList",onClick:i[0]||(i[0]=m=>l.clickMore(a.category))},[e.createElementVNode("div",wle,[e.createElementVNode("div",kle,e.toDisplayString(a.categoryName)+" → ",1)])])):e.createCommentVNode("",!0),a.type==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.displayData.length>0?(e.openBlock(),e.createBlock(p,{key:0,items:l.displayData,"is-pagination-visible":!0,"are-navigation-arrows-visible":!0,onInput:l.changeCarrousel},{default:e.withCtx(({item:m})=>[e.createElementVNode("div",Ele,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(h,d)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:d},[h.top==="01"?(e.openBlock(),e.createBlock(r,{key:0,onAddPlayer:l.HandlerAddplayer,onMediadata:i[1]||(i[1]=f=>l.emitEventMedia(f,a.category,a.categoryName)),type:a.typeTable,"is-expanded":t.playerexpand==h.id&&t.expand,ref_for:!0,ref:"GSCLeaders",data:a.typeTable==0?{top:"01",photo:h.img,logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",name:h.name,player_short:h.name_short,player_id:h.id,categoryId:a.category,total:h.total}:{top:"01",logo:h.img,total:h.total,name_team:h.name,player_id:h.id},"category-name":a.categoryName,buttonMaxWidth:a.typeTable!=0?o.elementSize.width>360?"210px":"130px":o.elementSize.width>360?"180px":"110px",buttonFontSize:"12px",iconSize:"20px",onExpand:l.clickexpand,onMore:l.morestats},null,8,["onAddPlayer","type","is-expanded","data","category-name","buttonMaxWidth","onExpand","onMore"])):(e.openBlock(),e.createBlock(n,{key:1,type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==h.id&&t.expand,onAddPlayer:l.HandlerAddplayer,onMediadata:i[2]||(i[2]=f=>l.emitEventMedia(f,a.category,a.categoryName)),data:a.typeTable==0?{position:h.top,player_name:h.name,player_short:h.name_short,player_photo:h.img,total:h.total,id:h.id,player_age:h.age,team_abrev:h.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+h.teamid+".png",player_position:h.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+h.country+".jpg",player_games:h.minutes,player_min:h.games,league_name:" Liga MX "}:{position:h.top,team_logo:h.img,team_abrev:h.name,frequency:h.frecuency,promthistournament:h.game_avg,promlasttournament:h.game_avg_last_season,teams_games:"-",category:a.category,total:h.total,id:h.id},height:"71px",background:d%2===0?a.backgroundEven:a.backgroundOdd,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"])),t.expand&&t.playerexpand==h.id?(e.openBlock(),e.createBlock(c,{key:2,"is-female":a.isFemale,type:a.typeTable,"view-effectiveness":h.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:h.teamname,age:h.age,dataofbirth:h.date,nationality:h.nationality,countryFlag:h.player_country_flag,position:h.position,games:h.games,min:h.minutes,goals:h.originalTotal||h.total,effectiveness:h.effectiveness,category:a.categoryName,id:h.id}:{position:h.position,goals:h.goals,goals_received:h.goalsrecived,games_played:h.games_played,category:a.categoryName,effectiveness:h.effectiveness,xg:h.xg,total:h.originalTotal||h.total,attendance:"-",id:h.id},onViewprofile:f=>l.viewprofile(f,h.teamid),background:d%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))])]),_:1},8,["items","onInput"])):(e.openBlock(),e.createElementBlock("div",Vle,[t.isloading?(e.openBlock(),e.createElementBlock("div",xle,Ble)):e.createCommentVNode("",!0),!t.isloading&&t.is_data?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[Fle,Ple],64)):e.createCommentVNode("",!0)]))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createVNode(y,{background:"#183143",type:a.typeTable,"is-female":a.isFemale,"type-stats":a.typeStats},null,8,["type","is-female","type-stats"]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.displayData,(m,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:h},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m,(d,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:f},[e.createVNode(n,{type:a.typeTable,"type-view":a.type,"is-expanded":t.playerexpand==d.id&&t.expand,onMediadata:i[3]||(i[3]=u=>l.emitEventMediaFullTable(u,a.category,a.categoryName)),onAddPlayer:l.HandlerAddplayer,data:a.typeTable==0?{position:d.top,player_name:d.name,player_short:d.name_short,player_photo:d.img,total:d.total,id:d.id,player_age:d.age,team_abrev:d.team,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+d.teamid+".png",player_position:d.position,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+d.country+".jpg",player_games:d.games,player_min:d.minutes,league_name:" Liga MX "}:{position:d.positiontable,team_logo:d.img,team_abrev:d.name,frequency:d.frecuency,promthistournament:d.game_avg,promlasttournament:d.game_avg_last_season,category:a.category,team_games:d.games_played,total:d.total,id:d.id},height:"71px",background:((h+1)*5+f)%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["type","type-view","is-expanded","onAddPlayer","data","background","onExpand"]),t.expand&&t.playerexpand==d.id?(e.openBlock(),e.createBlock(c,{key:0,"is-female":a.isFemale,type:a.typeTable,additionalClass:"fullTable","view-effectiveness":d.positionId!==1,onAddPlayer:l.HandlerAddplayer,onShowGraph:l.HandlerShowGraph,data:a.typeTable==0?{teams:d.teamname,age:d.age,dataofbirth:d.date,nationality:d.nationality,countryFlag:d.player_country_flag,position:d.position,positionfull:d.positionfull,games:d.games,min:d.minutes,goals:d.originalTotal||d.total,effectiveness:d.effectiveness,category:l.getCategoryName(a.category),id:d.id}:{position:d.positiontable,goals:d.goals,goals_received:d.goalsrecived,games_played:d.games_played,category:a.categoryName,effectiveness:d.effectiveness,xg:d.xg,total:d.originalTotal||d.total,category:l.getCategoryName(a.category),attendance:"-",id:d.id},onViewprofile:u=>l.viewprofile(u,d.teamid),background:f%2===0?a.backgroundEven:a.backgroundOdd},null,8,["is-female","type","view-effectiveness","onAddPlayer","onShowGraph","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64))),128))],64))),128))],64))],512)],2)}const zle=Se(Qs,[["render",$le],["__scopeId","data-v-01e14e57"]]),Ale="_filtersContainer_b9wc6_1",Ile="_filtersContainer1232_b9wc6_1",Mle="_closeFiltersPc_b9wc6_1",Rle="_textleyemdmultipleleagues_b9wc6_1",Lle="_textleyemdmultipleleagues380_b9wc6_1",Ole="_filtersContainer760_b9wc6_1",Dle="_filtersContainer460_b9wc6_1",jle="_containerSectionPlay_b9wc6_1",Wle="_containerSectionPlay1232_b9wc6_1",Ule="_containerSectionPlay960_b9wc6_1",vle="_containerSectionPlay320_b9wc6_1",Gle="_containerSectionPlay350_b9wc6_1",Hle="_containerSection_b9wc6_1",Jle="_containerSection1232_b9wc6_1",qle="_containerSection960_b9wc6_1",Yle="_containerSection320_b9wc6_1",Zle="_containerSection350_b9wc6_1",Kle="_templateLosMejores_b9wc6_1",Xle="_templateLosMejores1232_b9wc6_1",Qle="_templateLosMejores960_b9wc6_1",ere="_templateLosMejores420_b9wc6_1",tre="_templateLosMejores320_b9wc6_1",are="_templateLosMejores540_b9wc6_1",ire="_templateLosMejores350_b9wc6_1",ore="_topFiltersParent_b9wc6_1",sre="_topFiltersParent1232_b9wc6_1",lre="_topFiltersParent960_b9wc6_1",rre="_topFiltersParent460_b9wc6_1",nre="_topFiltersParent420_b9wc6_1",dre="_containerTheBest_b9wc6_1",cre="_containerTheBest1232_b9wc6_1",pre="_containerTheBest960_b9wc6_1",mre="_containerTheBest320_b9wc6_1",ure="_titleSection_b9wc6_1",hre="_titleSection540_b9wc6_1",yre="_containerTables_b9wc6_1",fre="_containerTables960_b9wc6_1",gre="_containerTables760_b9wc6_1",_re="_containerTables320_b9wc6_1",bre="_toniKroosWrapper_b9wc6_1",Sre="_toniKroosWrapper1080_b9wc6_1",Cre="_toniKroosWrapper975_b9wc6_1",wre="_toniKroosWrapper760_b9wc6_1",kre="_toniKroosWrapper420_b9wc6_1",Ere="_toniKroosWrapper320_b9wc6_1",Vre="_frameChild_b9wc6_1",xre="_filtros_b9wc6_1",Tre="_groupParent_b9wc6_1",Nre="_shapeIcon_b9wc6_1",Bre="_btnFilters_b9wc6_1",Fre="_btnFiltersPC_b9wc6_1",Pre="_quitarFiltros_b9wc6_1",$re="_quitarFiltros730_b9wc6_1",zre="_quitarFiltros480_b9wc6_1",Are="_quitarFiltros380_b9wc6_1",Ire="_btnCloseFilters_b9wc6_1",Mre="_mejoresJugadores_b9wc6_1",Rre="_mejoresJugadores730_b9wc6_1",Lre="_mejoresJugadores480_b9wc6_1",Ore="_mejoresJugadoresSM_b9wc6_1",Dre="_toniKroos_b9wc6_1",jre="_teamBar_b9wc6_1",Wre="_menuSection_b9wc6_1",Ure="_menuSection960_b9wc6_1",vre="_menuSectionPlay_b9wc6_1",Gre="_menuSectionPlay960_b9wc6_1",Hre="_containerMenu_b9wc6_1",Jre="_containerMenu760_b9wc6_1",qre="_containerFilters_b9wc6_1",Yre="_teamBarParent_b9wc6_1",Zre="_topFilters_b9wc6_1",Kre="_topFilters1232_b9wc6_1",Xre="_topFilters420_b9wc6_1",Qre="_topFilters460_b9wc6_1",ene="_losMejores_b9wc6_1",tne="_losMejores380_b9wc6_1",ane="_losMejores530_b9wc6_1",ine="_losMejores730_b9wc6_1",one="_menuSectionHeader_b9wc6_1",sne="_menuSectionHeader1232_b9wc6_1",lne="_menuSectionHeader960_b9wc6_1",rne="_menuSectionHeader730_b9wc6_1",nne="_dropdown_b9wc6_1",dne="_dropdown730_b9wc6_1",cne="_dropdown1_b9wc6_1",pne="_dropdown1730_b9wc6_1",mne="_dropdownParent_b9wc6_1",une="_dropdownParent730_b9wc6_1",hne="_menuSectionParentHeader_b9wc6_1",yne="_menuSectionParentHeader1232_b9wc6_1",fne="_menuSectionParentHeader960_b9wc6_1",gne="_menuSectionParentHeader730_b9wc6_1",_ne="_menuSectionParentHeader430_b9wc6_1",bne="_descubreVideos_b9wc6_1",Sne="_descubreVideos1232_b9wc6_1",Cne="_descubreVideos960_b9wc6_1",wne="_allCategories_b9wc6_1",kne="_containerScountingBtn_b9wc6_3",Ene="_btnDeleteAplica_b9wc6_13",Vne="_SearchBtnBar_b9wc6_33",xne="_btnLeyendTxt_b9wc6_52",Tne="_BtnSearchScounting_b9wc6_61",Nne="_containerPredefined_b9wc6_85",Bne="_containerPredefinedScounting_b9wc6_92",Fne="_titleContainerPredefined_b9wc6_100",Pne="_subtitleContainerPredefined_b9wc6_111",$ne={filtersContainer:Ale,filtersContainer1232:Ile,closeFiltersPc:Mle,textleyemdmultipleleagues:Rle,textleyemdmultipleleagues380:Lle,filtersContainer760:Ole,filtersContainer460:Dle,containerSectionPlay:jle,containerSectionPlay1232:Wle,containerSectionPlay960:Ule,containerSectionPlay320:vle,containerSectionPlay350:Gle,containerSection:Hle,containerSection1232:Jle,containerSection960:qle,containerSection320:Yle,containerSection350:Zle,templateLosMejores:Kle,templateLosMejores1232:Xle,templateLosMejores960:Qle,templateLosMejores420:ere,templateLosMejores320:tre,templateLosMejores540:are,templateLosMejores350:ire,topFiltersParent:ore,topFiltersParent1232:sre,topFiltersParent960:lre,topFiltersParent460:rre,topFiltersParent420:nre,containerTheBest:dre,containerTheBest1232:cre,containerTheBest960:pre,containerTheBest320:mre,titleSection:ure,titleSection540:hre,containerTables:yre,containerTables960:fre,containerTables760:gre,containerTables320:_re,toniKroosWrapper:bre,toniKroosWrapper1080:Sre,toniKroosWrapper975:Cre,toniKroosWrapper760:wre,toniKroosWrapper420:kre,toniKroosWrapper320:Ere,frameChild:Vre,filtros:xre,groupParent:Tre,shapeIcon:Nre,btnFilters:Bre,btnFiltersPC:Fre,quitarFiltros:Pre,quitarFiltros730:$re,quitarFiltros480:zre,quitarFiltros380:Are,btnCloseFilters:Ire,mejoresJugadores:Mre,mejoresJugadores730:Rre,mejoresJugadores480:Lre,mejoresJugadoresSM:Ore,toniKroos:Dre,teamBar:jre,menuSection:Wre,menuSection960:Ure,menuSectionPlay:vre,menuSectionPlay960:Gre,containerMenu:Hre,containerMenu760:Jre,containerFilters:qre,teamBarParent:Yre,topFilters:Zre,topFilters1232:Kre,topFilters420:Xre,topFilters460:Qre,losMejores:ene,losMejores380:tne,losMejores530:ane,losMejores730:ine,menuSectionHeader:one,menuSectionHeader1232:sne,menuSectionHeader960:lne,menuSectionHeader730:rne,dropdown:nne,dropdown730:dne,dropdown1:cne,dropdown1730:pne,dropdownParent:mne,dropdownParent730:une,menuSectionParentHeader:hne,menuSectionParentHeader1232:yne,menuSectionParentHeader960:fne,menuSectionParentHeader730:gne,menuSectionParentHeader430:_ne,descubreVideos:bne,descubreVideos1232:Sne,descubreVideos960:Cne,allCategories:wne,containerScountingBtn:kne,btnDeleteAplica:Ene,SearchBtnBar:Vne,btnLeyendTxt:xne,BtnSearchScounting:Tne,containerPredefined:Nne,containerPredefinedScounting:Bne,titleContainerPredefined:Fne,subtitleContainerPredefined:Pne},zne=e.ref(Gs()),Ane=e.ref(wq()),Ine=e.ref(Zc()),Mne={components:{GSCTableHeader:Qo,GscSwitchComponent:hs,GSCFilterperteam:hd,DropdownYears:Yc,GSCFilters:vs,DropdownPositions:qc,GSCExpandedInfo:ns,GSCLabel:Nd,GSCSeasonSelect:ed,GSCTopCategory:zle,GSCTournamentSelect:id,GSCRowTable:as},computed:{...Kn.computed,filterChangePredefined(){return this.filtersPredefinedF},filterChange(){const t={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},i=JSON.stringify(t);if(JSON.stringify(this.filters)!=i)return this.filters},filterGolstats(){return this.changeFemale(),this.FVfilterGolstats},filterButtonProps(){return{...zne.value}},filterButtonPropsAux(){return{...Ane.value}},filterButtonPropsTournaments(){return{...Ine.value}}},props:{currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!0},isClubes:{type:Boolean,default:!0},tournamentSelected:{type:Object,default:()=>({id:1001})},teamId:{type:Number,default:0},defaultSection:{type:String,default:"Jugadores"},backgroundOdd:{type:String,default:"#172531"},backgroundEven:{type:String,default:"#0d1d29"},tournamentsApiUrl:{type:String,default:""}},watch:{async seasonActive(){if(this.seasonActive!=0){this.teams=[];const t=await this.fetchTeams();for(let i=0;i<t.teams.length;i++)this.teams.push({id:t.teams[i].team_id,team:t.teams[i].colloquial_name,logo:t.teams[i].logo})}}},setup(){const t=e.ref("myDivRefTopsFull"),{elementSize:i}=Le(t);return{myDivRefTopsFull:t,elementSize:i}},data(){return{cachedPlayersMap:[],dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},isAvanced:!1,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},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},universeDataSelection:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:6,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},FVbooleanAreNationalTeamsVisible:!1,teamsscouting:[],filterScounting:{tournaments:[1],seasonId:0,categories:[{name:"Goles",ids:[12]},{name:"Asistencias",ids:[10]},{name:"Participaciones en gol",ids:[27]},{name:"Cabeceos en área rival",ids:[330,333,423,577,578,331,334,424]},{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:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{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}],statisticType:"total",isStatisticTypeVisible:!1},detailsObjectSelection:{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}],statisticType:"total",isStatisticTypeVisible:!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}],fvTypeStats:"totals",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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],tournamentsToFilterSelection:[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],isCup:!1,arrayPredefinedOrigin:[],indexPredefinedFiltersSelected:0,predefinedFiltersMatchLapse:[],predefinedFiltersPlayingAs:[],predefinedFiltersSections:[],updateTables:0,seasonsArray:[{id:1933,tournament:1}],updateTablesfull:0,teamselect: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:[],seasonActive:0,updateFilterTeamsScouting:0,filtersTypes:N,personalDataFilters:Yt,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,tournamentSelectedObj:{},FVfilterGolstats:[],updateFilterField:0,updateFilterField2:0,rowScoutingData:[],openMenuMobil:!1,selectedTournament:{seasons:[]},selectedSeasonObj:{},preloadedTops:[],isPreloadedDataAvailable:!1,topsCache:new Map,isLoading:!1,currentView:"Jugadores",isTransitioning:!1}},methods:{onChangeYear(t){this.personalDataFilters.selectedYear=t},onChangePositions(){},async fillPersonalDataFilters(){try{this.personalDataFilters=await AD(this.seasonsArray,this.tokenFree)}catch(t){console.error("error",t)}},toggleAdvancedView(){this.isAvanced=!this.isAvanced},changeFemale(){for(let t=0;t<this.FVfilterGolstats.length;t++)this.tournamentSelectedObj.is_female&&this.FVfilterGolstats[t].name.replace("Jugadores","Jugadoras")},getnameshort(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),l+". "+s},setUpTournamentsToFilter(){this.tournamentsToFilter.forEach(t=>{const i=t.id===this.selectedTournament.id;t.isSelected=i,t.isDefaultTournament=i})},async onClickDeleteFilter(){if(this.optionSelectedSubmenu=="Predeterminados")this.resetPredefinedTeamAll();else{this.rowScoutingData=[];for(let o=0;o<this.detaildProductivityCategories.offensive.categories.length;o++)this.detaildProductivityCategories.offensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.defensive.categories.length;o++)this.detaildProductivityCategories.defensive.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.possession.categories.length;o++)this.detaildProductivityCategories.possession.categories[o].isSelected=!1;for(let o=0;o<this.detaildProductivityCategories.offensesConditions.length;o++)this.detaildProductivityCategories.offensesConditions[o]=!1;this.setUpTournamentsToFilter();const i=this.$refs.personalDataFilter;i.clearFilters(ie.All),i.clearFilters(ie.AGE_RANGE),i.clearFilters(ie.YEAR),i.clearFilters(ie.NATIONALITY),i.clearFilters(ie.POSITION),this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(o,s)=>s+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1;var t=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1);const a=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let o=0;o<a.teams.length;o++)this.teamsscouting.push({id:a.teams[o].team_id,team:a.teams[o].colloquial_name,logo:a.teams[o].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200)}},clickOpenFilters(){this.showfiltersPc=!0},clickCloseFilters(){this.showfiltersPc=!1},async selectedSeason(t){this.seasonActive!==t.id&&(this.seasonActive=t.id,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.$emit("change-season-id",t.id))},async changeTournament(t){t.id!==this.selectedTournament.id&&(this.selectedTournament=t,this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores"),await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter())},async changeTournamentMovil(t){this.tournamentSelectedObj={propName:"id",value:t.id,is_female:t.is_female==1},this.seasonBytournament=t.seasons,this.teamselect=0,this.optionSelected!="Equipos"&&(t.is_female?this.optionSelected="Jugadoras":this.optionSelected="Jugadores")},async selectedSeasonMovil(t){this.seasonActive=t.id,await this.loadPreloadedTops()},setRelevantCategoriesPlayer(t){return t==="POR"?[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(t){this.$emit("openmedia",t)},HandlerShowGraph(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id);if(o){const s={id:t.id,player_name:o.stringFullName,position:t.position,is_female:(o==null?void 0:o.is_female)||0,team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,nationality:o.stringNationalityName,photo:o.stringImageUrl,countryFlag:o.player_country_flag};this.$emit("show-graph",s)}else this.$emit("show-graph",t)},HandlerAddPlayer(t){var i,a;const o=(i=this.cachedPlayersMap)==null?void 0:i.get(t.id||t.player_id);if(o){const s={player_id:o.numberId,name:o.stringFullName,position:o.numberPositionId,is_female:(o==null?void 0:o.is_female)||0,dob:"",team_id:(a=o==null?void 0:o.teamName[0])==null?void 0:a.team_id,jersey:0,nationality:o.stringNationalityName};this.$emit("add-player",s)}},setMediaData(t){let i=[t.id],a=t.team_id;const o={seasonId:t.season_id,isFeaturedPlayers:!1,mainSectionType:1,playListType:2,gameIds:null,playerIds:i,goalkeeperIds:[],categoryIds:this.setRelevantCategoriesPlayer(t.player_position),teamId:a||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",o)},clickprofile(t){t.isTeam?this.$emit("openProfileTeam",{teamId:t.id,seasonId:this.seasonActive}):this.$emit("openProfilePlayer",{playerId:t.id,teamId:t.teamId,seasonId:this.seasonActive})},viewprofile(t,i,a){this.$emit("openProfilePlayer",{playerId:t,teamId:a,seasonId:i||this.seasonActive})},openMenuFilters(){this.openMenuMobil=!this.openMenuMobil,this.showfiltersPc=!0},clickexpand(t){this.expand=t.expand,this.playerexpand=t.id},async getScoutingData(){this.arrayFiltersPlays=[],this.loadingActive=!0;const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.post("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",this.filterScounting,{headers:{"Content-Type":"application/json"}});if(this.filterScounting.tournaments.length>0){var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersTournaments");a!==-1?this.arrayFiltersPlays[a].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 s=0;s<i.length;s++){i[s];let l=i[s].dob.split("T")[0].split("-");var o={position:s+1,player_name:this.abrevName(i[s].name),player_photo:"https://golstatsimages.blob.core.windows.net/players-profile/"+i[s].player_id+".png",total:i[s].total.toFixed(0),id:i[s].player_id,player_age:this.calcularEdad(i[s].dob),team_abrev:i[s].teams[0].acronym,team_name:i[s].team_name,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i[s].teams[0].team_id+".png",player_position:i[s].position_id,player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+i[s].nationality_id+".jpg",date:l[2]+"."+l[1]+"."+l[0].substring(2,4),team_id:i[s].team_id,nationality_name:ct[i[s].nationality_id],player_games:i[s].games_played,player_min:i[s].minutes_played,league_name:i[s].tournament_name,seasons:i[s].seasons,season_id:i[s].seasons[0]};this.rowScoutingData.push(o)}if(this.seasonsFilterSelected!=0){const s=await this.fetchTeamsScouting(this.seasonsFilterSelected);this.teamselect=0,this.teamselectrec=0,this.teamsscouting=[];for(let l=0;l<s.teams.length;l++)this.teamsscouting.push({id:s.teams[l].team_id,team:s.teams[l].colloquial_name,logo:s.teams[l].logo})}this.loadingActive=!1},abrevName(t){var i=t.split(","),a=i[0].split(" "),o=i[1].trim().split(" "),s="";a.length==2||a.length==1?a[0].length<4?s=a[0]+" "+a[1]:s=a[0]:a.length==3?s=a[0]+" "+a[1]:a.length==4&&(s=a[1]+" "+a[2]+" "+a[3]);var l=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var r=l+". "+s;return r},calcularEdad(t){var i=new Date(t),a=new Date,o=a-i,s=Math.floor(o/(1e3*60*60*24*365.25));return s},async onFiltersTournamentsTops(t){var i;const a=t.find(n=>n.isSelected),o=a?a.id:null,s=a?a.name:null,l=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var r=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");r!==-1?this.arrayFiltersPlays[r].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&l!==null&&(this.seasonActive=l,this.selectedTournament=o,this.tournamentSelectedObj={propName:"id",value:o,is_female:!1},this.teamselect=0,await this.loadPreloadedTops(),this.resetPredefinedTeamAll(),this.setUpTournamentsToFilter(),this.$emit("change-season-id",l),this.optionSelected="Jugadores")},async onFiltersTournaments(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.length;a++)t[a].isSelected&&i.push(t[a].id);if(this.seasonsArray=t.filter(a=>a.isSelected).map(a=>({id:a.seasons[0].id,tournamentId:a.tournamentId||1})),i.length==0&&(i=[1]),i.length==1)for(let a=0;a<t.length;a++)t[a].isSelected&&(this.nameLeagueSelected=t[a].name,this.seasonsFilterSelected=t[a].seasons[0].id);else this.seasonsFilterSelected=0,i.length>0&&(this.nameLeagueSelected=i.length+" Ligas");this.filterScounting.tournaments=i,this.filterScounting.seasonId=t[0].seasons[0].id},onFiltersPersonalData(t){if(this.modifidFiltersFlag=!0,t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filterScounting.range_age=[o,s],this.filterScounting.age_or_year=1}else this.filterScounting.range_age=[];t.hasOwnProperty("year")?(this.filterScounting.year=t.year,this.filterScounting.age_or_year=0):this.filterScounting.year=0;var i=[];if(t.hasOwnProperty("nationalities")){for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[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=[],t.hasOwnProperty("eligibility")&&(this.filterScounting.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filterScounting.positions=a,this.filterScounting.nationalities=i},onFiltersUniverse(t){this.modifidFiltersFlag=!0,this.filterScounting.minutes_played=Number(t.minutesPlayed),this.filterScounting.last_months=Number(t.lastMonths),this.filterScounting.minutes_played_avg=Number(t.percentMinutesPlayed),this.filterScounting.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1},onFiltersProductivity(t){this.modifidFiltersFlag=!0;var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filterScounting.categories=i,this.filterScounting.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filterScounting.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filterScounting.red_cards=t.offensesConditions.areRedCardsSelected},onFiltersGolStats(t){if(t.length>0){var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");i!==-1?this.arrayFiltersPlays[i].name=t[0].name:this.arrayFiltersPlays.push({name:t[0].name,type:"onFiltersPredefined"}),this.filtersPredefinedF=t[0].filters}else{var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){this.filtersPredefinedF=this.filters;for(let s=0;s<this.FVfilterGolstats.length;s++)this.FVfilterGolstats[s].isSelected=!1;var a=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}},shouldRender(t){return t<=this.currentIndex},renderNext(){this.currentIndex++,this.currentIndex<this.categoriesDefault.length&&setTimeout(()=>{this.$nextTick(()=>{this.renderNext()})},this.delay)},async onFiltersPlaysTypes(t){if(t.length>0){this.categoryPredefinedActive=!0,this.loadingActive=!0,this.categoryPredefined=t[0].id;var i=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&i!==-1){this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(i,1);var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");if(a!==-1){for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}this.updateTables+=1,setTimeout(()=>{this.loadingActive=!1},1e3),await this.getPredefinedfilters(t[0]),this.FVfilterGolstats.length>0&&(this.onFiltersGolStats([this.FVfilterGolstats[0]]),this.FVfilterGolstats[0].isSelected=!0)}else{var i=this.arrayFiltersPlays.findIndex(s=>s.type==="onFiltersPredefinedCategory");if(this.categoriesDefault.length>0&&i!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters,this.arrayFiltersPlays.splice(i,1);for(let l=0;l<this.categoriesDefault.length;l++)this.categoriesDefault[l].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(l=>l.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let l=0;l<this.FVfilterGolstats.length;l++)this.FVfilterGolstats[l].isSelected=!1;a!==-1&&this.arrayFiltersPlays.splice(a,1),this.updateFilterGolstats+=1}}}},deleteCategoryFilter(){this.categoryName="",this.showFullCategory=0,this.showFullTable=!1,delete this.filters.aux},onShowFullTable(t){this.categoryName=t.categoryName,this.showFullCategory=t.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(t,i){return Math.floor(Math.random()*(i-t+1))+t},applyFiltersBtn(t){},onFiltersPlays(t){if(this.arrayCategoryFilter=[],this.arrayCategoryFilterFull=[],t.playsCategories.length==0){for(let a=0;a<this.categoriesPlaysTypes.offensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.defensive.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.defensive.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.possession.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.possession.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a]);for(let a=0;a<this.categoriesPlaysTypes.offenses.categories.length;a++)this.arrayCategoryFilter.push(this.categoriesPlaysTypes.offenses.categories[a].id),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[a])}else for(let a=0;a<t.playsCategories.length;a++)t.playsCategories[a].isSelected&&(this.arrayCategoryFilter.push(t.playsCategories[a].id),this.arrayCategoryFilterFull.push(t.playsCategories[a]));var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPlays");this.arrayCategoryFilter.length>0&&this.arrayCategoryFilter.length!=23?this.arrayCategoryFilter.length==1?i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull[0].name:this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull[0].name,type:"onFiltersPlays"}):i!=-1?this.arrayFiltersPlays[i].name=this.arrayCategoryFilterFull.length+" Tipos de jugadas":this.arrayFiltersPlays.push({name:this.arrayCategoryFilterFull.length+" Tipos de jugadas",type:"onFiltersPlays"}):i!==-1&&this.arrayFiltersPlays.splice(i,1)},async deleteLabelFilter(t){var i=this.arrayFiltersPlays.findIndex(o=>o.type===t);if(i!==-1){if(t=="onFiltersDetailsTypeStats"&&(this.detailsObjectSelection.statisticType="total",this.updateFilterField2+=1),t=="onFiltersTournaments"){this.rowScoutingData=[];for(let s=0;s<this.detaildProductivityCategories.offensive.categories.length;s++)this.detaildProductivityCategories.offensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.defensive.categories.length;s++)this.detaildProductivityCategories.defensive.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.possession.categories.length;s++)this.detaildProductivityCategories.possession.categories[s].isSelected=!1;for(let s=0;s<this.detaildProductivityCategories.offensesConditions.length;s++)this.detaildProductivityCategories.offensesConditions[s]=!1;this.setUpTournamentsToFilter(),this.universeData.minutesPlayed=10,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(s,l)=>l+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!0;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});this.keyTournamentValue+=1,setTimeout(()=>{this.modifidFiltersFlag=!1},200)}if(t=="onFiltersPlays"){for(let o=0;o<this.categoriesPlaysTypes.offensive.categories.length;o++)this.categoriesPlaysTypes.offensive.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.defensive.categories.length;o++)this.categoriesPlaysTypes.defensive.categories[o].isSelected=!0,this.arrayCategoryFilter.push(),this.arrayCategoryFilterFull.push(this.categoriesPlaysTypes.offensive.categories[o]);for(let o=0;o<this.categoriesPlaysTypes.possession.categories.length;o++)this.categoriesPlaysTypes.possession.categories[o].isSelected=!0;for(let o=0;o<this.categoriesPlaysTypes.offenses.categories.length;o++)this.categoriesPlaysTypes.offenses.categories[o].isSelected=!0}if(t=="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}),t=="onFiltersPredefined"){this.filtersPredefinedF=this.filters;for(let o=0;o<this.FVfilterGolstats.length;o++)this.FVfilterGolstats[o].isSelected=!1;this.updateFilterGolstats+=1,this.resetPredefinedTeamAll()}if(t=="onFiltersPredefinedCategory"){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF=this.filters;var a=this.arrayFiltersPlays.findIndex(o=>o.type==="onFiltersPredefined");a!==-1&&this.arrayFiltersPlays.splice(a,1);for(let o=0;o<this.categoriesDefault.length;o++)this.categoriesDefault[o].isSelected=!1;this.updateFilterPlaytypesGolstats+=1}t=="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}),t=="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}),t=="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(ie.NATIONALITY)),t=="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(ie.POSITION)),t=="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(ie.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(ie.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(ie.YEAR),this.FVYear=1981,this.personalDataFilters.selectedYear=1981,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(i,1)},onFiltersField(t){t.length==0?this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]:this.fVzone=t;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersField");i!=-1?this.arrayFiltersPlays[i].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},t.length!=16?(this.fVzone.length==4&&this.fVzone.includes(1)&&this.fVzone.includes(2)&&this.fVzone.includes(3)&&this.fVzone.includes(4)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].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)&&(i!=-1?this.arrayFiltersPlays[i].name="cancha rival":this.arrayFiltersPlays.push({name:"cancha rival",type:"onFiltersField"}))):this.arrayFiltersPlays.splice(i,1)},addFilterPlayingAS(){var t=this.arrayFiltersPlays.findIndex(i=>i.type==="onFiltersDetailsPlayingAs");t!=-1?this.fVplayingAs.length==1?this.arrayFiltersPlays[t].name=this.fVplayingAs.includes(1)?"Local":"Visitante":this.arrayFiltersPlays.splice(t,1):this.fVplayingAs.length==1&&this.arrayFiltersPlays.push({name:this.fVplayingAs.includes(1)?"Local":"Visitante",type:"onFiltersDetailsPlayingAs"})},onFiltersDetails(t){var i=[];this.filters.setNationalitiesIds=this.setNationalitiesIds;var a=[];for(let r=0;r<t.playingAs.length;r++)if(t.playingAs[r].isSelected){const n=t.playingAs[r].name=="Local"?1:2;i.push(n)}for(let r=0;r<t.gameSections.length;r++)t.gameSections[r].isSelected&&a.push(t.gameSections[r].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTypeStats");this.fvTypeStats=="total"?o!=-1&&this.arrayFiltersPlays.splice(o,1):o!=-1?this.arrayFiltersPlays[o].name=this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins":this.arrayFiltersPlays.push({name:this.fvTypeStats=="average"?"Promedio por partido (PPP)":"Cada 90 mins",type:"onFiltersDetailsTypeStats"});var s=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersDetailsTime"),l="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(l+=", 0-15"),this.fVsections.includes(2)&&(l+=", 15-30"),this.fVsections.includes(3)&&(l+=", 30-45"),this.fVsections.includes(4)&&(l+=", 45-60"),this.fVsections.includes(5)&&(l+=", 60-75"),this.fVsections.includes(6)&&(l+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=l:this.arrayFiltersPlays.push({name:l,type:"onFiltersDetailsTime"}),this.fVsections.length==3&&this.fVsections.includes(1)&&this.fVsections.includes(2)&&this.fVsections.includes(3)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="Segundo tiempo":this.arrayFiltersPlays.push({name:"Segundo tiempo",type:"onFiltersDetailsTime"})),this.fVsections.length==1&&this.fVsections.includes(1)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].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)&&(s!=-1?this.arrayFiltersPlays[s].name="los últimos 30 minutos del segundo tiempo":this.arrayFiltersPlays.push({name:"los últimos 30 minutos del segundo tiempo",type:"onFiltersDetailsTime"}))):s!=-1&&this.arrayFiltersPlays.splice(s,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(){if(this.universeData.minutesPlayed=0,this.universeData.percentMinutesPlayed=0,this.universeData.lastMonths=Array.from({length:24},(a,o)=>o+1),this.universeData.statistics.totals=!0,this.universeData.statistics.averagePerGame=!1,this.universeData.statistics.percentMinutesPlayed=!1,this.$refs.personalDataFilter){const a=this.$refs.personalDataFilter;a.clearFilters(ie.All),a.clearFilters(ie.AGE_RANGE),a.clearFilters(ie.YEAR),a.clearFilters(ie.NATIONALITY),a.clearFilters(ie.POSITION)}this.rowScoutingData=[];for(let a=0;a<this.detaildProductivityCategories.offensive.categories.length;a++)this.detaildProductivityCategories.offensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.defensive.categories.length;a++)this.detaildProductivityCategories.defensive.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.possession.categories.length;a++)this.detaildProductivityCategories.possession.categories[a].isSelected=!1;for(let a=0;a<this.detaildProductivityCategories.offensesConditions.length;a++)this.detaildProductivityCategories.offensesConditions[a]=!1;var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersTournaments");this.arrayFiltersPlays.splice(t,1),this.setUpTournamentsToFilter();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamselect=0,this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo})},onFiltersData(t){var i=0,a=0;t.ageByRange?(t.ageByRange.min==0?i=1:i=t.ageByRange.min,t.ageByRange.max==0?a=40:a=t.ageByRange.max,this.fVarrayAgeRange=[i,a],this.FVYear=1900):t.year&&(this.fVarrayAgeRange=[],this.FVYear=t.year),this.fVnationalities=new Set;let o="",s="";if(this.fVsetPositionsIds=[],t.hasOwnProperty("nationalities")){this.FVbooleanAreNationalTeamsVisible=!1,this.FVsetAvailableNationalTeamsPlayersIds=new Set;for(let h=0;h<t.nationalities.length;h++)t.nationalities[h].isSelected&&this.fVnationalities.add(t.nationalities[h].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVeligible=!0,this.FVbooleanAreNationalTeamsVisible=!0;for(let h=0;h<this.elegibilidadArray.length;h++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[h])}else this.FVeligible=!1;for(let h=0;h<t.positions.length;h++)t.positions[h].isSelected&&this.fVsetPositionsIds.push(t.positions[h].id);if(t.hasOwnProperty("nationalities"))var l=t.nationalities.filter(h=>h.isSelected===!0);var r=t.positions.filter(h=>h.isSelected===!0);if(r.length==1&&(o=r[0].name),t.hasOwnProperty("nationalities")&&l.length==1&&(s=l[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 n=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersElegibility");n!=-1?this.arrayFiltersPlays[n].name="Elegibles":this.arrayFiltersPlays.push({name:"Elegibles",type:"onFiltersElegibility"})}else{var n=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersElegibility");n!=-1&&this.arrayFiltersPlays.splice(n,1)}if(this.fVsetPositionsIds.length!=9&&this.fVsetPositionsIds.length>0){var c=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersPosition");c!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[c].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o:this.arrayFiltersPlays.splice(c,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posición de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posición de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var p=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersYear");p!=-1?this.arrayFiltersPlays[p].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(t.hasOwnProperty("ageLimits")&&this.fVarrayAgeRange[0]>=t.ageLimits.min&&this.fVarrayAgeRange[1]<=t.ageLimits.max)if(this.fVarrayAgeRange[0]>t.ageLimits.min||this.fVarrayAgeRange[1]<t.ageLimits.max){var y=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersAge");y!=-1?this.fVarrayAgeRange.length>0?this.arrayFiltersPlays[y].name=this.fVarrayAgeRange[0]!=this.fVarrayAgeRange[1]?this.fVarrayAgeRange[0]+" - "+this.fVarrayAgeRange[1]+" años":this.fVarrayAgeRange[1]+" años":this.arrayFiltersPlays.splice(y,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 y=this.arrayFiltersPlays.findIndex(d=>d.type==="onFiltersAge");y!=-1&&this.arrayFiltersPlays.splice(y,1)}if(t.hasOwnProperty("nationalities")&&this.fVnationalities.size!=t.nationalities.length&&this.fVnationalities.size>0){var m=this.arrayFiltersPlays.findIndex(h=>h.type==="onFiltersNationality");m!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[m].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s,type:"onFiltersNationality"})}},clickAll(t){this.teamselect=t},clickAllAll(t){this.teamselectrec=t,this.updateTables+=1},clickTeam(t){this.teamselect=t},clickTeamScouting(t){this.teamselectrec=t,this.updateTables+=1},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}},resetFilter(){this.fVzone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],this.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}},this.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}]},this.detailsObjectSelection={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}],statisticType:"total",isStatisticTypeVisible:!0},this.$refs.personalDataFilterPlayers&&this.$refs.personalDataFilterPlayers.clearFilters(ie.NATIONALITY),this.updateFilterField2+=1},async changeTabsGeneral(t){this.isTransitioning=!0,this.isLoading=!0,this.preloadedTops=[],this.topsCache.clear(),this.rowScoutingData=[],this.arrayFiltersPlays=[],this.teamselect=0,this.resetPredefinedTeamAll(),this.showfiltersPc=!0,this.optionSelected=t,this.optionSelectedSubmenu="Todas las jugadas",this.filtersPredefinedF={},this.categoryPredefinedActive=!1,this.categoryPredefined=0;try{if(t=="Equipos"&&(this.typeTable=1,this.isTeam=!0,await this.loadPreloadedTops(),this.resetFilter(),this.resetFilterTeamAndPlayers(),this.resetScouting()),(t=="Jugadores"||t=="Jugadoras")&&(this.typeTable=0,this.isTeam=!1,await this.loadPreloadedTops(),this.resetFilterTeamAndPlayers(),this.resetScouting()),t=="Scouting"){this.resetFilter(),this.getScoutingData();const i=await this.fetchTeamsScouting(this.currentSeasonId);this.teamsscouting=[];for(let a=0;a<i.teams.length;a++)this.teamsscouting.push({id:i.teams[a].team_id,team:i.teams[a].colloquial_name,logo:i.teams[a].logo});setTimeout(()=>{this.modifidFiltersFlag=!1},200),this.resetFilterTeamAndPlayers()}await this.$nextTick(),this.isLoading=!1,setTimeout(()=>{this.isTransitioning=!1},300)}catch(i){console.error("Error changing tabs:",i),this.isLoading=!1,this.isTransitioning=!1}},resetPredefinedTeamAll(){var t=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(this.categoriesDefault.length>0&&t!==-1){this.categoryPredefinedActive=!1,this.categoryPredefined=0,this.FVfilterGolstats=[],this.filtersPredefinedF={},this.arrayFiltersPlays.splice(t,1);for(let a=0;a<this.categoriesDefault.length;a++)this.categoriesDefault[a].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var i=this.arrayFiltersPlays.findIndex(a=>a.type==="onFiltersPredefined");if(i!==-1){for(let a=0;a<this.FVfilterGolstats.length;a++)this.FVfilterGolstats[a].isSelected=!1;i!==-1&&this.arrayFiltersPlays.splice(i,1),this.updateFilterGolstats+=1}}},resetLeagues(){this.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:1933,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:1934,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:1936,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:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!0,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!0,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}],this.tournamentsToFilterSelection=[{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:1933,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:!1,id:1001,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1934,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:!1,id:1071,show_logos:1,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1936,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:!1,id:1143,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2023",related_seasons:[],id:1937,type:0}]},{name:"Sub-19",logo:null,isSelected:!1,id:1155,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1938,type:0}]},{name:"Sub-17",logo:null,isSelected:!1,id:43,show_logos:0,tournament_type:0,tournament_status:0,seasons:[{name:"Apertura 2024",related_seasons:[],id:1939,type:0}]}]},async changeTabsSubmenu(t){t!="Predeterminados"?this.resetPredefinedTeamAll():this.arrayFiltersPlays=[],this.optionSelectedSubmenu=t},async fetchTournaments(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=me.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=me.create({headers:{Authorization:`${this.token}`}}),{data:a}=await i.get(this.teamsUrl+t);return a},async getPredefinedfilters(t){this.arrayPredefinedFilters=[],this.arrayPredefinedOrigin=[];var i="";t.id==1?i=this.urlFilter:i=this.urlFilter;const a=me.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(m=>{this.predefinedFiltersMatchLapse[m.toString()]=o[0].match_lapse_combinations[m]}),Object.keys(o[0].playing_as_combinations).forEach(m=>{this.predefinedFiltersPlayingAs[m.toString()]=o[0].playing_as_combinations[m]}),Object.keys(o[0].field_sections_combinations).forEach(m=>{this.predefinedFiltersSections[m.toString()]=o[0].field_sections_combinations[m]}),o[0]){for(let m=0;m<o[0].filter_records.length;m++){var s=o[0].description;if(o[0].filter_records[m].field_sections!==void 0){const d=o[0].filter_records[m].field_sections.toString();(this.predefinedFiltersSections[d]||this.predefinedFiltersSections[d]=="")&&(this.predefinedFiltersSections[d]==""?s=s.replace(" [en {field_sections}]",this.predefinedFiltersSections[d]):s=s.replace("{field_sections}",this.predefinedFiltersSections[d]))}if(o[0].filter_records[m].match_lapse!==void 0){const d=o[0].filter_records[m].match_lapse.toString();(this.predefinedFiltersMatchLapse[d]||this.predefinedFiltersMatchLapse[d]=="")&&(this.predefinedFiltersMatchLapse[d]==""?s=s.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[d]):s=s.replace("{match_lapse}",this.predefinedFiltersMatchLapse[d]))}if(o[0].filter_records[m].playing_as!==void 0){const d=o[0].filter_records[m].playing_as.toString();(this.predefinedFiltersPlayingAs[d]||this.predefinedFiltersPlayingAs[d]=="")&&(this.predefinedFiltersPlayingAs[d]==""?s=s.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[d]):s=s.replace("{playing_as}",this.predefinedFiltersPlayingAs[d]))}o[0].filter_records[m].section_type!==void 0&&(this.tournamentSelectedObj.is_female?this.tournamentSelectedObj.is_female?s=s.replace("{section_type}","Jugadoras"):s=s.replace("{section_type}","Equipos"):s=s.replace("{section_type}","Jugadores")),s=s.replace(/\[/g,""),s=s.replace(/\]/g,""),s=s.replace("{category_name}",o[0].category_name);const h=s.split(": ");var l=h[1];l.length>129&&this.windowWidth>1358&&(l=l.substring(0,129),l=l+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[m].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:m,category_name:t.name,id_category:o[0].id,title:h[0]+":",text:h[1],textOrigin:o[0].description,titledots:l,filtersPredefined:{matchResult:o[0].filter_records[m].match_result,playingAs:o[0].filter_records[m].playing_as,sections:o[0].filter_records[m].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[m].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var r=[];for(let m=0;m<this.arrayPredefinedFilters.length;m++){var n=0,c=new Set,p={},y=this.arrayPredefinedFilters[m].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[m].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[m].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[m].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,this.arrayPredefinedFilters[m].filtersPredefined.end_age]:this.arrayPredefinedFilters[m].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[m].filtersPredefined.start_age==0?p.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[m].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[m].filtersPredefined.end_age==0?p.arrayAgeRange=[this.arrayPredefinedFilters[m].filtersPredefined.start_age,60]:p.arrayAgeRange=[1,this.arrayPredefinedFilters[m].filtersPredefined.end_age],this.arrayPredefinedFilters[m].filtersPredefined.matchResult.length!=3&&(n+=1),p.matchResult=this.arrayPredefinedFilters[m].filtersPredefined.matchResult,this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length!=0){for(let h=0;h<this.arrayPredefinedFilters[m].filtersPredefined.nationalities.length;h++)c.add(this.arrayPredefinedFilters[m].filtersPredefined.nationalities[h]);p.setNationalitiesIds=c}else c.add(138),c.add(222),c.add(163),c.add(51),c.add(226),c.add(10),c.add(223),c.add(96),c.add(171),c.add(198),c.add(105),c.add(80),c.add(29),c.add(74),c.add(216),c.add(196),c.add(64),c.add(155),c.add(156),c.add(89),c.add(106),c.add(81),c.add(233),c.add(204),p.setNationalitiesIds=c;this.arrayPredefinedFilters[m].filtersPredefined.playingAs.length!=2&&(n+=1),p.playingAs=this.arrayPredefinedFilters[m].filtersPredefined.playingAs,this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.positions.length>0?p.setPositionsIds=this.arrayPredefinedFilters[m].filtersPredefined.positions:p.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[m].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.sections.length>0?p.sections=this.arrayPredefinedFilters[m].filtersPredefined.sections:p.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[m].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[m].filtersPredefined.zone.length>0?p.zone=this.arrayPredefinedFilters[m].filtersPredefined.zone:p.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],p.typeZone=this.arrayPredefinedFilters[m].filtersPredefined.typeZone,r.push({id:m+1,name:y,isSelected:!1,value:n,filters:p})}this.FVfilterGolstats=r,this.updateFilterGolstats+=1,this.arrayPredefinedOrigin=JSON.parse(JSON.stringify(this.arrayPredefinedFilters))}},getTextFilterPredefinedCustom(){this.setDinamicFilters(this.filterEmitAux);var t=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].textOrigin;const i=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.zone.sort((y,m)=>y-m).toString();this.predefinedFiltersSections[i]||this.predefinedFiltersSections[i]==""?this.predefinedFiltersSections[i]==""?t=t.replace(" [en {field_sections}]",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections[i]):t=t.replace("{field_sections}",this.predefinedFiltersSections.other);var a=!1;this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==this.setNationalityIds.size?(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size==1?(t=t.replace("[{nationality}]",this.$t(`gentilicios[${[...this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities][0]}]`)),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size>0&&this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size!=this.setPositionsIds.size?(a=!0,t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]","")):(t=t.replace("[{nationality}]",""),t=t.replace("[de las nacionalidades y posiciones seleccionadas]",""),t=t.replace("[de las nacionalidades seleccionadas]","")),this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.nationalities.size>0?(a||this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.positions.size==this.setPositionsIds.size)&&(t=t.replace("[de las posiciones seleccionadas]","")):t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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?(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","[de "+this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.start_age+" años]")):(t=t.replace("[de {min_age} años]",""),t=t.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]")):(t=t.replace("[de {min_age} a {max_age} años]",""),t=t.replace("[de {min_age} años]","")):(t=t.replace("[de {min_age} años]",""),t=t.replace("[de {min_age} a {max_age} años]",""));const o=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.sections.sort().toString();if(this.predefinedFiltersMatchLapse[o]||this.predefinedFiltersMatchLapse[o]=="")this.predefinedFiltersMatchLapse[o]==""?t=t.replace(" [durante {match_lapse}]",this.predefinedFiltersMatchLapse[o]):t=t.replace("{match_lapse}",this.predefinedFiltersMatchLapse[o]);else{t=t.replace("{match_lapse}"," "+this.predefinedFiltersMatchLapse.other);var s="";o.includes(1)&&(s=s+"0-15, "),o.includes(2)&&(s=s+"16-30, "),o.includes(3)&&(s=s+"31-45, "),o.includes(4)&&(s=s+"46-60, "),o.includes(5)&&(s=s+"61-75, "),o.includes(6)&&(s=s+"76-90, "),s=s.slice(0,-2),s=s.replace(/,([^,]*)$/," y $1"),t=t.replace("{match_lapse_selected}",s)}const l=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[l]||this.predefinedFiltersPlayingAs[l]=="")&&(this.predefinedFiltersPlayingAs[l]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[l]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[l])),this.typeSelected==1?this.getUser.tournament==1001?this.category.id==22?t=t.replace("{section_type}","Porteras"):t=t.replace("{section_type}","Jugadoras"):this.category.id==22?t=t.replace("{section_type}","Porteros"):t=t.replace("{section_type}","Jugadores"):t=t.replace("{section_type}","Equipos"),t=t.replace(/\[/g,""),t=t.replace(/\]/g,""),t=t.replace("{category_name}",this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].category_name);const r=t.split(": ");let n=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1),c=r[1].charAt(0).toUpperCase()+r[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=r[0]+":";const p=c.match(/\*/g);if(p&&p.length)if(p.length%2===0)for(let y=1;y<=p.length;y++)y%2===0||(c=c.replace("*",'<span style="color: #ffff03" >'));else c=c.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=c},getObjectPlayer(t){const i=[],a=t[7].map(s=>(i.push(s.nationality_id),{stringName:s.nationality,numberId:s.nationality_id})),o=t[9].split("-");return{numberId:t[0],stringFullName:t[1],stringImageUrl:t[2],numberTeamId:t[3],player_country_flag:"https://golstatsimages.blob.core.windows.net/flags/"+t[3]+".jpg",stringNationalityName:ct[t[3]],numberAge:t[5],numberPositionId:t[6],countryId:t[7],teamName:t[10],effectiveness:t[11],min:t[13],games:t[12],date:Number(o[0]),arrayNationalities:a,category:this.categoryName,arrayNationalitiesIds:i}},processPreloadedTops(t){const i={},a=new Map(t.teams.map(s=>[s[0],{id:s[0],name:s[1],logo:`https://golstatsimages.blob.core.windows.net/teams-80/${s[0]}.png`}])),o=new Map(t.players.map(s=>[s[0],this.getObjectPlayer(s)]));return this.cachedPlayersMap=o,t.tops.forEach(s=>{const l=s.category;i[l]||(i[l]={teams:[],players:[]}),s.teams&&(i[l].teams=s.teams.map((r,n)=>{const c=a.get(r[0])||{};return{id:c.id,name:c.name,img:c.logo,total:r[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[l].players=s.players.map((r,n)=>{var c,p,y,m,h,d,f,u,g,C;const k=o.get(r[0])||{};return{age:k.numberAge,categoryName:s.name,country:(p=(c=k.countryId)==null?void 0:c[0])==null?void 0:p.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:r[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${r[0]}.png`,minutes:k.min,name:k.stringFullName,name_short:k.stringFullName,nationality:k.stringNationalityName,player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${(m=(y=k.countryId)==null?void 0:y[0])==null?void 0:m.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((d=(h=k.teamName)==null?void 0:h[0])==null?void 0:d.acronym)||"",teamid:((u=(f=k.teamName)==null?void 0:f[0])==null?void 0:u.team_id)||"",teamname:((C=(g=k.teamName)==null?void 0:g[0])==null?void 0:C.acronym)||"",top:String(n+1).padStart(2,"0"),total:r[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=me.create({headers:{Authorization:`${this.token}`}}),i=`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${this.seasonActive}?limit=20`,{data:a}=await t.get(i);this.preloadedTops=this.processPreloadedTops(a),this.isPreloadedDataAvailable=!0,this.$emit("tops-loaded",this.preloadedTops)}}catch(t){console.error("Error loading preloaded tops:",t)}},getCacheKey(t,i){return`${t}-${i}`},async getTopData(t,i){const a=this.getCacheKey(t,i);if(this.topsCache.has(a))return this.topsCache.get(a);const o=me.create({headers:{Authorization:`${this.token}`}}),{data:s}=await o.get(`https://kgfaxdv624.execute-api.us-east-2.amazonaws.com/prod/tops/seasons/${t}/categories/${i}`);return this.topsCache.set(a,s),s},async loadCategoriesProgressively(){if(!this.seasonActive)return;const t=this.categories.slice(0,5),i=this.categories.slice(5);await Promise.all(t.map(a=>this.getTopData(this.seasonActive,a.id))),this.isInitialDataLoaded=!0,setTimeout(()=>{Promise.all(i.map(a=>this.getTopData(this.seasonActive,a.id)))},100)}},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.loadPreloadedTops();const t=await me.create({headers:{"Content-Type":"application/json"}}).get("https://golstats-microservices.s3.us-west-2.amazonaws.com/eligibles/elegibles.json",{headers:{"Content-Type":"application/json"}});this.elegibilidadArray=t.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),this.fillPersonalDataFilters()}catch(t){throw new Error(t)}}},Rne={ref:"myDivRefTopsFull",class:"play-tops"},Lne={key:0,class:"overlay-loading"},One=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),Dne=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),jne=[One,Dne],Wne=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),Une=[Wne],vne={key:0},Gne={style:{display:"contents"}},Hne={style:{display:"contents"}},Jne={key:0,class:"cont-leyemd-multipleleagues"},qne=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),Yne={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},Zne={key:0,style:{"margin-left":"10px"}},Kne=e.createElementVNode("span",null,"Todas las categorías",-1),Xne=[Kne],Qne=e.createElementVNode("span",null,"Tipo de Jugada",-1),ede=e.createElementVNode("span",null,"Filtro GolStats",-1),tde={key:3,style:{width:"100%",height:"295px"}};function ade(t,i,a,o,s,l){var r,n,c;const p=e.resolveComponent("GSCTournamentSelect"),y=e.resolveComponent("GSCSeasonSelect"),m=e.resolveComponent("GscSwitchComponent"),h=e.resolveComponent("GSCFilterperteam"),d=e.resolveComponent("GSCFilters"),f=e.resolveComponent("DropdownPositions"),u=e.resolveComponent("DropdownYears"),g=e.resolveComponent("GSCLabel"),C=e.resolveComponent("GSCTopCategory"),k=e.resolveComponent("GSCTableHeader"),U=e.resolveComponent("GSCRowTable"),q=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",Rne,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",Lne,jne)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.templateLosMejoresClass)},[e.createElementVNode("section",{class:e.normalizeClass(t.containerSectionPlayClass),id:"container-section"},[o.elementSize.width<730&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"100%","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.descubreVideosClass)},[o.elementSize.width>730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Las Mejores")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Los Mejores")],64))],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionParentHeaderClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionHeaderClass)},[e.createVNode(m,{type:2,buttons:[s.tournamentSelectedObj.is_female?"Jugadoras":"Jugadores","Equipos","Scouting"],"font-family":"Poppins-Medium","selected-option":s.optionSelected,"font-size":t.sizeTabsFontMP,width:t.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["buttons","selected-option","font-size","width","onInput"])],2),o.elementSize.width>730?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.dropdownParentClass)},[o.elementSize.width<730?(e.openBlock(),e.createElementBlock("h2",{key:0,class:e.normalizeClass(t.losMejoresClass),id:"title-section"}," Los Mejores ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.dropdownClass)},[e.createVNode(p,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:l.changeTournament},null,8,["current-season-id","api-url","is-clubes-active","onInput"])],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.dropdown1Class)},[e.createVNode(y,{width:"147px","current-season-id":a.currentSeasonId,seasons:s.selectedTournament.seasons,onInput:l.selectedSeason},null,8,["current-season-id","seasons","onInput"])],2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0)],2)],2)),e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersParentClass)},[e.createElementVNode("div",{class:e.normalizeClass(t.topFiltersClass),id:"top-filters"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.teamBarParent)},[s.optionSelected!="Scouting"&&s.optionSelected!="Equipos"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[e.createVNode(h,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:l.clickTeam,onClickAll:l.clickAll},null,8,["data","team-id","onClickTeam","onClickAll"])],2)):e.createCommentVNode("",!0),o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnFiltersPC),style:e.normalizeStyle(s.showfiltersPc?"display: none;":""),onClick:i[0]||(i[0]=(...A)=>l.clickOpenFilters&&l.clickOpenFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2)],6)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.containerFilters),id:"container-filters",style:e.normalizeStyle(s.showfiltersPc||a.isSelection?"":o.elementSize.width>760?"display: none;":"")},[e.createElementVNode("div",{class:e.normalizeClass(t.menuSectionPlayClass),id:"menu-section",style:e.normalizeStyle(a.isSelection?"margin-top: 0px;":"")},[o.elementSize.width>760&&s.optionSelected!="Scouting"&&!a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.closeFiltersPc),onClick:i[1]||(i[1]=(...A)=>l.clickCloseFilters&&l.clickCloseFilters(...A))},Une,2)):e.createCommentVNode("",!0)],6),a.isSelection?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.filtersContainerClass),id:"filters-container"},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnFilters),onClick:i[2]||(i[2]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:Ii},null,2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.filtros)},"Filtros",2)],2),e.createElementVNode("img",{class:e.normalizeClass(t.$style.shapeIcon),style:e.normalizeStyle(s.openMenuMobil?"":"transform: rotate(180deg)"),alt:"",src:Kc},null,6)],2)],2)),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnCloseFilters),style:e.normalizeStyle(s.optionSelected==="Scouting"?"margin-top: 4%; margin-left: 1%":""),onClick:i[3]||(i[3]=(...A)=>l.openMenuFilters&&l.openMenuFilters(...A))},null,6),[[e.vShow,o.elementSize.width<760&&s.openMenuMobil]]),e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.containerMenuClass),id:"container-menu"},[s.optionSelectedSubmenu=="Todas las jugadas"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{class:e.normalizeClass(o.elementSize.width>=768?"advanced-button":"advanced-button-movil"),onClick:i[4]||(i[4]=(...A)=>l.toggleAdvancedView&&l.toggleAdvancedView(...A))},[s.isAvanced?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Ocultar avanzado")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Ver avanzado")],64))],2),s.isAvanced?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",vne,"Liga: ")),e.createElementVNode("div",{style:e.normalizeStyle(s.isAvanced?"width: auto;":o.elementSize.width>=768?"width: 170px;":"width: 100%;")},[a.isSelection?(e.openBlock(),e.createBlock(d,e.mergeProps({key:0,"button-filter-props":s.isAvanced?l.filterButtonPropsTournaments:l.filterButtonProps,width:"100%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"is-one-tournament-only":!0,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,"onUpdate:filters":l.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0)],4),e.withDirectives(e.createElementVNode("div",Gne,[e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 61px;"))},"Posición: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 270px;":"width: 100%;")},[e.createVNode(f,{"dropdown-props":s.dropdownProps,positions:(r=s.personalDataFilters)==null?void 0:r.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])],4),e.createElementVNode("div",{style:e.normalizeStyle((o.elementSize.width>=768,"width: 80px;"))}," A partir del: ",4),e.createElementVNode("div",{style:e.normalizeStyle(o.elementSize.width>=768?"width: 195px;":"width: 100%;")},[e.createVNode(u,{"dropdown-props":s.dropdownProps,years:(n=s.personalDataFilters)==null?void 0:n.availableYears,"selected-year":(c=s.personalDataFilters)==null?void 0:c.selectedYear,onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])],4)],512),[[e.vShow,!s.isAvanced]]),e.withDirectives(e.createElementVNode("div",Hne,[e.withDirectives(e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PLAYS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:l.applyFiltersBtn}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters","onApply"]),[[e.vShow,!s.showFullTable]]),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField,"filter-type":s.filtersTypes.FIELD,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonPropsTournaments},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{key:s.updateFilterField2,"is-seleccion":a.isSelection,"filter-type":s.filtersTypes.DETAILS,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersDetails,filters:s.detailsObject}),null,16,["button-filter-props","is-seleccion","filter-type","onUpdate:filters","filters"])),e.withDirectives(e.createVNode(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,ref:"personalDataFilterPlayers","button-filter-props":l.filterButtonPropsTournaments,filters:s.personalDataFilters},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,season:{id:s.seasonActive,tournamentId:s.tournamentSelectedObj.value},token:s.token,"onUpdate:filters":l.onFiltersData}),null,16,["is-female","button-filter-props","filters","filter-type","season","token","onUpdate:filters"]),[[e.vShow,s.optionSelected==="Jugadores"||s.optionSelected==="Jugadoras"]])],512),[[e.vShow,s.isAvanced]])],64)):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[o.elementSize.width>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilterSelection,key:s.keyTournamentValue,"onUpdate:filters":l.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":"",season:null,ref:"personalDataFilter","onUpdate:filters":l.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:a.isSelection?s.universeDataSelection:s.universeData,"onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(d,e.mergeProps({"button-filter-props":l.filterButtonProps},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],64)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.$style.BtnSearchScounting),onClick:i[5]||(i[5]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))},"Buscar",2)],64)):e.createCommentVNode("",!0),s.optionSelectedSubmenu=="Predeterminados"&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[(e.openBlock(),e.createBlock(d,e.mergeProps({"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModePropsTypePlays,{"filter-type":s.filtersTypes.PLAYS_TYPES,"show-badge-on-filter-full":!1,key:s.updateFilterPlaytypesGolstats,"onUpdate:filters":l.onFiltersPlaysTypes,filters:s.categoriesDefault}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(d,e.mergeProps({"is-female":s.tournamentSelectedObj.is_female,"button-filter-props":l.filterButtonProps,modalHeight:"300px"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<760?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.GOLSTATS,"show-badge-on-filter-full":!1,key:s.updateFilterGolstats,"onUpdate:filters":l.onFiltersGolStats,filters:l.filterGolstats}),null,16,["is-female","button-filter-props","filter-type","onUpdate:filters","filters"]))],64)):e.createCommentVNode("",!0)],2),[[e.vShow,o.elementSize.width>760||s.openMenuMobil||a.isSelection]]),s.optionSelected=="Scouting"?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.teamBar),id:"team-bar"},[s.filterScounting.tournaments.length>1&&s.rowScoutingData.length>0?(e.openBlock(),e.createElementBlock("div",Jne,[qne,e.createElementVNode("div",{class:e.normalizeClass(t.textleyemdmultipleleaguesClass)}," El filtro por equipos solo se pude utilizar cuando se tiene maximo 1 liga seleccionada ",2)])):(e.openBlock(),e.createBlock(h,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:l.clickTeamScouting,onClickAll:l.clickAllAll},null,8,["data","team-id","onClickTeam","onClickAll"]))],2)):e.createCommentVNode("",!0)],6)],2)],2),e.createElementVNode("div",{class:e.normalizeClass(t.containerTheBestClass),id:"container-the-best"},[s.fvTypeStats==="every90"&&a.isSelection&&s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock("div",Yne," No se muestran jugadores que hayan jugado menos de 90 minutos ")):e.createCommentVNode("",!0),e.createElementVNode("div",{class:e.normalizeClass(t.titleSectionClass)},[s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.mejoresJugadoresClass)},[s.arrayFiltersPlays.length>0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelected!="Equipos"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.tournamentSelectedObj.is_female?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Mejores jugadoras: ")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores jugadores: ")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Mejores equipos:")],64))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[this.filterScounting.tournaments.length==1&&this.filterScounting.tournaments[0]==1001?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Jugadoras más productivas:")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("Jugadores más productivos:")],64))],64))],64)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.showFullTable?(e.openBlock(),e.createElementBlock("div",Zne,[e.createVNode(g,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteCategoryFilter,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:"20px"},null,8,["text-value","onClickClose"])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.arrayFiltersPlays,(A,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,style:{"margin-left":"10px"}},[e.createVNode(g,{"text-value":A.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:l.deleteLabelFilter,id:A.type,icon:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png","icon-size":"6px",height:o.elementSize.width<768?"auto":"20px"},null,8,["text-value","onClickClose","id","height"])]))),128)),s.rowScoutingData.length!=0||s.optionSelectedSubmenu=="Predeterminados"&&s.arrayFiltersPlays.findIndex(A=>A.type==="onFiltersPredefined")!==-1?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.quitarFiltrosClass),onClick:i[6]||(i[6]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Quitar filtros ",2)):e.createCommentVNode("",!0),s.optionSelected!="Scouting"&&s.optionSelectedSubmenu!="Predeterminados"&&s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:3},[s.showFullTable?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.allCategories)},Xne,2))],64)):e.createCommentVNode("",!0)],2),s.seasonActive!=0||a.isSelection?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.containerTablesClass),id:"container-tables",style:e.normalizeStyle(s.showFullTable?"gap: 0px!important;":"")},[s.optionSelected!=="Scouting"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.optionSelectedSubmenu=="Todas las jugadas"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.categoriesDefault,(A,v)=>(e.openBlock(),e.createElementBlock("div",{key:v,style:e.normalizeStyle(!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)?"":"display:none !important;")},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(t.toniKroosWrapperClass)},[(e.openBlock(),e.createBlock(C,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,onMore:l.onShowFullTable,"border-width":0,preload:s.preloadedTops[A.id],"border-radius":"12px","filters-prop":l.filterChange,category:A.id,"type-table":s.typeTable,categoryName:A.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onComponentLoaded:t.onComponentLoaded,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","onMore","preload","filters-prop","category","type-table","categoryName","season","filter-team","onClickprofile","onSetopenmedia","onComponentLoaded","onShowGraph","onAddPlayer"]))],2),[[e.vShow,!s.showOnlyCategories&&s.arrayCategoryFilter.includes(A.id)&&!s.showFullTable]])],4))),128)),s.showFullTable?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"border-width":0,"border-radius":"12px","type-stats":s.fvTypeStats,"is-selection":!1,category:s.showFullCategory,preload:s.preloadedTops[s.showFullCategory],type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","category","preload","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[s.categoryPredefinedActive?(e.openBlock(),e.createBlock(C,{"is-female":s.optionSelected=="Jugadoras","is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":!1,"border-width":0,preload:s.preloadedTops[s.categoryPredefined],"border-radius":"12px",category:s.categoryPredefined,type:1,"type-table":s.typeTable,categoryName:"","filters-prop":l.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:l.clickprofile,onSetopenmedia:l.setOpenMedia,onShowGraph:l.HandlerShowGraph,onAddPlayer:l.HandlerAddPlayer},null,8,["is-female","is-team","type-stats","preload","category","type-table","filters-prop","season","filter-team","onClickprofile","onSetopenmedia","onShowGraph","onAddPlayer"])):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefined)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.titleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("No has seleccionado ningún filtro")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("Para visualizar resultados selecciona un")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("No existen resultados con los filtros")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[Qne,e.createTextVNode(" y un "),ede,e.createTextVNode(" en la")],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createTextVNode("que has seleccionado.")],64))],2),e.createElementVNode("div",{class:e.normalizeClass(t.$style.subtitleContainerPredefined)},[s.arrayFiltersPlays.length==0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode("parte superior.")],64)):e.createCommentVNode("",!0)],2)],2))],64))],64)):(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.containerPredefinedScounting),style:e.normalizeStyle(s.rowScoutingData.length>0?"height: auto;":"")},[s.loadingActive?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[s.rowScoutingData.length>0?(e.openBlock(),e.createBlock(k,{key:0,background:"#183143",type:2,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001},null,8,["is-female"])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.rowScoutingData,(A,v)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:v},[s.teamselectrec==0||s.teamselectrec==A.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(U,{type:2,"is-expanded":s.playerexpand==A.id&&s.expand,onMediadata:l.setMediaData,data:{position:A.position,player_name:A.player_name,player_photo:A.player_photo,total:A.total,id:A.id,player_age:A.player_age,team_abrev:A.team_abrev,team_logo:A.team_logo,player_position:s.positions[A.player_position-1].fullname,player_country_flag:A.player_country_flag,player_games:A.player_games,player_min:A.player_min,league_name:A.league_name,seasons:A.seasons,season_id:A.season_id},height:"71px",background:v%2===0?a.backgroundOdd:a.backgroundEven,onExpand:l.clickexpand},null,8,["is-expanded","onMediadata","data","background","onExpand"]),s.expand&&s.playerexpand==A.id?(e.openBlock(),e.createBlock(q,{key:0,"is-female":s.filterScounting.tournaments.length==1&&s.filterScounting.tournaments[0]==1001,type:0,"view-effectiveness":!1,viewGoals:!1,additionalClass:"fullTable",data:{teams:A.team_name,age:A.player_age,dataofbirth:A.date,nationality:A.nationality_name,countryFlag:A.player_country_flag,position:s.positions[A.player_position-1].name,games:A.player_games,min:A.player_min,goals:A.total,effectiveness:"-",category:"total",id:A.id},onViewprofile:Y=>l.viewprofile(Y,A.season_id,A.team_id),background:v%2===0?a.backgroundOdd:a.backgroundEven},null,8,["is-female","data","onViewprofile","background"])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],64))),128))],64)),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(t.$style.btnLeyendTxt)},' Haz click en "Buscar" para aplicar tus filtros ',2)):e.createCommentVNode("",!0),s.rowScoutingData.length==0&&!s.loadingActive?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(t.$style.containerScountingBtn)},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.btnDeleteAplica),onClick:i[7]||(i[7]=(...A)=>l.onClickDeleteFilter&&l.onClickDeleteFilter(...A))}," Eliminar filtros aplicados ",2),s.rowScoutingData.length==0?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.$style.SearchBtnBar),onClick:i[8]||(i[8]=(...A)=>l.getScoutingData&&l.getScoutingData(...A))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",tde)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const ide={$style:$ne},ode=Se(Mne,[["render",ade],["__cssModules",ide]]),sde=e.ref(Gs()),lde=e.ref(Zc()),rde={name:"TopsBestAndPlay",props:{userId:{type:String,required:!0},hasTemplates:{type:Boolean,required:!1},teamId:{type:String,required:!0}},components:{GscSwitchComponent:hs,GSCRadioToggle:JZ,ModalAddPlayList:VK,DropdownTemplates:Cq,GSCTableScrollable:hQ,GSCFilters:vs,ModalAddLista:LK,DropdownYears:Yc,DropdownPositions:qc,PlayTops:ode},computed:{filterButtonProps(){return{...sde.value}},filterButtonPropsTournamentsAdvanced(){return{...lde.value}},sizeTabsFontMP(){const t=this.elementSize.width;return t<=380?"12px":t<=768?"14px":"16px"},sizeTabsMP(){const t=this.elementSize.width;return t<=319?"90px":t<=330?"95px":t<=340||t<=350?"110px":t<=360?"120px":t<=470?"122px":"130px"},advancedText(){return this.showAdvanced?"Ocultar avanzado":"Ver avanzado"}},data(){return{MobileFilterDesing:{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"}},dropdownProps:{height:"40px",borderColor:"rgba(255, 255, 255, 0.2)"},showtableType:!0,formattedPlayers:[],totalNationalities:0,defaultFiltersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,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],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},visibleModalAddPlaylist:!1,showCreatePlaylistModal:!1,filtersObject:{age_or_year:0,categories:[],elegibles:[],fouls:!1,last_months:12,minutes_played:0,minutes_played_avg:0,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],positions:[],range_age:[],seasonId:1933,tournaments:[],type_stats:1,year:0},positions:[{id:1,name:"Portero",fullname:"POR"},{id:2,name:"Defensa central",fullname:"DFC"},{id:3,name:"Lateral por izquierda",fullname:"LI"},{id:4,name:"Lateral por derecha",fullname:"LD"},{id:5,name:"Volante por izquierda",fullname:"VI"},{id:6,name:"Volante por derecha",fullname:"VD"},{id:7,name:"Volante defensivo",fullname:"VDF"},{id:8,name:"Volante ofensivo",fullname:"VO"},{id:9,name:"Delantero",fullname:"DEL"},{id:10,name:"Desconocida",fullname:"Desc"}],tokenFree:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE",fVzone:[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],filtersTypes:N,personalDataFilters:Yt,personalDataSubFiltersTypes:ie,tournamentsToFilter:OK,tournamentsToFilterVariables:DK,universeData:{minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},detaildProductivityCategories:{offensive:{title:"Ofensivo",categories:[{name:"Goles",isSelected:!1,id:[12]},{name:"Asistencias",isSelected:!1,id:[10]},{name:"Participaciones en gol",isSelected:!1,id:[27]},{name:"Cabeceos en área rival",isSelected:!1,id:[330,333,423,577,578,331,334,424]},{name:"Tiros a gol totales",isSelected:!1,id:[91,95,92,93,96,97]},{name:"Tiros a gol con destino a portería",isSelected:!1,id:[91,95]},{name:"Tiros a gol fuera del área",isSelected:!1,id:[94]},{name:"Tiros a gol fuera del área con destino a portería",isSelected:!1,id:[95]},{name:"Tiros a gol dentro del área",isSelected:!1,id:[90]},{name:"Tiros a gol dentro del área con destino a portería",isSelected:!1,id:[91]},{name:"Centros por izquierda",isSelected:!1,id:[13]},{name:"Centros por izquierda acertados",isSelected:!1,id:[98,101,104,105]},{name:"Centros por derecha",isSelected:!1,id:[25]},{name:"Centros por derecha acertados",isSelected:!1,id:[109,112,115,116]},{name:"1vs1 exitosos ofensivos",isSelected:!1,id:[4]},{name:"1vs1 que terminan en gol",isSelected:!1,id:[88]}]},defensive:{title:"Defensivo",categories:[{name:"Bálones ganados en área propia",isSelected:!1,id:[234,241,281,288,399,401,211,231,238,244,280,287,294]},{name:"Cabeceo en área propia",isSelected:!1,id:[211,231,238,244,280,287,294]},{name:"1vs1 defensivos exitosos",isSelected:!1,id:[5]},{name:"Rechaces",isSelected:!1,id:[34]}]},possession:{title:"Posesión",categories:[{name:"Bálones recuperados totales",isSelected:!1,id:[222,223,224,225]},{name:"Bálones recuperados 1/4 de cancha",isSelected:!1,id:[222]},{name:"Bálones recuperados 2/4 de cancha",isSelected:!1,id:[223]},{name:"Bálones recuperados 3/4 de cancha",isSelected:!1,id:[224]},{name:"Bálones recuperados 4/4 de cancha",isSelected:!1,id:[225]},{name:"Pases acertados",isSelected:!1,id:[213,214,215,216]},{name:"Pases acertados en 1/4 de cancha",isSelected:!1,id:[213]},{name:"Pases acertados en 2/4 de cancha",isSelected:!1,id:[214]},{name:"Pases acertados en 3/4 de cancha",isSelected:!1,id:[215]},{name:"Pases acertados en 4/4 de cancha",isSelected:!1,id:[216]}]},offensesConditions:{areYellowCardSelected:!1,areRedCardSelected:!1,areFoulsCommittedSelected:!1}},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:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},expansionPanelModePropsMobil270:{isExpansionPanel:!0,templateProps:{boxShadow:"0px 4px 4px rgba(0, 0, 0, 0)",padding:"20px 0"},expansionPanelProps:{width:"calc(100% - 10px)",borderRadius:"8px",height:"45px",fontColor:"rgba(255,255,255, 0.7)",textFontSize:"14px",textFontFamily:"'Poppins-Regular'",padding:"0px 10px"}},optionSelected:"Los mejores",showVariables:!0,selectedRadioOption:"Variables propias",showAdvanced:!1,isSearchActive:!1,lastSearchFilters:null,seasonsArray:[],activeFilters:[],isLoading:!1,selectedPlayerToAdd:null}},setup(){const t=e.ref("myDivRefTopsBestPlay"),i=e.ref(null),a=e.ref(null),{elementSize:o}=Le(t),{elementSize:s}=Le(i),{elementSize:l}=Le(a);return{myDivRefTopsBestPlay:t,midLayoutRef:i,filterBoxRef:a,elementSize:o,midLayoutSize:s,filterBoxSize:l}},created(){},async mounted(){try{await this.fillPersonalDataFilters(),this.isSearchActive=!0,await new Promise(t=>{const i=()=>{this.filtersObject.template_id?t(!0):setTimeout(i,100)};i()}),await this.toggleSearch()}catch(t){console.error("Error durante la inicialización:",t)}},methods:{onViewProfile(t){this.$emit("open-profile-player",t)},onAddToList(t){this.selectedPlayerToAdd={player_id:t.objeto_player.player_id,name:t.objeto_player.name,position:t.objeto_player.position_id,is_female:t.objeto_player.is_female||0,dob:t.objeto_player.dob,team_id:t.objeto_player.teams[0].team_id,jersey:t.objeto_player.jersey||0,nationality:t.objeto_player.nationality},this.visibleModalAddPlaylist=!0},onShowGraph(t){this.$emit("show-graph",t)},onAddPlayer(t){this.selectedPlayerToAdd=t,this.visibleModalAddPlaylist=!0},onOpenMedia(t){this.$emit("open-media",t)},checkSearchButton(){const t=JSON.stringify(this.filtersObject),i=this.lastSearchFilters?JSON.stringify(this.lastSearchFilters):JSON.stringify(this.defaultFiltersObject);this.isSearchActive=t!==i},onUpdateTournaments(t){this.filtersObject.tournaments=t.filter(i=>i.isSelected).map(i=>i.id),this.seasonsArray=t.filter(i=>i.isSelected).map(i=>({id:i.seasons[0].id,tournamentId:i.tournamentId||1})),this.fillPersonalDataFilters(),this.checkSearchButton()},onUpdateFilters(t){if(t.hasOwnProperty("ageByRange")){const o=t.ageByRange.min==0?10:t.ageByRange.min,s=t.ageByRange.max==0?40:t.ageByRange.max;this.filtersObject.range_age=[o,s],this.filtersObject.age_or_year=1}else t.hasOwnProperty("year")?(this.filtersObject.year=t.year,this.filtersObject.age_or_year=0,this.filtersObject.range_age=[]):this.filtersObject.year=0;var i=[];if(t.hasOwnProperty("nationalities")){this.totalNationalities=t.nationalities.length;for(let o=0;o<t.nationalities.length;o++)t.nationalities[o].isSelected&&i.push(t.nationalities[o].id);i.length==0&&(i=[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.filtersObject.elegibles=[],t.hasOwnProperty("eligibility")&&(this.filtersObject.elegibles=[t.eligibility[0].id]);var a=[];for(let o=0;o<t.positions.length;o++)t.positions[o].isSelected&&a.push(t.positions[o].id);a.length==0&&(a=[1,2,3,4,5,6,7,8,9,10]),this.filtersObject.positions=a,this.filtersObject.nationalities=i,this.checkSearchButton(),this.updateActiveFilters()},onFiltersField(t){this.checkSearchButton()},onFiltersUniverse(t){this.filtersObject.minutes_played=Number(t.minutesPlayed),this.filtersObject.last_months=Number(t.lastMonths),this.filtersObject.minutes_played_avg=Number(t.percentMinutesPlayed),this.filtersObject.type_stats=t.statistics.averagePerGame?3:t.statistics.averagePerMinute?2:1,this.checkSearchButton()},onFiltersProductivity(t){var i=[];for(let a=0;a<t.productivityFilters.length;a++)i[t.productivityFilters[a].priority-1]={name:t.productivityFilters[a].name,ids:t.productivityFilters[a].id};i.length==0&&(i=[]),this.filtersObject.categories=i,this.filtersObject.fouls=t.offensesConditions.areFoulsCommittedSelected,this.filtersObject.yellow_cards=t.offensesConditions.areYellowCardsSelected,this.filtersObject.red_cards=t.offensesConditions.areRedCardsSelected,this.checkSearchButton()},onChangePositions(t){this.filtersObject.positions=t.filter(i=>i.isSelected&&i.id!==0).map(i=>i.id),this.checkSearchButton()},onChangeYear(t){this.filtersObject.year=t,this.personalDataFilters.selectedYear=t,this.checkSearchButton()},async toggleSearch(){if(this.isSearchActive)try{this.isLoading=!0;const t=await(await fetch("https://eh9nhj69z7.execute-api.us-west-2.amazonaws.com/prod/players/productivity",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...this.filtersObject,year:this.filtersObject.year==="Sin límite"?this.personalDataFilters.availableYears[this.personalDataFilters.availableYears.length-1]:this.filtersObject.year})})).json();this.showtableType=!this.filtersObject.template_id,this.formattedPlayers=t.map(i=>({objeto_player:i,player_photo:i.photo,player_name:i.acronym,player_age:this.calculateAge(i.dob),team_abrev:i.teams[0].acronym,jersey:i.jersey,nationality:i.nationality,team_name:i.team_name,is_female:i.is_female,position_name:this.positions[i.position_id-1].fullname,player_position:this.positions[i.position_id-1].fullname,team_logo:"https://golstatsimages.blob.core.windows.net/teams-80/"+i.teams[0].team_id+".png",player_country_flag:`https://golstatsimages.blob.core.windows.net/flags/${i.nationality_id}.jpg`,player_games:i.games_played,player_min:i.minutes_played,...i.stats&&{stats:i.stats},nationality_name:ct[i.nationality_id],league_name:i.tournament_name,seasons:i.seasons,season_id:i.seasons[0]})),this.updateActiveFilters(),this.lastSearchFilters=JSON.parse(JSON.stringify(this.filtersObject)),this.isSearchActive=!1}catch(t){console.error("Error al realizar la búsqueda:",t)}finally{this.isLoading=!1}},calculateAge(t){if(!t)return"-";const i=new Date(t),a=new Date;let o=a.getFullYear()-i.getFullYear();const s=a.getMonth()-i.getMonth();return(s<0||s===0&&a.getDate()<i.getDate())&&o--,o},resetFilters(){this.filtersObject=JSON.parse(JSON.stringify(this.defaultFiltersObject)),this.lastSearchFilters=null,this.checkSearchButton()},async fillPersonalDataFilters(){this.seasonsArray,this.tokenFree},async changeTabsGeneral(t){this.optionSelected=t},closeModalAddPlaylist(){this.visibleModalAddPlaylist=!1},ChangeRadio(t){if(!this.hasTemplates){this.selectedRadioOption="Info general";return}typeof t=="string"?(this.selectedRadioOption=t,this.showVariables=t==="Variables propias",t==="Info general"&&delete this.filtersObject.template_id,this.checkSearchButton()):console.warn("El valor debe ser una cadena de texto")},toggleAdvanced(){this.showAdvanced=!this.showAdvanced},onChangeTemplate(t){t&&(this.filtersObject={...this.filtersObject,template_id:t.id},this.checkSearchButton())},updateActiveFilters(){const t=[];if(this.filtersObject.tournaments.length>0&&this.filtersObject.tournaments.length!=6)if(this.filtersObject.tournaments.length>1)t.push(`Ligas ${this.filtersObject.tournaments.length}`);else{const i=this.tournamentsToFilter.find(a=>this.filtersObject.tournaments.includes(a.id));i&&t.push(i.name)}else t.push("Todas las ligas");if(this.filtersObject.nationalities.length>0&&this.filtersObject.nationalities.length!==this.totalNationalities&&this.filtersObject.nationalities.length!==231){const i=this.filtersObject.nationalities.length;i===1?t.push("Nacionalidad "+ct[this.filtersObject.nationalities[0]]):t.push(`${i} nacionalidades`)}if(this.filtersObject.elegibles&&this.filtersObject.elegibles.length>0&&t.push("Nacionalidad Mexicana"),this.filtersObject.positions.length>0&&this.filtersObject.positions.length!==9)if(this.filtersObject.positions.length===1){const i=this.positions.find(a=>a.id===this.filtersObject.positions[0]);i&&t.push(i.name)}else t.push(`${this.filtersObject.positions.length} posiciones de juego`);if(this.filtersObject.year>0&&t.push(`A partir del ${this.filtersObject.year}`),this.filtersObject.range_age.length===2&&t.push(`${this.filtersObject.range_age[0]}-${this.filtersObject.range_age[1]} años`),this.filtersObject.last_months&&this.filtersObject.last_months!==12&&t.push(`Últimos ${this.filtersObject.last_months} meses`),this.filtersObject.minutes_played>0&&t.push(`Min. ${this.filtersObject.minutes_played} min`),this.filtersObject.minutes_played_avg>0&&t.push(`Min. ${this.filtersObject.minutes_played_avg}% min`),this.filtersObject.type_stats!==1){const i=this.filtersObject.type_stats===2?"Por minuto":"Por partido";t.push(i)}this.activeFilters=t},handleCreateList(){this.showCreatePlaylistModal=!0,this.visibleModalAddPlaylist=!1},closeCreatePlaylistModal(){this.showCreatePlaylistModal=!1},changeSeasonId(t){this.$emit("change-season-id",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},topsLoaded(t){this.$emit("tops-loaded",t)},handleCompareClick(){this.formattedPlayers.length>0&&this.$emit("compare-players",this.formattedPlayers)}}},ot=t=>(e.pushScopeId("data-v-77e491cb"),t=t(),e.popScopeId(),t),nde={ref:"myDivRefTopsBestPlay",class:"tops-best-play"},dde={class:"overlay-loading"},cde=ot(()=>e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1)),pde=ot(()=>e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1)),mde=[cde,pde],ude={class:"strip-menu"},hde={class:"strip-options-vars"},yde={key:0,class:"desktop-layout"},fde={class:"left-containers"},gde={class:"filter-container filter-container-variables container-372"},_de={key:0,class:"filter-container filter-container-variables container-291"},bde=ot(()=>e.createElementVNode("div",{class:"variables-label"},"Templates:",-1)),Sde={class:"variables-indicator"},Cde=ot(()=>e.createElementVNode("div",{class:"filter-label"},"Liga:",-1)),wde={class:"filter-container-box"},kde=ot(()=>e.createElementVNode("div",{class:"filter-label-2"},"Posición:",-1)),Ede={class:"filter-container-box-2"},Vde=ot(()=>e.createElementVNode("div",{class:"filter-label-3"},"A partir del:",-1)),xde={class:"filter-container-box-3"},Tde={class:"advanced-row-top"},Nde=ot(()=>e.createElementVNode("div",{class:"separator-line"},null,-1)),Bde={class:"stats-section"},Fde={class:"filters-applied"},Pde=ot(()=>e.createElementVNode("span",{class:"filters-label"},[e.createElementVNode("strong",null,"Filtros"),e.createTextVNode(" aplicados: ")],-1)),$de={class:"filters-tags-wrapper"},zde={class:"filters-tags"},Ade=ot(()=>e.createElementVNode("img",{src:"http://golstatsimages.blob.core.windows.net/todoelfut/icn-comparar.png",alt:"Comparar",class:"button-icon"},null,-1)),Ide={key:0,class:"no-results"},Mde={key:1,class:"content-container"};function Rde(t,i,a,o,s,l){const r=e.resolveComponent("ModalAddPlayList"),n=e.resolveComponent("ModalAddLista"),c=e.resolveComponent("GscSwitchComponent"),p=e.resolveComponent("GSCRadioToggle"),y=e.resolveComponent("DropdownTemplates"),m=e.resolveComponent("GSCFilters"),h=e.resolveComponent("DropdownPositions"),d=e.resolveComponent("DropdownYears"),f=e.resolveComponent("GSCTableScrollable"),u=e.resolveComponent("PlayTops");return e.openBlock(),e.createElementBlock("div",nde,[e.createVNode(r,{isVisible:s.visibleModalAddPlaylist,onClose:l.closeModalAddPlaylist,"user-id":a.userId,onCreateList:l.handleCreateList,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","onCreateList","player"]),e.createVNode(n,{isVisible:s.showCreatePlaylistModal,onClose:l.closeCreatePlaylistModal,"user-id":a.userId,player:s.selectedPlayerToAdd},null,8,["isVisible","onClose","user-id","player"]),e.withDirectives(e.createElementVNode("div",dde,mde,512),[[e.vShow,s.isLoading]]),e.createElementVNode("div",ude,[e.createVNode(c,{type:2,buttons:["Los mejores","Por jugada"],"background-option-active":"none","font-family":"Poppins-Medium",background:"none","selected-option":s.optionSelected,"font-size":l.sizeTabsFontMP,width:l.sizeTabsMP,borderWidth:"1px",arrow:!1,height:"30px",onInput:l.changeTabsGeneral},null,8,["selected-option","font-size","width","onInput"])]),s.optionSelected==="Los mejores"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",hde,[o.elementSize.width>780?(e.openBlock(),e.createElementBlock("div",yde,[e.createElementVNode("div",fde,[e.createElementVNode("div",gde,[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)]),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",_de,[bde,e.createElementVNode("div",Sde,[e.createVNode(y,{"dropdown-props":s.dropdownProps,"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["dropdown-props","team-id","onChangeTemplate"])])])):e.createCommentVNode("",!0)]),_:1})]),e.createElementVNode("div",{class:"filter-container filter-container-3",onClick:i[0]||(i[0]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),1)])):(e.openBlock(),e.createElementBlock("div",{key:1,ref:"midLayoutRef",class:e.normalizeClass({"mobile-layout":o.elementSize.width<=480,"mid-layout":o.elementSize.width<=780&&o.elementSize.width>480})},[e.createElementVNode("div",{class:e.normalizeClass(["first-row",{"mid-first-row":o.elementSize.width<=780&&o.elementSize.width>480,"no-variables":!s.showVariables}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-container container-372",{"mobile-container":o.elementSize.width<=480}])},[a.hasTemplates?(e.openBlock(),e.createBlock(p,{key:0,height:"20px",width:"41px","background-color":"none","width-circle":"15px","height-circle":"15px","font-size":"14px","circle-color-switch":"#CBEE6B","font-color":"#ffffff","value-default":s.selectedRadioOption,textOptionLeft:"Variables propias",textOptionRight:"Info general",onChange:l.ChangeRadio},null,8,["value-default","onChange"])):e.createCommentVNode("",!0)],2),o.elementSize.width>480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[1]||(i[1]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2),e.createVNode(e.Transition,{name:"zoom-fade",mode:"out-in"},{default:e.withCtx(()=>[s.showVariables?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container container-291",{"mobile-container":o.elementSize.width<=480,"mid-container":o.elementSize.width<=780&&o.elementSize.width>480,"container-292":o.elementSize.width<=780}])},[e.createElementVNode("div",{class:e.normalizeClass(["variables-label",{"mobile-label":o.elementSize.width<=480}])},"Templates:",2),e.createElementVNode("div",{class:e.normalizeClass(["variables-indicator",{"mobile-indicator":o.elementSize.width<=480}])},[e.createVNode(y,{"team-id":a.teamId,onChangeTemplate:l.onChangeTemplate},null,8,["team-id","onChangeTemplate"])],2)],2)):e.createCommentVNode("",!0)]),_:1}),o.elementSize.width<=480?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["filter-container filter-container-3",{"mobile-container":o.elementSize.width<=480}]),onClick:i[2]||(i[2]=(...g)=>l.toggleAdvanced&&l.toggleAdvanced(...g))},e.toDisplayString(l.advancedText),3)):e.createCommentVNode("",!0)],2))]),e.createVNode(e.Transition,{name:"fade-slide",mode:"out-in"},{default:e.withCtx(()=>{var g,C;return[s.showAdvanced?(e.openBlock(),e.createElementBlock("div",{key:1,class:e.normalizeClass(["strip-filters-advanced",{"layout-890":o.elementSize.width<=890,"layout-480":o.elementSize.width<=480}])},[e.createElementVNode("div",Tde,[e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-155",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({width:"99.7%","button-filter-props":l.filterButtonPropsTournamentsAdvanced,"is-one-tournament-only":!1},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!1,filters:s.tournamentsToFilter,"onUpdate:filters":l.onUpdateTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-190",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PERSONAL_DATA,"show-badge-on-filter-full":!1,"is-scouting":""},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{filters:s.personalDataFilters,width:"99.7%",season:null,ref:"personalDataFilter","await-for-filters":!0,"onUpdate:filters":l.onUpdateFilters}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-128",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.UNIVERSE,"show-badge-on-filter-full":!1,filters:s.universeData},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{width:"99.7%","onUpdate:filters":l.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-241",{"equal-width":o.elementSize.width<=890}])},[e.createVNode(m,e.mergeProps({"button-filter-props":l.filterButtonPropsTournamentsAdvanced,"filter-type":s.filtersTypes.PRODUCTIVITY,"show-badge-on-filter-full":!1,width:"99.7%"},o.elementSize.width<420?s.expansionPanelModePropsMobil270:o.elementSize.width<890?s.expansionPanelModePropsMobil:s.expansionPanelModeProps,{"onUpdate:filters":l.onFiltersProductivity,filters:s.detaildProductivityCategories}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])],2),e.createElementVNode("div",{class:e.normalizeClass(["advanced-container container-75",{"equal-width":o.elementSize.width<=890}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[4]||(i[4]=(...k)=>l.toggleSearch&&l.toggleSearch(...k))},"Buscar",2)],2)])],2)):(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["strip-filters-individual",{"grid-two-rows":o.elementSize.width<=780,"gap-reduced-850":o.elementSize.width<=850}]),ref:"filterBoxRef"},[e.createElementVNode("div",{class:e.normalizeClass(["filters-top-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-1",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-tournament":o.elementSize.width<=1e3}])},[Cde,e.createElementVNode("div",wde,[e.createVNode(m,{style:{"margin-left":"-4px"},width:"99.7%","button-filter-props":l.filterButtonProps,"is-one-tournament-only":!1,"filter-type":s.filtersTypes.TOURNAMENTS,"show-badge-on-filter-full":!0,filters:s.selectedRadioOption!="Variables propias"?s.tournamentsToFilter:s.tournamentsToFilterVariables,"onUpdate:filters":l.onUpdateTournaments},null,8,["button-filter-props","filter-type","filters","onUpdate:filters"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-2",{"filter-half-position":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced-position":o.elementSize.width<=1e3}])},[kde,e.createElementVNode("div",Ede,[e.createVNode(h,{"dropdown-props":s.dropdownProps,positions:(g=s.personalDataFilters)==null?void 0:g.positions,onChangePositions:l.onChangePositions},null,8,["dropdown-props","positions","onChangePositions"])])],2)],2),e.createElementVNode("div",{class:e.normalizeClass(["filters-bottom-row",{"two-columns":o.elementSize.width<=780,"stack-vertical":o.elementSize.width<=480,"gap-reduced-850":o.elementSize.width<=850}])},[e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-3",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480,"filter-vertical":o.elementSize.width<=1e3,"filter-reduced":o.elementSize.width<=1e3}])},[Vde,e.createElementVNode("div",xde,[e.createVNode(d,{"dropdown-props":s.dropdownProps,years:(C=s.personalDataFilters)==null?void 0:C.availableYears,"selected-year":s.personalDataFilters.selectedYear||"Sin límite",onChangeYear:l.onChangeYear},null,8,["dropdown-props","years","selected-year","onChangeYear"])])],2),e.createElementVNode("div",{class:e.normalizeClass(["filter-box filter-box-4",{"filter-half":o.elementSize.width<=780&&o.elementSize.width>480,"filter-full":o.elementSize.width<=480}])},[e.createElementVNode("button",{class:e.normalizeClass(["search-button",{active:s.isSearchActive}]),onClick:i[3]||(i[3]=(...k)=>l.toggleSearch&&l.toggleSearch(...k))},"Buscar",2)],2)],2)],2))]}),_:1}),Nde,e.createElementVNode("div",{class:e.normalizeClass(["stats-bar",{"mobile-layout":o.elementSize.width<=780}])},[e.createElementVNode("div",Bde,[e.createElementVNode("div",Fde,[Pde,e.createElementVNode("div",$de,[e.createElementVNode("div",zde,[s.lastSearchFilters&&s.activeFilters.length>0?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.activeFilters,(g,C)=>(e.openBlock(),e.createElementBlock("span",{key:C,class:"filter-tag"},e.toDisplayString(g),1))),128)):e.createCommentVNode("",!0)])])])]),e.createElementVNode("div",{class:e.normalizeClass(["buy-button-container",{"mobile-button":o.elementSize.width<=780}])},[e.createElementVNode("button",{class:"buy-button",onClick:i[5]||(i[5]=(...g)=>l.handleCompareClick&&l.handleCompareClick(...g))},[e.createTextVNode(" Comparar jugadores "),Ade])],2)],2),s.lastSearchFilters&&s.formattedPlayers.length===0?(e.openBlock(),e.createElementBlock("div",Ide," No se encontraron resultados para esta búsqueda ")):s.formattedPlayers.length>0?(e.openBlock(),e.createElementBlock("div",Mde,[e.createVNode(f,{players:s.formattedPlayers,"is-general":s.showtableType,onViewProfile:l.onViewProfile,onAddToList:l.onAddToList,onShowGraph:l.onShowGraph,onOpenMedia:l.onOpenMedia},null,8,["players","is-general","onViewProfile","onAddToList","onShowGraph","onOpenMedia"])])):e.createCommentVNode("",!0)],64)):(e.openBlock(),e.createBlock(u,{key:1,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded,onShowGraph:l.onShowGraph,onAddPlayer:l.onAddPlayer},null,8,["onChangeSeasonId","onOpenmedia","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded","onShowGraph","onAddPlayer"]))],512)}const Lde=Se(rde,[["render",Rde],["__scopeId","data-v-77e491cb"]]),Ode={name:"SwitchTopsType",components:{TopsFull:WZ,TopsBestAndPlay:Lde},data(){return{templates:[],hasTemplates:!1,token:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},created(){this.fetchTemplates()},props:{type:{type:Number,default:1},userId:{type:String,required:!0},teamId:{type:String,required:!0},currentSeasonId:{type:Number,default:0},isSelection:{type:Boolean,default:!1}},methods:{async fetchTemplates(){var t;try{const i=await me.create({headers:{Authorization:`${this.token}`}}).get(`https://a3tmmmjdaj.execute-api.us-east-2.amazonaws.com/prod/teams/${this.teamId}/templates`);this.templates=i.data,this.hasTemplates=((t=i.data)==null?void 0:t.data)&&Array.isArray(i.data.data)&&i.data.data.length>0}catch(i){console.error("Error al obtener templates:",i)}},topsLoaded(t){this.$emit("tops-loaded",t)},openProfileTeam(t){this.$emit("open-profile-team",t)},openProfilePlayer(t){this.$emit("open-profile-player",t)},changeSeasonId(t){this.$emit("change-season-id",t)},comparePlayers(t){this.$emit("compare-players",t)},onOpenMedia(t){this.$emit("open-media",t)},onShowGraph(t){this.$emit("show-graph",t)},onOpenProfilePlayer(t){this.$emit("open-profile-player",t)},onAddToList(t){this.$emit("add-to-list",t)}}};function Dde(t,i,a,o,s,l){const r=e.resolveComponent("TopsFull"),n=e.resolveComponent("TopsBestAndPlay");return e.openBlock(),e.createElementBlock("div",null,[a.type===0?(e.openBlock(),e.createBlock(r,{key:0,onChangeSeasonId:l.changeSeasonId,onOpenmedia:l.onOpenMedia,"team-id":a.teamId,"current-season-id":a.currentSeasonId,"is-selection":a.isSelection,onOpenProfileTeam:l.openProfileTeam,onOpenProfilePlayer:l.openProfilePlayer,onTopsLoaded:l.topsLoaded},null,8,["onChangeSeasonId","onOpenmedia","team-id","current-season-id","is-selection","onOpenProfileTeam","onOpenProfilePlayer","onTopsLoaded"])):(e.openBlock(),e.createBlock(n,{key:1,"team-id":a.teamId,"has-templates":s.hasTemplates,onOpenMedia:l.onOpenMedia,onShowGraph:l.onShowGraph,onComparePlayers:l.comparePlayers,onOpenProfilePlayer:l.onOpenProfilePlayer,onAddToList:l.onAddToList,onChangeSeasonId:l.changeSeasonId,onOpenProfileTeam:l.openProfileTeam,onTopsLoaded:l.topsLoaded,"user-id":a.userId},null,8,["team-id","has-templates","onOpenMedia","onShowGraph","onComparePlayers","onOpenProfilePlayer","onAddToList","onChangeSeasonId","onOpenProfileTeam","onTopsLoaded","user-id"]))])}const jde=Se(Ode,[["render",Dde]]),Wde={class:"elegibles"},up=Qt(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",props:{userId:{type:Number,required:!0,default:24254},teamId:{type:Number,required:!0,default:1}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=y=>{i("openmedia",y)},s=y=>{i("open-profile-team",y)},l=y=>{i("open-profile-player",y)};function r(y){i("showGraph",y)}function n(y){i("change-season-id",y)}function c(y){i("tops-loaded",y)}function p(y){i("comparePlayers",y)}return(y,m)=>(e.openBlock(),e.createElementBlock("div",Wde,[e.createVNode(e.unref(jde),{"is-selection":!0,type:1,"user-id":a.userId,"team-id":a.teamId,"default-section":"Jugadores",onOpenmedia:o,onComparePlayers:p,onOpenMedia:o,onOpenProfileTeam:s,onOpenProfilePlayer:l,onShowGraph:r,onChangeSeasonId:n,onTopsLoaded:c},null,8,["user-id","team-id"])]))}}),[["__scopeId","data-v-f4842a4e"]]),Ude=(t=>(e.pushScopeId("data-v-cd150b8a"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("h2",{class:"title"},"Seguimiento jugadores",-1)),vde={class:""},Gde={class:"tabs"},Hde=Qt({__name:"PlayersTrackingMain",props:{tournamentsApiUrl:{type:String,default:""},tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"},isSeleccionUser:{type:Boolean,default:!1},userTeamId:{type:Number,default:1},userId:{type:Number,default:24254,required:!0},currentSeasonId:{type:Number,default:0},isClubes:{type:Boolean,default:!0}},emits:["openmedia","open-profile-team","open-profile-player","showGraph"],setup(t,{emit:i}){const a=t,o={fontFamily:"Poppins-Light",logosUrl:"https://golstatsimages.blob.core.windows.net/todoelfut/",logoFileType:"png",height:"40px",width:"179px",borderRadius:8,arrowHeight:24,arrowWidth:24,borderType:"solid",borderWidth:1,borderColor:"rgba(255, 255, 255, 0.2)",backgroundColor:"#0d1d29",color:"white",arrowColor:"#CBEE6B"},s=["Detección de jugadores","Lista de seguimientos","Última convocatoria"],l=e.ref("Detección de jugadores"),r=e.ref({width:0}),n=e.ref(null),c=e.ref(0),p=e.ref(0),y=e.ref([]),m=e.ref([]),h=e.ref(!1),d=e.ref(!1),f=e.ref({}),u=e.ref([]),g=e.ref({});e.ref([]),e.watch(()=>a.tournamentId,z=>{z&&U()},{immediate:!0}),e.watch(()=>a.teamId,async z=>{z&&(await k(),await U())},{immediate:!0});const C=z=>{l.value=z};async function k(){try{const z=[fetch(`https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/last-call/teams/${a.teamId}/seasons`,{method:"GET",headers:{Authorization:a.token}}),fetch("https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",{method:"GET",headers:{Authorization:a.token}})],[G,j]=await Promise.all(z),_=await G.json(),b=await j.json();_.forEach(w=>{w.seasonsIds=new Set(w.seasons.map(D=>D.id)),w.availableTournaments=w.seasonsIds?b.reduce((D,_e)=>{if(_e.seasons.some(De=>w.seasonsIds.has(De.id))){const De=_e.seasons.filter(Oi=>w.seasonsIds.has(Oi.id));D.push({..._e.tournament,seasonsIds:w.seasonsIds,seasons:De,teamId:w.team_id})}return D},[]):[]}),u.value=_,g.value=_[0]}catch(z){console.error(z)}}async function U(){try{if(c.value!==a.tournamentId||p.value!==a.teamId){const z=[A()];c.value=a.tournamentId,p.value=a.teamId;const[G]=await Promise.all(z);m.value=G}}catch(z){console.error("Error filling data",z)}}function q(){v().then(z=>{y.value=z})}async function A(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/in-followed/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(z){console.error("Error fetching in followed",z)}}async function v(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${f.value.id}/teams/${f.value.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(z){console.error("Error fetching last called",z)}}const Y=()=>{n.value&&(r.value.width=n.value.offsetWidth,h.value=r.value.width<700,d.value=r.value.width<420)};e.onMounted(()=>{Y();const z=new ResizeObserver(Y);n.value&&z.observe(n.value)});const J=e.computed(()=>{const z=r.value.width;return z<=560?"170px":(z<=650||z<=768,"225px")}),x=e.computed(()=>{const z=r.value.width;return z<=460?"12px":z<=650?"13px":z<=768?"14px":"16px"});e.computed(()=>r.value.width<=380?"18px":"22px");const T=e.computed(()=>{switch(l.value){case"Detección de jugadores":return up;case"Lista de seguimientos":return a7;case"Última convocatoria":return Gm;default:return up}}),S=e.computed(()=>d.value||h.value?"100%":"179px"),F=z=>{i("openmedia",z)},P=z=>{i("showGraph",z)},H=z=>{i("open-profile-team",z)},Z=z=>{i("open-profile-player",z)},de=z=>{i("open-profile-player",z)},ae=z=>{i("comparePlayers",z)};function E(z){i("change-season-id",z)}function V(z){i("tops-loaded",z)}const O=z=>{f.value=z,q()};function $(z){g.value=z}function W(z){g.value=z}return(z,G)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:n},[e.createElementVNode("div",{class:e.normalizeClass(["header",{"header-mobile":h.value}])},[Ude,e.createElementVNode("div",{class:e.normalizeClass(["selectors",{"selectors-mobile":h.value}])},[t.isSeleccionUser&&l.value==="Última convocatoria"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[e.createVNode(e.unref(Ip),e.mergeProps(o,{"model-value":g.value,items:u.value,onInput:$,"onUpdate:modelValue":W}),{default:e.withCtx(({selectedItem:j})=>[e.createElementVNode("div",vde,e.toDisplayString(j.team_name),1)]),availableItem:e.withCtx(({item:j})=>[e.createElementVNode("div",null,e.toDisplayString(j.team_name),1)]),_:1},16,["model-value","items"])],2),e.createElementVNode("div",{class:e.normalizeClass(["select-container",{"select-container-mobile":h.value}])},[g.value&&g.value.availableTournaments&&g.value.availableTournaments.length?(e.openBlock(),e.createBlock(e.unref(rm),{key:0,items:g.value.availableTournaments,width:S.value,onInput:O},null,8,["items","width"])):e.createCommentVNode("",!0)],2)],64)):e.createCommentVNode("",!0)],2)],2),e.createElementVNode("div",Gde,[e.createVNode(e.unref(Bm),{type:2,buttons:s,"font-family":"Poppins-Medium","selected-option":l.value,"font-size":x.value,width:J.value,borderWidth:"1px",arrow:!1,height:"30px",onInput:C},null,8,["selected-option","font-size","width"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":l.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(T.value),{"parent-width":r.value.width,"user-id":a.userId,"user-team-id":a.userTeamId,"last-called-players":y.value,"in-followed-players":m.value,onShowGraph:P,onShowProfile:de,onOpenmedia:F,onOpenMedia:F,onOpenProfileTeam:H,onOpenProfilePlayer:Z,onChangeSeasonId:E,onTopsLoaded:V,onComparePlayers:ae},null,40,["parent-width","user-id","user-team-id","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-cd150b8a"]]),Jde={class:"subcategory-group"},qde={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Jde,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(se),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Yde=re(qde,[["__scopeId","data-v-ae6f3d72"]]),Zde={class:"filter-subcategories"},Kde=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Zde,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(Yde,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ri=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),Xde={class:"details__header"},Qde=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),ece={class:"details__header__checkbox"},tce={class:"details__body"},ace={class:"details__body__playing-as"},ice=["onClick"],oce={class:"details__header"},sce=Ri(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),lce={class:"details__header__checkbox"},rce={class:"details__body"},nce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),dce={class:"details__body__game-section"},cce=["onClick"],pce={class:"details__body"},mce=Ri(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),uce={class:"details__body__game-section"},hce=["onClick"],yce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__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(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",Xde,[Qde,e.createElementVNode("div",ece,[e.createVNode(e.unref(se),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",tce,[e.createElementVNode("div",ace,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,ice))),128))])]),e.createElementVNode("div",oce,[sce,e.createElementVNode("div",lce,[e.createVNode(e.unref(se),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",rce,[nce,e.createElementVNode("div",dce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,cce))),128))])]),e.createElementVNode("div",pce,[mce,e.createElementVNode("div",uce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,hce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),fce={class:"filter-field"},gce=Object.freeze(Object.defineProperty({__proto__:null,default:re({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",fce,[e.createVNode(e.unref(_r),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"})),_ce={class:"subcategory-group"},bce={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",_ce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(oe),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},Sce=le(bce,[["__scopeId","data-v-ae6f3d72"]]),Cce={class:"filter-subcategories"},wce=Object.freeze(Object.defineProperty({__proto__:null,default:le({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",Cce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroups,o=>(e.openBlock(),e.createElementBlock("div",{key:o.id,class:"filter-subcategories__group"},[e.createVNode(Sce,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Li=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),kce={class:"details__header"},Ece=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),Vce={class:"details__header__checkbox"},xce={class:"details__body"},Tce={class:"details__body__playing-as"},Nce=["onClick"],Bce={class:"details__header"},Fce=Li(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),Pce={class:"details__header__checkbox"},$ce={class:"details__body"},zce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),Ace={class:"details__body__game-section"},Ice=["onClick"],Mce={class:"details__body"},Rce=Li(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),Lce={class:"details__body__game-section"},Oce=["onClick"],Dce=Object.freeze(Object.defineProperty({__proto__:null,default:le({__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(t){const i=t;e.useCssVars(y=>({"49cba245":t.buttonsBackgroundColor,"52f02da6":t.buttonsTextColor,"7d3f686a":t.buttonsBorderWidth,"7c286a07":t.buttonsBorderColor,"24a6f4aa":t.buttonsBackgroundColorActive,cd8d7768:t.buttonsTextColorActive,"35fa5c10":t.buttonsBorderWidthActive,"0cde1826":t.buttonsBorderColorActive}));const a=e.computed(()=>i.playingAs.every(y=>y.isSelected)),o=e.computed(()=>i.gameSections.every(y=>y.isSelected)),s=e.computed(()=>i.gameSections.reduce((y,m)=>(m.value<=3?y.firstHalf.push(m):y.secondHalf.push(m),y),{firstHalf:[],secondHalf:[]})),l=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function r(y){y?i.playingAs.forEach(m=>{m.isSelected=!0}):i.playingAs.forEach((m,h)=>{m.isSelected=h===0})}function n(y){i.playingAs.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){i.gameSections.filter(m=>m.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function p(y){y?i.gameSections.forEach(m=>{m.isSelected=!0}):i.gameSections.forEach((m,h)=>{m.isSelected=h===0})}return(y,m)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",kce,[Ece,e.createElementVNode("div",Vce,[e.createVNode(e.unref(oe),{label:"Todos","model-value":a.value,"onUpdate:modelValue":r},null,8,["model-value"])])]),e.createElementVNode("div",xce,[e.createElementVNode("div",Tce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>n(h)},e.toDisplayString(h.name),11,Nce))),128))])]),e.createElementVNode("div",Bce,[Fce,e.createElementVNode("div",Pce,[e.createVNode(e.unref(oe),{label:"Todos","model-value":o.value,"onUpdate:modelValue":p},null,8,["model-value"])])]),e.createElementVNode("div",$ce,[zce,e.createElementVNode("div",Ace,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Ice))),128))])]),e.createElementVNode("div",Mce,[Rce,e.createElementVNode("div",Lce,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(h,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:h.isSelected}]),onClick:f=>c(h)},e.toDisplayString(h.text),11,Oce))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),jce={class:"filter-field"},Wce=Object.freeze(Object.defineProperty({__proto__:null,default:le({__name:"FilterField",setup(t){const i=e.ref(Array.from({length:16},(o,s)=>s+1));function a(){}return(o,s)=>(e.openBlock(),e.createElementBlock("div",jce,[e.createVNode(e.unref(Kd),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));ft.GSCPlayersTracking=Hde,Object.defineProperty(ft,Symbol.toStringTag,{value:"Module"})});
|