@golstats/gsc-players-tracking 1.0.1 → 1.0.2
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-f3ba9061-cde48011-Dn1RIO1A.js → FilterConditions-f3ba9061-cde48011-CM-AeZIp.js} +1 -1
- package/dist/{FilterField-977a3807-52660a52-KG52XBYS.js → FilterField-977a3807-52660a52-SHrYBk8T.js} +1 -1
- package/dist/{FilterSubcategories-0000fdf5-48dc6ae6-grc4NaKW.js → FilterSubcategories-0000fdf5-48dc6ae6-uoiSOSeg.js} +1 -1
- package/dist/gsc-players-tracking.es.js +1 -1
- package/dist/gsc-players-tracking.umd.js +2 -2
- package/dist/{index-CM9WAJ6f.js → index-UQe18RSY.js} +107 -107
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(Be,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(Be=typeof globalThis<"u"?globalThis:Be||self,e(Be.GSCPlayersTracking={},Be.Vue))})(this,function(Be,e){"use strict";function Ws(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 js=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Gt={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)}}},si=()=>{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}))},ri=Gt.setup;Gt.setup=ri?(t,i)=>(si(),ri(t,i)):si;const vs={ref:"gscScrollableContainer",class:"scrollable-container"},Us={class:"scrollable-arrows"},Gs=["width","height","viewBox"],Hs=["stroke"],qs={class:"scrollable-wrapper"},Js={class:"scrollable-arrows"},Ys=["width","height","viewBox"],Zs=["stroke"];function Ks(t,i,a,o,s,r){return e.openBlock(),e.createElementBlock("div",vs,[a.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...l)=>r.scrollLeft&&r.scrollLeft(...l))},[e.createElementVNode("div",Us,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.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,Hs)],8,Gs))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...l)=>r.getScroll&&r.getScroll(...l))},[e.createElementVNode("div",qs,[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",r.hideShowRightArrow]),onClick:i[2]||(i[2]=(...l)=>r.scrollRight&&r.scrollRight(...l))},[e.createElementVNode("div",Js,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.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,Zs)],8,Ys))])],2)):e.createCommentVNode("",!0)],512)}const Xs=js(Gt,[["render",Ks],["__scopeId","data-v-b548a08d"]]),Qs=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Ht={components:{GSCSlider:Xs},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}=Ws(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}}},li=()=>{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}))},ni=Ht.setup;Ht.setup=ni?(t,i)=>(li(),ni(t,i)):li;const er={ref:"myDivRef"},tr={key:0,class:"gs-switch-container"},ar=["onClick"],ir={key:1,class:"gs-switch-container-type"},or=["onClick"],sr={key:2,class:"gs-switch-container-carousel"},rr=["onClick"];function lr(t,i,a,o,s,r){const l=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",er,[a.type==0?(e.openBlock(),e.createElementBlock("div",tr,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([r.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,m)=>(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:m,onClick:c=>(a.selectedOption=n,r.clickEmitEvent(n))},e.toDisplayString(n),13,ar))),128))],4),e.renderSlot(t.$slots,a.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",ir,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([r.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,m)=>(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:m,onClick:c=>(a.selectedOption=n,r.clickEmitEvent(n))},e.toDisplayString(n),13,or))),128))],4)])):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",sr,[e.createVNode(l,{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,m)=>(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:m,onClick:c=>(a.selectedOption=n,r.clickEmitEvent(n))},e.toDisplayString(n),13,rr))),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 nr=Qs(Ht,[["render",lr],["__scopeId","data-v-8a86dfaf"]]),dr=[{id:1,name:"Portero"},{id:2,name:"Defensa Central"},{id:3,name:"Lateral por izquierda"},{id:4,name:"Lateral por derecha"},{id:5,name:"Volante por izquierda"},{id:6,name:"Volante por derecha"},{id:7,name:"Volante defensivo"},{id:8,name:"Volante ofensivo"},{id:9,name:"Delantero"}],cr=new Map(dr.map(t=>[t.id,t.name])),qe=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},pr={class:"player-card__image"},mr=["src"],ur={class:"player-card__number"},fr={class:"player-card__right-data"},hr={class:"player-card__age"},yr={class:"player-card__flag"},gr={class:"player-card__details"},_r={class:"player-card__name"},br={class:"player-card__position"},di=qe({__name:"GscPlayerCard",props:{player:{type:Object,default:()=>{}},countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},positionId:{type:Number,default:0},photo:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["click-player"],setup(t,{emit:i}){const a=t,o=e.computed(()=>cr.get(a.player.position_id));function s(){console.log("click",a.player),i("click-player",a.player)}return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:"player-card",onClick:s},[e.createElementVNode("div",pr,[e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.player.photo,alt:"Player Image"},null,10,mr),e.createElementVNode("div",ur,e.toDisplayString(t.player.jersey),1),e.createElementVNode("div",fr,[e.createElementVNode("div",hr,e.toDisplayString(t.player.age)+" años",1),e.createElementVNode("div",yr,[e.createElementVNode("div",{class:"player-card__flag-container",style:e.normalizeStyle({"background-image":`url(https://golstatsimages.blob.core.windows.net/flags/${a.player.nationality_id}.jpg)`})},null,4)])])]),e.createElementVNode("div",gr,[e.createElementVNode("p",_r,e.toDisplayString(t.player.name),1),e.createElementVNode("p",br,e.toDisplayString(o.value),1)])]))}},[["__scopeId","data-v-366fdf94"]]),Sr=t=>(e.pushScopeId("data-v-12fc73db"),t=t(),e.popScopeId(),t),Cr={class:"ultima-convocatoria"},wr=Sr(()=>e.createElementVNode("div",{class:"section-title"},"México",-1)),ci=qe({__name:"UltimaConvocatoria",props:{parentWidth:{type:Number,required:!0},lastCalledPlayers:{type:Array,default:()=>[]}},emits:["open-profile-player"],setup(t,{emit:i}){function a(o){console.log("onClickPlayerCard",o),i("open-profile-player",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Cr,[wr,e.createElementVNode("div",{class:e.normalizeClass(["jugadores-grid",{"grid-xs":t.parentWidth<=520,"grid-sm":t.parentWidth>520&&t.parentWidth<=740,"grid-md":t.parentWidth>740&&t.parentWidth<=920,"grid-lg":t.parentWidth>920&&t.parentWidth<=1060,"grid-xl":t.parentWidth>1060}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lastCalledPlayers,r=>(e.openBlock(),e.createBlock(di,{key:r.player_id,player:r,onClickPlayer:a},null,8,["player"]))),128))],2)]))}},[["__scopeId","data-v-12fc73db"]]),kr=t=>(e.pushScopeId("data-v-10f0e770"),t=t(),e.popScopeId(),t),Er={class:"ultima-convocatoria"},Tr=kr(()=>e.createElementVNode("div",{class:"section-title"},"México",-1)),Vr=qe({__name:"EnSeguimiento",props:{parentWidth:{type:Number,required:!0},inFollowedPlayers:{type:Array,default:()=>[]}},emits:["open-profile-player"],setup(t,{emit:i}){function a(o){i("open-profile-player",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Er,[Tr,e.createElementVNode("div",{class:e.normalizeClass(["jugadores-grid",{"grid-xs":t.parentWidth<=520,"grid-sm":t.parentWidth>520&&t.parentWidth<=740,"grid-md":t.parentWidth>740&&t.parentWidth<=920,"grid-lg":t.parentWidth>920&&t.parentWidth<=1060,"grid-xl":t.parentWidth>1060}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.inFollowedPlayers,r=>(e.openBlock(),e.createBlock(di,{key:r.player_id,player:r,onClickPlayer:a},null,8,["player"]))),128))],2)]))}},[["__scopeId","data-v-10f0e770"]]);function pi(t,i){return function(){return t.apply(i,arguments)}}const{toString:xr}=Object.prototype,{getPrototypeOf:qt}=Object,pt=(t=>i=>{const a=xr.call(i);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),he=t=>(t=t.toLowerCase(),i=>pt(i)===t),mt=t=>i=>typeof i===t,{isArray:$e}=Array,Je=mt("undefined");function Nr(t){return t!==null&&!Je(t)&&t.constructor!==null&&!Je(t.constructor)&&me(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mi=he("ArrayBuffer");function Br(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&mi(t.buffer),i}const Fr=mt("string"),me=mt("function"),ui=mt("number"),ut=t=>t!==null&&typeof t=="object",Pr=t=>t===!0||t===!1,ft=t=>{if(pt(t)!=="object")return!1;const i=qt(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},zr=he("Date"),Ar=he("File"),Ir=he("Blob"),Rr=he("FileList"),Mr=t=>ut(t)&&me(t.pipe),Or=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||me(t.append)&&((i=pt(t))==="formdata"||i==="object"&&me(t.toString)&&t.toString()==="[object FormData]"))},Lr=he("URLSearchParams"),[$r,Dr,Wr,jr]=["ReadableStream","Request","Response","Headers"].map(he),vr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ye(t,i,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),$e(t))for(o=0,s=t.length;o<s;o++)i.call(null,t[o],o,t);else{const r=a?Object.getOwnPropertyNames(t):Object.keys(t),l=r.length;let n;for(o=0;o<l;o++)n=r[o],i.call(null,t[n],n,t)}}function fi(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 Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hi=t=>!Je(t)&&t!==Fe;function Jt(){const{caseless:t}=hi(this)&&this||{},i={},a=(o,s)=>{const r=t&&fi(i,s)||s;ft(i[r])&&ft(o)?i[r]=Jt(i[r],o):ft(o)?i[r]=Jt({},o):$e(o)?i[r]=o.slice():i[r]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Ye(arguments[o],a);return i}const Ur=(t,i,a,{allOwnKeys:o}={})=>(Ye(i,(s,r)=>{a&&me(s)?t[r]=pi(s,a):t[r]=s},{allOwnKeys:o}),t),Gr=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Hr=(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)},qr=(t,i,a,o)=>{let s,r,l;const n={};if(i=i||{},t==null)return i;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)l=s[r],(!o||o(l,t,i))&&!n[l]&&(i[l]=t[l],n[l]=!0);t=a!==!1&&qt(t)}while(t&&(!a||a(t,i))&&t!==Object.prototype);return i},Jr=(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},Yr=t=>{if(!t)return null;if($e(t))return t;let i=t.length;if(!ui(i))return null;const a=new Array(i);for(;i-- >0;)a[i]=t[i];return a},Zr=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&qt(Uint8Array)),Kr=(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])}},Xr=(t,i)=>{let a;const o=[];for(;(a=t.exec(i))!==null;)o.push(a);return o},Qr=he("HTMLFormElement"),el=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,o){return a.toUpperCase()+o}),yi=(({hasOwnProperty:t})=>(i,a)=>t.call(i,a))(Object.prototype),tl=he("RegExp"),gi=(t,i)=>{const a=Object.getOwnPropertyDescriptors(t),o={};Ye(a,(s,r)=>{let l;(l=i(s,r,t))!==!1&&(o[r]=l||s)}),Object.defineProperties(t,o)},al=t=>{gi(t,(i,a)=>{if(me(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(me(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+"'")})}})},il=(t,i)=>{const a={},o=s=>{s.forEach(r=>{a[r]=!0})};return $e(t)?o(t):o(String(t).split(i)),a},ol=()=>{},sl=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function rl(t){return!!(t&&me(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ll=t=>{const i=new Array(10),a=(o,s)=>{if(ut(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[s]=o;const r=$e(o)?[]:{};return Ye(o,(l,n)=>{const m=a(l,s+1);!Je(m)&&(r[n]=m)}),i[s]=void 0,r}}return o};return a(t,0)},nl=he("AsyncFunction"),dl=t=>t&&(ut(t)||me(t))&&me(t.then)&&me(t.catch),_i=((t,i)=>t?setImmediate:i?((a,o)=>(Fe.addEventListener("message",({source:s,data:r})=>{s===Fe&&r===a&&o.length&&o.shift()()},!1),s=>{o.push(s),Fe.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",me(Fe.postMessage)),cl=typeof queueMicrotask<"u"?queueMicrotask.bind(Fe):typeof process<"u"&&process.nextTick||_i,S={isArray:$e,isArrayBuffer:mi,isBuffer:Nr,isFormData:Or,isArrayBufferView:Br,isString:Fr,isNumber:ui,isBoolean:Pr,isObject:ut,isPlainObject:ft,isReadableStream:$r,isRequest:Dr,isResponse:Wr,isHeaders:jr,isUndefined:Je,isDate:zr,isFile:Ar,isBlob:Ir,isRegExp:tl,isFunction:me,isStream:Mr,isURLSearchParams:Lr,isTypedArray:Zr,isFileList:Rr,forEach:Ye,merge:Jt,extend:Ur,trim:vr,stripBOM:Gr,inherits:Hr,toFlatObject:qr,kindOf:pt,kindOfTest:he,endsWith:Jr,toArray:Yr,forEachEntry:Kr,matchAll:Xr,isHTMLForm:Qr,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:gi,freezeMethods:al,toObjectSet:il,toCamelCase:el,noop:ol,toFiniteNumber:sl,findKey:fi,global:Fe,isContextDefined:hi,isSpecCompliantForm:rl,toJSONObject:ll,isAsyncFn:nl,isThenable:dl,setImmediate:_i,asap:cl};function L(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)}S.inherits(L,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const bi=L.prototype,Si={};["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=>{Si[t]={value:t}}),Object.defineProperties(L,Si),Object.defineProperty(bi,"isAxiosError",{value:!0}),L.from=(t,i,a,o,s,r)=>{const l=Object.create(bi);return S.toFlatObject(t,l,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),L.call(l,t.message,i,a,o,s),l.cause=t,l.name=t.name,r&&Object.assign(l,r),l};const pl=null;function Yt(t){return S.isPlainObject(t)||S.isArray(t)}function Ci(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function wi(t,i,a){return t?t.concat(i).map(function(o,s){return o=Ci(o),!a&&s?"["+o+"]":o}).join(a?".":""):i}function ml(t){return S.isArray(t)&&!t.some(Yt)}const ul=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function ht(t,i,a){if(!S.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,a=S.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!S.isUndefined(h[d])});const o=a.metaTokens,s=a.visitor||c,r=a.dots,l=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(i);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function m(d){if(d===null)return"";if(S.isDate(d))return d.toISOString();if(!n&&S.isBlob(d))throw new L("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(d)||S.isTypedArray(d)?n&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,u){let g=d;if(d&&!u&&typeof d=="object"){if(S.endsWith(h,"{}"))h=o?h:h.slice(0,-2),d=JSON.stringify(d);else if(S.isArray(d)&&ml(d)||(S.isFileList(d)||S.endsWith(h,"[]"))&&(g=S.toArray(d)))return h=Ci(h),g.forEach(function(w,k){!(S.isUndefined(w)||w===null)&&i.append(l===!0?wi([h],k,r):l===null?h:h+"[]",m(w))}),!1}return Yt(d)?!0:(i.append(wi(u,h,r),m(d)),!1)}const y=[],p=Object.assign(ul,{defaultVisitor:c,convertValue:m,isVisitable:Yt});function f(d,h){if(!S.isUndefined(d)){if(y.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));y.push(d),S.forEach(d,function(u,g){(!(S.isUndefined(u)||u===null)&&s.call(i,u,S.isString(g)?g.trim():g,h,p))===!0&&f(u,h?h.concat(g):[g])}),y.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return f(t),i}function ki(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Zt(t,i){this._pairs=[],t&&ht(t,this,i)}const Ei=Zt.prototype;Ei.append=function(t,i){this._pairs.push([t,i])},Ei.toString=function(t){const i=t?function(a){return t.call(this,a,ki)}:ki;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function fl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ti(t,i,a){if(!i)return t;const o=a&&a.encode||fl;S.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let r;if(s?r=s(i,a):r=S.isURLSearchParams(i)?i.toString():new Zt(i,a).toString(o),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class hl{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){S.forEach(this.handlers,function(a){a!==null&&i(a)})}}const Vi=hl,xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yl=typeof URLSearchParams<"u"?URLSearchParams:Zt,gl=typeof FormData<"u"?FormData:null,_l=typeof Blob<"u"?Blob:null,bl={isBrowser:!0,classes:{URLSearchParams:yl,FormData:gl,Blob:_l},protocols:["http","https","file","blob","url","data"]},Kt=typeof window<"u"&&typeof document<"u",Xt=typeof navigator=="object"&&navigator||void 0,Sl=Kt&&(!Xt||["ReactNative","NativeScript","NS"].indexOf(Xt.product)<0),Cl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wl=Kt&&window.location.href||"http://localhost",kl=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kt,hasStandardBrowserEnv:Sl,hasStandardBrowserWebWorkerEnv:Cl,navigator:Xt,origin:wl},Symbol.toStringTag,{value:"Module"})),le={...kl,...bl};function El(t,i){return ht(t,new le.classes.URLSearchParams,Object.assign({visitor:function(a,o,s,r){return le.isNode&&S.isBuffer(a)?(this.append(o,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},i))}function Tl(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Vl(t){const i={},a=Object.keys(t);let o;const s=a.length;let r;for(o=0;o<s;o++)r=a[o],i[r]=t[r];return i}function Ni(t){function i(a,o,s,r){let l=a[r++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),m=r>=a.length;return l=!l&&S.isArray(s)?s.length:l,m?(S.hasOwnProp(s,l)?s[l]=[s[l],o]:s[l]=o,!n):((!s[l]||!S.isObject(s[l]))&&(s[l]=[]),i(a,o,s[l],r)&&S.isArray(s[l])&&(s[l]=Vl(s[l])),!n)}if(S.isFormData(t)&&S.isFunction(t.entries)){const a={};return S.forEachEntry(t,(o,s)=>{i(Tl(o),s,a,0)}),a}return null}function xl(t,i,a){if(S.isString(t))try{return(i||JSON.parse)(t),S.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const Qt={transitional:xi,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",o=a.indexOf("application/json")>-1,s=S.isObject(t);if(s&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Ni(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return El(t,this.formSerializer).toString();if((r=S.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ht(r?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),xl(t)):t}],transformResponse:[function(t){const i=this.transitional||Qt.transitional,a=i&&i.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(a&&!this.responseType||o)){const s=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(r){if(s)throw r.name==="SyntaxError"?L.from(r,L.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{Qt.headers[t]={}});const ea=Qt,Nl=S.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"]),Bl=t=>{const i={};let a,o,s;return t&&t.split(`
|
|
1
|
+
(function(Be,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(Be=typeof globalThis<"u"?globalThis:Be||self,e(Be.GSCPlayersTracking={},Be.Vue))})(this,function(Be,e){"use strict";function Ws(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 js=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Gt={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)}}},si=()=>{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}))},ri=Gt.setup;Gt.setup=ri?(t,i)=>(si(),ri(t,i)):si;const vs={ref:"gscScrollableContainer",class:"scrollable-container"},Us={class:"scrollable-arrows"},Gs=["width","height","viewBox"],Hs=["stroke"],qs={class:"scrollable-wrapper"},Js={class:"scrollable-arrows"},Ys=["width","height","viewBox"],Zs=["stroke"];function Ks(t,i,a,o,s,r){return e.openBlock(),e.createElementBlock("div",vs,[a.arrows?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["arrows-container",r.hideShowLeftArrow]),onClick:i[0]||(i[0]=(...l)=>r.scrollLeft&&r.scrollLeft(...l))},[e.createElementVNode("div",Us,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.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,Hs)],8,Gs))])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"scrollable-content scrollable-content-slider",ref:"content",onScroll:i[1]||(i[1]=(...l)=>r.getScroll&&r.getScroll(...l))},[e.createElementVNode("div",qs,[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",r.hideShowRightArrow]),onClick:i[2]||(i[2]=(...l)=>r.scrollRight&&r.scrollRight(...l))},[e.createElementVNode("div",Js,[(e.openBlock(),e.createElementBlock("svg",{width:a.arrowsWidth,height:a.arrowsHeight,viewBox:r.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,Zs)],8,Ys))])],2)):e.createCommentVNode("",!0)],512)}const Xs=js(Gt,[["render",Ks],["__scopeId","data-v-b548a08d"]]),Qs=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},Ht={components:{GSCSlider:Xs},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}=Ws(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}}},li=()=>{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}))},ni=Ht.setup;Ht.setup=ni?(t,i)=>(li(),ni(t,i)):li;const er={ref:"myDivRef"},tr={key:0,class:"gs-switch-container"},ar=["onClick"],ir={key:1,class:"gs-switch-container-type"},or=["onClick"],sr={key:2,class:"gs-switch-container-carousel"},rr=["onClick"];function lr(t,i,a,o,s,r){const l=e.resolveComponent("GSCSlider");return e.openBlock(),e.createElementBlock("div",er,[a.type==0?(e.openBlock(),e.createElementBlock("div",tr,[e.createElementVNode("div",{class:"gs-switch-container__control",style:e.normalizeStyle([r.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,m)=>(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:m,onClick:c=>(a.selectedOption=n,r.clickEmitEvent(n))},e.toDisplayString(n),13,ar))),128))],4),e.renderSlot(t.$slots,a.selectedOption,{},void 0,!0)])):e.createCommentVNode("",!0),a.type==1?(e.openBlock(),e.createElementBlock("div",ir,[e.createElementVNode("div",{class:"gs-switch-container-type__control",style:e.normalizeStyle([r.customGrid(o.elementSize)])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(a.buttons,(n,m)=>(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:m,onClick:c=>(a.selectedOption=n,r.clickEmitEvent(n))},e.toDisplayString(n),13,or))),128))],4)])):e.createCommentVNode("",!0),a.type==2?(e.openBlock(),e.createElementBlock("div",sr,[e.createVNode(l,{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,m)=>(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:m,onClick:c=>(a.selectedOption=n,r.clickEmitEvent(n))},e.toDisplayString(n),13,rr))),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 nr=Qs(Ht,[["render",lr],["__scopeId","data-v-8a86dfaf"]]),dr=[{id:1,name:"Portero"},{id:2,name:"Defensa Central"},{id:3,name:"Lateral por izquierda"},{id:4,name:"Lateral por derecha"},{id:5,name:"Volante por izquierda"},{id:6,name:"Volante por derecha"},{id:7,name:"Volante defensivo"},{id:8,name:"Volante ofensivo"},{id:9,name:"Delantero"}],cr=new Map(dr.map(t=>[t.id,t.name])),qe=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},pr={class:"player-card__image"},mr=["src"],ur={class:"player-card__number"},fr={class:"player-card__right-data"},hr={class:"player-card__age"},yr={class:"player-card__flag"},gr={class:"player-card__details"},_r={class:"player-card__name"},br={class:"player-card__position"},di=qe({__name:"GscPlayerCard",props:{player:{type:Object,default:()=>{}},countryFlag:{type:String,default:""},jersey:{type:Number,default:0},age:{type:Number,default:18},nationality:{type:String,default:"-"},name:{type:String,default:"-"},position:{type:String,default:"-"},positionId:{type:Number,default:0},photo:{type:String,default:""},isImgFullWidth:{type:Boolean,default:!1}},emits:["click-player"],setup(t,{emit:i}){const a=t,o=e.computed(()=>cr.get(a.player.position_id));function s(){i("click-player",a.player)}return(r,l)=>(e.openBlock(),e.createElementBlock("div",{class:"player-card",onClick:s},[e.createElementVNode("div",pr,[e.createElementVNode("img",{class:e.normalizeClass(["player-card__photo",{"full-width":t.isImgFullWidth}]),src:t.player.photo,alt:"Player Image"},null,10,mr),e.createElementVNode("div",ur,e.toDisplayString(t.player.jersey),1),e.createElementVNode("div",fr,[e.createElementVNode("div",hr,e.toDisplayString(t.player.age)+" años",1),e.createElementVNode("div",yr,[e.createElementVNode("div",{class:"player-card__flag-container",style:e.normalizeStyle({"background-image":`url(https://golstatsimages.blob.core.windows.net/flags/${a.player.nationality_id}.jpg)`})},null,4)])])]),e.createElementVNode("div",gr,[e.createElementVNode("p",_r,e.toDisplayString(t.player.name),1),e.createElementVNode("p",br,e.toDisplayString(o.value),1)])]))}},[["__scopeId","data-v-5921e0af"]]),Sr=t=>(e.pushScopeId("data-v-32acf1a4"),t=t(),e.popScopeId(),t),Cr={class:"ultima-convocatoria"},wr=Sr(()=>e.createElementVNode("div",{class:"section-title"},"México",-1)),ci=qe({__name:"UltimaConvocatoria",props:{parentWidth:{type:Number,required:!0},lastCalledPlayers:{type:Array,default:()=>[]}},emits:["open-profile-player"],setup(t,{emit:i}){function a(o){i("open-profile-player",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Cr,[wr,e.createElementVNode("div",{class:e.normalizeClass(["jugadores-grid",{"grid-xs":t.parentWidth<=520,"grid-sm":t.parentWidth>520&&t.parentWidth<=740,"grid-md":t.parentWidth>740&&t.parentWidth<=920,"grid-lg":t.parentWidth>920&&t.parentWidth<=1060,"grid-xl":t.parentWidth>1060}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.lastCalledPlayers,r=>(e.openBlock(),e.createBlock(di,{key:r.player_id,player:r,onClickPlayer:a},null,8,["player"]))),128))],2)]))}},[["__scopeId","data-v-32acf1a4"]]),kr=t=>(e.pushScopeId("data-v-10f0e770"),t=t(),e.popScopeId(),t),Er={class:"ultima-convocatoria"},Tr=kr(()=>e.createElementVNode("div",{class:"section-title"},"México",-1)),Vr=qe({__name:"EnSeguimiento",props:{parentWidth:{type:Number,required:!0},inFollowedPlayers:{type:Array,default:()=>[]}},emits:["open-profile-player"],setup(t,{emit:i}){function a(o){i("open-profile-player",o)}return(o,s)=>(e.openBlock(),e.createElementBlock("div",Er,[Tr,e.createElementVNode("div",{class:e.normalizeClass(["jugadores-grid",{"grid-xs":t.parentWidth<=520,"grid-sm":t.parentWidth>520&&t.parentWidth<=740,"grid-md":t.parentWidth>740&&t.parentWidth<=920,"grid-lg":t.parentWidth>920&&t.parentWidth<=1060,"grid-xl":t.parentWidth>1060}])},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.inFollowedPlayers,r=>(e.openBlock(),e.createBlock(di,{key:r.player_id,player:r,onClickPlayer:a},null,8,["player"]))),128))],2)]))}},[["__scopeId","data-v-10f0e770"]]);function pi(t,i){return function(){return t.apply(i,arguments)}}const{toString:xr}=Object.prototype,{getPrototypeOf:qt}=Object,pt=(t=>i=>{const a=xr.call(i);return t[a]||(t[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),he=t=>(t=t.toLowerCase(),i=>pt(i)===t),mt=t=>i=>typeof i===t,{isArray:$e}=Array,Je=mt("undefined");function Nr(t){return t!==null&&!Je(t)&&t.constructor!==null&&!Je(t.constructor)&&me(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const mi=he("ArrayBuffer");function Br(t){let i;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?i=ArrayBuffer.isView(t):i=t&&t.buffer&&mi(t.buffer),i}const Fr=mt("string"),me=mt("function"),ui=mt("number"),ut=t=>t!==null&&typeof t=="object",Pr=t=>t===!0||t===!1,ft=t=>{if(pt(t)!=="object")return!1;const i=qt(t);return(i===null||i===Object.prototype||Object.getPrototypeOf(i)===null)&&!(Symbol.toStringTag in t)&&!(Symbol.iterator in t)},zr=he("Date"),Ar=he("File"),Ir=he("Blob"),Rr=he("FileList"),Mr=t=>ut(t)&&me(t.pipe),Or=t=>{let i;return t&&(typeof FormData=="function"&&t instanceof FormData||me(t.append)&&((i=pt(t))==="formdata"||i==="object"&&me(t.toString)&&t.toString()==="[object FormData]"))},Lr=he("URLSearchParams"),[$r,Dr,Wr,jr]=["ReadableStream","Request","Response","Headers"].map(he),vr=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Ye(t,i,{allOwnKeys:a=!1}={}){if(t===null||typeof t>"u")return;let o,s;if(typeof t!="object"&&(t=[t]),$e(t))for(o=0,s=t.length;o<s;o++)i.call(null,t[o],o,t);else{const r=a?Object.getOwnPropertyNames(t):Object.keys(t),l=r.length;let n;for(o=0;o<l;o++)n=r[o],i.call(null,t[n],n,t)}}function fi(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 Fe=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,hi=t=>!Je(t)&&t!==Fe;function Jt(){const{caseless:t}=hi(this)&&this||{},i={},a=(o,s)=>{const r=t&&fi(i,s)||s;ft(i[r])&&ft(o)?i[r]=Jt(i[r],o):ft(o)?i[r]=Jt({},o):$e(o)?i[r]=o.slice():i[r]=o};for(let o=0,s=arguments.length;o<s;o++)arguments[o]&&Ye(arguments[o],a);return i}const Ur=(t,i,a,{allOwnKeys:o}={})=>(Ye(i,(s,r)=>{a&&me(s)?t[r]=pi(s,a):t[r]=s},{allOwnKeys:o}),t),Gr=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),Hr=(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)},qr=(t,i,a,o)=>{let s,r,l;const n={};if(i=i||{},t==null)return i;do{for(s=Object.getOwnPropertyNames(t),r=s.length;r-- >0;)l=s[r],(!o||o(l,t,i))&&!n[l]&&(i[l]=t[l],n[l]=!0);t=a!==!1&&qt(t)}while(t&&(!a||a(t,i))&&t!==Object.prototype);return i},Jr=(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},Yr=t=>{if(!t)return null;if($e(t))return t;let i=t.length;if(!ui(i))return null;const a=new Array(i);for(;i-- >0;)a[i]=t[i];return a},Zr=(t=>i=>t&&i instanceof t)(typeof Uint8Array<"u"&&qt(Uint8Array)),Kr=(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])}},Xr=(t,i)=>{let a;const o=[];for(;(a=t.exec(i))!==null;)o.push(a);return o},Qr=he("HTMLFormElement"),el=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(i,a,o){return a.toUpperCase()+o}),yi=(({hasOwnProperty:t})=>(i,a)=>t.call(i,a))(Object.prototype),tl=he("RegExp"),gi=(t,i)=>{const a=Object.getOwnPropertyDescriptors(t),o={};Ye(a,(s,r)=>{let l;(l=i(s,r,t))!==!1&&(o[r]=l||s)}),Object.defineProperties(t,o)},al=t=>{gi(t,(i,a)=>{if(me(t)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const o=t[a];if(me(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+"'")})}})},il=(t,i)=>{const a={},o=s=>{s.forEach(r=>{a[r]=!0})};return $e(t)?o(t):o(String(t).split(i)),a},ol=()=>{},sl=(t,i)=>t!=null&&Number.isFinite(t=+t)?t:i;function rl(t){return!!(t&&me(t.append)&&t[Symbol.toStringTag]==="FormData"&&t[Symbol.iterator])}const ll=t=>{const i=new Array(10),a=(o,s)=>{if(ut(o)){if(i.indexOf(o)>=0)return;if(!("toJSON"in o)){i[s]=o;const r=$e(o)?[]:{};return Ye(o,(l,n)=>{const m=a(l,s+1);!Je(m)&&(r[n]=m)}),i[s]=void 0,r}}return o};return a(t,0)},nl=he("AsyncFunction"),dl=t=>t&&(ut(t)||me(t))&&me(t.then)&&me(t.catch),_i=((t,i)=>t?setImmediate:i?((a,o)=>(Fe.addEventListener("message",({source:s,data:r})=>{s===Fe&&r===a&&o.length&&o.shift()()},!1),s=>{o.push(s),Fe.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",me(Fe.postMessage)),cl=typeof queueMicrotask<"u"?queueMicrotask.bind(Fe):typeof process<"u"&&process.nextTick||_i,S={isArray:$e,isArrayBuffer:mi,isBuffer:Nr,isFormData:Or,isArrayBufferView:Br,isString:Fr,isNumber:ui,isBoolean:Pr,isObject:ut,isPlainObject:ft,isReadableStream:$r,isRequest:Dr,isResponse:Wr,isHeaders:jr,isUndefined:Je,isDate:zr,isFile:Ar,isBlob:Ir,isRegExp:tl,isFunction:me,isStream:Mr,isURLSearchParams:Lr,isTypedArray:Zr,isFileList:Rr,forEach:Ye,merge:Jt,extend:Ur,trim:vr,stripBOM:Gr,inherits:Hr,toFlatObject:qr,kindOf:pt,kindOfTest:he,endsWith:Jr,toArray:Yr,forEachEntry:Kr,matchAll:Xr,isHTMLForm:Qr,hasOwnProperty:yi,hasOwnProp:yi,reduceDescriptors:gi,freezeMethods:al,toObjectSet:il,toCamelCase:el,noop:ol,toFiniteNumber:sl,findKey:fi,global:Fe,isContextDefined:hi,isSpecCompliantForm:rl,toJSONObject:ll,isAsyncFn:nl,isThenable:dl,setImmediate:_i,asap:cl};function L(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)}S.inherits(L,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:S.toJSONObject(this.config),code:this.code,status:this.status}}});const bi=L.prototype,Si={};["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=>{Si[t]={value:t}}),Object.defineProperties(L,Si),Object.defineProperty(bi,"isAxiosError",{value:!0}),L.from=(t,i,a,o,s,r)=>{const l=Object.create(bi);return S.toFlatObject(t,l,function(n){return n!==Error.prototype},n=>n!=="isAxiosError"),L.call(l,t.message,i,a,o,s),l.cause=t,l.name=t.name,r&&Object.assign(l,r),l};const pl=null;function Yt(t){return S.isPlainObject(t)||S.isArray(t)}function Ci(t){return S.endsWith(t,"[]")?t.slice(0,-2):t}function wi(t,i,a){return t?t.concat(i).map(function(o,s){return o=Ci(o),!a&&s?"["+o+"]":o}).join(a?".":""):i}function ml(t){return S.isArray(t)&&!t.some(Yt)}const ul=S.toFlatObject(S,{},null,function(t){return/^is[A-Z]/.test(t)});function ht(t,i,a){if(!S.isObject(t))throw new TypeError("target must be an object");i=i||new FormData,a=S.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(d,h){return!S.isUndefined(h[d])});const o=a.metaTokens,s=a.visitor||c,r=a.dots,l=a.indexes,n=(a.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(i);if(!S.isFunction(s))throw new TypeError("visitor must be a function");function m(d){if(d===null)return"";if(S.isDate(d))return d.toISOString();if(!n&&S.isBlob(d))throw new L("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(d)||S.isTypedArray(d)?n&&typeof Blob=="function"?new Blob([d]):Buffer.from(d):d}function c(d,h,u){let g=d;if(d&&!u&&typeof d=="object"){if(S.endsWith(h,"{}"))h=o?h:h.slice(0,-2),d=JSON.stringify(d);else if(S.isArray(d)&&ml(d)||(S.isFileList(d)||S.endsWith(h,"[]"))&&(g=S.toArray(d)))return h=Ci(h),g.forEach(function(w,k){!(S.isUndefined(w)||w===null)&&i.append(l===!0?wi([h],k,r):l===null?h:h+"[]",m(w))}),!1}return Yt(d)?!0:(i.append(wi(u,h,r),m(d)),!1)}const y=[],p=Object.assign(ul,{defaultVisitor:c,convertValue:m,isVisitable:Yt});function f(d,h){if(!S.isUndefined(d)){if(y.indexOf(d)!==-1)throw Error("Circular reference detected in "+h.join("."));y.push(d),S.forEach(d,function(u,g){(!(S.isUndefined(u)||u===null)&&s.call(i,u,S.isString(g)?g.trim():g,h,p))===!0&&f(u,h?h.concat(g):[g])}),y.pop()}}if(!S.isObject(t))throw new TypeError("data must be an object");return f(t),i}function ki(t){const i={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(a){return i[a]})}function Zt(t,i){this._pairs=[],t&&ht(t,this,i)}const Ei=Zt.prototype;Ei.append=function(t,i){this._pairs.push([t,i])},Ei.toString=function(t){const i=t?function(a){return t.call(this,a,ki)}:ki;return this._pairs.map(function(a){return i(a[0])+"="+i(a[1])},"").join("&")};function fl(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Ti(t,i,a){if(!i)return t;const o=a&&a.encode||fl;S.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let r;if(s?r=s(i,a):r=S.isURLSearchParams(i)?i.toString():new Zt(i,a).toString(o),r){const l=t.indexOf("#");l!==-1&&(t=t.slice(0,l)),t+=(t.indexOf("?")===-1?"?":"&")+r}return t}class hl{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){S.forEach(this.handlers,function(a){a!==null&&i(a)})}}const Vi=hl,xi={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},yl=typeof URLSearchParams<"u"?URLSearchParams:Zt,gl=typeof FormData<"u"?FormData:null,_l=typeof Blob<"u"?Blob:null,bl={isBrowser:!0,classes:{URLSearchParams:yl,FormData:gl,Blob:_l},protocols:["http","https","file","blob","url","data"]},Kt=typeof window<"u"&&typeof document<"u",Xt=typeof navigator=="object"&&navigator||void 0,Sl=Kt&&(!Xt||["ReactNative","NativeScript","NS"].indexOf(Xt.product)<0),Cl=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",wl=Kt&&window.location.href||"http://localhost",kl=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Kt,hasStandardBrowserEnv:Sl,hasStandardBrowserWebWorkerEnv:Cl,navigator:Xt,origin:wl},Symbol.toStringTag,{value:"Module"})),le={...kl,...bl};function El(t,i){return ht(t,new le.classes.URLSearchParams,Object.assign({visitor:function(a,o,s,r){return le.isNode&&S.isBuffer(a)?(this.append(o,a.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},i))}function Tl(t){return S.matchAll(/\w+|\[(\w*)]/g,t).map(i=>i[0]==="[]"?"":i[1]||i[0])}function Vl(t){const i={},a=Object.keys(t);let o;const s=a.length;let r;for(o=0;o<s;o++)r=a[o],i[r]=t[r];return i}function Ni(t){function i(a,o,s,r){let l=a[r++];if(l==="__proto__")return!0;const n=Number.isFinite(+l),m=r>=a.length;return l=!l&&S.isArray(s)?s.length:l,m?(S.hasOwnProp(s,l)?s[l]=[s[l],o]:s[l]=o,!n):((!s[l]||!S.isObject(s[l]))&&(s[l]=[]),i(a,o,s[l],r)&&S.isArray(s[l])&&(s[l]=Vl(s[l])),!n)}if(S.isFormData(t)&&S.isFunction(t.entries)){const a={};return S.forEachEntry(t,(o,s)=>{i(Tl(o),s,a,0)}),a}return null}function xl(t,i,a){if(S.isString(t))try{return(i||JSON.parse)(t),S.trim(t)}catch(o){if(o.name!=="SyntaxError")throw o}return(a||JSON.stringify)(t)}const Qt={transitional:xi,adapter:["xhr","http","fetch"],transformRequest:[function(t,i){const a=i.getContentType()||"",o=a.indexOf("application/json")>-1,s=S.isObject(t);if(s&&S.isHTMLForm(t)&&(t=new FormData(t)),S.isFormData(t))return o?JSON.stringify(Ni(t)):t;if(S.isArrayBuffer(t)||S.isBuffer(t)||S.isStream(t)||S.isFile(t)||S.isBlob(t)||S.isReadableStream(t))return t;if(S.isArrayBufferView(t))return t.buffer;if(S.isURLSearchParams(t))return i.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let r;if(s){if(a.indexOf("application/x-www-form-urlencoded")>-1)return El(t,this.formSerializer).toString();if((r=S.isFileList(t))||a.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ht(r?{"files[]":t}:t,l&&new l,this.formSerializer)}}return s||o?(i.setContentType("application/json",!1),xl(t)):t}],transformResponse:[function(t){const i=this.transitional||Qt.transitional,a=i&&i.forcedJSONParsing,o=this.responseType==="json";if(S.isResponse(t)||S.isReadableStream(t))return t;if(t&&S.isString(t)&&(a&&!this.responseType||o)){const s=!(i&&i.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(r){if(s)throw r.name==="SyntaxError"?L.from(r,L.ERR_BAD_RESPONSE,this,null,this.response):r}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:le.classes.FormData,Blob:le.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],t=>{Qt.headers[t]={}});const ea=Qt,Nl=S.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"]),Bl=t=>{const i={};let a,o,s;return t&&t.split(`
|
|
2
2
|
`).forEach(function(r){s=r.indexOf(":"),a=r.substring(0,s).trim().toLowerCase(),o=r.substring(s+1).trim(),!(!a||i[a]&&Nl[a])&&(a==="set-cookie"?i[a]?i[a].push(o):i[a]=[o]:i[a]=i[a]?i[a]+", "+o:o)}),i},Bi=Symbol("internals");function Ze(t){return t&&String(t).trim().toLowerCase()}function yt(t){return t===!1||t==null?t:S.isArray(t)?t.map(yt):String(t)}function Fl(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 Pl=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ta(t,i,a,o,s){if(S.isFunction(o))return o.call(this,i,a);if(s&&(i=a),!!S.isString(i)){if(S.isString(o))return i.indexOf(o)!==-1;if(S.isRegExp(o))return o.test(i)}}function zl(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(i,a,o)=>a.toUpperCase()+o)}function Al(t,i){const a=S.toCamelCase(" "+i);["get","set","has"].forEach(o=>{Object.defineProperty(t,o+a,{value:function(s,r,l){return this[o].call(this,i,s,r,l)},configurable:!0})})}class gt{constructor(i){i&&this.set(i)}set(i,a,o){const s=this;function r(n,m,c){const y=Ze(m);if(!y)throw new Error("header name must be a non-empty string");const p=S.findKey(s,y);(!p||s[p]===void 0||c===!0||c===void 0&&s[p]!==!1)&&(s[p||m]=yt(n))}const l=(n,m)=>S.forEach(n,(c,y)=>r(c,y,m));if(S.isPlainObject(i)||i instanceof this.constructor)l(i,a);else if(S.isString(i)&&(i=i.trim())&&!Pl(i))l(Bl(i),a);else if(S.isHeaders(i))for(const[n,m]of i.entries())r(m,n,o);else i!=null&&r(a,i,o);return this}get(i,a){if(i=Ze(i),i){const o=S.findKey(this,i);if(o){const s=this[o];if(!a)return s;if(a===!0)return Fl(s);if(S.isFunction(a))return a.call(this,s,o);if(S.isRegExp(a))return a.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(i,a){if(i=Ze(i),i){const o=S.findKey(this,i);return!!(o&&this[o]!==void 0&&(!a||ta(this,this[o],o,a)))}return!1}delete(i,a){const o=this;let s=!1;function r(l){if(l=Ze(l),l){const n=S.findKey(o,l);n&&(!a||ta(o,o[n],n,a))&&(delete o[n],s=!0)}}return S.isArray(i)?i.forEach(r):r(i),s}clear(i){const a=Object.keys(this);let o=a.length,s=!1;for(;o--;){const r=a[o];(!i||ta(this,this[r],r,i,!0))&&(delete this[r],s=!0)}return s}normalize(i){const a=this,o={};return S.forEach(this,(s,r)=>{const l=S.findKey(o,r);if(l){a[l]=yt(s),delete a[r];return}const n=i?zl(r):String(r).trim();n!==r&&delete a[r],a[n]=yt(s),o[n]=!0}),this}concat(...i){return this.constructor.concat(this,...i)}toJSON(i){const a=Object.create(null);return S.forEach(this,(o,s)=>{o!=null&&o!==!1&&(a[s]=i&&S.isArray(o)?o.join(", "):o)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([i,a])=>i+": "+a).join(`
|
|
3
3
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...a){const o=new this(i);return a.forEach(s=>o.set(s)),o}static accessor(i){const a=(this[Bi]=this[Bi]={accessors:{}}).accessors,o=this.prototype;function s(r){const l=Ze(r);a[l]||(Al(o,r),a[l]=!0)}return S.isArray(i)?i.forEach(s):s(i),this}}gt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),S.reduceDescriptors(gt.prototype,({value:t},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[a]=o}}}),S.freezeMethods(gt);const ye=gt;function aa(t,i){const a=this||ea,o=i||a,s=ye.from(o.headers);let r=o.data;return S.forEach(t,function(l){r=l.call(a,r,s.normalize(),i?i.status:void 0)}),s.normalize(),r}function Fi(t){return!!(t&&t.__CANCEL__)}function De(t,i,a){L.call(this,t??"canceled",L.ERR_CANCELED,i,a),this.name="CanceledError"}S.inherits(De,L,{__CANCEL__:!0});function Pi(t,i,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):i(new L("Request failed with status code "+a.status,[L.ERR_BAD_REQUEST,L.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function Il(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function Rl(t,i){t=t||10;const a=new Array(t),o=new Array(t);let s=0,r=0,l;return i=i!==void 0?i:1e3,function(n){const m=Date.now(),c=o[r];l||(l=m),a[s]=n,o[s]=m;let y=r,p=0;for(;y!==s;)p+=a[y++],y=y%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),m-l<i)return;const f=c&&m-c;return f?Math.round(p*1e3/f):void 0}}function Ml(t,i){let a=0,o=1e3/i,s,r;const l=(n,m=Date.now())=>{a=m,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const m=Date.now(),c=m-a;c>=o?l(n,m):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},o-c)))},()=>s&&l(s)]}const _t=(t,i,a=3)=>{let o=0;const s=Rl(50,250);return Ml(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,m=l-o,c=s(m),y=l<=n;o=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:m,rate:c||void 0,estimated:c&&n&&y?(n-l)/c:void 0,event:r,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(p)},a)},zi=(t,i)=>{const a=t!=null;return[o=>i[0]({lengthComputable:a,total:t,loaded:o}),i[1]]},Ai=t=>(...i)=>S.asap(()=>t(...i)),Ol=le.hasStandardBrowserEnv?((t,i)=>a=>(a=new URL(a,le.origin),t.protocol===a.protocol&&t.host===a.host&&(i||t.port===a.port)))(new URL(le.origin),le.navigator&&/(msie|trident)/i.test(le.navigator.userAgent)):()=>!0,Ll=le.hasStandardBrowserEnv?{write(t,i,a,o,s,r){const l=[t+"="+encodeURIComponent(i)];S.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),S.isString(o)&&l.push("path="+o),S.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.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 $l(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function Dl(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function Ii(t,i,a){let o=!$l(i);return t&&o||a==!1?Dl(t,i):i}const Ri=t=>t instanceof ye?{...t}:t;function Pe(t,i){i=i||{};const a={};function o(c,y,p,f){return S.isPlainObject(c)&&S.isPlainObject(y)?S.merge.call({caseless:f},c,y):S.isPlainObject(y)?S.merge({},y):S.isArray(y)?y.slice():y}function s(c,y,p,f){if(S.isUndefined(y)){if(!S.isUndefined(c))return o(void 0,c,p,f)}else return o(c,y,p,f)}function r(c,y){if(!S.isUndefined(y))return o(void 0,y)}function l(c,y){if(S.isUndefined(y)){if(!S.isUndefined(c))return o(void 0,c)}else return o(void 0,y)}function n(c,y,p){if(p in i)return o(c,y);if(p in t)return o(void 0,c)}const m={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(c,y,p)=>s(Ri(c),Ri(y),p,!0)};return S.forEach(Object.keys(Object.assign({},t,i)),function(c){const y=m[c]||s,p=y(t[c],i[c],c);S.isUndefined(p)&&y!==n||(a[c]=p)}),a}const Mi=t=>{const i=Pe({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=i;i.headers=l=ye.from(l),i.url=Ti(Ii(i.baseURL,i.url),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let m;if(S.isFormData(a)){if(le.hasStandardBrowserEnv||le.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((m=l.getContentType())!==!1){const[c,...y]=m?m.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...y].join("; "))}}if(le.hasStandardBrowserEnv&&(o&&S.isFunction(o)&&(o=o(i)),o||o!==!1&&Ol(i.url))){const c=s&&r&&Ll.read(r);c&&l.set(s,c)}return i},Wl=typeof XMLHttpRequest<"u",jl=Wl&&function(t){return new Promise(function(i,a){const o=Mi(t);let s=o.data;const r=ye.from(o.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:m}=o,c,y,p,f,d;function h(){f&&f(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function g(){if(!u)return;const k=ye.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),W={data:!l||l==="text"||l==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:k,config:t,request:u};Pi(function(J){i(J),h()},function(J){a(J),h()},W),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 L("Request aborted",L.ECONNABORTED,t,u)),u=null)},u.onerror=function(){a(new L("Network Error",L.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const W=o.transitional||xi;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),a(new L(k,W.clarifyTimeoutError?L.ETIMEDOUT:L.ECONNABORTED,t,u)),u=null},s===void 0&&r.setContentType(null),"setRequestHeader"in u&&S.forEach(r.toJSON(),function(k,W){u.setRequestHeader(W,k)}),S.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),l&&l!=="json"&&(u.responseType=o.responseType),m&&([p,d]=_t(m,!0),u.addEventListener("progress",p)),n&&u.upload&&([y,f]=_t(n),u.upload.addEventListener("progress",y),u.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(c=k=>{u&&(a(!k||k.type?new De(null,t,u):k),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const w=Il(o.url);if(w&&le.protocols.indexOf(w)===-1){a(new L("Unsupported protocol "+w+":",L.ERR_BAD_REQUEST,t));return}u.send(s||null)})},vl=(t,i)=>{const{length:a}=t=t?t.filter(Boolean):[];if(i||a){let o=new AbortController,s;const r=function(c){if(!s){s=!0,n();const y=c instanceof Error?c:this.reason;o.abort(y instanceof L?y:new De(y instanceof Error?y.message:y))}};let l=i&&setTimeout(()=>{l=null,r(new L(`timeout ${i} of ms exceeded`,L.ETIMEDOUT))},i);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),t=null)};t.forEach(c=>c.addEventListener("abort",r));const{signal:m}=o;return m.unsubscribe=()=>S.asap(n),m}},Ul=vl,Gl=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},Hl=async function*(t,i){for await(const a of ql(t))yield*Gl(a,i)},ql=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()}},Oi=(t,i,a,o)=>{const s=Hl(t,i);let r=0,l,n=m=>{l||(l=!0,o&&o(m))};return new ReadableStream({async pull(m){try{const{done:c,value:y}=await s.next();if(c){n(),m.close();return}let p=y.byteLength;if(a){let f=r+=p;a(f)}m.enqueue(new Uint8Array(y))}catch(c){throw n(c),c}},cancel(m){return n(m),s.return()}},{highWaterMark:2})},bt=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Li=bt&&typeof ReadableStream=="function",Jl=bt&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),$i=(t,...i)=>{try{return!!t(...i)}catch{return!1}},Yl=Li&&$i(()=>{let t=!1;const i=new Request(le.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),Di=64*1024,ia=Li&&$i(()=>S.isReadableStream(new Response("").body)),St={stream:ia&&(t=>t.body)};bt&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!St[i]&&(St[i]=S.isFunction(t[i])?a=>a[i]():(a,o)=>{throw new L(`Response type '${i}' is not supported`,L.ERR_NOT_SUPPORT,o)})})})(new Response);const Zl=async t=>{if(t==null)return 0;if(S.isBlob(t))return t.size;if(S.isSpecCompliantForm(t))return(await new Request(le.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(S.isArrayBufferView(t)||S.isArrayBuffer(t))return t.byteLength;if(S.isURLSearchParams(t)&&(t=t+""),S.isString(t))return(await Jl(t)).byteLength},Kl=async(t,i)=>S.toFiniteNumber(t.getContentLength())??Zl(i),Xl=bt&&(async t=>{let{url:i,method:a,data:o,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:m,responseType:c,headers:y,withCredentials:p="same-origin",fetchOptions:f}=Mi(t);c=c?(c+"").toLowerCase():"text";let d=Ul([s,r&&r.toAbortSignal()],l),h;const u=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let g;try{if(m&&Yl&&a!=="get"&&a!=="head"&&(g=await Kl(y,o))!==0){let q=new Request(i,{method:"POST",body:o,duplex:"half"}),A;if(S.isFormData(o)&&(A=q.headers.get("content-type"))&&y.setContentType(A),q.body){const[Y,Z]=zi(g,_t(Ai(m)));o=Oi(q.body,Di,Y,Z)}}S.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;h=new Request(i,{...f,signal:d,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:w?p:void 0});let k=await fetch(h);const W=ia&&(c==="stream"||c==="response");if(ia&&(n||W&&u)){const q={};["status","statusText","headers"].forEach(U=>{q[U]=k[U]});const A=S.toFiniteNumber(k.headers.get("content-length")),[Y,Z]=n&&zi(A,_t(Ai(n),!0))||[];k=new Response(Oi(k.body,Di,Y,()=>{Z&&Z(),u&&u()}),q)}c=c||"text";let J=await St[S.findKey(St,c)||"text"](k,t);return!W&&u&&u(),await new Promise((q,A)=>{Pi(q,A,{data:J,headers:ye.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:h})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new L("Network Error",L.ERR_NETWORK,t,h),{cause:w.cause||w}):L.from(w,w&&w.code,t,h)}}),oa={http:pl,xhr:jl,fetch:Xl};S.forEach(oa,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Wi=t=>`- ${t}`,Ql=t=>S.isFunction(t)||t===null||t===!1,ji={getAdapter:t=>{t=S.isArray(t)?t:[t];const{length:i}=t;let a,o;const s={};for(let r=0;r<i;r++){a=t[r];let l;if(o=a,!Ql(a)&&(o=oa[(l=String(a)).toLowerCase()],o===void 0))throw new L(`Unknown adapter '${l}'`);if(o)break;s[l||"#"+r]=o}if(!o){const r=Object.entries(s).map(([n,m])=>`adapter ${n} `+(m===!1?"is not supported by the environment":"is not available in the build"));let l=i?r.length>1?`since :
|
|
4
4
|
`+r.map(Wi).join(`
|
|
@@ -12,4 +12,4 @@
|
|
|
12
12
|
`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(i){return i instanceof this?i:new this(i)}static concat(i,...a){const o=new this(i);return a.forEach(s=>o.set(s)),o}static accessor(i){const a=(this[ms]=this[ms]={accessors:{}}).accessors,o=this.prototype;function s(r){const l=at(r);a[l]||(cS(o,r),a[l]=!0)}return C.isArray(i)?i.forEach(s):s(i),this}}zt.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),C.reduceDescriptors(zt.prototype,({value:t},i)=>{let a=i[0].toUpperCase()+i.slice(1);return{get:()=>t,set(o){this[a]=o}}}),C.freezeMethods(zt);const _e=zt;function Wa(t,i){const a=this||$a,o=i||a,s=_e.from(o.headers);let r=o.data;return C.forEach(t,function(l){r=l.call(a,r,s.normalize(),i?i.status:void 0)}),s.normalize(),r}function us(t){return!!(t&&t.__CANCEL__)}function ve(t,i,a){$.call(this,t??"canceled",$.ERR_CANCELED,i,a),this.name="CanceledError"}C.inherits(ve,$,{__CANCEL__:!0});function fs(t,i,a){const o=a.config.validateStatus;!a.status||!o||o(a.status)?t(a):i(new $("Request failed with status code "+a.status,[$.ERR_BAD_REQUEST,$.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function pS(t){const i=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return i&&i[1]||""}function mS(t,i){t=t||10;const a=new Array(t),o=new Array(t);let s=0,r=0,l;return i=i!==void 0?i:1e3,function(n){const m=Date.now(),c=o[r];l||(l=m),a[s]=n,o[s]=m;let y=r,p=0;for(;y!==s;)p+=a[y++],y=y%t;if(s=(s+1)%t,s===r&&(r=(r+1)%t),m-l<i)return;const f=c&&m-c;return f?Math.round(p*1e3/f):void 0}}function uS(t,i){let a=0,o=1e3/i,s,r;const l=(n,m=Date.now())=>{a=m,s=null,r&&(clearTimeout(r),r=null),t.apply(null,n)};return[(...n)=>{const m=Date.now(),c=m-a;c>=o?l(n,m):(s=n,r||(r=setTimeout(()=>{r=null,l(s)},o-c)))},()=>s&&l(s)]}const At=(t,i,a=3)=>{let o=0;const s=mS(50,250);return uS(r=>{const l=r.loaded,n=r.lengthComputable?r.total:void 0,m=l-o,c=s(m),y=l<=n;o=l;const p={loaded:l,total:n,progress:n?l/n:void 0,bytes:m,rate:c||void 0,estimated:c&&n&&y?(n-l)/c:void 0,event:r,lengthComputable:n!=null,[i?"download":"upload"]:!0};t(p)},a)},hs=(t,i)=>{const a=t!=null;return[o=>i[0]({lengthComputable:a,total:t,loaded:o}),i[1]]},ys=t=>(...i)=>C.asap(()=>t(...i)),fS=ne.hasStandardBrowserEnv?((t,i)=>a=>(a=new URL(a,ne.origin),t.protocol===a.protocol&&t.host===a.host&&(i||t.port===a.port)))(new URL(ne.origin),ne.navigator&&/(msie|trident)/i.test(ne.navigator.userAgent)):()=>!0,hS=ne.hasStandardBrowserEnv?{write(t,i,a,o,s,r){const l=[t+"="+encodeURIComponent(i)];C.isNumber(a)&&l.push("expires="+new Date(a).toGMTString()),C.isString(o)&&l.push("path="+o),C.isString(s)&&l.push("domain="+s),r===!0&&l.push("secure"),document.cookie=l.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 yS(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function gS(t,i){return i?t.replace(/\/?\/$/,"")+"/"+i.replace(/^\/+/,""):t}function gs(t,i){return t&&!yS(i)?gS(t,i):i}const _s=t=>t instanceof _e?{...t}:t;function Re(t,i){i=i||{};const a={};function o(c,y,p,f){return C.isPlainObject(c)&&C.isPlainObject(y)?C.merge.call({caseless:f},c,y):C.isPlainObject(y)?C.merge({},y):C.isArray(y)?y.slice():y}function s(c,y,p,f){if(C.isUndefined(y)){if(!C.isUndefined(c))return o(void 0,c,p,f)}else return o(c,y,p,f)}function r(c,y){if(!C.isUndefined(y))return o(void 0,y)}function l(c,y){if(C.isUndefined(y)){if(!C.isUndefined(c))return o(void 0,c)}else return o(void 0,y)}function n(c,y,p){if(p in i)return o(c,y);if(p in t)return o(void 0,c)}const m={url:r,method:r,data:r,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:n,headers:(c,y,p)=>s(_s(c),_s(y),p,!0)};return C.forEach(Object.keys(Object.assign({},t,i)),function(c){const y=m[c]||s,p=y(t[c],i[c],c);C.isUndefined(p)&&y!==n||(a[c]=p)}),a}const bs=t=>{const i=Re({},t);let{data:a,withXSRFToken:o,xsrfHeaderName:s,xsrfCookieName:r,headers:l,auth:n}=i;i.headers=l=_e.from(l),i.url=ns(gs(i.baseURL,i.url),t.params,t.paramsSerializer),n&&l.set("Authorization","Basic "+btoa((n.username||"")+":"+(n.password?unescape(encodeURIComponent(n.password)):"")));let m;if(C.isFormData(a)){if(ne.hasStandardBrowserEnv||ne.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((m=l.getContentType())!==!1){const[c,...y]=m?m.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([c||"multipart/form-data",...y].join("; "))}}if(ne.hasStandardBrowserEnv&&(o&&C.isFunction(o)&&(o=o(i)),o||o!==!1&&fS(i.url))){const c=s&&r&&hS.read(r);c&&l.set(s,c)}return i},_S=typeof XMLHttpRequest<"u",bS=_S&&function(t){return new Promise(function(i,a){const o=bs(t);let s=o.data;const r=_e.from(o.headers).normalize();let{responseType:l,onUploadProgress:n,onDownloadProgress:m}=o,c,y,p,f,d;function h(){f&&f(),d&&d(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let u=new XMLHttpRequest;u.open(o.method.toUpperCase(),o.url,!0),u.timeout=o.timeout;function g(){if(!u)return;const k=_e.from("getAllResponseHeaders"in u&&u.getAllResponseHeaders()),W={data:!l||l==="text"||l==="json"?u.responseText:u.response,status:u.status,statusText:u.statusText,headers:k,config:t,request:u};fs(function(J){i(J),h()},function(J){a(J),h()},W),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 $("Request aborted",$.ECONNABORTED,t,u)),u=null)},u.onerror=function(){a(new $("Network Error",$.ERR_NETWORK,t,u)),u=null},u.ontimeout=function(){let k=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const W=o.transitional||cs;o.timeoutErrorMessage&&(k=o.timeoutErrorMessage),a(new $(k,W.clarifyTimeoutError?$.ETIMEDOUT:$.ECONNABORTED,t,u)),u=null},s===void 0&&r.setContentType(null),"setRequestHeader"in u&&C.forEach(r.toJSON(),function(k,W){u.setRequestHeader(W,k)}),C.isUndefined(o.withCredentials)||(u.withCredentials=!!o.withCredentials),l&&l!=="json"&&(u.responseType=o.responseType),m&&([p,d]=At(m,!0),u.addEventListener("progress",p)),n&&u.upload&&([y,f]=At(n),u.upload.addEventListener("progress",y),u.upload.addEventListener("loadend",f)),(o.cancelToken||o.signal)&&(c=k=>{u&&(a(!k||k.type?new ve(null,t,u):k),u.abort(),u=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const w=pS(o.url);if(w&&ne.protocols.indexOf(w)===-1){a(new $("Unsupported protocol "+w+":",$.ERR_BAD_REQUEST,t));return}u.send(s||null)})},SS=(t,i)=>{const{length:a}=t=t?t.filter(Boolean):[];if(i||a){let o=new AbortController,s;const r=function(c){if(!s){s=!0,n();const y=c instanceof Error?c:this.reason;o.abort(y instanceof $?y:new ve(y instanceof Error?y.message:y))}};let l=i&&setTimeout(()=>{l=null,r(new $(`timeout ${i} of ms exceeded`,$.ETIMEDOUT))},i);const n=()=>{t&&(l&&clearTimeout(l),l=null,t.forEach(c=>{c.unsubscribe?c.unsubscribe(r):c.removeEventListener("abort",r)}),t=null)};t.forEach(c=>c.addEventListener("abort",r));const{signal:m}=o;return m.unsubscribe=()=>C.asap(n),m}},CS=SS,wS=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},kS=async function*(t,i){for await(const a of ES(t))yield*wS(a,i)},ES=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()}},Ss=(t,i,a,o)=>{const s=kS(t,i);let r=0,l,n=m=>{l||(l=!0,o&&o(m))};return new ReadableStream({async pull(m){try{const{done:c,value:y}=await s.next();if(c){n(),m.close();return}let p=y.byteLength;if(a){let f=r+=p;a(f)}m.enqueue(new Uint8Array(y))}catch(c){throw n(c),c}},cancel(m){return n(m),s.return()}},{highWaterMark:2})},It=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Cs=It&&typeof ReadableStream=="function",TS=It&&(typeof TextEncoder=="function"?(t=>i=>t.encode(i))(new TextEncoder):async t=>new Uint8Array(await new Response(t).arrayBuffer())),ws=(t,...i)=>{try{return!!t(...i)}catch{return!1}},VS=Cs&&ws(()=>{let t=!1;const i=new Request(ne.origin,{body:new ReadableStream,method:"POST",get duplex(){return t=!0,"half"}}).headers.has("Content-Type");return t&&!i}),ks=64*1024,ja=Cs&&ws(()=>C.isReadableStream(new Response("").body)),Rt={stream:ja&&(t=>t.body)};It&&(t=>{["text","arrayBuffer","blob","formData","stream"].forEach(i=>{!Rt[i]&&(Rt[i]=C.isFunction(t[i])?a=>a[i]():(a,o)=>{throw new $(`Response type '${i}' is not supported`,$.ERR_NOT_SUPPORT,o)})})})(new Response);const xS=async t=>{if(t==null)return 0;if(C.isBlob(t))return t.size;if(C.isSpecCompliantForm(t))return(await new Request(ne.origin,{method:"POST",body:t}).arrayBuffer()).byteLength;if(C.isArrayBufferView(t)||C.isArrayBuffer(t))return t.byteLength;if(C.isURLSearchParams(t)&&(t=t+""),C.isString(t))return(await TS(t)).byteLength},NS=async(t,i)=>C.toFiniteNumber(t.getContentLength())??xS(i),BS=It&&(async t=>{let{url:i,method:a,data:o,signal:s,cancelToken:r,timeout:l,onDownloadProgress:n,onUploadProgress:m,responseType:c,headers:y,withCredentials:p="same-origin",fetchOptions:f}=bs(t);c=c?(c+"").toLowerCase():"text";let d=CS([s,r&&r.toAbortSignal()],l),h;const u=d&&d.unsubscribe&&(()=>{d.unsubscribe()});let g;try{if(m&&VS&&a!=="get"&&a!=="head"&&(g=await NS(y,o))!==0){let q=new Request(i,{method:"POST",body:o,duplex:"half"}),A;if(C.isFormData(o)&&(A=q.headers.get("content-type"))&&y.setContentType(A),q.body){const[Y,Z]=hs(g,At(ys(m)));o=Ss(q.body,ks,Y,Z)}}C.isString(p)||(p=p?"include":"omit");const w="credentials"in Request.prototype;h=new Request(i,{...f,signal:d,method:a.toUpperCase(),headers:y.normalize().toJSON(),body:o,duplex:"half",credentials:w?p:void 0});let k=await fetch(h);const W=ja&&(c==="stream"||c==="response");if(ja&&(n||W&&u)){const q={};["status","statusText","headers"].forEach(U=>{q[U]=k[U]});const A=C.toFiniteNumber(k.headers.get("content-length")),[Y,Z]=n&&hs(A,At(ys(n),!0))||[];k=new Response(Ss(k.body,ks,Y,()=>{Z&&Z(),u&&u()}),q)}c=c||"text";let J=await Rt[C.findKey(Rt,c)||"text"](k,t);return!W&&u&&u(),await new Promise((q,A)=>{fs(q,A,{data:J,headers:_e.from(k.headers),status:k.status,statusText:k.statusText,config:t,request:h})})}catch(w){throw u&&u(),w&&w.name==="TypeError"&&/fetch/i.test(w.message)?Object.assign(new $("Network Error",$.ERR_NETWORK,t,h),{cause:w.cause||w}):$.from(w,w&&w.code,t,h)}}),va={http:jb,xhr:bS,fetch:BS};C.forEach(va,(t,i)=>{if(t){try{Object.defineProperty(t,"name",{value:i})}catch{}Object.defineProperty(t,"adapterName",{value:i})}});const Es=t=>`- ${t}`,FS=t=>C.isFunction(t)||t===null||t===!1,Ts={getAdapter:t=>{t=C.isArray(t)?t:[t];const{length:i}=t;let a,o;const s={};for(let r=0;r<i;r++){a=t[r];let l;if(o=a,!FS(a)&&(o=va[(l=String(a)).toLowerCase()],o===void 0))throw new $(`Unknown adapter '${l}'`);if(o)break;s[l||"#"+r]=o}if(!o){const r=Object.entries(s).map(([n,m])=>`adapter ${n} `+(m===!1?"is not supported by the environment":"is not available in the build"));let l=i?r.length>1?`since :
|
|
13
13
|
`+r.map(Es).join(`
|
|
14
14
|
`):" "+Es(r[0]):"as no adapter specified";throw new $("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:va};function Ua(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new ve(null,t)}function Vs(t){return Ua(t),t.headers=_e.from(t.headers),t.data=Wa.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Ts.getAdapter(t.adapter||$a.adapter)(t).then(function(i){return Ua(t),i.data=Wa.call(t,t.transformResponse,i),i.headers=_e.from(i.headers),i},function(i){return us(i)||(Ua(t),i&&i.response&&(i.response.data=Wa.call(t,t.transformResponse,i.response),i.response.headers=_e.from(i.response.headers))),Promise.reject(i)})}const xs="1.7.9",Mt={};["object","boolean","number","function","string","symbol"].forEach((t,i)=>{Mt[t]=function(a){return typeof a===t||"a"+(i<1?"n ":" ")+t}});const Ns={};Mt.transitional=function(t,i,a){function o(s,r){return"[Axios v"+xs+"] Transitional option '"+s+"'"+r+(a?". "+a:"")}return(s,r,l)=>{if(t===!1)throw new $(o(r," has been removed"+(i?" in "+i:"")),$.ERR_DEPRECATED);return i&&!Ns[r]&&(Ns[r]=!0,console.warn(o(r," has been deprecated since v"+i+" and will be removed in the near future"))),t?t(s,r,l):!0}},Mt.spelling=function(t){return(i,a)=>(console.warn(`${a} is likely a misspelling of ${t}`),!0)};function PS(t,i,a){if(typeof t!="object")throw new $("options must be an object",$.ERR_BAD_OPTION_VALUE);const o=Object.keys(t);let s=o.length;for(;s-- >0;){const r=o[s],l=i[r];if(l){const n=t[r],m=n===void 0||l(n,r,t);if(m!==!0)throw new $("option "+r+" must be "+m,$.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new $("Unknown option "+r,$.ERR_BAD_OPTION)}}const Ot={assertOptions:PS,validators:Mt},Se=Ot.validators;class Lt{constructor(i){this.defaults=i,this.interceptors={request:new ds,response:new ds}}async request(i,a){try{return await this._request(i,a)}catch(o){if(o instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const r=s.stack?s.stack.replace(/^.+\n/,""):"";try{o.stack?r&&!String(o.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(o.stack+=`
|
|
15
|
-
`+r):o.stack=r}catch{}}throw o}}_request(i,a){typeof i=="string"?(a=a||{},a.url=i):a=i||{},a=Re(this.defaults,a);const{transitional:o,paramsSerializer:s,headers:r}=a;o!==void 0&&Ot.assertOptions(o,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1),s!=null&&(C.isFunction(s)?a.paramsSerializer={serialize:s}:Ot.assertOptions(s,{encode:Se.function,serialize:Se.function},!0)),Ot.assertOptions(a,{baseUrl:Se.spelling("baseURL"),withXsrfToken:Se.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let l=r&&C.merge(r.common,r[a.method]);r&&C.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),a.headers=_e.concat(l,r);const n=[];let m=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(a)===!1||(m=m&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let y,p=0,f;if(!m){const h=[Vs.bind(this),void 0];for(h.unshift.apply(h,n),h.push.apply(h,c),f=h.length,y=Promise.resolve(a);p<f;)y=y.then(h[p++],h[p++]);return y}f=n.length;let d=a;for(p=0;p<f;){const h=n[p++],u=n[p++];try{d=h(d)}catch(g){u.call(this,g);break}}try{y=Vs.call(this,d)}catch(h){return Promise.reject(h)}for(p=0,f=c.length;p<f;)y=y.then(c[p++],c[p++]);return y}getUri(i){i=Re(this.defaults,i);const a=gs(i.baseURL,i.url);return ns(a,i.params,i.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(t){Lt.prototype[t]=function(i,a){return this.request(Re(a||{},{method:t,url:i,data:(a||{}).data}))}}),C.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,r){return this.request(Re(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Lt.prototype[t]=i(),Lt.prototype[t+"Form"]=i(!0)});const $t=Lt;class Ga{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 r=o._listeners.length;for(;r-- >0;)o._listeners[r](s);o._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{o.subscribe(n),r=n}).then(s);return l.cancel=function(){o.unsubscribe(r)},l},i(function(s,r,l){o.reason||(o.reason=new ve(s,r,l),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 Ga(function(a){i=a}),cancel:i}}}const zS=Ga;function AS(t){return function(i){return t.apply(null,i)}}function IS(t){return C.isObject(t)&&t.isAxiosError===!0}const Ha={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(Ha).forEach(([t,i])=>{Ha[i]=t});const RS=Ha;function Bs(t){const i=new $t(t),a=Ho($t.prototype.request,i);return C.extend(a,$t.prototype,i,{allOwnKeys:!0}),C.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return Bs(Re(t,o))},a}const ae=Bs($a);ae.Axios=$t,ae.CanceledError=ve,ae.CancelToken=zS,ae.isCancel=us,ae.VERSION=xs,ae.toFormData=Ft,ae.AxiosError=$,ae.Cancel=ae.CanceledError,ae.all=function(t){return Promise.all(t)},ae.spread=AS,ae.isAxiosError=IS,ae.mergeConfig=Re,ae.AxiosHeaders=_e,ae.formToJSON=t=>ps(C.isHTMLForm(t)?new FormData(t):t),ae.getAdapter=Ts.getAdapter,ae.HttpStatusCode=RS,ae.default=ae;const it=ae,Dt={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"}]},MS={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"},OS={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 Wt(t){"@babel/helpers - typeof";return Wt=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},Wt(t)}function ke(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 ee(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function X(t){ee(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||Wt(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 LS(t,i){ee(2,arguments);var a=X(t),o=ke(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function $S(t,i){ee(2,arguments);var a=X(t),o=ke(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),r=new Date(a.getTime());r.setMonth(a.getMonth()+o+1,0);var l=r.getDate();return s>=l?r:(a.setFullYear(r.getFullYear(),r.getMonth(),s),a)}function ot(t,i){if(ee(2,arguments),!i||Wt(i)!=="object")return new Date(NaN);var a=i.years?ke(i.years):0,o=i.months?ke(i.months):0,s=i.weeks?ke(i.weeks):0,r=i.days?ke(i.days):0,l=i.hours?ke(i.hours):0,n=i.minutes?ke(i.minutes):0,m=i.seconds?ke(i.seconds):0,c=X(t),y=o||a?$S(c,o+a*12):c,p=r||s?LS(y,r+s*7):y,f=n+l*60,d=m+f*60,h=d*1e3,u=new Date(p.getTime()+h);return u}function Fs(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 Ps(t){ee(1,arguments);var i=X(t);return i.setHours(0,0,0,0),i}var DS=864e5;function WS(t,i){ee(2,arguments);var a=Ps(t),o=Ps(i),s=a.getTime()-Fs(a),r=o.getTime()-Fs(o);return Math.round((s-r)/DS)}function Ue(t,i){ee(2,arguments);var a=X(t),o=X(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var jS=6e4,vS=36e5;function US(t,i){ee(2,arguments);var a=X(t),o=X(i),s=a.getFullYear()-o.getFullYear(),r=a.getMonth()-o.getMonth();return s*12+r}function GS(t,i){ee(2,arguments);var a=X(t),o=X(i);return a.getFullYear()-o.getFullYear()}function zs(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 HS(t,i){ee(2,arguments);var a=X(t),o=X(i),s=zs(a,o),r=Math.abs(WS(a,o));a.setDate(a.getDate()-s*r);var l=+(zs(a,o)===-s),n=s*(r-l);return n===0?0:n}function qa(t,i){return ee(2,arguments),X(t).getTime()-X(i).getTime()}var qS={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},JS="trunc";function Ja(t){return qS[JS]}function YS(t,i,a){ee(2,arguments);var o=qa(t,i)/vS;return Ja()(o)}function ZS(t,i,a){ee(2,arguments);var o=qa(t,i)/jS;return Ja()(o)}function KS(t){ee(1,arguments);var i=X(t);return i.setHours(23,59,59,999),i}function XS(t){ee(1,arguments);var i=X(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function QS(t){ee(1,arguments);var i=X(t);return KS(i).getTime()===XS(i).getTime()}function e3(t,i){ee(2,arguments);var a=X(t),o=X(i),s=Ue(a,o),r=Math.abs(US(a,o)),l;if(r<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*r);var n=Ue(a,o)===-s;QS(X(t))&&r===1&&Ue(t,o)===1&&(n=!1),l=s*(r-Number(n))}return l===0?0:l}function t3(t,i,a){ee(2,arguments);var o=qa(t,i)/1e3;return Ja()(o)}function a3(t,i){ee(2,arguments);var a=X(t),o=X(i),s=Ue(a,o),r=Math.abs(GS(a,o));a.setFullYear(1584),o.setFullYear(1584);var l=Ue(a,o)===-s,n=s*(r-Number(l));return n===0?0:n}function i3(t){return ee(1,arguments),X(t).getFullYear()}function o3(t){ee(1,arguments);var i=X(t.start),a=X(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(a3(a,i));var s=Ue(a,i),r=ot(i,{years:s*o.years});o.months=Math.abs(e3(a,r));var l=ot(r,{months:s*o.months});o.days=Math.abs(HS(a,l));var n=ot(l,{days:s*o.days});o.hours=Math.abs(YS(a,n));var m=ot(n,{hours:s*o.hours});o.minutes=Math.abs(ZS(a,m));var c=ot(m,{minutes:s*o.minutes});return o.seconds=Math.abs(t3(a,c)),o}const s3={__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 r(l){i("update:modelValue",l.target.checked)}return e.onMounted(()=>{s()}),(l,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:r},null,544))}},st=v(s3,[["__scopeId","data-v-e3a6ae4e"]]),Me=t=>(e.pushScopeId("data-v-33fea1e0"),t=t(),e.popScopeId(),t),r3={class:"personal-data"},l3={class:"personal-data__age"},n3={class:"personal-data__age__toggle"},d3={class:"personal-data__age__range"},c3={class:"personal-data__age__dropdown"},p3=Me(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),m3={class:"selected-item"},u3=Me(()=>e.createElementVNode("div",{class:"separator"},null,-1)),f3={class:"personal-data__nationality-position"},h3={key:0,class:"personal-data__nationality-position__switch"},y3=Me(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),g3=Me(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),_3={class:"personal-data__nationality-position__nationality"},b3=Me(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),S3={class:"selected-item"},C3=Me(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),w3={class:"selected-item"},k3={class:"personal-data__nationality-position__position"},E3=Me(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),T3={class:"selected-item"},V3="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",x3={__name:"TemplatePersonalData",props:{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'"}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=[1],r={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref({...Dt}),m=e.ref(["Por edad","Por año"]),c=e.ref(0),y=e.ref({min:Dt.minAge,max:Dt.maxAge}),p=e.ref(Qe),f=e.ref(""),d=e.ref(""),h=e.ref(n.value.availableYears[n.value.availableYears.length-1]),u=e.ref(0),g=e.computed(()=>{const N=n.value.nationalities?[...n.value.nationalities]:[];o.isSeleccion&&N.forEach(z=>{z.isSelected=z.id===138});const R=N[0];return(!R||R.id!==0)&&N.unshift(r),N}),w=e.computed(()=>{let N=n.value.positions?[...n.value.positions]:[];const R=N[0];return(!R||R.id!==0)&&N.unshift(l),N.sort((z,H)=>z.id-H.id),N}),k=e.computed(()=>o.season&&o.season.tournamentId&&s.includes(o.season.tournamentId));e.watch(g,N=>{const R=N.reduce((z,H,K)=>(K!==0&&H.isSelected&&z++,z),0);R===g.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?f.value="Todas las nacionalidades":f.value=`${R} seleccionadas`,U()},{immediate:!0,deep:!0}),e.watch(w,N=>{const R=N.reduce((z,H,K)=>(K!==0&&H.isSelected&&z++,z),0);R===w.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?d.value="Todas las posiciones":d.value=`${R} seleccionadas`,U()},{immediate:!0,deep:!0}),e.watch(()=>n.value.isEligibilitySelected,()=>{U()}),e.watch(()=>o.season,N=>{N&&N.id!==u.value&&(u.value=N.id,W(N))},{immediate:!0,deep:!1});async function W(N){try{if(N&&N.id){const R=new Set,z=await q(N.id),H=new Date,K=[],fe=new Map,E=new Map;z.forEach(V=>{const I=new Date(V.dob),B=i3(I),M=o3({start:I,end:H});fe.has(V.nationality_id)||fe.set(V.nationality_id,{id:V.nationality_id,isSelected:!0,name:MS[`${V.nationality_id}`]}),E.has(V.position_id)||E.set(V.position_id,{id:V.position_id,isSelected:!0,name:OS[`${V.position_id}`]}),R.add(B),K.push(M.years)}),n.value.minAge=Math.min(...K),n.value.maxAge=Math.max(...K),n.value.availableYears=[...R].sort((V,I)=>I-V),h.value=n.value.availableYears[0],n.value.nationalities=[...fe.values()],n.value.positions=[...E.values()],y.value.min=n.value.minAge,y.value.max=n.value.maxAge}}catch(R){throw new Error(R)}}function J(N=null){const R=!N||N===Q.All;(R||N===Q.NATIONALITY)&&g.value.forEach(z=>{z.isSelected=!0}),(R||N===Q.ELIGIBILITY)&&(n.value.isEligibilitySelected=!1),(R||N===Q.POSITION)&&w.value.forEach(z=>{z.isSelected=!0}),(R||N===Q.AGE_RANGE)&&(y.value.min=n.value.minAge,y.value.max=n.value.maxAge,c.value=0),(R||N===Q.YEAR)&&(h.value=o.isScouting?n.value.availableYears[n.value.availableYears.length-1]:n.value.availableYears[0],c.value=0),U()}async function q(N){try{const R={Authorization:localStorage.getItem("user_token")||o.token},z={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:V3,H=await it.get(z+N,{headers:R});return H.data?H.data.players:[]}catch(R){return Promise.reject(R)}}function A(N){c.value=N.index}function Y(N){y.value.min=N.minValue,y.value.max=N.maxValue,U()}function Z(N,R){R.id===0?g.value.forEach(z=>{z.isSelected=N}):(R.isSelected=N,g.value[0].isSelected=g.value.every((z,H)=>H===0?!0:z.isSelected))}function U(){const N=c.value===0,R={};N?(R.ageByRange=y.value,R.ageLimits={min:n.value.minAge,max:n.value.maxAge}):R.year=h.value,n.value.isEligibilitySelected?R.eligibility=[...n.value.eligibility]:R.nationalities=g.value.reduce((z,H,K)=>(K!==0&&z.push({...H}),z),[]),R.positions=w.value.reduce((z,H,K)=>(K!==0&&z.push({...H}),z),[]),a("update:filters",R)}function P(N,R){R.id===0?w.value.forEach(z=>{z.isSelected=N}):(R.isSelected=N,w.value[0].isSelected=w.value.every((z,H)=>H===0?!0:z.isSelected))}function de(N){h.value=N,U()}return i({onClearFilters:J}),(N,R)=>(e.openBlock(),e.createElementBlock("div",r3,[e.createElementVNode("div",l3,[e.createElementVNode("div",n3,[e.createVNode(ab,{"selected-button-index":c.value,buttons:m.value,width:"220px",onChange:A},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",d3,[e.createVNode(e.unref(Lo),{"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":n.value.minAge,"max-limit":n.value.maxAge,"min-value":y.value.min,"max-value":y.value.max,onInput:Y},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",c3,[p3,e.createVNode(e.unref(xe),e.mergeProps({"model-value":h.value},p.value,{items:n.value.availableYears,onInput:de}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",m3,e.toDisplayString(z),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,e.toDisplayString(z),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),u3,e.createElementVNode("div",f3,[k.value?(e.openBlock(),e.createElementBlock("div",h3,[y3,e.createVNode(st,{modelValue:n.value.isEligibilitySelected,"onUpdate:modelValue":R[0]||(R[0]=z=>n.value.isEligibilitySelected=z)},null,8,["modelValue"]),g3])):e.createCommentVNode("",!0),e.createElementVNode("div",_3,[n.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[C3,e.createVNode(e.unref(xe),e.mergeProps(p.value,{"is-multiple-option":"",items:n.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",w3,e.toDisplayString(z.name),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(j),{"model-value":z.isSelected,label:z.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},[b3,e.createVNode(e.unref(xe),e.mergeProps(p.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",S3,e.toDisplayString(f.value),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(j),{"model-value":z.isSelected,label:z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Z(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",k3,[E3,e.createVNode(e.unref(xe),e.mergeProps(p.value,{"is-multiple-option":"",items:w.value}),{default:e.withCtx(()=>[e.createElementVNode("div",T3,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.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(d.value),1)],64))])]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(j),{"model-value":z.isSelected,label:t.isFemale?z.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>P(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},N3=v(x3,[["__scopeId","data-v-33fea1e0"]]),B3={class:"plays"},F3={class:"plays__body__offensive"},P3={class:"plays__body__title"},z3={class:"number-of-categories"},A3={class:"plays__body__categories"},I3={class:"plays__body__defensive-possession-offenses"},R3={class:"plays__body__title"},M3={class:"number-of-categories"},O3={class:"plays__body__categories"},L3={class:"plays__body__title"},$3={class:"number-of-categories"},D3={class:"plays__body__categories"},W3={class:"plays__body__title"},j3={class:"number-of-categories"},v3={class:"plays__body__categories"},U3={__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),r=e.ref(!1),l=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((d,h)=>(h.isSelected&&d++,d),0)),m=e.computed(()=>i.playsCategories.defensive.categories.reduce((d,h)=>(h.isSelected&&d++,d),0)),c=e.computed(()=>i.playsCategories.possession.categories.reduce((d,h)=>(h.isSelected&&d++,d),0)),y=e.computed(()=>i.playsCategories.offenses.categories.reduce((d,h)=>(h.isSelected&&d++,d),0));function p(d,h){h.isSelected=d}function f(d){d==="offensive"?a.value=!a.value:d==="defensive"?o.value=!o.value:d==="possession"?s.value=!s.value:d==="offenses"&&(r.value=!r.value)}return(d,h)=>(e.openBlock(),e.createElementBlock("div",B3,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",F3,[e.createElementVNode("div",P3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[0]||(h[0]=u=>f("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",z3,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[1]||(h[1]=u=>f("offensive"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",A3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",I3,[e.createElementVNode("div",R3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[2]||(h[2]=u=>f("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",M3,"("+e.toDisplayString(m.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[3]||(h[3]=u=>f("defensive"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",O3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",L3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[4]||(h[4]=u=>f("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",$3,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[5]||(h[5]=u=>f("possession"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",D3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",W3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[6]||(h[6]=u=>f("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",j3,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[7]||(h[7]=u=>f("offenses"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",v3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])])],4)]))}},G3=v(U3,[["__scopeId","data-v-364e6cae"]]),H3={class:"template-results"},q3={__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,r)=>(e.openBlock(),e.createElementBlock("div",H3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(j),{modelValue:l.isSelected,"onUpdate:modelValue":m=>l.isSelected=m,label:l.name,"avoid-interaction":o.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},J3=v(q3,[["__scopeId","data-v-453e89c2"]]),Y3={__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(r,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},rt=v(Y3,[["__scopeId","data-v-9688933e"]]),Z3={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},As={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},K3={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},X3={4:"OF",5:"Cf",6:"S",7:"F"};function Ya(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Q3={class:"dropdown"},e6={class:"selected-item"},t6={__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",Q3,[e.createVNode(e.unref(xe),e.mergeProps(e.unref(Qe),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",e6,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),_:1},16,["is-list-same-width","items"])]))}},pe=v(t6,[["__scopeId","data-v-064d5f86"]]),a6={class:"dropdown"},i6={class:"game-item"},o6={key:0,class:"item-game"},s6={class:"match-day"},r6={class:"team-logo"},l6=["src"],n6={class:"text"},d6={class:"text score"},c6={class:"text"},p6={class:"team-logo"},m6=["src"],u6={class:"item-game"},f6={class:"team-logo"},h6=["src"],y6={class:"text"},g6={class:"text score"},_6={class:"text"},b6={class:"team-logo"},S6=["src"],C6={__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",a6,[e.createVNode(e.unref(xe),e.mergeProps(e.unref(Qe),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",i6,[r.homeTeam?(e.openBlock(),e.createElementBlock("div",o6,[e.createElementVNode("div",s6,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",r6,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,l6)]),e.createElementVNode("div",n6,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",d6,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",c6,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",p6,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,m6)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",u6,[e.createElementVNode("div",null,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",f6,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,h6)]),e.createElementVNode("div",y6,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",g6,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",_6,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",b6,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,S6)])])]),_:1},16,["items"])]))}},jt=v(C6,[["__scopeId","data-v-7883a91e"]]),vt=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),w6={class:"container"},k6={class:"container__row"},E6={class:"container__row__wrapper"},T6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),V6={class:"container__row__wrapper__input"},x6={class:"container__row two-items"},N6={class:"container__row__wrapper"},B6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),F6={key:0,class:"container__row__wrapper__input"},P6={class:"container__row__wrapper"},z6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),A6={key:0,class:"container__row__wrapper__input"},I6={class:"container__row"},R6={class:"container__row__wrapper"},M6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),O6={key:0,class:"container__row__wrapper__input"},L6={class:"container__action"},$6={__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),r=e.ref(null),l=e.ref(null);function n(p){o.value=p,i("update:tournament",p)}function m(p){s.value=p,i("update:season",p)}function c(p){r.value=p}function y(p){l.value=p}return(p,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",w6,[e.createElementVNode("div",k6,[e.createElementVNode("div",E6,[T6,e.createElementVNode("div",V6,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",x6,[e.createElementVNode("div",N6,[B6,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",F6,[e.createVNode(pe,{items:o.value.seasons,itemTextKey:"name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",P6,[z6,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",A6,[e.createVNode(pe,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",I6,[e.createElementVNode("div",R6,[M6,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",O6,[e.createVNode(jt,{items:r.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",L6,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},D6=v($6,[["__scopeId","data-v-b63e9c84"]]),W6={class:"dropdown"},j6={class:"item-team"},v6={class:"team-logo"},U6=["src"],G6={class:"team-acronym"},H6={class:"item-team"},q6={class:"team-logo"},J6=["src"],Y6={class:"team-acronym"},Z6={__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",W6,[e.createVNode(e.unref(xe),e.mergeProps(e.unref(Qe),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",j6,[e.createElementVNode("div",v6,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,U6)]),e.createElementVNode("div",G6,e.toDisplayString(r.acronym),1)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",H6,[e.createElementVNode("div",q6,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,J6)]),e.createElementVNode("div",Y6,e.toDisplayString(r.acronym),1)])]),_:1},16,["items"])]))}},Is=v(Z6,[["__scopeId","data-v-afd2bee8"]]),K6={class:"advanced-filters"},X6={class:"advanced-filters__buttons"},Q6=["onClick"],e4={class:"advanced-filters__filters"},t4={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>JE)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>mT)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>fT)),r=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],l=e.ref(r[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function m(c){l.value=c}return(c,y)=>(e.openBlock(),e.createElementBlock("div",K6,[e.createElementVNode("div",X6,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===p.name}]),onClick:f=>m(p)},e.toDisplayString(p.name),11,Q6)),64))]),e.createElementVNode("div",e4,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Za=v(t4,[["__scopeId","data-v-c62c5b9c"]]),Oe=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),a4={class:"container"},i4={class:"container__row"},o4={class:"container__row__wrapper"},s4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),r4={class:"container__row__wrapper__input"},l4={class:"container__row two-items"},n4={class:"container__row__wrapper"},d4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),c4={key:0,class:"container__row__wrapper__input"},p4={class:"container__row__wrapper"},m4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),u4={key:0,class:"container__row__wrapper__input"},f4={class:"container__row"},h4={class:"container__row__wrapper"},y4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),g4={key:0,class:"container__row__wrapper__input"},_4={class:"container__row"},b4={class:"container__row__wrapper"},S4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),C4={key:0,class:"container__row__wrapper__input"},w4={class:"container__row type-and-advanced"},k4={class:"container__row__wrapper"},E4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),T4={class:"container__row__wrapper__input"},V4={class:"container__row__wrapper center"},x4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),N4={class:"container__row__wrapper__input"},B4={class:"container__row"},F4={class:"container__action"},P4={__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),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),m=e.ref(null),c=e.ref(null),y=e.ref(!0),p=e.computed(()=>m.value?m.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function f(k){s.value=k,i("update:tournament",k)}function d(k){r.value=k,i("update:season",k)}function h(k){n.value=k,i("update:team",k)}function u(k){m.value=k}function g(k){l.value=k}function w(k){c.value=k}return(k,W)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",a4,[e.createElementVNode("div",i4,[e.createElementVNode("div",o4,[s4,e.createElementVNode("div",r4,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:f},null,8,["items"])])])]),e.createElementVNode("div",l4,[e.createElementVNode("div",n4,[d4,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",c4,[e.createVNode(pe,{items:s.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",p4,[m4,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",u4,[e.createVNode(Is,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",f4,[e.createElementVNode("div",h4,[y4,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",g4,[e.createVNode(pe,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_4,[e.createElementVNode("div",b4,[S4,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",C4,[e.createVNode(jt,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",w4,[e.createElementVNode("div",k4,[E4,e.createElementVNode("div",T4,[e.createVNode(pe,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:w},null,8,["items"])])]),e.createElementVNode("div",V4,[x4,e.createElementVNode("div",N4,[e.createVNode(st,{modelValue:y.value,"onUpdate:modelValue":W[0]||(W[0]=J=>y.value=J)},null,8,["modelValue"])])])]),e.createElementVNode("div",B4,[e.createVNode(Za,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",F4,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},z4=v(P4,[["__scopeId","data-v-575b26b5"]]),Ge=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),A4={class:"container"},I4={class:"container__row"},R4={class:"container__row__wrapper"},M4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),O4={class:"container__row__wrapper__input"},L4={class:"container__row two-items"},$4={class:"container__row__wrapper"},D4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),W4={key:0,class:"container__row__wrapper__input"},j4={class:"container__row__wrapper"},v4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),U4={key:0,class:"container__row__wrapper__input"},G4={class:"container__row"},H4={class:"container__row__wrapper"},q4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),J4={key:0,class:"container__row__wrapper__input"},Y4={class:"container__row type-and-advanced"},Z4={class:"container__row__wrapper"},K4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),X4={class:"container__row__wrapper__input"},Q4={class:"container__row__wrapper center"},eC=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),tC={class:"container__row__wrapper__input"},aC={class:"container__row"},iC={class:"container__action"},oC={__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),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),m=e.ref(null),c=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.team);function p(g){s.value=g,i("update:tournament",g)}function f(g){r.value=g,i("update:season",g)}function d(g){n.value=g,i("update:team",g)}function h(g){l.value=g}function u(g){m.value=g}return(g,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",A4,[e.createElementVNode("div",I4,[e.createElementVNode("div",R4,[M4,e.createElementVNode("div",O4,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",L4,[e.createElementVNode("div",$4,[D4,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",W4,[e.createVNode(pe,{items:s.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",j4,[v4,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",U4,[e.createVNode(Is,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",G4,[e.createElementVNode("div",H4,[q4,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",J4,[e.createVNode(jt,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Y4,[e.createElementVNode("div",Z4,[K4,e.createElementVNode("div",X4,[e.createVNode(pe,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",Q4,[eC,e.createElementVNode("div",tC,[e.createVNode(st,{modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=k=>c.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",aC,[e.createVNode(Za,{"selected-category":m.value},null,8,["selected-category"])])]),e.createElementVNode("div",iC,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},sC=v(oC,[["__scopeId","data-v-6d73d5e6"]]),He=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),rC={class:"container"},lC={class:"container__row"},nC={class:"container__row__wrapper"},dC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),cC={class:"container__row__wrapper__input"},pC={class:"container__row two-items"},mC={class:"container__row__wrapper"},uC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),fC={key:0,class:"container__row__wrapper__input"},hC={class:"container__row__wrapper"},yC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),gC={key:0,class:"container__row__wrapper__input"},_C={class:"container__row"},bC={class:"container__row__wrapper"},SC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),CC={key:0,class:"container__row__wrapper__input"},wC={class:"container__row type-and-advanced"},kC={class:"container__row__wrapper"},EC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),TC={class:"container__row__wrapper__input"},VC={class:"container__row__wrapper center"},xC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),NC={class:"container__row__wrapper__input",style:{width:"fit-content"}},BC={class:"container__row"},FC={class:"container__action"},PC={__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),r=e.ref(null),l=e.ref(null),n=e.ref(null),m=e.ref(null),c=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.games);function p(g){s.value=g,i("update:tournament",g)}function f(g){r.value=g,i("update:season",g)}function d(g){l.value=g}function h(g){n.value=g}function u(g){m.value=g}return(g,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",rC,[e.createElementVNode("div",lC,[e.createElementVNode("div",nC,[dC,e.createElementVNode("div",cC,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",pC,[e.createElementVNode("div",mC,[uC,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",fC,[e.createVNode(pe,{items:s.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hC,[yC,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",gC,[e.createVNode(pe,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_C,[e.createElementVNode("div",bC,[SC,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",CC,[e.createVNode(jt,{items:l.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wC,[e.createElementVNode("div",kC,[EC,e.createElementVNode("div",TC,[e.createVNode(pe,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",VC,[xC,e.createElementVNode("div",NC,[e.createVNode(st,{modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=k=>c.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",BC,[e.createVNode(Za,{"selected-category":m.value},null,8,["selected-category"])])]),e.createElementVNode("div",FC,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},zC=v(PC,[["__scopeId","data-v-6e904db8"]]),AC={class:"template-videos"},IC={class:"template-videos__header"},RC={class:"template-videos__body"},MC=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:D6,VideosPlayer:z4,VideosTeam:sC,VideosGame:zC}}),OC=Object.assign(MC,{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=[],r=["g-23","g-24","g-25"],l={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},m=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),c=e.ref([]),y=e.ref(m.value[0]),p=e.ref({}),f=e.ref({}),d=e.ref({}),h=e.ref({}),u=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const w=e.ref(null);e.watch(p,E=>{f.value.numberSeasonSelectedIndex=f.value.seasons.findIndex(V=>V.id===E.id),E.arrayMatchDays?(h.value=E.arrayMatchDays[0]||{},d.value=E.arrayTeams[0]||{}):(A(E),Y(E))}),e.watch(d,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!d.value.arrayPlayers||!d.value.arrayPlayers.length)&&(d.value.arrayPlayers=p.value.mapPlayersByTeam.get(d.value.team_id))},700)});async function k(){try{c.value=await W()}catch(E){throw new Error(E)}}async function W(){try{const E={Authorization:Ya()||a.token},V={}.API_TOURNAMENTS||a.tournamentsUrl,I=await it.get(V,{headers:E});return I.data?I.data.map(B=>({...B.tournament,seasons:B.seasons})):[]}catch(E){return Promise.reject(E)}}async function J(E,V,I=""){i("loading-data");let B=I;try{B||(B={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,E.forEach((F,_)=>{B+=`${_===0?"":"&"}seasons=${F}`}));const M={Authorization:Ya()||a.token},{data:{data:G,teams:T}}=await it.get(B,{headers:M});return{seasonsAndGames:G,seasonsAndTeams:T}}catch(M){if(V>0)return J(E,V-1,B);throw new Error(M)}finally{i("loading-data")}}async function q(E){try{const V={Authorization:Ya()||a.token},I=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${E.seasonId}`,B=await it.get(I,{headers:V});return B.data?B.data.players:[]}catch(V){return Promise.reject(V)}}async function A(E){try{const{seasonsAndGames:V,seasonsAndTeams:I}=await J([E.id,...E.related_seasons.map(T=>T.id)],3),B=I.find(T=>T._id===E.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const M=B.teams.reduce((T,F)=>(p.value.arrayTeams.push(F),p.value.mapTeams.set(F.team_id,{name:F.colloquial_name,acronym:F.acronym,logo:F.logo,id:F.team_id}),T.set(F.team_id,F),T),new Map);d.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const G=Array.from(V.reduce((T,F)=>(F.games.forEach(_=>{if(_.game_status===1&&_.has_video){(!p.value.maxGameId||_.game_id>p.value.maxGameId)&&(p.value.maxGameId=_.game_id);let x=_.matchday_abbreviation.replace("M","J"),D=_.matchday_abbreviation.replace("M","Jornada ");const se=_.matchday_abbreviation.replace("M","");F.season_type===0?f.value.tournament_type===1&&(_.seasonId===881?(x=X3[se]||x,D=K3[se]||D):(x=As[_.matchday_abbreviation]?_.matchday_abbreviation:x,D=As[_.matchday_abbreviation]||D,x==="FINAL"&&(x="F"))):F.season_type===1?(x=Z3[_.matchday_abbreviation],D=x):(x=_.matchday_abbreviation.replace("PO","R"),D="Repechaje"),_.roundAbbreviation=x,_.roundName=D,p.value.mapGames.set(_.game_id,{id:_.game_id,date:_.date,dateTimeMillis:new Date(_.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(_.home_team),awayTeam:p.value.mapTeams.get(_.visiting_team),roundAbbreviation:_.roundAbbreviation,roundName:_.roundName,score:_.score,gameResult:_.score[0]>_.score[1]?1:_.score[0]<_.score[1]?2:3,seasonId:F.season_id});const Ee=T.get(_.roundAbbreviation);_.numberDateTimeMillis=new Date(_.date_time_utc).getTime(),_.homeTeam=M.get(_.home_team),_.awayTeam=M.get(_.visiting_team);const nt=p.value.mapGamesByTeam.get(_.home_team),dt=p.value.mapGamesByTeam.get(_.visiting_team);nt?nt.push(_):p.value.mapGamesByTeam.set(_.home_team,[_]),dt?dt.push(_):p.value.mapGamesByTeam.set(_.visiting_team,[_]),Ee?Ee.arrayGames.push(_):T.set(_.roundAbbreviation,{stringMatchDayAbbreviation:_.roundAbbreviation,stringMatchDayName:_.roundName,arrayGames:[_]})}}),T),new Map).values());G.reverse(),G.forEach(T=>{T.arrayGames.sort((F,_)=>F.numberDateTimeMillis-_.numberDateTimeMillis)}),p.value.arrayMatchDays=G,h.value=G[0]||{}}catch(V){throw new Error(V)}}async function Y(E){try{const V=await N(E.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=V.reduce((I,B)=>{p.value.mapPlayers.set(B.player_id,{id:B.player_id,name:B.player_name,shortName:B.shortName,photo:B.player_photo,teamId:B.team_id,positionId:B.position_id});const M=I.get(B.team_id);return M?M.push(B):I.set(B.team_id,[B]),I},new Map)}catch(V){throw new Error(V)}}async function Z(){try{let E=[];u.value.isEmpty?(E=await R(),g.value={...E}):E=g.value;const V=[];if(E&&E.length){u.value=E.reduce((F,_)=>{if(_.group_id!=="g-55"){const x={idAux:_.group_id,ids:[..._.ids?_.ids:[],..._.rival_Ids?_.rival_Ids:[]],type:_.type,name:_.name,coordinatePoint:_.coordinate_point,requiresRivalTransform:r.includes(_.group_id)};x.idsAux=[...x.ids],x.subcategoryGroups=_.group_id==="g-12"?[]:U(_,0,new Map,!1,{},x.idsAux),V.push(x),x.type.includes(n.player)&&F.player.push(x),x.type.includes(n.team)&&(x.idAux!=="g-2"&&F.games.push(x),F.team.push(x)),x.type.includes(n.goalkeeper)&&F.goalkeeper.push(x)}return F},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const I=new Map,B="Resumen",M="Todas sus jugadas",G=u.value.player.reduce((F,_)=>{const x=P(_);return x.forEach(D=>{I.set(D,_.name)}),F.push(...x),F},[]),T=u.value.goalkeeper.reduce((F,_)=>{const x=P(_);return x.forEach(D=>{I.set(D,_.name)}),F.push(...x),F},[]);u.value.games.unshift({name:B,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),u.value.team.unshift({name:B,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),u.value.player.unshift({name:B,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:M,arrayCategoriesIds:G,booleanIsMinutesPlayed:!0}),u.value.goalkeeper.unshift({name:B,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:M,arrayCategoriesIds:T,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function U(E,V=0,I=new Map,B=!1,M={},G=[]){if(!E.group_id)return;let T=I.get(V);const F=B?`${E.id_category}_r`:E.id_category;E.id_category&&G.push(E.id_category);let _={ids:[F],groupId:E.group_id,level:V,name:E.name,isSelected:!0,fatherCategories:V>0?[M]:[],idsByFatherCategory:{[E.category_father]:[F]}};if(V>0&&V===1&&(_.id=E.id_category),T&&V!==0){const x=E.group_id.charAt(E.group_id.length-1),D=T.find(se=>se.groupId.endsWith(x));D&&!s.includes(_.groupId)?(_=D,D.ids.push(F),D.fatherCategories.push(M),D.fatherCategories.forEach(se=>{se.childCategories?se.childCategories.find(Ee=>Ee.groupId===_.groupId)||se.childCategories.push(_):se.childCategories=[_]}),D.idsByFatherCategory[E.category_father]?D.idsByFatherCategory[E.category_father].push(F):D.idsByFatherCategory[E.category_father]=[F]):(_.fatherCategories.forEach(se=>{se.childCategories?se.childCategories.find(Ee=>Ee.groupId===_.groupId)||se.childCategories.push(_):se.childCategories=[_]}),T.push(_))}else V!==0&&(M.childCategories?M.childCategories.push(_):M.childCategories=[_],T=[_],I.set(V,T));if(E.categories&&E.categories.length?E.categories.forEach(x=>{U(x,V+1,I,B,_,G)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(x=>{U(x,V+1,I,!0,_,G)}),V===0)return Array.from(I.values())}function P(E){const V=E||E;if(V.booleanIsBestPlays)return V.arrayCategoriesIds;const I={total:[],toRemove:[]};if(V.subcategoryGroups&&V.subcategoryGroups.length?V.subcategoryGroups[0].forEach(B=>{de(B,null,I)}):(V.ids&&I.total.push(...V.ids),V.rival_ids&&V.rival_ids.forEach(B=>{I.total.push(`${B}_r`)})),I.total=I.total.reduce((B,M)=>(I.toRemove.includes(M)||B.push(M),B),[]),!E){const B=V.name.toLowerCase().includes("recibid");w.value.isRivalSubject=B,w.value.avoidCategorySingleName=B,w.value.coordinatePoint=V.coordinatePoint,w.value.requiresRivalTransform=V.requiresRivalTransform}return I.total}function de(E,V=[],I={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach(B=>{const M=V?Object.entries(E.idsByFatherCategory).reduce((G,[T,F])=>(V.includes(Number(T))&&F.forEach(_=>{typeof _=="string"&&_.endsWith("_r")?G.push(Number(_.split("_")[0])):G.push(_)}),G),[]):[E.id];de(B,M,I)}):V?Object.entries(E.idsByFatherCategory).forEach(([B,M])=>{V.includes(Number(B))&&M.forEach(G=>{I.total.push(G)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([B,M])=>{M.forEach(G=>{I.total.push(G)})}):I.total.push(E.id):E.childCategories||E.ids.forEach(B=>{I.toRemove.push(B)})}async function N(E){try{const V=await q({seasonId:E});return V.forEach(I=>{const[B,M]=I.player_name.split(","),G=B.split(" ");let T="";for(const F of G)if(T+=` ${F}`,F.length>3)break;I.shortName=M&&B?`${M.trim().charAt(0)}.${T}`:""}),V}catch(V){return Promise.reject(V)}}async function R(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await it.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function z(E){y.value=E}function H(E){f.value=E,p.value=E.seasons[0]}function K(E){p.value=E}function fe(E){d.value=E}return k(),Z(),(E,V)=>(e.openBlock(),e.createElementBlock("div",AC,[e.createElementVNode("div",IC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,I=>(e.openBlock(),e.createBlock(rt,e.mergeProps({key:I.name},o,{text:I.name,"is-active":y.value.componentName===I.componentName,tournaments:c.value,onClick:B=>z(I)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",RC,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value.componentName),{tournaments:c.value,"advanced-filter-categories":u.value,"onUpdate:tournament":H,"onUpdate:season":K,"onUpdate:team":fe},null,40,["tournaments","advanced-filter-categories"]))])]))}}),LC=v(OC,[["__scopeId","data-v-d6f7aec8"]]),Rs=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"]]),$C={class:"template-taken-corners"},DC={class:"template-taken-corners__header"},WC={class:"template-taken-corners__header__all"},jC={class:"template-taken-corners__body"},vC={class:"template-taken-corners__body__players"},UC={class:"template-taken-corners__body__players__player__jersey"},GC={class:"template-taken-corners__body__players__player__photo"},HC={class:"template-taken-corners__body__players__player__photo__img"},qC=["src"],JC={class:"template-taken-corners__body__players__player__info"},YC={class:"template-taken-corners__body__players__player__info__name"},ZC={class:"template-taken-corners__body__players__player__info__position"},KC={class:"template-taken-corners__body__players__player__info__position__nationality"},XC=["src"],QC={class:"template-taken-corners__body__players__player__info__position__name"},e5={class:"template-taken-corners__body__players__player__checkbox"},t5={__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),r=e.ref([]),l=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>r.value.reduce((u,g)=>g.isSelected?u+1:u,0));e.watch(()=>o.takenCornersFilters,u=>{r.value=u.map(g=>{const w={...g};return(g.isSelected===void 0||g.isSelected===null)&&(w.isSelected=!0),w})},{immediate:!0,deep:!0}),e.watch(n,u=>{s.value=u===r.value.length,a("change-filters-selected",u),a("update:filters",r.value)},{immediate:!0});function m(u){return`https://golstatsimages.blob.core.windows.net/flags/${u}.jpg`}function c(u){return`https://golstatsimages.blob.core.windows.net/players-profile/${u}.png`}function y(u){let g=!1;return u.split(" ").reduce((w,k)=>(g||(k.length>3?(w=k,g=!0):w+=`${k} `),w),"").trim()}function p(u){return`${y(u.last_name)}, ${u.first_name.trim()}`}function f(u){return o.isFemale?Rs.get(u.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):Rs.get(u.positions[0])}function d(u){u?r.value.forEach(g=>{g.isSelected=!0}):r.value.forEach((g,w)=>{g.isSelected=w===0})}function h(){r.value.forEach(u=>{u.isSelected=!0})}return i({clearFilters:h}),(u,g)=>(e.openBlock(),e.createElementBlock("div",$C,[e.createElementVNode("div",DC,[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(l.value),5),e.createElementVNode("div",WC,[e.createVNode(e.unref(j),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",jC,[e.createElementVNode("div",vC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,w=>(e.openBlock(),e.createElementBlock("div",{key:w.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",UC,e.toDisplayString(w.jersey),1),e.createElementVNode("div",GC,[e.createElementVNode("div",HC,[e.createElementVNode("img",{src:c(w.player_id),alt:"player photo",width:"36",height:"36"},null,8,qC)])]),e.createElementVNode("div",JC,[e.createElementVNode("div",YC,e.toDisplayString(p(w)),1),e.createElementVNode("div",ZC,[e.createElementVNode("div",KC,[e.createElementVNode("img",{src:m(w.nationality_id),alt:"country flag"},null,8,XC)]),e.createElementVNode("div",QC,e.toDisplayString(f(w)),1)])]),e.createElementVNode("div",e5,[e.createVNode(e.unref(j),{modelValue:w.isSelected,"onUpdate:modelValue":k=>w.isSelected=k,"avoid-interaction":n.value===1&&w.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},a5=v(t5,[["__scopeId","data-v-763fcc54"]]),Ka={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]}]},Xa=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),i5={class:"template-how-was-corner"},o5={class:"template-how-was-corner__header"},s5=Xa(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),r5={class:"template-how-was-corner__header__radio-input"},l5={class:"template-how-was-corner__header__radio-input__radio"},n5=Xa(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),d5={class:"template-how-was-corner__header__radio-input"},c5={class:"template-how-was-corner__header__radio-input__radio"},p5=Xa(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),m5=["onClick"],u5={class:"template-how-was-corner__content__corner-type__img"},f5=["src","alt"],h5={class:"template-how-was-corner__content__corner-type__info"},y5={class:"template-how-was-corner__content__corner-type__info__title"},g5={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ka},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]),r=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((m,c)=>c.isSelected?m+1:m,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function l(n){n.isSelected&&r.value===1||(n.isSelected=!n.isSelected)}return(n,m)=>(e.openBlock(),e.createElementBlock("div",i5,[e.createElementVNode("div",o5,[s5,e.createElementVNode("div",r5,[e.createElementVNode("div",l5,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":m[0]||(m[0]=c=>o.value=c)},null,512),[[e.vModelRadio,o.value]]),n5])]),e.createElementVNode("div",d5,[e.createElementVNode("div",c5,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":m[1]||(m[1]=c=>o.value=c)},null,512),[[e.vModelRadio,o.value]]),p5])])]),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,(c,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":c.isSelected}]),onClick:p=>l(c)},[e.createElementVNode("div",u5,[e.createElementVNode("img",{src:c.imgSrc,alt:c.title},null,8,f5)]),e.createElementVNode("div",h5,[e.createElementVNode("div",y5,e.toDisplayString(c.title),1)])],10,m5))),128))],2)]))}},_5=v(g5,[["__scopeId","data-v-b7e3b8e0"]]),lt=[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],Ne=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),b5={class:"template-zone"},S5={class:"controls-zone-container"},C5={class:"controls-zone-container-title-checkcon"},w5={class:"controls-zone-container-title-checkcon-check"},k5={class:"gsc-field-img-container"},E5={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T5=["fill"],V5=["fill"],x5=["fill"],N5=["fill"],B5=["fill"],F5=["fill"],P5=["fill"],z5=["fill"],A5=["fill"],I5=["fill"],R5=["fill"],M5=["fill"],O5=["fill"],L5=["fill"],$5=["fill"],D5=["fill"],W5=["fill"],j5=["fill"],v5=["fill"],U5=["fill"],G5=["fill"],H5=["fill"],q5=["fill"],J5=["fill"],Y5=["fill"],Z5=["fill"],K5=["fill"],X5=["fill"],Q5=["fill"],ew=["fill"],tw=["fill"],aw=["fill"],iw=["fill"],ow=["fill"],sw=["fill"],rw=Ne(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),lw=Ne(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),nw=["id"],dw=Ne(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),cw=[dw],pw=["mask"],mw=Ne(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),uw=[mw],fw=Ne(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),hw=Ne(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),yw={class:"template-zone__total-corners"},gw=Ne(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),_w=Ne(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),bw=[gw,_w],Sw={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...lt]},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),r=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(r,y=>{s.value=y.length===35}),e.watch(()=>o.zoneFilters,y=>{r.value=y},{immediate:!0,deep:!0}),e.watch(()=>r.value,y=>{a("update:filters",y),a("change-filters-selected",y.length)},{deep:!0});function n(y){y?(r.value=lt,s.value=!0):(r.value=[],s.value=!1)}function m(y){r.value.includes(y)?r.value=r.value.filter(p=>p!==y):r.value.push(y),s.value=r.value.length===35}function c(){r.value=[...lt]}return i({clearFilters:c}),(y,p)=>(e.openBlock(),e.createElementBlock("div",b5,[e.createElementVNode("div",S5,[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",C5,[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",w5,[e.createVNode(e.unref(j),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",k5,[(e.openBlock(),e.createElementBlock("svg",E5,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=f=>m(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:r.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,T5),e.createElementVNode("rect",{onClick:p[1]||(p[1]=f=>m(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:r.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,V5),e.createElementVNode("rect",{onClick:p[2]||(p[2]=f=>m(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:r.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,x5),e.createElementVNode("rect",{onClick:p[3]||(p[3]=f=>m(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:r.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,N5),e.createElementVNode("rect",{onClick:p[4]||(p[4]=f=>m(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:r.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,B5),e.createElementVNode("rect",{onClick:p[5]||(p[5]=f=>m(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:r.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,F5),e.createElementVNode("rect",{onClick:p[6]||(p[6]=f=>m(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:r.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,P5),e.createElementVNode("rect",{onClick:p[7]||(p[7]=f=>m(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:r.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,z5),e.createElementVNode("rect",{onClick:p[8]||(p[8]=f=>m(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:r.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,A5),e.createElementVNode("rect",{onClick:p[9]||(p[9]=f=>m(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:r.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,I5),e.createElementVNode("rect",{onClick:p[10]||(p[10]=f=>m(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:r.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,R5),e.createElementVNode("rect",{onClick:p[11]||(p[11]=f=>m(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:r.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,M5),e.createElementVNode("rect",{onClick:p[12]||(p[12]=f=>m(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:r.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,O5),e.createElementVNode("rect",{onClick:p[13]||(p[13]=f=>m(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:r.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,L5),e.createElementVNode("rect",{onClick:p[14]||(p[14]=f=>m(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:r.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,$5),e.createElementVNode("rect",{onClick:p[15]||(p[15]=f=>m(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:r.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,D5),e.createElementVNode("rect",{onClick:p[16]||(p[16]=f=>m(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:r.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,W5),e.createElementVNode("rect",{onClick:p[17]||(p[17]=f=>m(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:r.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,j5),e.createElementVNode("rect",{onClick:p[18]||(p[18]=f=>m(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:r.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,v5),e.createElementVNode("rect",{onClick:p[19]||(p[19]=f=>m(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:r.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,U5),e.createElementVNode("rect",{onClick:p[20]||(p[20]=f=>m(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:r.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,G5),e.createElementVNode("rect",{onClick:p[21]||(p[21]=f=>m(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:r.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,H5),e.createElementVNode("rect",{onClick:p[22]||(p[22]=f=>m(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:r.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,q5),e.createElementVNode("rect",{onClick:p[23]||(p[23]=f=>m(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:r.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,J5),e.createElementVNode("rect",{onClick:p[24]||(p[24]=f=>m(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:r.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,Y5),e.createElementVNode("rect",{onClick:p[25]||(p[25]=f=>m(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:r.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,Z5),e.createElementVNode("rect",{onClick:p[26]||(p[26]=f=>m(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:r.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,K5),e.createElementVNode("rect",{onClick:p[27]||(p[27]=f=>m(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:r.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,X5),e.createElementVNode("rect",{onClick:p[28]||(p[28]=f=>m(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:r.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,Q5),e.createElementVNode("rect",{onClick:p[29]||(p[29]=f=>m(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:r.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,ew),e.createElementVNode("rect",{onClick:p[30]||(p[30]=f=>m(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:r.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,tw),e.createElementVNode("rect",{onClick:p[31]||(p[31]=f=>m(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:r.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,aw),e.createElementVNode("rect",{onClick:p[32]||(p[32]=f=>m(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:r.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,iw),e.createElementVNode("rect",{onClick:p[33]||(p[33]=f=>m(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:r.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,ow),e.createElementVNode("rect",{onClick:p[34]||(p[34]=f=>m(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:r.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,sw),rw,lw,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},cw,8,nw),e.createElementVNode("g",{mask:`url(#${l.value})`},uw,8,pw),fw,hw]))]),e.withDirectives(e.createElementVNode("div",yw,bw,512),[[e.vShow,!1]])]))}},Cw=v(Sw,[["__scopeId","data-v-378bf7e2"]]),Qa=[{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]}],ww={class:"what-happened"},kw={class:"what-happened__all"},Ew={class:"what-happened__filters"},Tw={key:0,class:"what-happened__filters__filter__composed"},Vw={class:"what-happened__filters__filter__composed__main"},xw={key:1,class:"what-happened__filters__filter__single"},Nw={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Qa]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((d,h)=>(h.child?h.child.forEach(u=>{u.isSelected&&d++}):h.isSelected&&d++,d),0)),r=e.computed(()=>o.whatHappenedFilters.reduce((d,h)=>(h.child?d+=h.child.length:d++,d),0)),l=e.computed(()=>s.value===r.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 m(d){o.whatHappenedFilters.forEach(h=>{d?(h.isSelected=d,h.child&&h.child.forEach(u=>{u.isSelected=d})):h.child?(h.isSelected=!0,h.child.forEach(u=>{u.isSelected=!0})):h.isSelected=!1})}function c(d,h){h.isSelected=d,h.child.forEach(u=>{u.isSelected=d})}function y(d,h,u){u.isSelected=d,h.isSelected=h.child.every(g=>g.isSelected)}function p(d,h){h.isSelected=d}function f(){o.whatHappenedFilters.forEach(d=>{d.child?d.child.forEach(h=>{h.isSelected=!0}):d.isSelected=!0})}return i({onResetFilters:f}),(d,h)=>(e.openBlock(),e.createElementBlock("div",ww,[e.createElementVNode("div",kw,[e.createVNode(e.unref(j),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":m},null,8,["model-value"])]),e.createElementVNode("div",Ew,[(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",Tw,[e.createElementVNode("div",Vw,[e.createVNode(e.unref(j),{"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":w=>c(w,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.child,(w,k)=>(e.openBlock(),e.createElementBlock("div",{key:`c${k}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(j),{"model-value":w.isSelected,label:t.isFemale?w.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):w.text,"avoid-interaction":n.value&&w.isSelected,"onUpdate:modelValue":W=>y(W,u,w)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",xw,[e.createVNode(e.unref(j),{"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":w=>p(w,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},Bw=v(Nw,[["__scopeId","data-v-8f375a1a"]]),ei={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}]}},Ms=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),Fw={class:"template-results"},Pw={class:"template-results__type-switch"},zw=Ms(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),Aw=Ms(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),Iw={class:"template-results__info"},Rw={key:0,class:"template-results__group"},Mw={key:1,class:"template-results__group"},Ow={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...ei})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),r=e.computed(()=>{const m=s.value.isMoment?s.value.results.moment.filter(c=>c.isSelected).length:s.value.results.final.filter(c=>c.isSelected).length;return a("change-filters-selected",m),m}),l=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,m=>{s.value===null&&(s.value={...m})},{deep:!0,immediate:!0}),e.watch(s,m=>{a("update:filters",m)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(m=>{m.isSelected=!0}),s.value.results.final.forEach(m=>{m.isSelected=!0})}return i({removeFilters:n}),(m,c)=>(e.openBlock(),e.createElementBlock("div",Fw,[e.withDirectives(e.createElementVNode("div",Pw,[zw,e.createVNode(st,{modelValue:s.value.isMoment,"onUpdate:modelValue":c[0]||(c[0]=y=>s.value.isMoment=y)},null,8,["modelValue"]),Aw],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",Iw,e.toDisplayString(l.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",Rw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(j),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,"avoid-interaction":r.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",Mw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(j),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,"avoid-interaction":r.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},Lw=v(Ow,[["__scopeId","data-v-ee3b28d3"]]),$w={key:0,class:"productivity__header__text"},Dw={key:1,class:"productivity__header__checkbox"},Ww={class:"templates__body"},jw={key:0,class:"templates-plays"},vw={key:1,class:"templates-productivity"},Uw={key:2,class:"template-field"},Gw={key:3,class:"template-details"},Hw={key:4,class:"template-personal-data"},qw={key:5,class:"template-leagues"},Jw={key:6,class:"template-plays"},Yw={key:7,class:"template-plays"},Zw={key:8,class:"template-universe"},Kw={key:9,class:"template-distance"},Xw={key:10,class:"template-results"},Qw={key:11,class:"template-results-by-type"},ek={key:12,class:"template-games"},tk={key:13,class:"template-taken-corners"},ak={key:14,class:"template-videos"},ik={key:15,class:"template-how-was-corner"},ok={key:16,class:"template-zone"},sk={key:17,class:"template-what-happened"},rk={key:1,class:"templates__footer"},lk={class:"templates__footer__button"},nk={class:"templates__footer__button"},dk={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},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},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:()=>({})},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),r=e.ref(!1),l=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),m=e.ref(null),c=e.ref(null),y=e.ref(null),p=e.ref(null),f=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!==b.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),h=e.computed(()=>{const _=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(x=>{x.categories&&x.categories.forEach(D=>{_.push(D)})}),_}),u=e.computed(()=>{const _=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(x=>{x.categories&&x.categories.forEach(D=>{_.push(D)})}),_}),g=e.computed(()=>{const _=h.value.filter(x=>x.isSelected);return W(_),o.filterType===b.PRODUCTIVITY&&a("change-categories-selected",_.length),_.length}),w=e.computed(()=>g.value>=o.productivityMaxCategories),k=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(l,_=>{o.filterType===b.DETAILS&&a("update:filters",_)},{immediate:!0,deep:!0}),e.watch(()=>k.value,_=>{if(o.filterType===b.DETAILS){const x=_.filter(D=>D.isSelected);a("change-filters-selected",x.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,_=>{if(o.filterType===b.PLAYS_TYPES||o.filterType===b.GOLSTATS){const x=_.filter(D=>D.isSelected);a("change-filters-selected",x.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,_=>{o.filterType===b.FIELD&&a("change-filters-selected",_.length)}),e.watch(u,()=>{o.filterType===b.PLAYS&&N()},{immediate:!0,deep:!0}),e.watch(h,()=>{o.filterType===b.PRODUCTIVITY&&R()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,_=>{o.filterType===b.RESULTS&&a("change-filters-selected",_.results.filter(x=>x.isSelected).length)},{immediate:!0,deep:!0});function W(_){setTimeout(()=>{_.sort((x,D)=>x.priority-D.priority),_.forEach((x,D)=>{x.priority=D+1})},10)}function J(_=null){q()}function q(){o.filterType===b.PRODUCTIVITY?h.value.forEach(_=>{_.isSelected=!1}):o.filterType===b.PLAYS?(u.value.forEach(_=>{_.isSelected=!0}),r.value=!0):o.filterType===b.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===b.DETAILS?(o.playingAs.forEach(_=>{_.isSelected=!0}),o.gameSections.forEach(_=>{_.isSelected=!0})):o.filterType===b.TOURNAMENTS?(o.tournaments.forEach(_=>{_.isSelected=!0}),a("change-filters-selected",0)):o.filterType===b.PLAYS_TYPES?o.playsGolstatsCategories.forEach(_=>{_.isSelected=!0}):o.filterType===b.GOLSTATS?o.playsGolstatsCategories.forEach(_=>{_.isSelected=!1}):o.filterType===b.UNIVERSE?m.value&&m.value.resetFilters():o.filterType===b.PERSONAL_DATA?(s.value&&s.value.onClearFilters(Q.All),a("change-personal-data-filters",{})):o.filterType===b.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===b.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(_=>(_.isSelected=!0,_))}):o.filterType===b.RESULTS_BY_TIME?f.value&&f.value.removeFilters():o.filterType===b.GAMES?o.gamesFilters.forEach(_=>{_.isSelected=!0}):o.filterType===b.TAKEN_CORNERS?c.value.clearFilters():o.filterType===b.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(_=>{_.isSelected=!0}),o.howWasCornerFilters.right.forEach(_=>{_.isSelected=!0})):o.filterType===b.ZONE?y.value&&y.value.clearFilters():o.filterType===b.WHAT_HAPPENED&&p.value&&p.value.onResetFilters()}function A(_){o.filterType===b.TOURNAMENTS&&a("change-filters-selected",_)}function Y(_){o.filterType===b.UNIVERSE&&a("change-universe-filters",_)}function Z(_){o.filterType===b.FIELD&&a("change-field-areas",_)}function U(_){o.filterType===b.GOLSTATS&&a("change-filters-selected",_)}function P(_){a("change-filters-selected",_)}function de(_){r.value=_,o.playsCategories.offensive.categories.forEach(x=>{x.isSelected=_}),o.playsCategories.defensive.categories.forEach(x=>{x.isSelected=_}),o.playsCategories.possession.categories.forEach(x=>{x.isSelected=_}),o.playsCategories.offenses.categories.forEach(x=>{x.isSelected=_})}function N(){let _=0;const x={playsCategories:u.value.filter(D=>D.isSelected)};r.value=x.playsCategories.length===u.value.length,_=x.playsCategories.length,Object.values(n.value).forEach(D=>{D&&_++}),a("change-filters-selected",_),a("update:filters",x)}function R(){let _=0;const x={productivityFilters:h.value.filter(D=>D.isSelected),offensesConditions:n.value};_=x.productivityFilters.length,Object.values(n.value).forEach(D=>{D&&_++}),a("change-filters-selected",_),a("update:filters",x)}function z(){a("apply")}function H(){(o.filterType===b.PLAYS_TYPES||o.filterType===b.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(_=>{_.isSelected=!1}),a("apply")}function K(_){a("update:filters",_)}function fe(_){o.filterType===b.PERSONAL_DATA&&a("update:filters",_)}function E(_){o.filterType===b.TOURNAMENTS&&a("update:filters",_)}function V(_){(o.filterType===b.PLAYS_TYPES||o.filterType===b.GOLSTATS)&&a("update:filters",_)}function I(_){o.filterType===b.PRODUCTIVITY&&(n.value=_,R())}function B(_){o.filterType===b.DISTANCE&&a("update:filters",_)}function M(_){o.filterType===b.RESULTS&&a("update:filters",_)}function G(_){o.filterType===b.GAMES&&(a("update:filters",_),a("change-filters-selected",_.filter(x=>x.isSelected).length))}function T(_){l.value.statisticType=_}const F=e.computed(()=>o.filterType===b.PLAYS?u.value.length:o.filterType===b.PRODUCTIVITY?h.value.length:o.filterType===b.FIELD?16:o.filterType===b.UNIVERSE?6:o.filterType===b.DETAILS?8:o.filterType===b.RESULTS||o.filterType===b.RESULTS_BY_TIME?3:o.filterType===b.GAMES?o.gamesFilters.length:0);return a("total-filters",F),i({clearFilters:J}),(_,x)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(d.value)},[t.filterType===e.unref(b).PRODUCTIVITY||t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(b).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",$w," Selecciona hasta 5 categorias en orden de importancia ")):t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",Dw,[e.createVNode(e.unref(j),{label:"Todos los tipos de jugadas",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":r.value,"label-color":t.textColor,"onUpdate:modelValue":de},null,8,["model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Ww,[t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",jw,[e.createVNode(G3,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",vw,[e.createVNode(Wg,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":w.value,"is-expansion-mode":t.isExpansionMode,"onUpdate:offensesConditions":I},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).FIELD?(e.openBlock(),e.createElementBlock("div",Uw,[e.createVNode(e.unref(Go),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Z}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).DETAILS?(e.openBlock(),e.createElementBlock("div",Gw,[e.createVNode(_0,{"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:T},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(b).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Hw,[e.createVNode(N3,{"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,"onUpdate:filters":fe},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",qw,[e.createVNode(E0,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:A,"onUpdate:filters":E},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",Jw,[e.createVNode(No,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":V},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Yw,[e.createVNode(No,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:U,"onUpdate:filters":V},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).UNIVERSE?(e.openBlock(),e.createElementBlock("div",Zw,[e.createVNode(g2,{ref_key:"templateUniverse",ref:m,"universe-filters":t.universeFilters,"onUpdate:universeFilters":Y},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).DISTANCE?(e.openBlock(),e.createElementBlock("div",Kw,[e.createVNode(L2,{distance:t.distanceFilters,"onUpdate:distanceFilters":B},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).RESULTS?(e.openBlock(),e.createElementBlock("div",Xw,[e.createVNode(J3,{ref_key:"templateResults",ref:f,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":M},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",Qw,[e.createVNode(Lw,{ref_key:"templateResults",ref:f,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).GAMES?(e.openBlock(),e.createElementBlock("div",ek,[e.createVNode(G2,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":G},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",tk,[e.createVNode(a5,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:c,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).VIDEOS?(e.openBlock(),e.createElementBlock("div",ak,[e.createVNode(LC,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",ik,[e.createVNode(_5,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).ZONE?(e.openBlock(),e.createElementBlock("div",ok,[e.createVNode(Cw,{ref_key:"templateZone",ref:y,"zone-filters":t.zoneFilters,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",sk,[e.createVNode(Bw,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:p,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",rk,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Na),{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:H})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",lk,[e.createVNode(e.unref(Na),{"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:q})]),e.createElementVNode("div",nk,[e.createVNode(e.unref(Na),{"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))}},Os=v(dk,[["__scopeId","data-v-4eff340b"]]),ck=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},pk={__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}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(d=>({"321b6381":t.width,"14b0f61d":m.value,"62e0e83c":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),r=e.ref(null),l=e.ref({}),n=e.computed(()=>{const d={top:"0px"};if(o.value){const h=o.value.getBoundingClientRect();d.top=`${h.height+a.menuMarginTop}px`}return d}),m=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(()=>{l.value["--translate-x"]="0px"},500)});function c(d){const h=window.innerWidth,u=d.boundingClientRect.x,g=d.boundingClientRect.x+d.boundingClientRect.width,w=u<=0?Math.abs(u)+4:g>=h?h-(g+10):0;l.value["--translate-x"]=`${w}px`}function y(){new IntersectionObserver(d=>{d[0].intersectionRatio>0&&c(d[0])}).observe(r.value)}function p(){s.value=!s.value,i("update:modelValue",s.value)}function f(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{y()})}),(d,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:f})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:p},[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:r,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))}},mk=ck(pk,[["__scopeId","data-v-2f344053"]]),Le=t=>(e.pushScopeId("data-v-975b3874"),t=t(),e.popScopeId(),t),uk={class:"button__icon"},fk={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hk=["stroke"],yk=["stroke"],gk=["stroke"],_k={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bk=["stroke"],Sk=["stroke"],Ck=["fill"],wk={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kk=["fill"],Ek={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tk=["stroke"],Vk=["stroke"],xk=["stroke"],Nk=["stroke"],Bk=["stroke"],Fk={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pk=Le(()=>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)),zk=[Pk],Ak={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ik=Le(()=>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)),Rk=[Ik],Mk={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ok=Le(()=>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)),Lk=[Ok],$k={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dk=Le(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),Wk=Le(()=>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)),jk=Le(()=>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)),vk=Le(()=>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)),Uk=[Dk,Wk,jk,vk],Gk={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hk=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-975b3874><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-975b3874></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-975b3874></path></g><defs data-v-975b3874><clipPath id="gpdeo9cu3a" data-v-975b3874><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-975b3874></path></clipPath></defs>',2),qk=[Hk],Jk={class:"button__text"},Yk={key:1,style:{width:"20px"}},Zk={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kk=["fill"],Xk={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},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"}},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(()=>[b.PLAYS_TYPES,b.GOLSTATS,b.TOURNAMENTS,b.PLAYS,b.RESULTS,b.RESULTS_BY_TIME].includes(i.iconType)),r=e.computed(()=>[b.FIELD,b.GAMES].includes(i.iconType)),l=e.computed(()=>[b.DETAILS,b.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[b.PERSONAL_DATA].includes(i.iconType)),m=e.computed(()=>[b.PRODUCTIVITY].includes(i.iconType)),c=e.computed(()=>[b.HOW_WAS_CORNER].includes(i.iconType)),y=e.computed(()=>[b.TAKEN_CORNERS].includes(i.iconType)),p=e.computed(()=>[b.ZONE].includes(i.iconType)),f=e.computed(()=>[b.WHAT_HAPPENED].includes(i.iconType));return(d,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[e.createElementVNode("div",uk,[n.value?(e.openBlock(),e.createElementBlock("svg",fk,[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,hk),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,yk),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,gk)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",_k,[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,bk),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,Sk),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,Ck)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",wk,[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,kk)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",Ek,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,Tk),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,Vk),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,xk),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,Nk),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,Bk)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",Fk,zk)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",Ak,Rk)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",Mk,Lk)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",$k,Uk)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",Gk,qk)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Jk,e.toDisplayString(t.text),1),t.showBadgeOnFilterFull?(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)):(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",Yk)):e.createCommentVNode("",!0)],64)),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",Zk,[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,Kk)]))],2)],4))}},Qk=v(Xk,[["__scopeId","data-v-975b3874"]]),e8=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},t8=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),a8={class:"panel__activator__icon"},i8=["src"],o8={class:"panel__activator__text"},s8=["height","width"],r8=["stroke"],l8={class:"panel__content"},n8=t8(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),d8={class:"panel__content__slot"},c8={__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,l=>{o.value=l},{immediate:!0});function r(){o.value=!o.value,i("update:modelValue",o.value)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:r},[e.createElementVNode("div",a8,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,i8)):e.createCommentVNode("",!0)]),e.createElementVNode("div",o8,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,r8)],8,s8))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",l8,[n8,e.createElementVNode("div",d8,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},p8=e8(c8,[["__scopeId","data-v-0ca35abc"]]),Ce={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},m8={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}},u8={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}]}},f8={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},h8=[{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}]}],y8=[{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}],g8=[{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}],_8={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Ls={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},b8={class:"filters"},S8={key:0,class:"filters__expansion"},C8={class:"content"},w8={key:1,class:"filters__menus"},k8={__name:"GSC-Filters",props:{filterType:{type:String,default:""},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},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}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(T=>({"52632e17":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PRODUCTIVITY,isFooterVisible:!0},r={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.DETAILS,isFooterVisible:!0},m={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.TOURNAMENTS,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},p={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.UNIVERSE,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.DISTANCE,isFooterVisible:!0},h={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.RESULTS,padding:"0",isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.VIDEOS,isFooterVisible:!1},w={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.GAMES,isFooterVisible:!0},k={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.TAKEN_CORNERS,isFooterVisible:!0},W={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.HOW_WAS_CORNER,isFooterVisible:!0},J={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.ZONE,isFooterVisible:!0},q={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.WHAT_HAPPENED,isFooterVisible:!0},A=e.ref(!1),Y=e.ref(!1),Z=e.ref(0),U=e.ref(0),P=e.ref({}),de=e.ref(null),N=e.ref(null),R=e.computed(()=>o.menuButtonText||E()),z=e.computed(()=>o.expansionPanelText||E()),H=e.ref(null);e.watch(()=>o.filterType,T=>{if(T===b.PRODUCTIVITY)P.value={...s,...o.templateProps,productivityCategories:o.filters||m8};else if(T===b.PLAYS)P.value={...r,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||u8};else if(T===b.FIELD)P.value={...l,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(T===b.DETAILS)P.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:Ce.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||Ce.playingAs,gameSections:o.filters&&o.filters.gameSections||Ce.gameSections,statisticType:o.filters?o.filters.statisticType:Ce.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:Ce.isStatisticTypeVisible};else if(T===b.TOURNAMENTS){const F=o.filters||h8;o.isOneTournamentOnly&&F.forEach(_=>{_.isSelected=_.id===o.defaultTournamentId}),P.value={...m,...o.templateProps,tournaments:F}}else T===b.PERSONAL_DATA?P.value={...c,...o.templateProps,token:o.token,personalDataFilters:o.filters||Dt}:T===b.PLAYS_TYPES?P.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||y8}:T===b.GOLSTATS?P.value={...p,...o.templateProps,playsGolstatsCategories:o.filters||g8}:T===b.UNIVERSE?P.value={...f,...o.templateProps,universeFilters:o.filters||f8}:T===b.DISTANCE?P.value={...d,...o.templateProps,distanceFilters:o.filters||_8}:T===b.RESULTS?P.value={...h,...o.templateProps,resultsFilters:o.filters||Ls}:T===b.RESULTS_BY_TIME?P.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||ei}:T===b.GAMES?P.value={...w,...o.templateProps,gamesFilters:o.filters||[]}:T===b.VIDEOS?P.value={...g,...o.templateProps,token:o.token}:T===b.TAKEN_CORNERS?P.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:T===b.HOW_WAS_CORNER?P.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Ka}:T===b.ZONE?P.value={...J,...o.templateProps,zoneFilters:o.filters||[...lt]}:T===b.WHAT_HAPPENED&&(P.value={...q,...o.templateProps,whatHappenedFilters:o.filters||[...Qa]});P.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(P.value.width="100%",P.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===b.PRODUCTIVITY)P.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===b.PLAYS)P.value={...r,...o.templateProps,playsCategories:o.filters};else if(o.filterType===b.FIELD)P.value={...l,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===b.DETAILS)P.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:Ce.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:Ce.playingAs,gameSections:o.filters?o.filters.gameSections:Ce.gameSections,statisticType:o.filters?o.filters.statisticType:Ce.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:Ce.isStatisticVisible};else if(o.filterType===b.TOURNAMENTS){const T=o.filters;o.isOneTournamentOnly&&T.forEach(F=>{F.isSelected=F.id===o.defaultTournamentId}),P.value={...m,...o.templateProps,tournaments:T}}else o.filterType===b.PERSONAL_DATA?P.value={...c,...o.templateProps,token:o.token,personalDataFilters:o.filters}:o.filterType===b.PLAYS_TYPES?P.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===b.GOLSTATS?P.value={...p,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===b.UNIVERSE?P.value={...f,...o.templateProps,universeFilters:o.filters}:o.filterType===b.DISTANCE?P.value={...d,...o.templateProps,distanceFilters:o.filters}:o.filterType===b.RESULTS?P.value={...h,...o.templateProps,resultsFilters:o.filters||Ls}:o.filterType===b.RESULTS_BY_TIME?P.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||ei}:o.filterType===b.GAMES?P.value={...w,...o.templateProps,gamesFilters:o.filters}:o.filterType===b.VIDEOS?P.value={...g,...o.templateProps,token:o.token}:o.filterType===b.TAKEN_CORNERS?P.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===b.HOW_WAS_CORNER?P.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Ka}:o.filterType===b.ZONE?P.value={...J,...o.templateProps,zoneFilters:o.filters||[...lt]}:o.filterType===b.WHAT_HAPPENED&&(P.value={...q,...o.templateProps,whatHappenedFilters:o.filters||[...Qa]});P.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(P.value.width="100%",P.value.maxWidth="100%")}),e.watch(A,T=>{T||a("close",H.value)}),e.watch(Y,T=>{T||a("close",H.value)});function K(T){Z.value=T}function fe(){o.isExpansionPanel?Y.value=!1:A.value=!1,a("apply",H.value)}function E(){if(o.filterType===b.PRODUCTIVITY)return"Características de juego";if(o.filterType===b.PLAYS)return"Jugada(s)";if(o.filterType===b.FIELD)return"Zona de cancha";if(o.filterType===b.DETAILS)return"Detalles";if(o.filterType===b.TOURNAMENTS)return"Ligas";if(o.filterType===b.PERSONAL_DATA)return"Datos personales";if(o.filterType===b.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===b.GOLSTATS)return"Filtros Golstats";if(o.filterType===b.UNIVERSE)return"Universo";if(o.filterType===b.DISTANCE)return"Distancia";if([b.RESULTS,b.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===b.GAMES)return"Partidos";if(o.filterType===b.VIDEOS)return"Videos";if(o.filterType===b.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===b.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===b.ZONE)return"Zona";if(o.filterType===b.WHAT_HAPPENED)return"¿Qué sucedió?"}function V(T){P.value.fieldAreas=T,Z.value=T.length,B(T)}function I(T){let F=0;T.value&&T.value.statistics&&(T.value.minutesPlayed&&F++,T.value.percentMinutesPlayed&&F++,T.value.lastMonths&&F++,T.value.statistics.totals&&F++,T.value.statistics.averagePerGame&&F++,T.value.statistics.averagePerMinute&&F++),P.value.universe=T.value,Z.value=F,B(T.value)}function B(T){H.value=T,a("update:filters",T)}function M(T){U.value=T}function G(T=null){de.value&&de.value.clearFilters(T),N.value&&N.value.clearFilters(T)}return i({clearFilters:G}),(T,F)=>(e.openBlock(),e.createElementBlock("div",b8,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",S8,[e.createVNode(e.unref(p8),e.mergeProps(t.expansionPanelProps,{modelValue:Y.value,"onUpdate:modelValue":F[0]||(F[0]=_=>Y.value=_),text:z.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",C8,[e.createVNode(Os,e.mergeProps(P.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,ref_key:"filterTemplateExpansionPanel",ref:N,onChangeFieldAreas:V,onChangeCategoriesSelected:K,onChangeFiltersSelected:K,onChangeUniverseFilters:I,onApply:fe,"onUpdate:filters":B,onTotalFilters:M}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","default-tournament-id"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",w8,[e.createVNode(e.unref(mk),{modelValue:A.value,"onUpdate:modelValue":F[1]||(F[1]=_=>A.value=_),width:t.width,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(Qk,e.mergeProps(t.buttonFilterProps,{text:R.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":Z.value,"filters-total":U.value.value,"is-active":A.value,"icon-type":t.filterType}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Os,e.mergeProps(P.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,ref_key:"filterTemplateMenu",ref:de,onChangeFieldAreas:V,onChangeCategoriesSelected:K,onChangeFiltersSelected:K,onChangeUniverseFilters:I,"onUpdate:filters":B,onTotalFilters:M,onApply:fe}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id"])]),_:1},8,["modelValue","width"])]))]))}},E8=v(k8,[["__scopeId","data-v-d23d9234"]]);function T8(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const $s="/group-427321501.svg",V8="/shape.svg",x8="_filtersContainer_b9wc6_1",N8="_filtersContainer1232_b9wc6_1",B8="_closeFiltersPc_b9wc6_1",F8="_textleyemdmultipleleagues_b9wc6_1",P8="_textleyemdmultipleleagues380_b9wc6_1",z8="_filtersContainer760_b9wc6_1",A8="_filtersContainer460_b9wc6_1",I8="_containerSection_b9wc6_1",R8="_containerSection1232_b9wc6_1",M8="_containerSection960_b9wc6_1",O8="_containerSection320_b9wc6_1",L8="_containerSection350_b9wc6_1",$8="_templateLosMejores_b9wc6_1",D8="_templateLosMejores1232_b9wc6_1",W8="_templateLosMejores960_b9wc6_1",j8="_templateLosMejores420_b9wc6_1",v8="_templateLosMejores320_b9wc6_1",U8="_templateLosMejores540_b9wc6_1",G8="_templateLosMejores350_b9wc6_1",H8="_topFiltersParent_b9wc6_1",q8="_topFiltersParent1232_b9wc6_1",J8="_topFiltersParent960_b9wc6_1",Y8="_topFiltersParent460_b9wc6_1",Z8="_topFiltersParent420_b9wc6_1",K8="_containerTheBest_b9wc6_1",X8="_containerTheBest1232_b9wc6_1",Q8="_containerTheBest960_b9wc6_1",e9="_containerTheBest320_b9wc6_1",t9="_titleSection_b9wc6_1",a9="_titleSection540_b9wc6_1",i9="_containerTables_b9wc6_1",o9="_containerTables960_b9wc6_1",s9="_containerTables760_b9wc6_1",r9="_containerTables320_b9wc6_1",l9="_toniKroosWrapper_b9wc6_1",n9="_toniKroosWrapper1080_b9wc6_1",d9="_toniKroosWrapper975_b9wc6_1",c9="_toniKroosWrapper760_b9wc6_1",p9="_toniKroosWrapper420_b9wc6_1",m9="_toniKroosWrapper320_b9wc6_1",u9="_frameChild_b9wc6_1",f9="_filtros_b9wc6_1",h9="_groupParent_b9wc6_1",y9="_shapeIcon_b9wc6_1",g9="_btnFilters_b9wc6_1",_9="_btnFiltersPC_b9wc6_1",b9="_quitarFiltros_b9wc6_1",S9="_quitarFiltros730_b9wc6_1",C9="_quitarFiltros480_b9wc6_1",w9="_quitarFiltros380_b9wc6_1",k9="_btnCloseFilters_b9wc6_1",E9="_mejoresJugadores_b9wc6_1",T9="_mejoresJugadores730_b9wc6_1",V9="_mejoresJugadores480_b9wc6_1",x9="_mejoresJugadoresSM_b9wc6_1",N9="_toniKroos_b9wc6_1",B9="_teamBar_b9wc6_1",F9="_menuSection_b9wc6_1",P9="_menuSection960_b9wc6_1",z9="_containerMenu_b9wc6_1",A9="_containerMenu760_b9wc6_1",I9="_containerFilters_b9wc6_1",R9="_teamBarParent_b9wc6_1",M9="_topFilters_b9wc6_1",O9="_topFilters1232_b9wc6_1",L9="_topFilters420_b9wc6_1",$9="_topFilters460_b9wc6_1",D9="_losMejores_b9wc6_1",W9="_losMejores380_b9wc6_1",j9="_losMejores530_b9wc6_1",v9="_losMejores730_b9wc6_1",U9="_menuSectionHeader_b9wc6_1",G9="_menuSectionHeader1232_b9wc6_1",H9="_menuSectionHeader960_b9wc6_1",q9="_menuSectionHeader730_b9wc6_1",J9="_dropdown_b9wc6_1",Y9="_dropdown730_b9wc6_1",Z9="_dropdown1_b9wc6_1",K9="_dropdown1730_b9wc6_1",X9="_dropdownParent_b9wc6_1",Q9="_dropdownParent730_b9wc6_1",eE="_menuSectionParentHeader_b9wc6_1",tE="_menuSectionParentHeader1232_b9wc6_1",aE="_menuSectionParentHeader960_b9wc6_1",iE="_menuSectionParentHeader730_b9wc6_1",oE="_menuSectionParentHeader430_b9wc6_1",sE="_descubreVideos_b9wc6_1",rE="_descubreVideos1232_b9wc6_1",lE="_descubreVideos960_b9wc6_1",nE="_allCategories_b9wc6_1",dE="_containerScountingBtn_b9wc6_3",cE="_btnDeleteAplica_b9wc6_13",pE="_SearchBtnBar_b9wc6_33",mE="_btnLeyendTxt_b9wc6_52",uE="_BtnSearchScounting_b9wc6_61",fE="_containerPredefined_b9wc6_85",hE="_containerPredefinedScounting_b9wc6_92",yE="_titleContainerPredefined_b9wc6_100",gE="_subtitleContainerPredefined_b9wc6_111",_E={filtersContainer:x8,filtersContainer1232:N8,closeFiltersPc:B8,textleyemdmultipleleagues:F8,textleyemdmultipleleagues380:P8,filtersContainer760:z8,filtersContainer460:A8,containerSection:I8,containerSection1232:R8,containerSection960:M8,containerSection320:O8,containerSection350:L8,templateLosMejores:$8,templateLosMejores1232:D8,templateLosMejores960:W8,templateLosMejores420:j8,templateLosMejores320:v8,templateLosMejores540:U8,templateLosMejores350:G8,topFiltersParent:H8,topFiltersParent1232:q8,topFiltersParent960:J8,topFiltersParent460:Y8,topFiltersParent420:Z8,containerTheBest:K8,containerTheBest1232:X8,containerTheBest960:Q8,containerTheBest320:e9,titleSection:t9,titleSection540:a9,containerTables:i9,containerTables960:o9,containerTables760:s9,containerTables320:r9,toniKroosWrapper:l9,toniKroosWrapper1080:n9,toniKroosWrapper975:d9,toniKroosWrapper760:c9,toniKroosWrapper420:p9,toniKroosWrapper320:m9,frameChild:u9,filtros:f9,groupParent:h9,shapeIcon:y9,btnFilters:g9,btnFiltersPC:_9,quitarFiltros:b9,quitarFiltros730:S9,quitarFiltros480:C9,quitarFiltros380:w9,btnCloseFilters:k9,mejoresJugadores:E9,mejoresJugadores730:T9,mejoresJugadores480:V9,mejoresJugadoresSM:x9,toniKroos:N9,teamBar:B9,menuSection:F9,menuSection960:P9,containerMenu:z9,containerMenu760:A9,containerFilters:I9,teamBarParent:R9,topFilters:M9,topFilters1232:O9,topFilters420:L9,topFilters460:$9,losMejores:D9,losMejores380:W9,losMejores530:j9,losMejores730:v9,menuSectionHeader:U9,menuSectionHeader1232:G9,menuSectionHeader960:H9,menuSectionHeader730:q9,dropdown:J9,dropdown730:Y9,dropdown1:Z9,dropdown1730:K9,dropdownParent:X9,dropdownParent730:Q9,menuSectionParentHeader:eE,menuSectionParentHeader1232:tE,menuSectionParentHeader960:aE,menuSectionParentHeader730:iE,menuSectionParentHeader430:oE,descubreVideos:sE,descubreVideos1232:rE,descubreVideos960:lE,allCategories:nE,containerScountingBtn:dE,btnDeleteAplica:cE,SearchBtnBar:pE,btnLeyendTxt:mE,BtnSearchScounting:uE,containerPredefined:fE,containerPredefinedScounting:hE,titleContainerPredefined:yE,subtitleContainerPredefined:gE},bE=e.ref(T8()),SE={components:{GSCTableHeader:Qi,GscSwitchComponent:Ky,GSCFilterperteam:kf,GSCFilters:E8,GSCExpandedInfo:go,GSCLabel:By,GSCSeasonSelect:Bn,GSCTopCategory:ky,GSCTournamentSelect:td,GSCRowTable:so},computed:{...rn.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{...bE.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}=Ke(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:b,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 r=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+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(Q.All),i.clearFilters(Q.AGE_RANGE),i.clearFilters(Q.YEAR),i.clearFilters(Q.NATIONALITY),i.clearFilters(Q.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=we.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 r=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:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:i[s].team_id,nationality_name:Sa[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 r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].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 r=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},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,r=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&r!==null&&(this.seasonActive=r,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",r),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 r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].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,r)=>r+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(Q.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(Q.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(Q.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Q.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Q.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 l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;i.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(l=>l.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(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,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(Q.All),a.clearFilters(Q.AGE_RANGE),a.clearFilters(Q.YEAR),a.clearFilters(Q.NATIONALITY),a.clearFilters(Q.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 f=0;f<t.nationalities.length;f++)t.nationalities[f].isSelected&&this.fVnationalities.add(t.nationalities[f].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let f=0;f<this.elegibilidadArray.length;f++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[f])}for(let f=0;f<t.positions.length;f++)t.positions[f].isSelected&&this.fVsetPositionsIds.push(t.positions[f].id);if(t.hasOwnProperty("nationalities"))var r=t.nationalities.filter(f=>f.isSelected===!0);var l=t.positions.filter(f=>f.isSelected===!0);if(l.length==1&&(o=l[0].name),t.hasOwnProperty("nationalities")&&r.length==1&&(s=r[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(f=>f.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 m=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersPosition");m!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[m].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posicion de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posicion de juego "+o:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posicion de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posicion de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var c=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersYear");c!=-1?this.arrayFiltersPlays[c].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(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(f=>f.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 p=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersNationality");p!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[p].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(p,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(Q.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){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=we.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=we.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=we.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=we.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(p=>{this.predefinedFiltersMatchLapse[p.toString()]=o[0].match_lapse_combinations[p]}),Object.keys(o[0].playing_as_combinations).forEach(p=>{this.predefinedFiltersPlayingAs[p.toString()]=o[0].playing_as_combinations[p]}),Object.keys(o[0].field_sections_combinations).forEach(p=>{this.predefinedFiltersSections[p.toString()]=o[0].field_sections_combinations[p]}),o[0]){for(let p=0;p<o[0].filter_records.length;p++){var s=o[0].description;if(o[0].filter_records[p].field_sections!==void 0){const d=o[0].filter_records[p].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[p].match_lapse!==void 0){const d=o[0].filter_records[p].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[p].playing_as!==void 0){const d=o[0].filter_records[p].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[p].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 f=s.split(": ");var r=f[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[p].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:p,category_name:t.name,id_category:o[0].id,title:f[0]+":",text:f[1],textOrigin:o[0].description,titledots:r,filtersPredefined:{matchResult:o[0].filter_records[p].match_result,playingAs:o[0].filter_records[p].playing_as,sections:o[0].filter_records[p].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[p].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let p=0;p<this.arrayPredefinedFilters.length;p++){var n=0,m=new Set,c={},y=this.arrayPredefinedFilters[p].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[p].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[p].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[p].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0?c.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,this.arrayPredefinedFilters[p].filtersPredefined.end_age]:this.arrayPredefinedFilters[p].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age==0?c.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.end_age==0?c.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,60]:c.arrayAgeRange=[1,this.arrayPredefinedFilters[p].filtersPredefined.end_age],this.arrayPredefinedFilters[p].filtersPredefined.matchResult.length!=3&&(n+=1),c.matchResult=this.arrayPredefinedFilters[p].filtersPredefined.matchResult,this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length!=0){for(let f=0;f<this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length;f++)m.add(this.arrayPredefinedFilters[p].filtersPredefined.nationalities[f]);c.setNationalitiesIds=m}else m.add(138),m.add(222),m.add(163),m.add(51),m.add(226),m.add(10),m.add(223),m.add(96),m.add(171),m.add(198),m.add(105),m.add(80),m.add(29),m.add(74),m.add(216),m.add(196),m.add(64),m.add(155),m.add(156),m.add(89),m.add(106),m.add(81),m.add(233),m.add(204),c.setNationalitiesIds=m;this.arrayPredefinedFilters[p].filtersPredefined.playingAs.length!=2&&(n+=1),c.playingAs=this.arrayPredefinedFilters[p].filtersPredefined.playingAs,this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0?c.setPositionsIds=this.arrayPredefinedFilters[p].filtersPredefined.positions:c.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[p].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.sections.length>0?c.sections=this.arrayPredefinedFilters[p].filtersPredefined.sections:c.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[p].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.zone.length>0?c.zone=this.arrayPredefinedFilters[p].filtersPredefined.zone:c.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],c.typeZone=this.arrayPredefinedFilters[p].filtersPredefined.typeZone,l.push({id:p+1,name:y,isSelected:!1,value:n,filters:c})}this.FVfilterGolstats=l,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,p)=>y-p).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 r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),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 l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),m=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const c=m.match(/\*/g);if(c&&c.length)if(c.length%2===0)for(let y=1;y<=c.length;y++)y%2===0||(m=m.replace("*",'<span style="color: #ffff03" >'));else m=m.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=m},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:Sa[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 r=s.category;i[r]||(i[r]={teams:[],players:[]}),s.teams&&(i[r].teams=s.teams.map((l,n)=>{const m=a.get(l[0])||{};return{id:m.id,name:m.name,img:m.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[r].players=s.players.map((l,n)=>{var m,c,y,p,f,d,h,u,g,w;const k=o.get(l[0])||{};return{age:k.numberAge,categoryName:s.name,country:(c=(m=k.countryId)==null?void 0:m[0])==null?void 0:c.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[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/${(p=(y=k.countryId)==null?void 0:y[0])==null?void 0:p.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((d=(f=k.teamName)==null?void 0:f[0])==null?void 0:d.acronym)||"",teamid:((u=(h=k.teamName)==null?void 0:h[0])==null?void 0:u.team_id)||"",teamname:((w=(g=k.teamName)==null?void 0:g[0])==null?void 0:w.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=we.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=we.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 we.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)}}},CE={ref:"myDivRefTopsFull"},wE={key:0,class:"overlay-loading"},kE=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),EE=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),TE=[kE,EE],VE=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),xE=[VE],NE={key:0,class:"cont-leyemd-multipleleagues"},BE=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),FE={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},PE={key:0,style:{"margin-left":"10px"}},zE=e.createElementVNode("span",null,"Todas las categorías",-1),AE=[zE],IE=e.createElementVNode("span",null,"Tipo de Jugada",-1),RE=e.createElementVNode("span",null,"Filtro GolStats",-1),ME={key:3,style:{width:"100%",height:"295px"}};function OE(t,i,a,o,s,r){const l=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),m=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCFilterperteam"),y=e.resolveComponent("GSCFilters"),p=e.resolveComponent("GSCLabel"),f=e.resolveComponent("GSCTopCategory"),d=e.resolveComponent("GSCTableHeader"),h=e.resolveComponent("GSCRowTable"),u=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",CE,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",wE,TE)):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(l,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.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:r.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:r.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(l,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.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:r.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(c,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.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)=>r.clickOpenFilters&&r.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:$s},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)=>r.clickCloseFilters&&r.clickCloseFilters(...g))},xE,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(m,{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:r.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(m,{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:r.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)=>r.openMenuFilters&&r.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:$s},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:V8},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)=>r.openMenuFilters&&r.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":r.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":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:r.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":r.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":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":r.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":r.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":r.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":r.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":r.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":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.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)=>r.getScoutingData&&r.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":r.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":r.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":r.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":r.onFiltersGolStats,filters:r.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",NE,[BE,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(c,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.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",FE," 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",PE,[e.createVNode(p,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.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,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,style:{"margin-left":"10px"}},[e.createVNode(p,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.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)=>r.onClickDeleteFilter&&r.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)},AE,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,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,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(f,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":r.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.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(f,{"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":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.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(f,{"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":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.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},[IE,e.createTextVNode(" y un "),RE,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,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(h,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:r.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:w%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.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=>r.viewprofile(k,g.season_id,g.team_id),background:w%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)=>r.onClickDeleteFilter&&r.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)=>r.getScoutingData&&r.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",ME)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const LE={$style:_E},$E=ze(SE,[["render",OE],["__cssModules",LE]]),DE={class:"elegibles"},WE=qe(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=r=>{i("openmedia",r)},o=r=>{i("open-profile-team",r)},s=r=>{i("open-profile-player",r)};return(r,l)=>(e.openBlock(),e.createElementBlock("div",DE,[e.createVNode(e.unref($E),{"is-selection":!0,"default-section":"Jugadores","tournaments-api-url":"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",onOpenmedia:a,onOpenProfileTeam:o,onOpenProfilePlayer:s})]))}}),[["__scopeId","data-v-4a752ebc"]]),jE={class:"tabs"},vE=qe({__name:"PlayersTrackingMain",props:{tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=["Última convocatoria","En seguimiento","Elegibles"],s=e.ref("Última convocatoria"),r=e.ref({width:0}),l=e.ref(null),n=e.ref(0),m=e.ref(0),c=e.ref([]),y=e.ref([]);e.watch(()=>a.tournamentId,A=>{A&&f()},{immediate:!0}),e.watch(()=>a.teamId,A=>{A&&f()},{immediate:!0});const p=A=>{s.value=A};async function f(){try{if(n.value!==a.tournamentId||m.value!==a.teamId){const A=[h(),d()];n.value=a.tournamentId,m.value=a.teamId;const[Y,Z]=await Promise.all(A);c.value=Y,y.value=Z,console.log("Last called: ",Y),console.log("In followed: ",Z)}}catch(A){console.error("Error filling data",A)}}async function d(){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(A){console.error("Error fetching in followed",A)}}async function h(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${a.tournamentId}/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(A){console.error("Error fetching last called",A)}}const u=()=>{l.value&&(r.value.width=l.value.offsetWidth)};e.onMounted(()=>{u();const A=new ResizeObserver(u);l.value&&A.observe(l.value)});const g=e.computed(()=>{const A=r.value.width;return A<=460?"10px":A<=650?"12px":A<=768?"14px":"16px"}),w=e.computed(()=>r.value.width<=380?"18px":"22px"),k=e.computed(()=>{switch(s.value){case"Última convocatoria":return ci;case"En seguimiento":return Vr;case"Elegibles":return WE;default:return ci}}),W=A=>{i("openmedia",A)},J=A=>{i("open-profile-team",A)},q=A=>{console.log("open-profile-player",A),i("open-profile-player",A)};return(A,Y)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:l},[e.createElementVNode("h1",{class:"title",style:e.normalizeStyle({fontSize:w.value})},"Jugadores bajo seguimiento",4),e.createElementVNode("div",jE,[e.createVNode(e.unref(nr),{type:2,buttons:o,"font-family":"Poppins-Medium","selected-option":s.value,"font-size":g.value,width:"fit-content",borderWidth:"1px",arrow:!1,height:"30px",onInput:p},null,8,["selected-option","font-size"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":s.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{"parent-width":r.value.width,"last-called-players":c.value,"in-followed-players":y.value,onOpenmedia:W,onOpenProfileTeam:J,onOpenProfilePlayer:q},null,40,["parent-width","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-503dbc32"]]),UE={class:"subcategory-group"},GE={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",UE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(j),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},HE=v(GE,[["__scopeId","data-v-ae6f3d72"]]),qE={class:"filter-subcategories"},JE=Object.freeze(Object.defineProperty({__proto__:null,default:v({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",qE,[(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(HE,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ut=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),YE={class:"details__header"},ZE=Ut(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),KE={class:"details__header__checkbox"},XE={class:"details__body"},QE={class:"details__body__playing-as"},eT=["onClick"],tT={class:"details__header"},aT=Ut(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),iT={class:"details__header__checkbox"},oT={class:"details__body"},sT=Ut(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),rT={class:"details__body__game-section"},lT=["onClick"],nT={class:"details__body"},dT=Ut(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),cT={class:"details__body__game-section"},pT=["onClick"],mT=Object.freeze(Object.defineProperty({__proto__:null,default:v({__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,p)=>(p.value<=3?y.firstHalf.push(p):y.secondHalf.push(p),y),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function l(y){y?i.playingAs.forEach(p=>{p.isSelected=!0}):i.playingAs.forEach((p,f)=>{p.isSelected=f===0})}function n(y){i.playingAs.filter(p=>p.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function m(y){i.gameSections.filter(p=>p.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){y?i.gameSections.forEach(p=>{p.isSelected=!0}):i.gameSections.forEach((p,f)=>{p.isSelected=f===0})}return(y,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",YE,[ZE,e.createElementVNode("div",KE,[e.createVNode(e.unref(j),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",XE,[e.createElementVNode("div",QE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(f,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:h=>n(f)},e.toDisplayString(f.name),11,eT))),128))])]),e.createElementVNode("div",tT,[aT,e.createElementVNode("div",iT,[e.createVNode(e.unref(j),{label:"Todos","model-value":o.value,"onUpdate:modelValue":c},null,8,["model-value"])])]),e.createElementVNode("div",oT,[sT,e.createElementVNode("div",rT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(f,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:h=>m(f)},e.toDisplayString(f.text),11,lT))),128))])]),e.createElementVNode("div",nT,[dT,e.createElementVNode("div",cT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(f,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:h=>m(f)},e.toDisplayString(f.text),11,pT))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),uT={class:"filter-field"},fT=Object.freeze(Object.defineProperty({__proto__:null,default:v({__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",uT,[e.createVNode(e.unref(Go),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Be.GSCPlayersTracking=vE,Object.defineProperty(Be,Symbol.toStringTag,{value:"Module"})});
|
|
15
|
+
`+r):o.stack=r}catch{}}throw o}}_request(i,a){typeof i=="string"?(a=a||{},a.url=i):a=i||{},a=Re(this.defaults,a);const{transitional:o,paramsSerializer:s,headers:r}=a;o!==void 0&&Ot.assertOptions(o,{silentJSONParsing:Se.transitional(Se.boolean),forcedJSONParsing:Se.transitional(Se.boolean),clarifyTimeoutError:Se.transitional(Se.boolean)},!1),s!=null&&(C.isFunction(s)?a.paramsSerializer={serialize:s}:Ot.assertOptions(s,{encode:Se.function,serialize:Se.function},!0)),Ot.assertOptions(a,{baseUrl:Se.spelling("baseURL"),withXsrfToken:Se.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let l=r&&C.merge(r.common,r[a.method]);r&&C.forEach(["delete","get","head","post","put","patch","common"],h=>{delete r[h]}),a.headers=_e.concat(l,r);const n=[];let m=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(a)===!1||(m=m&&h.synchronous,n.unshift(h.fulfilled,h.rejected))});const c=[];this.interceptors.response.forEach(function(h){c.push(h.fulfilled,h.rejected)});let y,p=0,f;if(!m){const h=[Vs.bind(this),void 0];for(h.unshift.apply(h,n),h.push.apply(h,c),f=h.length,y=Promise.resolve(a);p<f;)y=y.then(h[p++],h[p++]);return y}f=n.length;let d=a;for(p=0;p<f;){const h=n[p++],u=n[p++];try{d=h(d)}catch(g){u.call(this,g);break}}try{y=Vs.call(this,d)}catch(h){return Promise.reject(h)}for(p=0,f=c.length;p<f;)y=y.then(c[p++],c[p++]);return y}getUri(i){i=Re(this.defaults,i);const a=gs(i.baseURL,i.url);return ns(a,i.params,i.paramsSerializer)}}C.forEach(["delete","get","head","options"],function(t){Lt.prototype[t]=function(i,a){return this.request(Re(a||{},{method:t,url:i,data:(a||{}).data}))}}),C.forEach(["post","put","patch"],function(t){function i(a){return function(o,s,r){return this.request(Re(r||{},{method:t,headers:a?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Lt.prototype[t]=i(),Lt.prototype[t+"Form"]=i(!0)});const $t=Lt;class Ga{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 r=o._listeners.length;for(;r-- >0;)o._listeners[r](s);o._listeners=null}),this.promise.then=s=>{let r;const l=new Promise(n=>{o.subscribe(n),r=n}).then(s);return l.cancel=function(){o.unsubscribe(r)},l},i(function(s,r,l){o.reason||(o.reason=new ve(s,r,l),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 Ga(function(a){i=a}),cancel:i}}}const zS=Ga;function AS(t){return function(i){return t.apply(null,i)}}function IS(t){return C.isObject(t)&&t.isAxiosError===!0}const Ha={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(Ha).forEach(([t,i])=>{Ha[i]=t});const RS=Ha;function Bs(t){const i=new $t(t),a=Ho($t.prototype.request,i);return C.extend(a,$t.prototype,i,{allOwnKeys:!0}),C.extend(a,i,null,{allOwnKeys:!0}),a.create=function(o){return Bs(Re(t,o))},a}const ae=Bs($a);ae.Axios=$t,ae.CanceledError=ve,ae.CancelToken=zS,ae.isCancel=us,ae.VERSION=xs,ae.toFormData=Ft,ae.AxiosError=$,ae.Cancel=ae.CanceledError,ae.all=function(t){return Promise.all(t)},ae.spread=AS,ae.isAxiosError=IS,ae.mergeConfig=Re,ae.AxiosHeaders=_e,ae.formToJSON=t=>ps(C.isHTMLForm(t)?new FormData(t):t),ae.getAdapter=Ts.getAdapter,ae.HttpStatusCode=RS,ae.default=ae;const it=ae,Dt={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"}]},MS={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"},OS={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 Wt(t){"@babel/helpers - typeof";return Wt=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},Wt(t)}function ke(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 ee(t,i){if(i.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+i.length+" present")}function X(t){ee(1,arguments);var i=Object.prototype.toString.call(t);return t instanceof Date||Wt(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 LS(t,i){ee(2,arguments);var a=X(t),o=ke(i);return isNaN(o)?new Date(NaN):(o&&a.setDate(a.getDate()+o),a)}function $S(t,i){ee(2,arguments);var a=X(t),o=ke(i);if(isNaN(o))return new Date(NaN);if(!o)return a;var s=a.getDate(),r=new Date(a.getTime());r.setMonth(a.getMonth()+o+1,0);var l=r.getDate();return s>=l?r:(a.setFullYear(r.getFullYear(),r.getMonth(),s),a)}function ot(t,i){if(ee(2,arguments),!i||Wt(i)!=="object")return new Date(NaN);var a=i.years?ke(i.years):0,o=i.months?ke(i.months):0,s=i.weeks?ke(i.weeks):0,r=i.days?ke(i.days):0,l=i.hours?ke(i.hours):0,n=i.minutes?ke(i.minutes):0,m=i.seconds?ke(i.seconds):0,c=X(t),y=o||a?$S(c,o+a*12):c,p=r||s?LS(y,r+s*7):y,f=n+l*60,d=m+f*60,h=d*1e3,u=new Date(p.getTime()+h);return u}function Fs(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 Ps(t){ee(1,arguments);var i=X(t);return i.setHours(0,0,0,0),i}var DS=864e5;function WS(t,i){ee(2,arguments);var a=Ps(t),o=Ps(i),s=a.getTime()-Fs(a),r=o.getTime()-Fs(o);return Math.round((s-r)/DS)}function Ue(t,i){ee(2,arguments);var a=X(t),o=X(i),s=a.getTime()-o.getTime();return s<0?-1:s>0?1:s}var jS=6e4,vS=36e5;function US(t,i){ee(2,arguments);var a=X(t),o=X(i),s=a.getFullYear()-o.getFullYear(),r=a.getMonth()-o.getMonth();return s*12+r}function GS(t,i){ee(2,arguments);var a=X(t),o=X(i);return a.getFullYear()-o.getFullYear()}function zs(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 HS(t,i){ee(2,arguments);var a=X(t),o=X(i),s=zs(a,o),r=Math.abs(WS(a,o));a.setDate(a.getDate()-s*r);var l=+(zs(a,o)===-s),n=s*(r-l);return n===0?0:n}function qa(t,i){return ee(2,arguments),X(t).getTime()-X(i).getTime()}var qS={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},JS="trunc";function Ja(t){return qS[JS]}function YS(t,i,a){ee(2,arguments);var o=qa(t,i)/vS;return Ja()(o)}function ZS(t,i,a){ee(2,arguments);var o=qa(t,i)/jS;return Ja()(o)}function KS(t){ee(1,arguments);var i=X(t);return i.setHours(23,59,59,999),i}function XS(t){ee(1,arguments);var i=X(t),a=i.getMonth();return i.setFullYear(i.getFullYear(),a+1,0),i.setHours(23,59,59,999),i}function QS(t){ee(1,arguments);var i=X(t);return KS(i).getTime()===XS(i).getTime()}function e3(t,i){ee(2,arguments);var a=X(t),o=X(i),s=Ue(a,o),r=Math.abs(US(a,o)),l;if(r<1)l=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*r);var n=Ue(a,o)===-s;QS(X(t))&&r===1&&Ue(t,o)===1&&(n=!1),l=s*(r-Number(n))}return l===0?0:l}function t3(t,i,a){ee(2,arguments);var o=qa(t,i)/1e3;return Ja()(o)}function a3(t,i){ee(2,arguments);var a=X(t),o=X(i),s=Ue(a,o),r=Math.abs(GS(a,o));a.setFullYear(1584),o.setFullYear(1584);var l=Ue(a,o)===-s,n=s*(r-Number(l));return n===0?0:n}function i3(t){return ee(1,arguments),X(t).getFullYear()}function o3(t){ee(1,arguments);var i=X(t.start),a=X(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(a3(a,i));var s=Ue(a,i),r=ot(i,{years:s*o.years});o.months=Math.abs(e3(a,r));var l=ot(r,{months:s*o.months});o.days=Math.abs(HS(a,l));var n=ot(l,{days:s*o.days});o.hours=Math.abs(YS(a,n));var m=ot(n,{hours:s*o.hours});o.minutes=Math.abs(ZS(a,m));var c=ot(m,{minutes:s*o.minutes});return o.seconds=Math.abs(t3(a,c)),o}const s3={__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 r(l){i("update:modelValue",l.target.checked)}return e.onMounted(()=>{s()}),(l,n)=>(e.openBlock(),e.createElementBlock("input",{ref_key:"switchCustom",ref:o,id:"toggle",class:"toggle",type:"checkbox",role:"switch",name:"toggle",onInput:r},null,544))}},st=v(s3,[["__scopeId","data-v-e3a6ae4e"]]),Me=t=>(e.pushScopeId("data-v-33fea1e0"),t=t(),e.popScopeId(),t),r3={class:"personal-data"},l3={class:"personal-data__age"},n3={class:"personal-data__age__toggle"},d3={class:"personal-data__age__range"},c3={class:"personal-data__age__dropdown"},p3=Me(()=>e.createElementVNode("div",{class:"label"},"Año",-1)),m3={class:"selected-item"},u3=Me(()=>e.createElementVNode("div",{class:"separator"},null,-1)),f3={class:"personal-data__nationality-position"},h3={key:0,class:"personal-data__nationality-position__switch"},y3=Me(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),g3=Me(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),_3={class:"personal-data__nationality-position__nationality"},b3=Me(()=>e.createElementVNode("div",{class:"label"},"Nacionalidad",-1)),S3={class:"selected-item"},C3=Me(()=>e.createElementVNode("div",{class:"label"},"Elegibilidad",-1)),w3={class:"selected-item"},k3={class:"personal-data__nationality-position__position"},E3=Me(()=>e.createElementVNode("div",{class:"label"},"Posición",-1)),T3={class:"selected-item"},V3="https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/players/seasons/",x3={__name:"TemplatePersonalData",props:{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'"}},emits:["update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=[1],r={id:0,name:"Todas las nacionalidades",isSelected:!1},l={id:0,name:"Todas las posiciones",isSelected:!1},n=e.ref({...Dt}),m=e.ref(["Por edad","Por año"]),c=e.ref(0),y=e.ref({min:Dt.minAge,max:Dt.maxAge}),p=e.ref(Qe),f=e.ref(""),d=e.ref(""),h=e.ref(n.value.availableYears[n.value.availableYears.length-1]),u=e.ref(0),g=e.computed(()=>{const N=n.value.nationalities?[...n.value.nationalities]:[];o.isSeleccion&&N.forEach(z=>{z.isSelected=z.id===138});const R=N[0];return(!R||R.id!==0)&&N.unshift(r),N}),w=e.computed(()=>{let N=n.value.positions?[...n.value.positions]:[];const R=N[0];return(!R||R.id!==0)&&N.unshift(l),N.sort((z,H)=>z.id-H.id),N}),k=e.computed(()=>o.season&&o.season.tournamentId&&s.includes(o.season.tournamentId));e.watch(g,N=>{const R=N.reduce((z,H,K)=>(K!==0&&H.isSelected&&z++,z),0);R===g.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?f.value="Todas las nacionalidades":f.value=`${R} seleccionadas`,U()},{immediate:!0,deep:!0}),e.watch(w,N=>{const R=N.reduce((z,H,K)=>(K!==0&&H.isSelected&&z++,z),0);R===w.value.length-1&&(N[0].isSelected=!0),N[0]&&N[0].isSelected?d.value="Todas las posiciones":d.value=`${R} seleccionadas`,U()},{immediate:!0,deep:!0}),e.watch(()=>n.value.isEligibilitySelected,()=>{U()}),e.watch(()=>o.season,N=>{N&&N.id!==u.value&&(u.value=N.id,W(N))},{immediate:!0,deep:!1});async function W(N){try{if(N&&N.id){const R=new Set,z=await q(N.id),H=new Date,K=[],fe=new Map,E=new Map;z.forEach(V=>{const I=new Date(V.dob),B=i3(I),M=o3({start:I,end:H});fe.has(V.nationality_id)||fe.set(V.nationality_id,{id:V.nationality_id,isSelected:!0,name:MS[`${V.nationality_id}`]}),E.has(V.position_id)||E.set(V.position_id,{id:V.position_id,isSelected:!0,name:OS[`${V.position_id}`]}),R.add(B),K.push(M.years)}),n.value.minAge=Math.min(...K),n.value.maxAge=Math.max(...K),n.value.availableYears=[...R].sort((V,I)=>I-V),h.value=n.value.availableYears[0],n.value.nationalities=[...fe.values()],n.value.positions=[...E.values()],y.value.min=n.value.minAge,y.value.max=n.value.maxAge}}catch(R){throw new Error(R)}}function J(N=null){const R=!N||N===Q.All;(R||N===Q.NATIONALITY)&&g.value.forEach(z=>{z.isSelected=!0}),(R||N===Q.ELIGIBILITY)&&(n.value.isEligibilitySelected=!1),(R||N===Q.POSITION)&&w.value.forEach(z=>{z.isSelected=!0}),(R||N===Q.AGE_RANGE)&&(y.value.min=n.value.minAge,y.value.max=n.value.maxAge,c.value=0),(R||N===Q.YEAR)&&(h.value=o.isScouting?n.value.availableYears[n.value.availableYears.length-1]:n.value.availableYears[0],c.value=0),U()}async function q(N){try{const R={Authorization:localStorage.getItem("user_token")||o.token},z={}.API_PLAYERS_BY_SEASONS?{}.API_PLAYERS_BY_SEASONS:V3,H=await it.get(z+N,{headers:R});return H.data?H.data.players:[]}catch(R){return Promise.reject(R)}}function A(N){c.value=N.index}function Y(N){y.value.min=N.minValue,y.value.max=N.maxValue,U()}function Z(N,R){R.id===0?g.value.forEach(z=>{z.isSelected=N}):(R.isSelected=N,g.value[0].isSelected=g.value.every((z,H)=>H===0?!0:z.isSelected))}function U(){const N=c.value===0,R={};N?(R.ageByRange=y.value,R.ageLimits={min:n.value.minAge,max:n.value.maxAge}):R.year=h.value,n.value.isEligibilitySelected?R.eligibility=[...n.value.eligibility]:R.nationalities=g.value.reduce((z,H,K)=>(K!==0&&z.push({...H}),z),[]),R.positions=w.value.reduce((z,H,K)=>(K!==0&&z.push({...H}),z),[]),a("update:filters",R)}function P(N,R){R.id===0?w.value.forEach(z=>{z.isSelected=N}):(R.isSelected=N,w.value[0].isSelected=w.value.every((z,H)=>H===0?!0:z.isSelected))}function de(N){h.value=N,U()}return i({onClearFilters:J}),(N,R)=>(e.openBlock(),e.createElementBlock("div",r3,[e.createElementVNode("div",l3,[e.createElementVNode("div",n3,[e.createVNode(ab,{"selected-button-index":c.value,buttons:m.value,width:"220px",onChange:A},null,8,["selected-button-index","buttons"])]),e.withDirectives(e.createElementVNode("div",d3,[e.createVNode(e.unref(Lo),{"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":n.value.minAge,"max-limit":n.value.maxAge,"min-value":y.value.min,"max-value":y.value.max,onInput:Y},null,8,["min-limit","max-limit","min-value","max-value"])],512),[[e.vShow,c.value===0]]),e.withDirectives(e.createElementVNode("div",c3,[p3,e.createVNode(e.unref(xe),e.mergeProps({"model-value":h.value},p.value,{items:n.value.availableYears,onInput:de}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",m3,e.toDisplayString(z),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,e.toDisplayString(z),1)]),_:1},16,["model-value","items"])],512),[[e.vShow,c.value===1]])]),u3,e.createElementVNode("div",f3,[k.value?(e.openBlock(),e.createElementBlock("div",h3,[y3,e.createVNode(st,{modelValue:n.value.isEligibilitySelected,"onUpdate:modelValue":R[0]||(R[0]=z=>n.value.isEligibilitySelected=z)},null,8,["modelValue"]),g3])):e.createCommentVNode("",!0),e.createElementVNode("div",_3,[n.value.isEligibilitySelected?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[C3,e.createVNode(e.unref(xe),e.mergeProps(p.value,{"is-multiple-option":"",items:n.value.eligibility,"is-disabled":""}),{default:e.withCtx(({selectedItem:z})=>[e.createElementVNode("div",w3,e.toDisplayString(z.name),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(j),{"model-value":z.isSelected,label:z.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},[b3,e.createVNode(e.unref(xe),e.mergeProps(p.value,{"is-multiple-option":"",items:g.value}),{default:e.withCtx(()=>[e.createElementVNode("div",S3,e.toDisplayString(f.value),1)]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(j),{"model-value":z.isSelected,label:z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>Z(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])],64))]),e.createElementVNode("div",k3,[E3,e.createVNode(e.unref(xe),e.mergeProps(p.value,{"is-multiple-option":"",items:w.value}),{default:e.withCtx(()=>[e.createElementVNode("div",T3,[t.isFemale?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(d.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(d.value),1)],64))])]),availableItem:e.withCtx(({item:z})=>[e.createElementVNode("div",null,[e.createVNode(e.unref(j),{"model-value":z.isSelected,label:t.isFemale?z.name.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):z.name,fontFamily:t.fontFamily,width:"100%","onUpdate:modelValue":H=>P(H,z)},null,8,["model-value","label","fontFamily","onUpdate:modelValue"])])]),_:1},16,["items"])])])]))}},N3=v(x3,[["__scopeId","data-v-33fea1e0"]]),B3={class:"plays"},F3={class:"plays__body__offensive"},P3={class:"plays__body__title"},z3={class:"number-of-categories"},A3={class:"plays__body__categories"},I3={class:"plays__body__defensive-possession-offenses"},R3={class:"plays__body__title"},M3={class:"number-of-categories"},O3={class:"plays__body__categories"},L3={class:"plays__body__title"},$3={class:"number-of-categories"},D3={class:"plays__body__categories"},W3={class:"plays__body__title"},j3={class:"number-of-categories"},v3={class:"plays__body__categories"},U3={__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),r=e.ref(!1),l=e.computed(()=>({"--template-columns":i.isExpansionMode?"1fr":"1fr 1fr"})),n=e.computed(()=>i.playsCategories.offensive.categories.reduce((d,h)=>(h.isSelected&&d++,d),0)),m=e.computed(()=>i.playsCategories.defensive.categories.reduce((d,h)=>(h.isSelected&&d++,d),0)),c=e.computed(()=>i.playsCategories.possession.categories.reduce((d,h)=>(h.isSelected&&d++,d),0)),y=e.computed(()=>i.playsCategories.offenses.categories.reduce((d,h)=>(h.isSelected&&d++,d),0));function p(d,h){h.isSelected=d}function f(d){d==="offensive"?a.value=!a.value:d==="defensive"?o.value=!o.value:d==="possession"?s.value=!s.value:d==="offenses"&&(r.value=!r.value)}return(d,h)=>(e.openBlock(),e.createElementBlock("div",B3,[e.createElementVNode("div",{class:"plays__body",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",F3,[e.createElementVNode("div",P3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[0]||(h[0]=u=>f("offensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offensive.title),1),e.createElementVNode("span",z3,"("+e.toDisplayString(n.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[1]||(h[1]=u=>f("offensive"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":a.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",A3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||a.value]])]),e.createElementVNode("div",I3,[e.createElementVNode("div",R3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[2]||(h[2]=u=>f("defensive"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.defensive.title),1),e.createElementVNode("span",M3,"("+e.toDisplayString(m.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[3]||(h[3]=u=>f("defensive"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":o.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",O3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||o.value]]),e.createElementVNode("div",L3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[4]||(h[4]=u=>f("possession"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.possession.title),1),e.createElementVNode("span",$3,"("+e.toDisplayString(c.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[5]||(h[5]=u=>f("possession"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":s.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",D3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||s.value]]),e.createElementVNode("div",W3,[e.createElementVNode("div",{class:"plays__body__title__info",onClick:h[6]||(h[6]=u=>f("offenses"))},[e.createElementVNode("span",null,e.toDisplayString(t.playsCategories.offenses.title),1),e.createElementVNode("span",j3,"("+e.toDisplayString(y.value)+")",1)]),e.createElementVNode("div",{class:"plays__body__title__expand-button",onClick:h[7]||(h[7]=u=>f("offenses"))},[e.withDirectives(e.createVNode(Ae,{"is-expanded":r.value},null,8,["is-expanded"]),[[e.vShow,t.isExpansionMode]])])]),e.withDirectives(e.createElementVNode("div",v3,[(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(j),{label:u.name,fontFamily:t.fontFamily,labelFontSize:"13px","model-value":u.isSelected,"box-value":u.priority||0,"onUpdate:modelValue":g=>p(g,u)},null,8,["label","fontFamily","model-value","box-value","onUpdate:modelValue"])]))),128))],512),[[e.vShow,!t.isExpansionMode||r.value]])])],4)]))}},G3=v(U3,[["__scopeId","data-v-364e6cae"]]),H3={class:"template-results"},q3={__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,r)=>(e.openBlock(),e.createElementBlock("div",H3,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.resultsFilters.results,(l,n)=>(e.openBlock(),e.createElementBlock("div",{key:n,class:"template-results__result"},[e.createVNode(e.unref(j),{modelValue:l.isSelected,"onUpdate:modelValue":m=>l.isSelected=m,label:l.name,"avoid-interaction":o.value===1&&l.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))}},J3=v(q3,[["__scopeId","data-v-453e89c2"]]),Y3={__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(r,l)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["button",{active:t.isActive}]),style:e.normalizeStyle(o.value),onClick:s},e.toDisplayString(t.text),7))}},rt=v(Y3,[["__scopeId","data-v-9688933e"]]),Z3={PO1:"CFI",PO2:"CFV",PO3:"SFI",PO4:"SFV",PO5:"FI",PO6:"FV"},As={DF:"Dieciseisavos",OF:"Octavos",CF:"Cuartos",SF:"Semifinales","3ER":"Tercer lugar",FINAL:"Final"},K3={4:"Octavos",5:"Cuartos",6:"Semifinales",7:"Final"},X3={4:"OF",5:"Cf",6:"S",7:"F"};function Ya(t=""){return t?localStorage.getItem(t):localStorage.getItem("user_token")||localStorage.getItem("token")}const Q3={class:"dropdown"},e6={class:"selected-item"},t6={__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",Q3,[e.createVNode(e.unref(xe),e.mergeProps(e.unref(Qe),{"is-list-same-width":t.isListSameWidth,items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",e6,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",null,e.toDisplayString(t.itemTextKey?r[t.itemTextKey]:r),1)]),_:1},16,["is-list-same-width","items"])]))}},pe=v(t6,[["__scopeId","data-v-064d5f86"]]),a6={class:"dropdown"},i6={class:"game-item"},o6={key:0,class:"item-game"},s6={class:"match-day"},r6={class:"team-logo"},l6=["src"],n6={class:"text"},d6={class:"text score"},c6={class:"text"},p6={class:"team-logo"},m6=["src"],u6={class:"item-game"},f6={class:"team-logo"},h6=["src"],y6={class:"text"},g6={class:"text score"},_6={class:"text"},b6={class:"team-logo"},S6=["src"],C6={__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",a6,[e.createVNode(e.unref(xe),e.mergeProps(e.unref(Qe),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",i6,[r.homeTeam?(e.openBlock(),e.createElementBlock("div",o6,[e.createElementVNode("div",s6,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",r6,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,l6)]),e.createElementVNode("div",n6,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",d6,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",c6,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",p6,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,m6)])])):e.createCommentVNode("",!0)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",u6,[e.createElementVNode("div",null,e.toDisplayString(r.roundAbbreviation),1),e.createElementVNode("div",f6,[e.createElementVNode("img",{src:r.homeTeam.logo,alt:""},null,8,h6)]),e.createElementVNode("div",y6,e.toDisplayString(r.homeTeam.acronym),1),e.createElementVNode("div",g6,e.toDisplayString(r.score[0])+" - "+e.toDisplayString(r.score[1]),1),e.createElementVNode("div",_6,e.toDisplayString(r.awayTeam.acronym),1),e.createElementVNode("div",b6,[e.createElementVNode("img",{src:r.awayTeam.logo,alt:""},null,8,S6)])])]),_:1},16,["items"])]))}},jt=v(C6,[["__scopeId","data-v-7883a91e"]]),vt=t=>(e.pushScopeId("data-v-b63e9c84"),t=t(),e.popScopeId(),t),w6={class:"container"},k6={class:"container__row"},E6={class:"container__row__wrapper"},T6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),V6={class:"container__row__wrapper__input"},x6={class:"container__row two-items"},N6={class:"container__row__wrapper"},B6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),F6={key:0,class:"container__row__wrapper__input"},P6={class:"container__row__wrapper"},z6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),A6={key:0,class:"container__row__wrapper__input"},I6={class:"container__row"},R6={class:"container__row__wrapper"},M6=vt(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),O6={key:0,class:"container__row__wrapper__input"},L6={class:"container__action"},$6={__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),r=e.ref(null),l=e.ref(null);function n(p){o.value=p,i("update:tournament",p)}function m(p){s.value=p,i("update:season",p)}function c(p){r.value=p}function y(p){l.value=p}return(p,f)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",w6,[e.createElementVNode("div",k6,[e.createElementVNode("div",E6,[T6,e.createElementVNode("div",V6,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:n},null,8,["items"])])])]),e.createElementVNode("div",x6,[e.createElementVNode("div",N6,[B6,o.value&&o.value.seasons?(e.openBlock(),e.createElementBlock("div",F6,[e.createVNode(pe,{items:o.value.seasons,itemTextKey:"name",onInput:m},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",P6,[z6,s.value&&s.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",A6,[e.createVNode(pe,{items:s.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:c},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",I6,[e.createElementVNode("div",R6,[M6,r.value&&r.value.arrayGames?(e.openBlock(),e.createElementBlock("div",O6,[e.createVNode(jt,{items:r.value.arrayGames,onInput:y},null,8,["items"])])):e.createCommentVNode("",!0)])])]),e.createElementVNode("div",L6,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(a)),null,16)])],64))}},D6=v($6,[["__scopeId","data-v-b63e9c84"]]),W6={class:"dropdown"},j6={class:"item-team"},v6={class:"team-logo"},U6=["src"],G6={class:"team-acronym"},H6={class:"item-team"},q6={class:"team-logo"},J6=["src"],Y6={class:"team-acronym"},Z6={__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",W6,[e.createVNode(e.unref(xe),e.mergeProps(e.unref(Qe),{items:t.items,onInput:a}),{default:e.withCtx(({selectedItem:r})=>[e.createElementVNode("div",j6,[e.createElementVNode("div",v6,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,U6)]),e.createElementVNode("div",G6,e.toDisplayString(r.acronym),1)])]),availableItem:e.withCtx(({item:r})=>[e.createElementVNode("div",H6,[e.createElementVNode("div",q6,[e.createElementVNode("img",{src:r.logo,alt:""},null,8,J6)]),e.createElementVNode("div",Y6,e.toDisplayString(r.acronym),1)])]),_:1},16,["items"])]))}},Is=v(Z6,[["__scopeId","data-v-afd2bee8"]]),K6={class:"advanced-filters"},X6={class:"advanced-filters__buttons"},Q6=["onClick"],e4={class:"advanced-filters__filters"},t4={__name:"AdvancedFilters",props:{selectedCategory:{type:Object,default:()=>({})}},setup(t){const i=t,a=e.defineAsyncComponent(()=>Promise.resolve().then(()=>JE)),o=e.defineAsyncComponent(()=>Promise.resolve().then(()=>mT)),s=e.defineAsyncComponent(()=>Promise.resolve().then(()=>fT)),r=[{name:"Sub categorías",component:a},{name:"Cancha",component:s},{name:"Condiciones",component:o}],l=e.ref(r[0]),n=e.computed(()=>i.selectedCategory?i.selectedCategory.subcategoryGroups||[]:[]);function m(c){l.value=c}return(c,y)=>(e.openBlock(),e.createElementBlock("div",K6,[e.createElementVNode("div",X6,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(r,p=>e.createElementVNode("div",{key:p.name,role:"button",class:e.normalizeClass(["advanced-filters__buttons__button",{active:l.value.name===p.name}]),onClick:f=>m(p)},e.toDisplayString(p.name),11,Q6)),64))]),e.createElementVNode("div",e4,[(e.openBlock(),e.createBlock(e.KeepAlive,null,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value.component),{"subcategory-groups":n.value},null,8,["subcategory-groups"]))],1024))])]))}},Za=v(t4,[["__scopeId","data-v-c62c5b9c"]]),Oe=t=>(e.pushScopeId("data-v-575b26b5"),t=t(),e.popScopeId(),t),a4={class:"container"},i4={class:"container__row"},o4={class:"container__row__wrapper"},s4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),r4={class:"container__row__wrapper__input"},l4={class:"container__row two-items"},n4={class:"container__row__wrapper"},d4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),c4={key:0,class:"container__row__wrapper__input"},p4={class:"container__row__wrapper"},m4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. En que equipo juega?",-1)),u4={key:0,class:"container__row__wrapper__input"},f4={class:"container__row"},h4={class:"container__row__wrapper"},y4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Nombre del jugador",-1)),g4={key:0,class:"container__row__wrapper__input"},_4={class:"container__row"},b4={class:"container__row__wrapper"},S4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el partido",-1)),C4={key:0,class:"container__row__wrapper__input"},w4={class:"container__row type-and-advanced"},k4={class:"container__row__wrapper"},E4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),T4={class:"container__row__wrapper__input"},V4={class:"container__row__wrapper center"},x4=Oe(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),N4={class:"container__row__wrapper__input"},B4={class:"container__row"},F4={class:"container__action"},P4={__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),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),m=e.ref(null),c=e.ref(null),y=e.ref(!0),p=e.computed(()=>m.value?m.value.position_id===1?a.advancedFilterCategories.goalkeeper:a.advancedFilterCategories.player:[]);function f(k){s.value=k,i("update:tournament",k)}function d(k){r.value=k,i("update:season",k)}function h(k){n.value=k,i("update:team",k)}function u(k){m.value=k}function g(k){l.value=k}function w(k){c.value=k}return(k,W)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",a4,[e.createElementVNode("div",i4,[e.createElementVNode("div",o4,[s4,e.createElementVNode("div",r4,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:f},null,8,["items"])])])]),e.createElementVNode("div",l4,[e.createElementVNode("div",n4,[d4,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",c4,[e.createVNode(pe,{items:s.value.seasons,itemTextKey:"name",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",p4,[m4,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",u4,[e.createVNode(Is,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",f4,[e.createElementVNode("div",h4,[y4,n.value&&n.value.arrayPlayers?(e.openBlock(),e.createElementBlock("div",g4,[e.createVNode(pe,{items:n.value.arrayPlayers,itemTextKey:"player_name",onInput:u},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_4,[e.createElementVNode("div",b4,[S4,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",C4,[e.createVNode(jt,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:g},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",w4,[e.createElementVNode("div",k4,[E4,e.createElementVNode("div",T4,[e.createVNode(pe,{items:p.value,itemTextKey:"name","is-list-same-width":!1,onInput:w},null,8,["items"])])]),e.createElementVNode("div",V4,[x4,e.createElementVNode("div",N4,[e.createVNode(st,{modelValue:y.value,"onUpdate:modelValue":W[0]||(W[0]=J=>y.value=J)},null,8,["modelValue"])])])]),e.createElementVNode("div",B4,[e.createVNode(Za,{"selected-category":c.value},null,8,["selected-category"])])]),e.createElementVNode("div",F4,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},z4=v(P4,[["__scopeId","data-v-575b26b5"]]),Ge=t=>(e.pushScopeId("data-v-6d73d5e6"),t=t(),e.popScopeId(),t),A4={class:"container"},I4={class:"container__row"},R4={class:"container__row__wrapper"},M4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),O4={class:"container__row__wrapper__input"},L4={class:"container__row two-items"},$4={class:"container__row__wrapper"},D4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),W4={key:0,class:"container__row__wrapper__input"},j4={class:"container__row__wrapper"},v4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige el equipo",-1)),U4={key:0,class:"container__row__wrapper__input"},G4={class:"container__row"},H4={class:"container__row__wrapper"},q4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),J4={key:0,class:"container__row__wrapper__input"},Y4={class:"container__row type-and-advanced"},Z4={class:"container__row__wrapper"},K4=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"5. Elige el tipo de video",-1)),X4={class:"container__row__wrapper__input"},Q4={class:"container__row__wrapper center"},eC=Ge(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),tC={class:"container__row__wrapper__input"},aC={class:"container__row"},iC={class:"container__action"},oC={__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),r=e.ref(null);e.ref(null);const l=e.ref(null),n=e.ref(null),m=e.ref(null),c=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.team);function p(g){s.value=g,i("update:tournament",g)}function f(g){r.value=g,i("update:season",g)}function d(g){n.value=g,i("update:team",g)}function h(g){l.value=g}function u(g){m.value=g}return(g,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",A4,[e.createElementVNode("div",I4,[e.createElementVNode("div",R4,[M4,e.createElementVNode("div",O4,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",L4,[e.createElementVNode("div",$4,[D4,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",W4,[e.createVNode(pe,{items:s.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",j4,[v4,r.value&&r.value.arrayTeams?(e.openBlock(),e.createElementBlock("div",U4,[e.createVNode(Is,{items:r.value.arrayTeams,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",G4,[e.createElementVNode("div",H4,[q4,r.value&&r.value.mapGamesByTeam&&n.value?(e.openBlock(),e.createElementBlock("div",J4,[e.createVNode(jt,{items:r.value.mapGamesByTeam.get(n.value.team_id),onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",Y4,[e.createElementVNode("div",Z4,[K4,e.createElementVNode("div",X4,[e.createVNode(pe,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",Q4,[eC,e.createElementVNode("div",tC,[e.createVNode(st,{modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=k=>c.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",aC,[e.createVNode(Za,{"selected-category":m.value},null,8,["selected-category"])])]),e.createElementVNode("div",iC,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},sC=v(oC,[["__scopeId","data-v-6d73d5e6"]]),He=t=>(e.pushScopeId("data-v-6e904db8"),t=t(),e.popScopeId(),t),rC={class:"container"},lC={class:"container__row"},nC={class:"container__row__wrapper"},dC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"1. Elige la liga",-1)),cC={class:"container__row__wrapper__input"},pC={class:"container__row two-items"},mC={class:"container__row__wrapper"},uC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"2. Elige el torneo",-1)),fC={key:0,class:"container__row__wrapper__input"},hC={class:"container__row__wrapper"},yC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"3. Elige la jornada",-1)),gC={key:0,class:"container__row__wrapper__input"},_C={class:"container__row"},bC={class:"container__row__wrapper"},SC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"4. Elige el partido",-1)),CC={key:0,class:"container__row__wrapper__input"},wC={class:"container__row type-and-advanced"},kC={class:"container__row__wrapper"},EC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"6. Elige el tipo de video",-1)),TC={class:"container__row__wrapper__input"},VC={class:"container__row__wrapper center"},xC=He(()=>e.createElementVNode("div",{class:"container__row__wrapper__label"},"Filtrado avanzado",-1)),NC={class:"container__row__wrapper__input",style:{width:"fit-content"}},BC={class:"container__row"},FC={class:"container__action"},PC={__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),r=e.ref(null),l=e.ref(null),n=e.ref(null),m=e.ref(null),c=e.ref(!0),y=e.computed(()=>a.advancedFilterCategories.games);function p(g){s.value=g,i("update:tournament",g)}function f(g){r.value=g,i("update:season",g)}function d(g){l.value=g}function h(g){n.value=g}function u(g){m.value=g}return(g,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createElementVNode("div",rC,[e.createElementVNode("div",lC,[e.createElementVNode("div",nC,[dC,e.createElementVNode("div",cC,[e.createVNode(pe,{items:t.tournaments,itemTextKey:"name",onInput:p},null,8,["items"])])])]),e.createElementVNode("div",pC,[e.createElementVNode("div",mC,[uC,s.value&&s.value.seasons?(e.openBlock(),e.createElementBlock("div",fC,[e.createVNode(pe,{items:s.value.seasons,itemTextKey:"name",onInput:f},null,8,["items"])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",hC,[yC,r.value&&r.value.arrayMatchDays?(e.openBlock(),e.createElementBlock("div",gC,[e.createVNode(pe,{items:r.value.arrayMatchDays,itemTextKey:"stringMatchDayAbbreviation",onInput:d},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",_C,[e.createElementVNode("div",bC,[SC,l.value&&l.value.arrayGames?(e.openBlock(),e.createElementBlock("div",CC,[e.createVNode(jt,{items:l.value.arrayGames,onInput:h},null,8,["items"])])):e.createCommentVNode("",!0)])]),e.createElementVNode("div",wC,[e.createElementVNode("div",kC,[EC,e.createElementVNode("div",TC,[e.createVNode(pe,{items:y.value,itemTextKey:"name","is-list-same-width":!1,onInput:u},null,8,["items"])])]),e.createElementVNode("div",VC,[xC,e.createElementVNode("div",NC,[e.createVNode(st,{modelValue:c.value,"onUpdate:modelValue":w[0]||(w[0]=k=>c.value=k)},null,8,["modelValue"])])])]),e.createElementVNode("div",BC,[e.createVNode(Za,{"selected-category":m.value},null,8,["selected-category"])])]),e.createElementVNode("div",FC,[e.createVNode(rt,e.normalizeProps(e.guardReactiveProps(o)),null,16)])],64))}},zC=v(PC,[["__scopeId","data-v-6e904db8"]]),AC={class:"template-videos"},IC={class:"template-videos__header"},RC={class:"template-videos__body"},MC=e.defineComponent({name:"TemplateVideos",components:{VideosGoals:D6,VideosPlayer:z4,VideosTeam:sC,VideosGame:zC}}),OC=Object.assign(MC,{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=[],r=["g-23","g-24","g-25"],l={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},m=e.ref([{name:"Goles",componentName:"VideosGoals"},{name:"Jugador",componentName:"VideosPlayer"},{name:"Equipo",componentName:"VideosTeam"},{name:"Partido",componentName:"VideosGame"}]),c=e.ref([]),y=e.ref(m.value[0]),p=e.ref({}),f=e.ref({}),d=e.ref({}),h=e.ref({}),u=e.ref({games:[],player:[],team:[],goalkeeper:[],isEmpty:!0}),g=e.ref([]);e.ref({});const w=e.ref(null);e.watch(p,E=>{f.value.numberSeasonSelectedIndex=f.value.seasons.findIndex(V=>V.id===E.id),E.arrayMatchDays?(h.value=E.arrayMatchDays[0]||{},d.value=E.arrayTeams[0]||{}):(A(E),Y(E))}),e.watch(d,()=>{setTimeout(()=>{p.value.mapPlayersByTeam&&(!d.value.arrayPlayers||!d.value.arrayPlayers.length)&&(d.value.arrayPlayers=p.value.mapPlayersByTeam.get(d.value.team_id))},700)});async function k(){try{c.value=await W()}catch(E){throw new Error(E)}}async function W(){try{const E={Authorization:Ya()||a.token},V={}.API_TOURNAMENTS||a.tournamentsUrl,I=await it.get(V,{headers:E});return I.data?I.data.map(B=>({...B.tournament,seasons:B.seasons})):[]}catch(E){return Promise.reject(E)}}async function J(E,V,I=""){i("loading-data");let B=I;try{B||(B={}.API_CALENDAR_GAMES_BY_SEASON||a.gamesUrl,E.forEach((F,_)=>{B+=`${_===0?"":"&"}seasons=${F}`}));const M={Authorization:Ya()||a.token},{data:{data:G,teams:T}}=await it.get(B,{headers:M});return{seasonsAndGames:G,seasonsAndTeams:T}}catch(M){if(V>0)return J(E,V-1,B);throw new Error(M)}finally{i("loading-data")}}async function q(E){try{const V={Authorization:Ya()||a.token},I=` ${{}.API_PLAYERS_BY_SEASON||a.playersUrl}${E.seasonId}`,B=await it.get(I,{headers:V});return B.data?B.data.players:[]}catch(V){return Promise.reject(V)}}async function A(E){try{const{seasonsAndGames:V,seasonsAndTeams:I}=await J([E.id,...E.related_seasons.map(T=>T.id)],3),B=I.find(T=>T._id===E.id);p.value.arrayTeams=[],p.value.mapTeams=new Map;const M=B.teams.reduce((T,F)=>(p.value.arrayTeams.push(F),p.value.mapTeams.set(F.team_id,{name:F.colloquial_name,acronym:F.acronym,logo:F.logo,id:F.team_id}),T.set(F.team_id,F),T),new Map);d.value=p.value.arrayTeams[0],p.value.mapGames=new Map,p.value.mapGamesByTeam=new Map;const G=Array.from(V.reduce((T,F)=>(F.games.forEach(_=>{if(_.game_status===1&&_.has_video){(!p.value.maxGameId||_.game_id>p.value.maxGameId)&&(p.value.maxGameId=_.game_id);let x=_.matchday_abbreviation.replace("M","J"),D=_.matchday_abbreviation.replace("M","Jornada ");const se=_.matchday_abbreviation.replace("M","");F.season_type===0?f.value.tournament_type===1&&(_.seasonId===881?(x=X3[se]||x,D=K3[se]||D):(x=As[_.matchday_abbreviation]?_.matchday_abbreviation:x,D=As[_.matchday_abbreviation]||D,x==="FINAL"&&(x="F"))):F.season_type===1?(x=Z3[_.matchday_abbreviation],D=x):(x=_.matchday_abbreviation.replace("PO","R"),D="Repechaje"),_.roundAbbreviation=x,_.roundName=D,p.value.mapGames.set(_.game_id,{id:_.game_id,date:_.date,dateTimeMillis:new Date(_.date_time_utc).valueOf(),homeTeam:p.value.mapTeams.get(_.home_team),awayTeam:p.value.mapTeams.get(_.visiting_team),roundAbbreviation:_.roundAbbreviation,roundName:_.roundName,score:_.score,gameResult:_.score[0]>_.score[1]?1:_.score[0]<_.score[1]?2:3,seasonId:F.season_id});const Ee=T.get(_.roundAbbreviation);_.numberDateTimeMillis=new Date(_.date_time_utc).getTime(),_.homeTeam=M.get(_.home_team),_.awayTeam=M.get(_.visiting_team);const nt=p.value.mapGamesByTeam.get(_.home_team),dt=p.value.mapGamesByTeam.get(_.visiting_team);nt?nt.push(_):p.value.mapGamesByTeam.set(_.home_team,[_]),dt?dt.push(_):p.value.mapGamesByTeam.set(_.visiting_team,[_]),Ee?Ee.arrayGames.push(_):T.set(_.roundAbbreviation,{stringMatchDayAbbreviation:_.roundAbbreviation,stringMatchDayName:_.roundName,arrayGames:[_]})}}),T),new Map).values());G.reverse(),G.forEach(T=>{T.arrayGames.sort((F,_)=>F.numberDateTimeMillis-_.numberDateTimeMillis)}),p.value.arrayMatchDays=G,h.value=G[0]||{}}catch(V){throw new Error(V)}}async function Y(E){try{const V=await N(E.id);p.value.mapPlayers=new Map,p.value.mapPlayersByTeam=V.reduce((I,B)=>{p.value.mapPlayers.set(B.player_id,{id:B.player_id,name:B.player_name,shortName:B.shortName,photo:B.player_photo,teamId:B.team_id,positionId:B.position_id});const M=I.get(B.team_id);return M?M.push(B):I.set(B.team_id,[B]),I},new Map)}catch(V){throw new Error(V)}}async function Z(){try{let E=[];u.value.isEmpty?(E=await R(),g.value={...E}):E=g.value;const V=[];if(E&&E.length){u.value=E.reduce((F,_)=>{if(_.group_id!=="g-55"){const x={idAux:_.group_id,ids:[..._.ids?_.ids:[],..._.rival_Ids?_.rival_Ids:[]],type:_.type,name:_.name,coordinatePoint:_.coordinate_point,requiresRivalTransform:r.includes(_.group_id)};x.idsAux=[...x.ids],x.subcategoryGroups=_.group_id==="g-12"?[]:U(_,0,new Map,!1,{},x.idsAux),V.push(x),x.type.includes(n.player)&&F.player.push(x),x.type.includes(n.team)&&(x.idAux!=="g-2"&&F.games.push(x),F.team.push(x)),x.type.includes(n.goalkeeper)&&F.goalkeeper.push(x)}return F},{games:[],player:[],team:[],goalkeeper:[],isEmpty:!1});const I=new Map,B="Resumen",M="Todas sus jugadas",G=u.value.player.reduce((F,_)=>{const x=P(_);return x.forEach(D=>{I.set(D,_.name)}),F.push(...x),F},[]),T=u.value.goalkeeper.reduce((F,_)=>{const x=P(_);return x.forEach(D=>{I.set(D,_.name)}),F.push(...x),F},[]);u.value.games.unshift({name:B,arrayCategoriesIds:l.games,booleanIsBestPlays:!0}),u.value.team.unshift({name:B,arrayCategoriesIds:l.team,booleanIsBestPlays:!0}),u.value.player.unshift({name:B,arrayCategoriesIds:l.player.regular,booleanIsBestPlays:!0},{name:M,arrayCategoriesIds:G,booleanIsMinutesPlayed:!0}),u.value.goalkeeper.unshift({name:B,arrayCategoriesIds:l.player.goalkeeper,booleanIsBestPlays:!0},{name:M,arrayCategoriesIds:T,booleanIsMinutesPlayed:!0})}}catch(E){throw new Error(E)}}function U(E,V=0,I=new Map,B=!1,M={},G=[]){if(!E.group_id)return;let T=I.get(V);const F=B?`${E.id_category}_r`:E.id_category;E.id_category&&G.push(E.id_category);let _={ids:[F],groupId:E.group_id,level:V,name:E.name,isSelected:!0,fatherCategories:V>0?[M]:[],idsByFatherCategory:{[E.category_father]:[F]}};if(V>0&&V===1&&(_.id=E.id_category),T&&V!==0){const x=E.group_id.charAt(E.group_id.length-1),D=T.find(se=>se.groupId.endsWith(x));D&&!s.includes(_.groupId)?(_=D,D.ids.push(F),D.fatherCategories.push(M),D.fatherCategories.forEach(se=>{se.childCategories?se.childCategories.find(Ee=>Ee.groupId===_.groupId)||se.childCategories.push(_):se.childCategories=[_]}),D.idsByFatherCategory[E.category_father]?D.idsByFatherCategory[E.category_father].push(F):D.idsByFatherCategory[E.category_father]=[F]):(_.fatherCategories.forEach(se=>{se.childCategories?se.childCategories.find(Ee=>Ee.groupId===_.groupId)||se.childCategories.push(_):se.childCategories=[_]}),T.push(_))}else V!==0&&(M.childCategories?M.childCategories.push(_):M.childCategories=[_],T=[_],I.set(V,T));if(E.categories&&E.categories.length?E.categories.forEach(x=>{U(x,V+1,I,B,_,G)}):E.rival_categories&&E.rival_categories.length&&E.rival_categories.forEach(x=>{U(x,V+1,I,!0,_,G)}),V===0)return Array.from(I.values())}function P(E){const V=E||E;if(V.booleanIsBestPlays)return V.arrayCategoriesIds;const I={total:[],toRemove:[]};if(V.subcategoryGroups&&V.subcategoryGroups.length?V.subcategoryGroups[0].forEach(B=>{de(B,null,I)}):(V.ids&&I.total.push(...V.ids),V.rival_ids&&V.rival_ids.forEach(B=>{I.total.push(`${B}_r`)})),I.total=I.total.reduce((B,M)=>(I.toRemove.includes(M)||B.push(M),B),[]),!E){const B=V.name.toLowerCase().includes("recibid");w.value.isRivalSubject=B,w.value.avoidCategorySingleName=B,w.value.coordinatePoint=V.coordinatePoint,w.value.requiresRivalTransform=V.requiresRivalTransform}return I.total}function de(E,V=[],I={total:[],toRemove:[]}){E.isSelected?E.childCategories?E.childCategories.forEach(B=>{const M=V?Object.entries(E.idsByFatherCategory).reduce((G,[T,F])=>(V.includes(Number(T))&&F.forEach(_=>{typeof _=="string"&&_.endsWith("_r")?G.push(Number(_.split("_")[0])):G.push(_)}),G),[]):[E.id];de(B,M,I)}):V?Object.entries(E.idsByFatherCategory).forEach(([B,M])=>{V.includes(Number(B))&&M.forEach(G=>{I.total.push(G)})}):E.level===1?Object.entries(E.idsByFatherCategory).forEach(([B,M])=>{M.forEach(G=>{I.total.push(G)})}):I.total.push(E.id):E.childCategories||E.ids.forEach(B=>{I.toRemove.push(B)})}async function N(E){try{const V=await q({seasonId:E});return V.forEach(I=>{const[B,M]=I.player_name.split(","),G=B.split(" ");let T="";for(const F of G)if(T+=` ${F}`,F.length>3)break;I.shortName=M&&B?`${M.trim().charAt(0)}.${T}`:""}),V}catch(V){return Promise.reject(V)}}async function R(){try{const E={Authorization:localStorage.getItem("user_token")||"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"};return(await it.get("https://2gfppi9wb6.execute-api.us-east-2.amazonaws.com/prod/videos/categories",{headers:E})).data||[]}catch(E){return Promise.reject(E)}}function z(E){y.value=E}function H(E){f.value=E,p.value=E.seasons[0]}function K(E){p.value=E}function fe(E){d.value=E}return k(),Z(),(E,V)=>(e.openBlock(),e.createElementBlock("div",AC,[e.createElementVNode("div",IC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(m.value,I=>(e.openBlock(),e.createBlock(rt,e.mergeProps({key:I.name},o,{text:I.name,"is-active":y.value.componentName===I.componentName,tournaments:c.value,onClick:B=>z(I)}),null,16,["text","is-active","tournaments","onClick"]))),128))]),e.createElementVNode("div",RC,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(y.value.componentName),{tournaments:c.value,"advanced-filter-categories":u.value,"onUpdate:tournament":H,"onUpdate:season":K,"onUpdate:team":fe},null,40,["tournaments","advanced-filter-categories"]))])]))}}),LC=v(OC,[["__scopeId","data-v-d6f7aec8"]]),Rs=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"]]),$C={class:"template-taken-corners"},DC={class:"template-taken-corners__header"},WC={class:"template-taken-corners__header__all"},jC={class:"template-taken-corners__body"},vC={class:"template-taken-corners__body__players"},UC={class:"template-taken-corners__body__players__player__jersey"},GC={class:"template-taken-corners__body__players__player__photo"},HC={class:"template-taken-corners__body__players__player__photo__img"},qC=["src"],JC={class:"template-taken-corners__body__players__player__info"},YC={class:"template-taken-corners__body__players__player__info__name"},ZC={class:"template-taken-corners__body__players__player__info__position"},KC={class:"template-taken-corners__body__players__player__info__position__nationality"},XC=["src"],QC={class:"template-taken-corners__body__players__player__info__position__name"},e5={class:"template-taken-corners__body__players__player__checkbox"},t5={__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),r=e.ref([]),l=e.computed(()=>o.isExpansionMode?"Cobradores filtrados:":"Cobradores con los filtros seleccionados"),n=e.computed(()=>r.value.reduce((u,g)=>g.isSelected?u+1:u,0));e.watch(()=>o.takenCornersFilters,u=>{r.value=u.map(g=>{const w={...g};return(g.isSelected===void 0||g.isSelected===null)&&(w.isSelected=!0),w})},{immediate:!0,deep:!0}),e.watch(n,u=>{s.value=u===r.value.length,a("change-filters-selected",u),a("update:filters",r.value)},{immediate:!0});function m(u){return`https://golstatsimages.blob.core.windows.net/flags/${u}.jpg`}function c(u){return`https://golstatsimages.blob.core.windows.net/players-profile/${u}.png`}function y(u){let g=!1;return u.split(" ").reduce((w,k)=>(g||(k.length>3?(w=k,g=!0):w+=`${k} `),w),"").trim()}function p(u){return`${y(u.last_name)}, ${u.first_name.trim()}`}function f(u){return o.isFemale?Rs.get(u.positions[0]).replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):Rs.get(u.positions[0])}function d(u){u?r.value.forEach(g=>{g.isSelected=!0}):r.value.forEach((g,w)=>{g.isSelected=w===0})}function h(){r.value.forEach(u=>{u.isSelected=!0})}return i({clearFilters:h}),(u,g)=>(e.openBlock(),e.createElementBlock("div",$C,[e.createElementVNode("div",DC,[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(l.value),5),e.createElementVNode("div",WC,[e.createVNode(e.unref(j),{"model-value":s.value,label:"Seleccionar todos","onUpdate:modelValue":d},null,8,["model-value"])])]),e.createElementVNode("div",jC,[e.createElementVNode("div",vC,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,w=>(e.openBlock(),e.createElementBlock("div",{key:w.player_id,class:"template-taken-corners__body__players__player"},[e.createElementVNode("div",UC,e.toDisplayString(w.jersey),1),e.createElementVNode("div",GC,[e.createElementVNode("div",HC,[e.createElementVNode("img",{src:c(w.player_id),alt:"player photo",width:"36",height:"36"},null,8,qC)])]),e.createElementVNode("div",JC,[e.createElementVNode("div",YC,e.toDisplayString(p(w)),1),e.createElementVNode("div",ZC,[e.createElementVNode("div",KC,[e.createElementVNode("img",{src:m(w.nationality_id),alt:"country flag"},null,8,XC)]),e.createElementVNode("div",QC,e.toDisplayString(f(w)),1)])]),e.createElementVNode("div",e5,[e.createVNode(e.unref(j),{modelValue:w.isSelected,"onUpdate:modelValue":k=>w.isSelected=k,"avoid-interaction":n.value===1&&w.isSelected},null,8,["modelValue","onUpdate:modelValue","avoid-interaction"])])]))),128))])])]))}},a5=v(t5,[["__scopeId","data-v-763fcc54"]]),Ka={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]}]},Xa=t=>(e.pushScopeId("data-v-b7e3b8e0"),t=t(),e.popScopeId(),t),i5={class:"template-how-was-corner"},o5={class:"template-how-was-corner__header"},s5=Xa(()=>e.createElementVNode("div",{class:"template-how-was-corner__header__zone"},"ZONA:",-1)),r5={class:"template-how-was-corner__header__radio-input"},l5={class:"template-how-was-corner__header__radio-input__radio"},n5=Xa(()=>e.createElementVNode("label",{for:"left"},"Por izquierda",-1)),d5={class:"template-how-was-corner__header__radio-input"},c5={class:"template-how-was-corner__header__radio-input__radio"},p5=Xa(()=>e.createElementVNode("label",{for:"right"},"Por derecha",-1)),m5=["onClick"],u5={class:"template-how-was-corner__content__corner-type__img"},f5=["src","alt"],h5={class:"template-how-was-corner__content__corner-type__info"},y5={class:"template-how-was-corner__content__corner-type__info__title"},g5={__name:"TemplateHowWasCorner",props:{howWasCornerFilters:{type:Object,default:()=>Ka},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]),r=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((m,c)=>c.isSelected?m+1:m,0)),o.value=n.cornerType,i("update:filters",n)},{deep:!0,immediate:!0});function l(n){n.isSelected&&r.value===1||(n.isSelected=!n.isSelected)}return(n,m)=>(e.openBlock(),e.createElementBlock("div",i5,[e.createElementVNode("div",o5,[s5,e.createElementVNode("div",r5,[e.createElementVNode("div",l5,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"left",value:"left","onUpdate:modelValue":m[0]||(m[0]=c=>o.value=c)},null,512),[[e.vModelRadio,o.value]]),n5])]),e.createElementVNode("div",d5,[e.createElementVNode("div",c5,[e.withDirectives(e.createElementVNode("input",{type:"radio",id:"right",value:"right","onUpdate:modelValue":m[1]||(m[1]=c=>o.value=c)},null,512),[[e.vModelRadio,o.value]]),p5])])]),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,(c,y)=>(e.openBlock(),e.createElementBlock("div",{key:y,class:e.normalizeClass(["template-how-was-corner__content__corner-type",{"is-selected":c.isSelected}]),onClick:p=>l(c)},[e.createElementVNode("div",u5,[e.createElementVNode("img",{src:c.imgSrc,alt:c.title},null,8,f5)]),e.createElementVNode("div",h5,[e.createElementVNode("div",y5,e.toDisplayString(c.title),1)])],10,m5))),128))],2)]))}},_5=v(g5,[["__scopeId","data-v-b7e3b8e0"]]),lt=[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],Ne=t=>(e.pushScopeId("data-v-378bf7e2"),t=t(),e.popScopeId(),t),b5={class:"template-zone"},S5={class:"controls-zone-container"},C5={class:"controls-zone-container-title-checkcon"},w5={class:"controls-zone-container-title-checkcon-check"},k5={class:"gsc-field-img-container"},E5={width:"100%",height:"177",viewBox:"0 0 380 177",fill:"none",xmlns:"http://www.w3.org/2000/svg"},T5=["fill"],V5=["fill"],x5=["fill"],N5=["fill"],B5=["fill"],F5=["fill"],P5=["fill"],z5=["fill"],A5=["fill"],I5=["fill"],R5=["fill"],M5=["fill"],O5=["fill"],L5=["fill"],$5=["fill"],D5=["fill"],W5=["fill"],j5=["fill"],v5=["fill"],U5=["fill"],G5=["fill"],H5=["fill"],q5=["fill"],J5=["fill"],Y5=["fill"],Z5=["fill"],K5=["fill"],X5=["fill"],Q5=["fill"],ew=["fill"],tw=["fill"],aw=["fill"],iw=["fill"],ow=["fill"],sw=["fill"],rw=Ne(()=>e.createElementVNode("rect",{x:"91.6",y:"0.6",width:"196.8",height:"87.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),lw=Ne(()=>e.createElementVNode("rect",{x:"137.6",y:"0.782404",width:"104.8",height:"28.8",stroke:"#DFE3E2","stroke-width":"1.2"},null,-1)),nw=["id"],dw=Ne(()=>e.createElementVNode("rect",{width:"197.746",height:"24.6043",transform:"matrix(1 0 0 -1 91 113)",fill:"#D9D9D9"},null,-1)),cw=[dw],pw=["mask"],mw=Ne(()=>e.createElementVNode("circle",{cx:"185.329",cy:"56.5046",r:"52.6152",stroke:"#DFE3E2","stroke-width":"1.38817"},null,-1)),uw=[mw],fw=Ne(()=>e.createElementVNode("circle",{cx:"190.278",cy:"66.2782",r:"2.27817",fill:"white"},null,-1)),hw=Ne(()=>e.createElementVNode("rect",{x:"0.7",y:"0.7",width:"378.6",height:"175.6",stroke:"#DFE3E2","stroke-width":"1.4"},null,-1)),yw={class:"template-zone__total-corners"},gw=Ne(()=>e.createElementVNode("div",{class:"template-zone__total-corners__text"}," Tiros de esquina cobrados a las zonas filtradas ",-1)),_w=Ne(()=>e.createElementVNode("div",{class:"template-zone__total-corners__value"},"10",-1)),bw=[gw,_w],Sw={__name:"TemplateZone",props:{zoneFilters:{type:Array,default:()=>[...lt]},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),r=e.ref([]),l=e.computed(()=>new Date().getTime());e.watch(r,y=>{s.value=y.length===35}),e.watch(()=>o.zoneFilters,y=>{r.value=y},{immediate:!0,deep:!0}),e.watch(()=>r.value,y=>{a("update:filters",y),a("change-filters-selected",y.length)},{deep:!0});function n(y){y?(r.value=lt,s.value=!0):(r.value=[],s.value=!1)}function m(y){r.value.includes(y)?r.value=r.value.filter(p=>p!==y):r.value.push(y),s.value=r.value.length===35}function c(){r.value=[...lt]}return i({clearFilters:c}),(y,p)=>(e.openBlock(),e.createElementBlock("div",b5,[e.createElementVNode("div",S5,[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",C5,[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",w5,[e.createVNode(e.unref(j),{label:"",fontFamily:"Poppins-Regular",labelFontSize:"11px","label-color":"#FFF","model-value":s.value,"onUpdate:modelValue":n},null,8,["model-value"])])])]),e.createElementVNode("div",k5,[(e.openBlock(),e.createElementBlock("svg",E5,[e.createElementVNode("rect",{onClick:p[0]||(p[0]=f=>m(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:r.value.includes(1)?"#FFFF0030":"#2e3b46"},null,8,T5),e.createElementVNode("rect",{onClick:p[1]||(p[1]=f=>m(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:r.value.includes(9)?"#FFFF0030":"#2e3b46"},null,8,V5),e.createElementVNode("rect",{onClick:p[2]||(p[2]=f=>m(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:r.value.includes(17)?"#FFFF0030":"#2e3b46"},null,8,x5),e.createElementVNode("rect",{onClick:p[3]||(p[3]=f=>m(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:r.value.includes(25)?"#FFFF0030":"#2e3b46"},null,8,N5),e.createElementVNode("rect",{onClick:p[4]||(p[4]=f=>m(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:r.value.includes(26)?"#FFFF0030":"#2e3b46"},null,8,B5),e.createElementVNode("rect",{onClick:p[5]||(p[5]=f=>m(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:r.value.includes(27)?"#FFFF0030":"#2e3b46"},null,8,F5),e.createElementVNode("rect",{onClick:p[6]||(p[6]=f=>m(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:r.value.includes(28)?"#FFFF0030":"#2e3b46"},null,8,P5),e.createElementVNode("rect",{onClick:p[7]||(p[7]=f=>m(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:r.value.includes(29)?"#FFFF0030":"#2e3b46"},null,8,z5),e.createElementVNode("rect",{onClick:p[8]||(p[8]=f=>m(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:r.value.includes(30)?"#FFFF0030":"#2e3b46"},null,8,A5),e.createElementVNode("rect",{onClick:p[9]||(p[9]=f=>m(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:r.value.includes(31)?"#FFFF0030":"#2e3b46"},null,8,I5),e.createElementVNode("rect",{onClick:p[10]||(p[10]=f=>m(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:r.value.includes(32)?"#FFFF0030":"#2e3b46"},null,8,R5),e.createElementVNode("rect",{onClick:p[11]||(p[11]=f=>m(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:r.value.includes(33)?"#FFFF0030":"#2e3b46"},null,8,M5),e.createElementVNode("rect",{onClick:p[12]||(p[12]=f=>m(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:r.value.includes(34)?"#FFFF0030":"#2e3b46"},null,8,O5),e.createElementVNode("rect",{onClick:p[13]||(p[13]=f=>m(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:r.value.includes(35)?"#FFFF0030":"#2e3b46"},null,8,L5),e.createElementVNode("rect",{onClick:p[14]||(p[14]=f=>m(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:r.value.includes(2)?"#FFFF0030":"#2e3b46"},null,8,$5),e.createElementVNode("rect",{onClick:p[15]||(p[15]=f=>m(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:r.value.includes(3)?"#FFFF0030":"#2e3b46"},null,8,D5),e.createElementVNode("rect",{onClick:p[16]||(p[16]=f=>m(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:r.value.includes(4)?"#FFFF0030":"#2e3b46"},null,8,W5),e.createElementVNode("rect",{onClick:p[17]||(p[17]=f=>m(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:r.value.includes(5)?"#FFFF0030":"#2e3b46"},null,8,j5),e.createElementVNode("rect",{onClick:p[18]||(p[18]=f=>m(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:r.value.includes(6)?"#FFFF0030":"#2e3b46"},null,8,v5),e.createElementVNode("rect",{onClick:p[19]||(p[19]=f=>m(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:r.value.includes(7)?"#FFFF0030":"#2e3b46"},null,8,U5),e.createElementVNode("rect",{onClick:p[20]||(p[20]=f=>m(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:r.value.includes(8)?"#FFFF0030":"#2e3b46"},null,8,G5),e.createElementVNode("rect",{onClick:p[21]||(p[21]=f=>m(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:r.value.includes(10)?"#FFFF0030":"#2e3b46"},null,8,H5),e.createElementVNode("rect",{onClick:p[22]||(p[22]=f=>m(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:r.value.includes(11)?"#FFFF0030":"#2e3b46"},null,8,q5),e.createElementVNode("rect",{onClick:p[23]||(p[23]=f=>m(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:r.value.includes(12)?"#FFFF0030":"#2e3b46"},null,8,J5),e.createElementVNode("rect",{onClick:p[24]||(p[24]=f=>m(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:r.value.includes(13)?"#FFFF0030":"#2e3b46"},null,8,Y5),e.createElementVNode("rect",{onClick:p[25]||(p[25]=f=>m(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:r.value.includes(14)?"#FFFF0030":"#2e3b46"},null,8,Z5),e.createElementVNode("rect",{onClick:p[26]||(p[26]=f=>m(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:r.value.includes(15)?"#FFFF0030":"#2e3b46"},null,8,K5),e.createElementVNode("rect",{onClick:p[27]||(p[27]=f=>m(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:r.value.includes(16)?"#FFFF0030":"#2e3b46"},null,8,X5),e.createElementVNode("rect",{onClick:p[28]||(p[28]=f=>m(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:r.value.includes(18)?"#FFFF0030":"#2e3b46"},null,8,Q5),e.createElementVNode("rect",{onClick:p[29]||(p[29]=f=>m(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:r.value.includes(19)?"#FFFF0030":"#2e3b46"},null,8,ew),e.createElementVNode("rect",{onClick:p[30]||(p[30]=f=>m(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:r.value.includes(20)?"#FFFF0030":"#2e3b46"},null,8,tw),e.createElementVNode("rect",{onClick:p[31]||(p[31]=f=>m(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:r.value.includes(21)?"#FFFF0030":"#2e3b46"},null,8,aw),e.createElementVNode("rect",{onClick:p[32]||(p[32]=f=>m(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:r.value.includes(22)?"#FFFF0030":"#2e3b46"},null,8,iw),e.createElementVNode("rect",{onClick:p[33]||(p[33]=f=>m(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:r.value.includes(23)?"#FFFF0030":"#2e3b46"},null,8,ow),e.createElementVNode("rect",{onClick:p[34]||(p[34]=f=>m(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:r.value.includes(24)?"#FFFF0030":"#2e3b46"},null,8,sw),rw,lw,e.createElementVNode("mask",{id:l.value,style:{"mask-type":"alpha"},maskUnits:"userSpaceOnUse",x:"91",y:"88",width:"198",height:"25"},cw,8,nw),e.createElementVNode("g",{mask:`url(#${l.value})`},uw,8,pw),fw,hw]))]),e.withDirectives(e.createElementVNode("div",yw,bw,512),[[e.vShow,!1]])]))}},Cw=v(Sw,[["__scopeId","data-v-378bf7e2"]]),Qa=[{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]}],ww={class:"what-happened"},kw={class:"what-happened__all"},Ew={class:"what-happened__filters"},Tw={key:0,class:"what-happened__filters__filter__composed"},Vw={class:"what-happened__filters__filter__composed__main"},xw={key:1,class:"what-happened__filters__filter__single"},Nw={__name:"TemplateWhatHappened",props:{isFemale:{type:Boolean,default:!1},whatHappenedFilters:{type:Array,default:()=>[...Qa]}},emits:["change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.computed(()=>o.whatHappenedFilters.reduce((d,h)=>(h.child?h.child.forEach(u=>{u.isSelected&&d++}):h.isSelected&&d++,d),0)),r=e.computed(()=>o.whatHappenedFilters.reduce((d,h)=>(h.child?d+=h.child.length:d++,d),0)),l=e.computed(()=>s.value===r.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 m(d){o.whatHappenedFilters.forEach(h=>{d?(h.isSelected=d,h.child&&h.child.forEach(u=>{u.isSelected=d})):h.child?(h.isSelected=!0,h.child.forEach(u=>{u.isSelected=!0})):h.isSelected=!1})}function c(d,h){h.isSelected=d,h.child.forEach(u=>{u.isSelected=d})}function y(d,h,u){u.isSelected=d,h.isSelected=h.child.every(g=>g.isSelected)}function p(d,h){h.isSelected=d}function f(){o.whatHappenedFilters.forEach(d=>{d.child?d.child.forEach(h=>{h.isSelected=!0}):d.isSelected=!0})}return i({onResetFilters:f}),(d,h)=>(e.openBlock(),e.createElementBlock("div",ww,[e.createElementVNode("div",kw,[e.createVNode(e.unref(j),{label:"Todos","model-value":l.value,"box-position":"right","onUpdate:modelValue":m},null,8,["model-value"])]),e.createElementVNode("div",Ew,[(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",Tw,[e.createElementVNode("div",Vw,[e.createVNode(e.unref(j),{"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":w=>c(w,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.child,(w,k)=>(e.openBlock(),e.createElementBlock("div",{key:`c${k}`,class:"what-happened__filters__filter__composed__child"},[e.createVNode(e.unref(j),{"model-value":w.isSelected,label:t.isFemale?w.text.replace("Ganados por portero rival","Ganados por portera rival").replace("Ganados por jugador rival","Ganados por jugadora rival"):w.text,"avoid-interaction":n.value&&w.isSelected,"onUpdate:modelValue":W=>y(W,u,w)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))),128))])):(e.openBlock(),e.createElementBlock("div",xw,[e.createVNode(e.unref(j),{"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":w=>p(w,u)},null,8,["model-value","label","avoid-interaction","onUpdate:modelValue"])]))]))),128))])]))}},Bw=v(Nw,[["__scopeId","data-v-8f375a1a"]]),ei={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}]}},Ms=t=>(e.pushScopeId("data-v-ee3b28d3"),t=t(),e.popScopeId(),t),Fw={class:"template-results"},Pw={class:"template-results__type-switch"},zw=Ms(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Final",-1)),Aw=Ms(()=>e.createElementVNode("div",{class:"template-results__type-switch__label"},"Al momento",-1)),Iw={class:"template-results__info"},Rw={key:0,class:"template-results__group"},Mw={key:1,class:"template-results__group"},Ow={__name:"TemplateResultsByTime",props:{resultsFilters:{type:Object,default:()=>({...ei})}},emits:["update:resultsFilters","change-filters-selected","update:filters"],setup(t,{expose:i,emit:a}){const o=t,s=e.ref(null),r=e.computed(()=>{const m=s.value.isMoment?s.value.results.moment.filter(c=>c.isSelected).length:s.value.results.final.filter(c=>c.isSelected).length;return a("change-filters-selected",m),m}),l=e.computed(()=>s.value.isMoment?"Resultado al momento del cobro":"Resultado al final del partido");e.watch(()=>o.resultsFilters,m=>{s.value===null&&(s.value={...m})},{deep:!0,immediate:!0}),e.watch(s,m=>{a("update:filters",m)},{deep:!0,immediate:!0});function n(){s.value.isMoment=!1,s.value.results.moment.forEach(m=>{m.isSelected=!0}),s.value.results.final.forEach(m=>{m.isSelected=!0})}return i({removeFilters:n}),(m,c)=>(e.openBlock(),e.createElementBlock("div",Fw,[e.withDirectives(e.createElementVNode("div",Pw,[zw,e.createVNode(st,{modelValue:s.value.isMoment,"onUpdate:modelValue":c[0]||(c[0]=y=>s.value.isMoment=y)},null,8,["modelValue"]),Aw],512),[[e.vShow,!s.value.isMomentOnly]]),e.createElementVNode("div",Iw,e.toDisplayString(l.value),1),s.value.isMoment?(e.openBlock(),e.createElementBlock("div",Rw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.moment,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(j),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,"avoid-interaction":r.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))])):(e.openBlock(),e.createElementBlock("div",Mw,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.results.final,(y,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:"template-results__result"},[e.createVNode(e.unref(j),{modelValue:y.isSelected,"onUpdate:modelValue":f=>y.isSelected=f,label:y.name,"avoid-interaction":r.value===1&&y.isSelected},null,8,["modelValue","onUpdate:modelValue","label","avoid-interaction"])]))),128))]))]))}},Lw=v(Ow,[["__scopeId","data-v-ee3b28d3"]]),$w={key:0,class:"productivity__header__text"},Dw={key:1,class:"productivity__header__checkbox"},Ww={class:"templates__body"},jw={key:0,class:"templates-plays"},vw={key:1,class:"templates-productivity"},Uw={key:2,class:"template-field"},Gw={key:3,class:"template-details"},Hw={key:4,class:"template-personal-data"},qw={key:5,class:"template-leagues"},Jw={key:6,class:"template-plays"},Yw={key:7,class:"template-plays"},Zw={key:8,class:"template-universe"},Kw={key:9,class:"template-distance"},Xw={key:10,class:"template-results"},Qw={key:11,class:"template-results-by-type"},ek={key:12,class:"template-games"},tk={key:13,class:"template-taken-corners"},ak={key:14,class:"template-videos"},ik={key:15,class:"template-how-was-corner"},ok={key:16,class:"template-zone"},sk={key:17,class:"template-what-happened"},rk={key:1,class:"templates__footer"},lk={class:"templates__footer__button"},nk={class:"templates__footer__button"},dk={__name:"GSC-FilterTemplates",props:{filterType:{type:String,default:""},width:{type:String,default:"100%"},maxWidth:{type:String,default:"100%"},productivityMaxCategories:{type:Number,default:5},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},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:()=>({})},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),r=e.ref(!1),l=e.ref({playingAs:o.playingAs,gameSections:o.gameSections,statisticType:o.statisticType}),n=e.ref({areYellowCardsSelected:!1,areRedCardsSelected:!1,areFoulsCommittedSelected:!1}),m=e.ref(null),c=e.ref(null),y=e.ref(null),p=e.ref(null),f=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!==b.VIDEOS?o.isExpansionMode?"10px 0":o.padding:"0","--footer-border-color":o.footerBorderColor,"--footer-border-width":o.footerBorderWidth,"--text-color":o.textColor})),h=e.computed(()=>{const _=[];return o.productivityCategories&&Object.values(o.productivityCategories).forEach(x=>{x.categories&&x.categories.forEach(D=>{_.push(D)})}),_}),u=e.computed(()=>{const _=[];return o.playsCategories&&Object.values(o.playsCategories).forEach(x=>{x.categories&&x.categories.forEach(D=>{_.push(D)})}),_}),g=e.computed(()=>{const _=h.value.filter(x=>x.isSelected);return W(_),o.filterType===b.PRODUCTIVITY&&a("change-categories-selected",_.length),_.length}),w=e.computed(()=>g.value>=o.productivityMaxCategories),k=e.computed(()=>o.isPlayingAsHidden?o.gameSections:o.playingAs.concat(o.gameSections));e.watch(l,_=>{o.filterType===b.DETAILS&&a("update:filters",_)},{immediate:!0,deep:!0}),e.watch(()=>k.value,_=>{if(o.filterType===b.DETAILS){const x=_.filter(D=>D.isSelected);a("change-filters-selected",x.length)}},{immediate:!0,deep:!0}),e.watch(()=>o.playsGolstatsCategories,_=>{if(o.filterType===b.PLAYS_TYPES||o.filterType===b.GOLSTATS){const x=_.filter(D=>D.isSelected);a("change-filters-selected",x.length)}},{immediate:!0}),e.watch(()=>o.fieldAreas,_=>{o.filterType===b.FIELD&&a("change-filters-selected",_.length)}),e.watch(u,()=>{o.filterType===b.PLAYS&&N()},{immediate:!0,deep:!0}),e.watch(h,()=>{o.filterType===b.PRODUCTIVITY&&R()},{immediate:!0,deep:!0}),e.watch(()=>o.resultsFilters,_=>{o.filterType===b.RESULTS&&a("change-filters-selected",_.results.filter(x=>x.isSelected).length)},{immediate:!0,deep:!0});function W(_){setTimeout(()=>{_.sort((x,D)=>x.priority-D.priority),_.forEach((x,D)=>{x.priority=D+1})},10)}function J(_=null){q()}function q(){o.filterType===b.PRODUCTIVITY?h.value.forEach(_=>{_.isSelected=!1}):o.filterType===b.PLAYS?(u.value.forEach(_=>{_.isSelected=!0}),r.value=!0):o.filterType===b.FIELD?a("change-field-areas",[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]):o.filterType===b.DETAILS?(o.playingAs.forEach(_=>{_.isSelected=!0}),o.gameSections.forEach(_=>{_.isSelected=!0})):o.filterType===b.TOURNAMENTS?(o.tournaments.forEach(_=>{_.isSelected=!0}),a("change-filters-selected",0)):o.filterType===b.PLAYS_TYPES?o.playsGolstatsCategories.forEach(_=>{_.isSelected=!0}):o.filterType===b.GOLSTATS?o.playsGolstatsCategories.forEach(_=>{_.isSelected=!1}):o.filterType===b.UNIVERSE?m.value&&m.value.resetFilters():o.filterType===b.PERSONAL_DATA?(s.value&&s.value.onClearFilters(Q.All),a("change-personal-data-filters",{})):o.filterType===b.DISTANCE?a("update:filters",{minValue:o.distanceFilters.minLimit,maxValue:o.distanceFilters.maxLimit}):o.filterType===b.RESULTS?a("update:filters",{results:o.resultsFilters.results.map(_=>(_.isSelected=!0,_))}):o.filterType===b.RESULTS_BY_TIME?f.value&&f.value.removeFilters():o.filterType===b.GAMES?o.gamesFilters.forEach(_=>{_.isSelected=!0}):o.filterType===b.TAKEN_CORNERS?c.value.clearFilters():o.filterType===b.HOW_WAS_CORNER?(o.howWasCornerFilters.left.forEach(_=>{_.isSelected=!0}),o.howWasCornerFilters.right.forEach(_=>{_.isSelected=!0})):o.filterType===b.ZONE?y.value&&y.value.clearFilters():o.filterType===b.WHAT_HAPPENED&&p.value&&p.value.onResetFilters()}function A(_){o.filterType===b.TOURNAMENTS&&a("change-filters-selected",_)}function Y(_){o.filterType===b.UNIVERSE&&a("change-universe-filters",_)}function Z(_){o.filterType===b.FIELD&&a("change-field-areas",_)}function U(_){o.filterType===b.GOLSTATS&&a("change-filters-selected",_)}function P(_){a("change-filters-selected",_)}function de(_){r.value=_,o.playsCategories.offensive.categories.forEach(x=>{x.isSelected=_}),o.playsCategories.defensive.categories.forEach(x=>{x.isSelected=_}),o.playsCategories.possession.categories.forEach(x=>{x.isSelected=_}),o.playsCategories.offenses.categories.forEach(x=>{x.isSelected=_})}function N(){let _=0;const x={playsCategories:u.value.filter(D=>D.isSelected)};r.value=x.playsCategories.length===u.value.length,_=x.playsCategories.length,Object.values(n.value).forEach(D=>{D&&_++}),a("change-filters-selected",_),a("update:filters",x)}function R(){let _=0;const x={productivityFilters:h.value.filter(D=>D.isSelected),offensesConditions:n.value};_=x.productivityFilters.length,Object.values(n.value).forEach(D=>{D&&_++}),a("change-filters-selected",_),a("update:filters",x)}function z(){a("apply")}function H(){(o.filterType===b.PLAYS_TYPES||o.filterType===b.GOLSTATS)&&o.playsGolstatsCategories&&o.playsGolstatsCategories.forEach(_=>{_.isSelected=!1}),a("apply")}function K(_){a("update:filters",_)}function fe(_){o.filterType===b.PERSONAL_DATA&&a("update:filters",_)}function E(_){o.filterType===b.TOURNAMENTS&&a("update:filters",_)}function V(_){(o.filterType===b.PLAYS_TYPES||o.filterType===b.GOLSTATS)&&a("update:filters",_)}function I(_){o.filterType===b.PRODUCTIVITY&&(n.value=_,R())}function B(_){o.filterType===b.DISTANCE&&a("update:filters",_)}function M(_){o.filterType===b.RESULTS&&a("update:filters",_)}function G(_){o.filterType===b.GAMES&&(a("update:filters",_),a("change-filters-selected",_.filter(x=>x.isSelected).length))}function T(_){l.value.statisticType=_}const F=e.computed(()=>o.filterType===b.PLAYS?u.value.length:o.filterType===b.PRODUCTIVITY?h.value.length:o.filterType===b.FIELD?16:o.filterType===b.UNIVERSE?6:o.filterType===b.DETAILS?8:o.filterType===b.RESULTS||o.filterType===b.RESULTS_BY_TIME?3:o.filterType===b.GAMES?o.gamesFilters.length:0);return a("total-filters",F),i({clearFilters:J}),(_,x)=>(e.openBlock(),e.createElementBlock("div",{class:"templates",style:e.normalizeStyle(d.value)},[t.filterType===e.unref(b).PRODUCTIVITY||t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(t.isExpansionMode?"productivity__header__expansion":"productivity__header")},[t.filterType===e.unref(b).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",$w," Selecciona hasta 5 categorias en orden de importancia ")):t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",Dw,[e.createVNode(e.unref(j),{label:"Todos los tipos de jugadas",fontFamily:"Poppins-Regular",labelFontSize:"14px","model-value":r.value,"label-color":t.textColor,"onUpdate:modelValue":de},null,8,["model-value","label-color"])])):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Ww,[t.filterType===e.unref(b).PLAYS?(e.openBlock(),e.createElementBlock("div",jw,[e.createVNode(G3,{"plays-categories":t.playsCategories,"is-expansion-mode":t.isExpansionMode},null,8,["plays-categories","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PRODUCTIVITY?(e.openBlock(),e.createElementBlock("div",vw,[e.createVNode(Wg,{"productivity-categories":t.productivityCategories,"number-of-categories-selected":g.value,"are-max-categories-reached":w.value,"is-expansion-mode":t.isExpansionMode,"onUpdate:offensesConditions":I},null,8,["productivity-categories","number-of-categories-selected","are-max-categories-reached","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).FIELD?(e.openBlock(),e.createElementBlock("div",Uw,[e.createVNode(e.unref(Go),e.mergeProps(t.fieldComponentProps,{"background-color":t.backgroundColor,value:t.fieldAreas,"onUpdate:modelValue":Z}),null,16,["background-color","value"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).DETAILS?(e.openBlock(),e.createElementBlock("div",Gw,[e.createVNode(_0,{"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:T},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(b).PERSONAL_DATA?(e.openBlock(),e.createElementBlock("div",Hw,[e.createVNode(N3,{"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,"onUpdate:filters":fe},null,8,["is-female","personal-data-filters","season","is-seleccion","is-scouting","token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).TOURNAMENTS?(e.openBlock(),e.createElementBlock("div",qw,[e.createVNode(E0,{tournaments:t.tournaments,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,onChangeFiltersSelected:A,"onUpdate:filters":E},null,8,["tournaments","is-one-tournament-only","default-tournament-id"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).PLAYS_TYPES?(e.openBlock(),e.createElementBlock("div",Jw,[e.createVNode(No,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,"onUpdate:filters":V},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).GOLSTATS?(e.openBlock(),e.createElementBlock("div",Yw,[e.createVNode(No,{height:t.modalHeight,type:t.filterType,categories:t.playsGolstatsCategories,onChangeFiltersSelected:U,"onUpdate:filters":V},null,8,["height","type","categories"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).UNIVERSE?(e.openBlock(),e.createElementBlock("div",Zw,[e.createVNode(g2,{ref_key:"templateUniverse",ref:m,"universe-filters":t.universeFilters,"onUpdate:universeFilters":Y},null,8,["universe-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).DISTANCE?(e.openBlock(),e.createElementBlock("div",Kw,[e.createVNode(L2,{distance:t.distanceFilters,"onUpdate:distanceFilters":B},null,8,["distance"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).RESULTS?(e.openBlock(),e.createElementBlock("div",Xw,[e.createVNode(J3,{ref_key:"templateResults",ref:f,"results-filters":t.resultsFilters,"onUpdate:resultsFilters":M},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).RESULTS_BY_TIME?(e.openBlock(),e.createElementBlock("div",Qw,[e.createVNode(Lw,{ref_key:"templateResults",ref:f,"results-filters":t.resultsByTimeFilters,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["results-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).GAMES?(e.openBlock(),e.createElementBlock("div",ek,[e.createVNode(G2,{"games-filters":t.gamesFilters,"onUpdate:gamesFilters":G},null,8,["games-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).TAKEN_CORNERS?(e.openBlock(),e.createElementBlock("div",tk,[e.createVNode(a5,{"is-female":t.isFemale,ref_key:"templateTakenCorners",ref:c,"taken-corners-filters":t.takenCornersFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["is-female","taken-corners-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).VIDEOS?(e.openBlock(),e.createElementBlock("div",ak,[e.createVNode(LC,{token:t.token},null,8,["token"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).HOW_WAS_CORNER?(e.openBlock(),e.createElementBlock("div",ik,[e.createVNode(_5,{"how-was-corner-filters":t.howWasCornerFilters,"is-expansion-mode":t.isExpansionMode,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["how-was-corner-filters","is-expansion-mode"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).ZONE?(e.openBlock(),e.createElementBlock("div",ok,[e.createVNode(Cw,{ref_key:"templateZone",ref:y,"zone-filters":t.zoneFilters,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["zone-filters"])])):e.createCommentVNode("",!0),t.filterType===e.unref(b).WHAT_HAPPENED?(e.openBlock(),e.createElementBlock("div",sk,[e.createVNode(Bw,{"is-female":t.isFemale,ref_key:"templateWhatHappened",ref:p,"what-happened-filters":t.whatHappenedFilters,onChangeFiltersSelected:P,"onUpdate:filters":K},null,8,["is-female","what-happened-filters"])])):e.createCommentVNode("",!0)]),t.isFooterVisible?(e.openBlock(),e.createElementBlock("div",rk,[t.isFooterCancelOnly?(e.openBlock(),e.createBlock(e.unref(Na),{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:H})):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("div",lk,[e.createVNode(e.unref(Na),{"text-value":"Quitar filtros","font-size":"12px","font-color":"rgba(255,255,255,0.7)","text-decoration":"underline",onClick:q})]),e.createElementVNode("div",nk,[e.createVNode(e.unref(Na),{"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))}},Os=v(dk,[["__scopeId","data-v-4eff340b"]]),ck=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},pk={__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}},emits:["update:modelValue"],setup(t,{emit:i}){const a=t;e.useCssVars(d=>({"321b6381":t.width,"14b0f61d":m.value,"62e0e83c":t.menuWidth}));const o=e.ref(null),s=e.ref(!1),r=e.ref(null),l=e.ref({}),n=e.computed(()=>{const d={top:"0px"};if(o.value){const h=o.value.getBoundingClientRect();d.top=`${h.height+a.menuMarginTop}px`}return d}),m=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(()=>{l.value["--translate-x"]="0px"},500)});function c(d){const h=window.innerWidth,u=d.boundingClientRect.x,g=d.boundingClientRect.x+d.boundingClientRect.width,w=u<=0?Math.abs(u)+4:g>=h?h-(g+10):0;l.value["--translate-x"]=`${w}px`}function y(){new IntersectionObserver(d=>{d[0].intersectionRatio>0&&c(d[0])}).observe(r.value)}function p(){s.value=!s.value,i("update:modelValue",s.value)}function f(){s.value=!1,i("update:modelValue",s.value)}return e.onMounted(()=>{e.nextTick(()=>{y()})}),(d,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,id:"menu-overlay",onClick:f})):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"menu-container",style:e.normalizeStyle(l.value)},[e.createElementVNode("div",{ref_key:"trigger",ref:o,class:"menu-container__trigger",onClick:p},[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:r,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))}},mk=ck(pk,[["__scopeId","data-v-2f344053"]]),Le=t=>(e.pushScopeId("data-v-975b3874"),t=t(),e.popScopeId(),t),uk={class:"button__icon"},fk={key:0,width:"19",height:"17",viewBox:"0 0 19 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},hk=["stroke"],yk=["stroke"],gk=["stroke"],_k={key:1,width:"17",height:"18",viewBox:"0 0 17 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},bk=["stroke"],Sk=["stroke"],Ck=["fill"],wk={key:2,width:"17",height:"17",viewBox:"0 0 17 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},kk=["fill"],Ek={key:3,width:"21",height:"18",viewBox:"0 0 21 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Tk=["stroke"],Vk=["stroke"],xk=["stroke"],Nk=["stroke"],Bk=["stroke"],Fk={key:4,width:"18",height:"17",viewBox:"0 0 18 17",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Pk=Le(()=>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)),zk=[Pk],Ak={key:5,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ik=Le(()=>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)),Rk=[Ik],Mk={key:6,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Ok=Le(()=>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)),Lk=[Ok],$k={key:7,width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Dk=Le(()=>e.createElementVNode("rect",{x:".707",y:".9",width:"5.2",height:"5.2",rx:".8",stroke:"#98A2B3","stroke-width":"1.2"},null,-1)),Wk=Le(()=>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)),jk=Le(()=>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)),vk=Le(()=>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)),Uk=[Dk,Wk,jk,vk],Gk={key:8,width:"19",height:"19",viewBox:"0 0 19 19",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Hk=e.createStaticVNode('<g clip-path="url(#gpdeo9cu3a)" fill="#98A2B3" data-v-975b3874><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-975b3874></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-975b3874></path></g><defs data-v-975b3874><clipPath id="gpdeo9cu3a" data-v-975b3874><path fill="#fff" transform="translate(.307 .5)" d="M0 0h18v18H0z" data-v-975b3874></path></clipPath></defs>',2),qk=[Hk],Jk={class:"button__text"},Yk={key:1,style:{width:"20px"}},Zk={width:"8",height:"4",viewBox:"0 0 8 4",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Kk=["fill"],Xk={__name:"ButtonFilter",props:{isActive:{type:Boolean,default:!1},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"}},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(()=>[b.PLAYS_TYPES,b.GOLSTATS,b.TOURNAMENTS,b.PLAYS,b.RESULTS,b.RESULTS_BY_TIME].includes(i.iconType)),r=e.computed(()=>[b.FIELD,b.GAMES].includes(i.iconType)),l=e.computed(()=>[b.DETAILS,b.UNIVERSE].includes(i.iconType)),n=e.computed(()=>[b.PERSONAL_DATA].includes(i.iconType)),m=e.computed(()=>[b.PRODUCTIVITY].includes(i.iconType)),c=e.computed(()=>[b.HOW_WAS_CORNER].includes(i.iconType)),y=e.computed(()=>[b.TAKEN_CORNERS].includes(i.iconType)),p=e.computed(()=>[b.ZONE].includes(i.iconType)),f=e.computed(()=>[b.WHAT_HAPPENED].includes(i.iconType));return(d,h)=>(e.openBlock(),e.createElementBlock("div",{class:"button",style:e.normalizeStyle(a.value)},[e.createElementVNode("div",uk,[n.value?(e.openBlock(),e.createElementBlock("svg",fk,[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,hk),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,yk),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,gk)])):e.createCommentVNode("",!0),s.value?(e.openBlock(),e.createElementBlock("svg",_k,[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,bk),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,Sk),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,Ck)])):e.createCommentVNode("",!0),l.value?(e.openBlock(),e.createElementBlock("svg",wk,[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,kk)])):e.createCommentVNode("",!0),r.value?(e.openBlock(),e.createElementBlock("svg",Ek,[e.createElementVNode("rect",{x:"1.16772",y:"1.16699",width:"19",height:"15.6667",stroke:t.iconColor},null,8,Tk),e.createElementVNode("rect",{x:"16.1677",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,Vk),e.createElementVNode("rect",{x:"1.16772",y:"6.16699",width:"4",height:"5.66667",stroke:t.iconColor},null,8,xk),e.createElementVNode("path",{d:"M10.6677 0.666992V16.5003",stroke:t.iconColor},null,8,Nk),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,Bk)])):e.createCommentVNode("",!0),m.value?(e.openBlock(),e.createElementBlock("svg",Fk,zk)):e.createCommentVNode("",!0),y.value?(e.openBlock(),e.createElementBlock("svg",Ak,Rk)):e.createCommentVNode("",!0),c.value?(e.openBlock(),e.createElementBlock("svg",Mk,Lk)):e.createCommentVNode("",!0),p.value?(e.openBlock(),e.createElementBlock("svg",$k,Uk)):e.createCommentVNode("",!0),f.value?(e.openBlock(),e.createElementBlock("svg",Gk,qk)):e.createCommentVNode("",!0)]),e.createElementVNode("div",Jk,e.toDisplayString(t.text),1),t.showBadgeOnFilterFull?(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)):(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",Yk)):e.createCommentVNode("",!0)],64)),e.createElementVNode("div",{class:e.normalizeClass(["button__arrow",{"rotated-180":t.isActive}])},[(e.openBlock(),e.createElementBlock("svg",Zk,[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,Kk)]))],2)],4))}},Qk=v(Xk,[["__scopeId","data-v-975b3874"]]),e8=(t,i)=>{const a=t.__vccOpts||t;for(const[o,s]of i)a[o]=s;return a},t8=t=>(e.pushScopeId("data-v-0ca35abc"),t=t(),e.popScopeId(),t),a8={class:"panel__activator__icon"},i8=["src"],o8={class:"panel__activator__text"},s8=["height","width"],r8=["stroke"],l8={class:"panel__content"},n8=t8(()=>e.createElementVNode("div",{class:"panel__content__separator"},null,-1)),d8={class:"panel__content__slot"},c8={__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,l=>{o.value=l},{immediate:!0});function r(){o.value=!o.value,i("update:modelValue",o.value)}return(l,n)=>(e.openBlock(),e.createElementBlock("div",{class:"panel",style:e.normalizeStyle(s.value)},[e.createElementVNode("div",{class:"panel__activator",onClick:r},[e.createElementVNode("div",a8,[a.icon?(e.openBlock(),e.createElementBlock("img",{key:0,src:a.icon,alt:""},null,8,i8)):e.createCommentVNode("",!0)]),e.createElementVNode("div",o8,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,r8)],8,s8))],2)]),e.createVNode(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",l8,[n8,e.createElementVNode("div",d8,[e.renderSlot(l.$slots,"content",{},void 0,!0)])],512),[[e.vShow,o.value]])]),_:3})],4))}},p8=e8(c8,[["__scopeId","data-v-0ca35abc"]]),Ce={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},m8={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}},u8={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}]}},f8={minutesPlayed:0,percentMinutesPlayed:0,lastMonths:Array.from({length:24},(t,i)=>i+1),selectedMonth:12,statistics:{totals:!0,averagePerGame:!1,averagePerMinute:!1}},h8=[{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}]}],y8=[{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}],g8=[{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}],_8={distance:{minValue:5,maxValue:30,minLimit:5,maxLimit:30}},Ls={results:[{name:"Partidos ganados",value:1,isSelected:!0},{name:"Partidos perdidos",value:2,isSelected:!0},{name:"Partidos empatados",value:3,isSelected:!0}]},b8={class:"filters"},S8={key:0,class:"filters__expansion"},C8={class:"content"},w8={key:1,class:"filters__menus"},k8={__name:"GSC-Filters",props:{filterType:{type:String,default:""},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},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}},emits:["update:filters","apply","close"],setup(t,{expose:i,emit:a}){const o=t;e.useCssVars(T=>({"52632e17":t.width}));const s={width:"604px",maxWidth:"604px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PRODUCTIVITY,isFooterVisible:!0},r={width:"604px",maxWidth:"604px",padding:"0 20px 10px 20px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PLAYS,isFooterVisible:!0},l={width:"fit-content",maxWidth:"608px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.FIELD,isFooterVisible:!0},n={width:"320px",maxWidth:"320px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.DETAILS,isFooterVisible:!0},m={width:"246px",maxWidth:"246px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.TOURNAMENTS,isFooterVisible:!0},c={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PERSONAL_DATA,isFooterVisible:!0},y={width:"310px",modalHeight:o.modalHeight,maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.PLAYS_TYPES,isFooterVisible:!0,isFooterCancelOnly:!0},p={width:"380px",modalHeight:o.modalHeight,maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.GOLSTATS,isFooterVisible:!0,isFooterCancelOnly:!0},f={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.UNIVERSE,isFooterVisible:!0},d={width:"310px",maxWidth:"310px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.DISTANCE,isFooterVisible:!0},h={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.RESULTS,padding:"0",isFooterVisible:!0},u={width:"250px",maxWidth:"250px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.RESULTS_BY_TIME,padding:"0",isFooterVisible:!0},g={width:"380px",maxWidth:"380px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.VIDEOS,isFooterVisible:!1},w={width:"300px",maxWidth:"300px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.GAMES,isFooterVisible:!0},k={width:"520px",maxWidth:"520px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.TAKEN_CORNERS,isFooterVisible:!0},W={width:"670px",maxWidth:"670px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.HOW_WAS_CORNER,isFooterVisible:!0},J={width:"426px",maxWidth:"426px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.ZONE,isFooterVisible:!0},q={width:"285px",maxWidth:"285px",backgroundColor:"#2E3B46",borderRadius:"12px",filterType:b.WHAT_HAPPENED,isFooterVisible:!0},A=e.ref(!1),Y=e.ref(!1),Z=e.ref(0),U=e.ref(0),P=e.ref({}),de=e.ref(null),N=e.ref(null),R=e.computed(()=>o.menuButtonText||E()),z=e.computed(()=>o.expansionPanelText||E()),H=e.ref(null);e.watch(()=>o.filterType,T=>{if(T===b.PRODUCTIVITY)P.value={...s,...o.templateProps,productivityCategories:o.filters||m8};else if(T===b.PLAYS)P.value={...r,...o.templateProps,fontFamily:o.buttonFilterProps?o.buttonFilterProps.textFontFamily:"sans-serif",playsCategories:o.filters||u8};else if(T===b.FIELD)P.value={...l,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters||[]};else if(T===b.DETAILS)P.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:Ce.isPlayingAsHidden,playingAs:o.filters&&o.filters.playingAs||Ce.playingAs,gameSections:o.filters&&o.filters.gameSections||Ce.gameSections,statisticType:o.filters?o.filters.statisticType:Ce.statisticType,isStatisticTypeVisible:o.filters?o.filters.isStatisticTypeVisible:Ce.isStatisticTypeVisible};else if(T===b.TOURNAMENTS){const F=o.filters||h8;o.isOneTournamentOnly&&F.forEach(_=>{_.isSelected=_.id===o.defaultTournamentId}),P.value={...m,...o.templateProps,tournaments:F}}else T===b.PERSONAL_DATA?P.value={...c,...o.templateProps,token:o.token,personalDataFilters:o.filters||Dt}:T===b.PLAYS_TYPES?P.value={...y,...o.templateProps,playsGolstatsCategories:o.filters||y8}:T===b.GOLSTATS?P.value={...p,...o.templateProps,playsGolstatsCategories:o.filters||g8}:T===b.UNIVERSE?P.value={...f,...o.templateProps,universeFilters:o.filters||f8}:T===b.DISTANCE?P.value={...d,...o.templateProps,distanceFilters:o.filters||_8}:T===b.RESULTS?P.value={...h,...o.templateProps,resultsFilters:o.filters||Ls}:T===b.RESULTS_BY_TIME?P.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||ei}:T===b.GAMES?P.value={...w,...o.templateProps,gamesFilters:o.filters||[]}:T===b.VIDEOS?P.value={...g,...o.templateProps,token:o.token}:T===b.TAKEN_CORNERS?P.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:T===b.HOW_WAS_CORNER?P.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Ka}:T===b.ZONE?P.value={...J,...o.templateProps,zoneFilters:o.filters||[...lt]}:T===b.WHAT_HAPPENED&&(P.value={...q,...o.templateProps,whatHappenedFilters:o.filters||[...Qa]});P.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(P.value.width="100%",P.value.maxWidth="100%")},{immediate:!0}),e.watch(()=>o.filters,()=>{if(o.filterType===b.PRODUCTIVITY)P.value={...s,...o.templateProps,productivityCategories:o.filters};else if(o.filterType===b.PLAYS)P.value={...r,...o.templateProps,playsCategories:o.filters};else if(o.filterType===b.FIELD)P.value={...l,...o.templateProps,fieldComponentProps:o.fieldComponentProps,fieldAreas:o.filters};else if(o.filterType===b.DETAILS)P.value={...n,...o.templateProps,isPlayingAsHidden:o.filters?o.filters.isPlayingAsHidden:Ce.isPlayingAsHidden,playingAs:o.filters?o.filters.playingAs:Ce.playingAs,gameSections:o.filters?o.filters.gameSections:Ce.gameSections,statisticType:o.filters?o.filters.statisticType:Ce.statisticType,isStatisticVisible:o.filters?o.filters.isStatisticVisible:Ce.isStatisticVisible};else if(o.filterType===b.TOURNAMENTS){const T=o.filters;o.isOneTournamentOnly&&T.forEach(F=>{F.isSelected=F.id===o.defaultTournamentId}),P.value={...m,...o.templateProps,tournaments:T}}else o.filterType===b.PERSONAL_DATA?P.value={...c,...o.templateProps,token:o.token,personalDataFilters:o.filters}:o.filterType===b.PLAYS_TYPES?P.value={...y,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===b.GOLSTATS?P.value={...p,...o.templateProps,playsGolstatsCategories:o.filters}:o.filterType===b.UNIVERSE?P.value={...f,...o.templateProps,universeFilters:o.filters}:o.filterType===b.DISTANCE?P.value={...d,...o.templateProps,distanceFilters:o.filters}:o.filterType===b.RESULTS?P.value={...h,...o.templateProps,resultsFilters:o.filters||Ls}:o.filterType===b.RESULTS_BY_TIME?P.value={...u,...o.templateProps,resultsByTimeFilters:o.filters||ei}:o.filterType===b.GAMES?P.value={...w,...o.templateProps,gamesFilters:o.filters}:o.filterType===b.VIDEOS?P.value={...g,...o.templateProps,token:o.token}:o.filterType===b.TAKEN_CORNERS?P.value={...k,...o.templateProps,takenCornersFilters:o.filters||[]}:o.filterType===b.HOW_WAS_CORNER?P.value={...W,...o.templateProps,howWasCornerFilters:o.filters||Ka}:o.filterType===b.ZONE?P.value={...J,...o.templateProps,zoneFilters:o.filters||[...lt]}:o.filterType===b.WHAT_HAPPENED&&(P.value={...q,...o.templateProps,whatHappenedFilters:o.filters||[...Qa]});P.value.isExpansionMode=o.isExpansionPanel,o.isExpansionPanel&&(P.value.width="100%",P.value.maxWidth="100%")}),e.watch(A,T=>{T||a("close",H.value)}),e.watch(Y,T=>{T||a("close",H.value)});function K(T){Z.value=T}function fe(){o.isExpansionPanel?Y.value=!1:A.value=!1,a("apply",H.value)}function E(){if(o.filterType===b.PRODUCTIVITY)return"Características de juego";if(o.filterType===b.PLAYS)return"Jugada(s)";if(o.filterType===b.FIELD)return"Zona de cancha";if(o.filterType===b.DETAILS)return"Detalles";if(o.filterType===b.TOURNAMENTS)return"Ligas";if(o.filterType===b.PERSONAL_DATA)return"Datos personales";if(o.filterType===b.PLAYS_TYPES)return"Tipos de jugada";if(o.filterType===b.GOLSTATS)return"Filtros Golstats";if(o.filterType===b.UNIVERSE)return"Universo";if(o.filterType===b.DISTANCE)return"Distancia";if([b.RESULTS,b.RESULTS_BY_TIME].includes(o.filterType))return"Resultados";if(o.filterType===b.GAMES)return"Partidos";if(o.filterType===b.VIDEOS)return"Videos";if(o.filterType===b.TAKEN_CORNERS)return"¿Quién cobró?";if(o.filterType===b.HOW_WAS_CORNER)return"¿Cómo fue cobrado?";if(o.filterType===b.ZONE)return"Zona";if(o.filterType===b.WHAT_HAPPENED)return"¿Qué sucedió?"}function V(T){P.value.fieldAreas=T,Z.value=T.length,B(T)}function I(T){let F=0;T.value&&T.value.statistics&&(T.value.minutesPlayed&&F++,T.value.percentMinutesPlayed&&F++,T.value.lastMonths&&F++,T.value.statistics.totals&&F++,T.value.statistics.averagePerGame&&F++,T.value.statistics.averagePerMinute&&F++),P.value.universe=T.value,Z.value=F,B(T.value)}function B(T){H.value=T,a("update:filters",T)}function M(T){U.value=T}function G(T=null){de.value&&de.value.clearFilters(T),N.value&&N.value.clearFilters(T)}return i({clearFilters:G}),(T,F)=>(e.openBlock(),e.createElementBlock("div",b8,[t.isExpansionPanel?(e.openBlock(),e.createElementBlock("div",S8,[e.createVNode(e.unref(p8),e.mergeProps(t.expansionPanelProps,{modelValue:Y.value,"onUpdate:modelValue":F[0]||(F[0]=_=>Y.value=_),text:z.value,"text-color":"rgba(255,255,255,.7)",icon:"/"+o.filterType+"-icon.png"}),{content:e.withCtx(()=>[e.createElementVNode("div",C8,[e.createVNode(Os,e.mergeProps(P.value,{season:t.season,"is-female":t.isFemale,"is-expansion-mode":!0,"is-seleccion":t.isSeleccion,"is-one-tournament-only":t.isOneTournamentOnly,"default-tournament-id":t.defaultTournamentId,ref_key:"filterTemplateExpansionPanel",ref:N,onChangeFieldAreas:V,onChangeCategoriesSelected:K,onChangeFiltersSelected:K,onChangeUniverseFilters:I,onApply:fe,"onUpdate:filters":B,onTotalFilters:M}),null,16,["season","is-female","is-seleccion","is-one-tournament-only","default-tournament-id"])])]),_:1},16,["modelValue","text","icon"])])):(e.openBlock(),e.createElementBlock("div",w8,[e.createVNode(e.unref(mk),{modelValue:A.value,"onUpdate:modelValue":F[1]||(F[1]=_=>A.value=_),width:t.width,"menu-margin-top":18},{trigger:e.withCtx(()=>[e.createVNode(Qk,e.mergeProps(t.buttonFilterProps,{text:R.value,"show-badge-on-filter-full":t.showBadgeOnFilterFull,"info-value":Z.value,"filters-total":U.value.value,"is-active":A.value,"icon-type":t.filterType}),null,16,["text","show-badge-on-filter-full","info-value","filters-total","is-active","icon-type"])]),menu:e.withCtx(()=>[e.createVNode(Os,e.mergeProps(P.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,ref_key:"filterTemplateMenu",ref:de,onChangeFieldAreas:V,onChangeCategoriesSelected:K,onChangeFiltersSelected:K,onChangeUniverseFilters:I,"onUpdate:filters":B,onTotalFilters:M,onApply:fe}),null,16,["season","is-female","is-scouting","is-seleccion","is-one-tournament-only","default-tournament-id"])]),_:1},8,["modelValue","width"])]))]))}},E8=v(k8,[["__scopeId","data-v-d23d9234"]]);function T8(){return{backgroundColor:"#2e3b46",borderColor:"rgba(255, 255, 255, 0.20)",infoBorderColor:"rgba(255, 255, 255, 0.20)",height:"40px",padding:"5px 12px",textFontFamily:"'Poppins-Regular'"}}const $s="/group-427321501.svg",V8="/shape.svg",x8="_filtersContainer_b9wc6_1",N8="_filtersContainer1232_b9wc6_1",B8="_closeFiltersPc_b9wc6_1",F8="_textleyemdmultipleleagues_b9wc6_1",P8="_textleyemdmultipleleagues380_b9wc6_1",z8="_filtersContainer760_b9wc6_1",A8="_filtersContainer460_b9wc6_1",I8="_containerSection_b9wc6_1",R8="_containerSection1232_b9wc6_1",M8="_containerSection960_b9wc6_1",O8="_containerSection320_b9wc6_1",L8="_containerSection350_b9wc6_1",$8="_templateLosMejores_b9wc6_1",D8="_templateLosMejores1232_b9wc6_1",W8="_templateLosMejores960_b9wc6_1",j8="_templateLosMejores420_b9wc6_1",v8="_templateLosMejores320_b9wc6_1",U8="_templateLosMejores540_b9wc6_1",G8="_templateLosMejores350_b9wc6_1",H8="_topFiltersParent_b9wc6_1",q8="_topFiltersParent1232_b9wc6_1",J8="_topFiltersParent960_b9wc6_1",Y8="_topFiltersParent460_b9wc6_1",Z8="_topFiltersParent420_b9wc6_1",K8="_containerTheBest_b9wc6_1",X8="_containerTheBest1232_b9wc6_1",Q8="_containerTheBest960_b9wc6_1",e9="_containerTheBest320_b9wc6_1",t9="_titleSection_b9wc6_1",a9="_titleSection540_b9wc6_1",i9="_containerTables_b9wc6_1",o9="_containerTables960_b9wc6_1",s9="_containerTables760_b9wc6_1",r9="_containerTables320_b9wc6_1",l9="_toniKroosWrapper_b9wc6_1",n9="_toniKroosWrapper1080_b9wc6_1",d9="_toniKroosWrapper975_b9wc6_1",c9="_toniKroosWrapper760_b9wc6_1",p9="_toniKroosWrapper420_b9wc6_1",m9="_toniKroosWrapper320_b9wc6_1",u9="_frameChild_b9wc6_1",f9="_filtros_b9wc6_1",h9="_groupParent_b9wc6_1",y9="_shapeIcon_b9wc6_1",g9="_btnFilters_b9wc6_1",_9="_btnFiltersPC_b9wc6_1",b9="_quitarFiltros_b9wc6_1",S9="_quitarFiltros730_b9wc6_1",C9="_quitarFiltros480_b9wc6_1",w9="_quitarFiltros380_b9wc6_1",k9="_btnCloseFilters_b9wc6_1",E9="_mejoresJugadores_b9wc6_1",T9="_mejoresJugadores730_b9wc6_1",V9="_mejoresJugadores480_b9wc6_1",x9="_mejoresJugadoresSM_b9wc6_1",N9="_toniKroos_b9wc6_1",B9="_teamBar_b9wc6_1",F9="_menuSection_b9wc6_1",P9="_menuSection960_b9wc6_1",z9="_containerMenu_b9wc6_1",A9="_containerMenu760_b9wc6_1",I9="_containerFilters_b9wc6_1",R9="_teamBarParent_b9wc6_1",M9="_topFilters_b9wc6_1",O9="_topFilters1232_b9wc6_1",L9="_topFilters420_b9wc6_1",$9="_topFilters460_b9wc6_1",D9="_losMejores_b9wc6_1",W9="_losMejores380_b9wc6_1",j9="_losMejores530_b9wc6_1",v9="_losMejores730_b9wc6_1",U9="_menuSectionHeader_b9wc6_1",G9="_menuSectionHeader1232_b9wc6_1",H9="_menuSectionHeader960_b9wc6_1",q9="_menuSectionHeader730_b9wc6_1",J9="_dropdown_b9wc6_1",Y9="_dropdown730_b9wc6_1",Z9="_dropdown1_b9wc6_1",K9="_dropdown1730_b9wc6_1",X9="_dropdownParent_b9wc6_1",Q9="_dropdownParent730_b9wc6_1",eE="_menuSectionParentHeader_b9wc6_1",tE="_menuSectionParentHeader1232_b9wc6_1",aE="_menuSectionParentHeader960_b9wc6_1",iE="_menuSectionParentHeader730_b9wc6_1",oE="_menuSectionParentHeader430_b9wc6_1",sE="_descubreVideos_b9wc6_1",rE="_descubreVideos1232_b9wc6_1",lE="_descubreVideos960_b9wc6_1",nE="_allCategories_b9wc6_1",dE="_containerScountingBtn_b9wc6_3",cE="_btnDeleteAplica_b9wc6_13",pE="_SearchBtnBar_b9wc6_33",mE="_btnLeyendTxt_b9wc6_52",uE="_BtnSearchScounting_b9wc6_61",fE="_containerPredefined_b9wc6_85",hE="_containerPredefinedScounting_b9wc6_92",yE="_titleContainerPredefined_b9wc6_100",gE="_subtitleContainerPredefined_b9wc6_111",_E={filtersContainer:x8,filtersContainer1232:N8,closeFiltersPc:B8,textleyemdmultipleleagues:F8,textleyemdmultipleleagues380:P8,filtersContainer760:z8,filtersContainer460:A8,containerSection:I8,containerSection1232:R8,containerSection960:M8,containerSection320:O8,containerSection350:L8,templateLosMejores:$8,templateLosMejores1232:D8,templateLosMejores960:W8,templateLosMejores420:j8,templateLosMejores320:v8,templateLosMejores540:U8,templateLosMejores350:G8,topFiltersParent:H8,topFiltersParent1232:q8,topFiltersParent960:J8,topFiltersParent460:Y8,topFiltersParent420:Z8,containerTheBest:K8,containerTheBest1232:X8,containerTheBest960:Q8,containerTheBest320:e9,titleSection:t9,titleSection540:a9,containerTables:i9,containerTables960:o9,containerTables760:s9,containerTables320:r9,toniKroosWrapper:l9,toniKroosWrapper1080:n9,toniKroosWrapper975:d9,toniKroosWrapper760:c9,toniKroosWrapper420:p9,toniKroosWrapper320:m9,frameChild:u9,filtros:f9,groupParent:h9,shapeIcon:y9,btnFilters:g9,btnFiltersPC:_9,quitarFiltros:b9,quitarFiltros730:S9,quitarFiltros480:C9,quitarFiltros380:w9,btnCloseFilters:k9,mejoresJugadores:E9,mejoresJugadores730:T9,mejoresJugadores480:V9,mejoresJugadoresSM:x9,toniKroos:N9,teamBar:B9,menuSection:F9,menuSection960:P9,containerMenu:z9,containerMenu760:A9,containerFilters:I9,teamBarParent:R9,topFilters:M9,topFilters1232:O9,topFilters420:L9,topFilters460:$9,losMejores:D9,losMejores380:W9,losMejores530:j9,losMejores730:v9,menuSectionHeader:U9,menuSectionHeader1232:G9,menuSectionHeader960:H9,menuSectionHeader730:q9,dropdown:J9,dropdown730:Y9,dropdown1:Z9,dropdown1730:K9,dropdownParent:X9,dropdownParent730:Q9,menuSectionParentHeader:eE,menuSectionParentHeader1232:tE,menuSectionParentHeader960:aE,menuSectionParentHeader730:iE,menuSectionParentHeader430:oE,descubreVideos:sE,descubreVideos1232:rE,descubreVideos960:lE,allCategories:nE,containerScountingBtn:dE,btnDeleteAplica:cE,SearchBtnBar:pE,btnLeyendTxt:mE,BtnSearchScounting:uE,containerPredefined:fE,containerPredefinedScounting:hE,titleContainerPredefined:yE,subtitleContainerPredefined:gE},bE=e.ref(T8()),SE={components:{GSCTableHeader:Qi,GscSwitchComponent:Ky,GSCFilterperteam:kf,GSCFilters:E8,GSCExpandedInfo:go,GSCLabel:By,GSCSeasonSelect:Bn,GSCTopCategory:ky,GSCTournamentSelect:td,GSCRowTable:so},computed:{...rn.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{...bE.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}=Ke(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:b,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 r=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";return s=s.replace(",",""),r+". "+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(Q.All),i.clearFilters(Q.AGE_RANGE),i.clearFilters(Q.YEAR),i.clearFilters(Q.NATIONALITY),i.clearFilters(Q.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=we.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 r=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:r[2]+"."+r[1]+"."+r[0].substring(2,4),team_id:i[s].team_id,nationality_name:Sa[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 r=0;r<s.teams.length;r++)this.teamsscouting.push({id:s.teams[r].team_id,team:s.teams[r].colloquial_name,logo:s.teams[r].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 r=o[o.length-1]!=""?o[o.length-1].charAt(0):o[o.length-2]?o[o.length-2].charAt(0):"";s=s.replace(",","");var l=r+". "+s;return l},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,r=((i=a==null?void 0:a.seasons[0])==null?void 0:i.id)||null;var l=this.arrayFiltersPlays.findIndex(n=>n.type==="onFiltersTournaments");l!==-1?this.arrayFiltersPlays[l].name=s:this.arrayFiltersPlays.push({name:s,type:"onFiltersTournaments"}),o!==null&&r!==null&&(this.seasonActive=r,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",r),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 r=0;r<this.categoriesDefault.length;r++)this.categoriesDefault[r].isSelected=!1;this.updateFilterPlaytypesGolstats+=1;var a=this.arrayFiltersPlays.findIndex(r=>r.type==="onFiltersPredefined");if(this.FVfilterGolstats.length>0&&a!==-1){for(let r=0;r<this.FVfilterGolstats.length;r++)this.FVfilterGolstats[r].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,r)=>r+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(Q.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(Q.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(Q.AGE_RANGE)),t=="onFiltersElegibility"&&this.$refs.personalDataFilterPlayers.clearFilters(Q.ELIGIBILITY),t=="onFiltersYear"&&(this.$refs.personalDataFilterPlayers.clearFilters(Q.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 l=0;l<t.playingAs.length;l++)if(t.playingAs[l].isSelected){const n=t.playingAs[l].name=="Local"?1:2;i.push(n)}for(let l=0;l<t.gameSections.length;l++)t.gameSections[l].isSelected&&a.push(t.gameSections[l].value);this.fVsections=a,this.fVplayingAs=i,this.fvTypeStats=t.statisticType;var o=this.arrayFiltersPlays.findIndex(l=>l.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(l=>l.type==="onFiltersDetailsTime"),r="los minutos del ";this.fVsections.length!=6&&this.fVsections.length>0?(this.fVsections.includes(1)&&(r+=", 0-15"),this.fVsections.includes(2)&&(r+=", 15-30"),this.fVsections.includes(3)&&(r+=", 30-45"),this.fVsections.includes(4)&&(r+=", 45-60"),this.fVsections.includes(5)&&(r+=", 60-75"),this.fVsections.includes(6)&&(r+=", 75-90"),s!=-1?this.arrayFiltersPlays[s].name=r:this.arrayFiltersPlays.push({name:r,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(Q.All),a.clearFilters(Q.AGE_RANGE),a.clearFilters(Q.YEAR),a.clearFilters(Q.NATIONALITY),a.clearFilters(Q.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 f=0;f<t.nationalities.length;f++)t.nationalities[f].isSelected&&this.fVnationalities.add(t.nationalities[f].id)}if(this.FVeligible=[],t.hasOwnProperty("eligibility")){this.FVbooleanAreNationalTeamsVisible=!0;for(let f=0;f<this.elegibilidadArray.length;f++)this.FVsetAvailableNationalTeamsPlayersIds.add(this.elegibilidadArray[f])}for(let f=0;f<t.positions.length;f++)t.positions[f].isSelected&&this.fVsetPositionsIds.push(t.positions[f].id);if(t.hasOwnProperty("nationalities"))var r=t.nationalities.filter(f=>f.isSelected===!0);var l=t.positions.filter(f=>f.isSelected===!0);if(l.length==1&&(o=l[0].name),t.hasOwnProperty("nationalities")&&r.length==1&&(s=r[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(f=>f.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 m=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersPosition");m!=-1?this.fVsetPositionsIds.length>0?this.arrayFiltersPlays[m].name=this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posicion de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posicion de juego "+o:this.arrayFiltersPlays.splice(m,1):this.arrayFiltersPlays.push({name:this.fVsetPositionsIds.length>1?this.fVsetPositionsIds.length+" Posiciones de juego":this.tournamentSelectedObj.is_female?"Posicion de juego "+o.replace("Portero","Portera").replace("Delantero","Delantera").replace("Volante defensivo","Volante defensiva").replace("Volante ofensivo","Volante ofensiva"):"Posicion de juego "+o,type:"onFiltersPosition"})}if(this.FVYear!=0&&this.FVYear!=1900&&this.FVYear){var c=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersYear");c!=-1?this.arrayFiltersPlays[c].name=this.FVYear:this.arrayFiltersPlays.push({name:this.FVYear,type:"onFiltersYear"})}if(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(f=>f.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 p=this.arrayFiltersPlays.findIndex(f=>f.type==="onFiltersNationality");p!=-1?this.fVnationalities.size>0?this.arrayFiltersPlays[p].name=this.fVnationalities.size>1?this.fVnationalities.size+" Nacionalidades":"Nacionalidad "+s:this.arrayFiltersPlays.splice(p,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(Q.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){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=we.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.tournamentsUrl);return i},async fetchTeams(){const t=we.create({headers:{Authorization:`${this.token}`}}),{data:i}=await t.get(this.teamsUrl+this.seasonActive);return i},async fetchTeamsScouting(t){const i=we.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=we.create({headers:{Authorization:`${this.token}`}}),{data:o}=await a.get(i+t.id);if(Object.keys(o[0].match_lapse_combinations).forEach(p=>{this.predefinedFiltersMatchLapse[p.toString()]=o[0].match_lapse_combinations[p]}),Object.keys(o[0].playing_as_combinations).forEach(p=>{this.predefinedFiltersPlayingAs[p.toString()]=o[0].playing_as_combinations[p]}),Object.keys(o[0].field_sections_combinations).forEach(p=>{this.predefinedFiltersSections[p.toString()]=o[0].field_sections_combinations[p]}),o[0]){for(let p=0;p<o[0].filter_records.length;p++){var s=o[0].description;if(o[0].filter_records[p].field_sections!==void 0){const d=o[0].filter_records[p].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[p].match_lapse!==void 0){const d=o[0].filter_records[p].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[p].playing_as!==void 0){const d=o[0].filter_records[p].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[p].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 f=s.split(": ");var r=f[1];r.length>129&&this.windowWidth>1358&&(r=r.substring(0,129),r=r+"<span id='showIDtootip' class='dots' style='width: 100px; height: 20px; background: red; z-index: 6;'>...</span>"),(!this.isCup||o[0].filter_records[p].playing_as.length===2)&&this.arrayPredefinedFilters.push({id:p,category_name:t.name,id_category:o[0].id,title:f[0]+":",text:f[1],textOrigin:o[0].description,titledots:r,filtersPredefined:{matchResult:o[0].filter_records[p].match_result,playingAs:o[0].filter_records[p].playing_as,sections:o[0].filter_records[p].match_lapse,type:this.optionSelected=="Equipos"?2:1,typeZone:o[0].type_zone,zone:o[0].filter_records[p].field_sections,end_age:0,start_age:0,nationalities:[],elegible:[],positions:[]}})}var l=[];for(let p=0;p<this.arrayPredefinedFilters.length;p++){var n=0,m=new Set,c={},y=this.arrayPredefinedFilters[p].text.replace(/\*.*?\*/,"");if(y=y.replace(/\*/g,""),y=y.replace(/ +/g," "),this.arrayPredefinedFilters[p].filtersPredefined.elegible.length>0&&(n+=1),(this.arrayPredefinedFilters[p].filtersPredefined.end_age.length!=0||this.arrayPredefinedFilters[p].filtersPredefined.start_age.length!=0)&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.end_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0?c.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,this.arrayPredefinedFilters[p].filtersPredefined.end_age]:this.arrayPredefinedFilters[p].filtersPredefined.end_age==0&&this.arrayPredefinedFilters[p].filtersPredefined.start_age==0?c.arrayAgeRange=[1,60]:this.arrayPredefinedFilters[p].filtersPredefined.start_age!=0&&this.arrayPredefinedFilters[p].filtersPredefined.end_age==0?c.arrayAgeRange=[this.arrayPredefinedFilters[p].filtersPredefined.start_age,60]:c.arrayAgeRange=[1,this.arrayPredefinedFilters[p].filtersPredefined.end_age],this.arrayPredefinedFilters[p].filtersPredefined.matchResult.length!=3&&(n+=1),c.matchResult=this.arrayPredefinedFilters[p].filtersPredefined.matchResult,this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length!=0){for(let f=0;f<this.arrayPredefinedFilters[p].filtersPredefined.nationalities.length;f++)m.add(this.arrayPredefinedFilters[p].filtersPredefined.nationalities[f]);c.setNationalitiesIds=m}else m.add(138),m.add(222),m.add(163),m.add(51),m.add(226),m.add(10),m.add(223),m.add(96),m.add(171),m.add(198),m.add(105),m.add(80),m.add(29),m.add(74),m.add(216),m.add(196),m.add(64),m.add(155),m.add(156),m.add(89),m.add(106),m.add(81),m.add(233),m.add(204),c.setNationalitiesIds=m;this.arrayPredefinedFilters[p].filtersPredefined.playingAs.length!=2&&(n+=1),c.playingAs=this.arrayPredefinedFilters[p].filtersPredefined.playingAs,this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.positions.length>0?c.setPositionsIds=this.arrayPredefinedFilters[p].filtersPredefined.positions:c.setPositionsIds=[1,2,3,4,5,6,7,8,9],this.arrayPredefinedFilters[p].filtersPredefined.sections.length!=6&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.sections.length>0?c.sections=this.arrayPredefinedFilters[p].filtersPredefined.sections:c.sections=[1,2,3,4,5,6],this.arrayPredefinedFilters[p].filtersPredefined.zone.length!=16&&(n+=1),this.arrayPredefinedFilters[p].filtersPredefined.zone.length>0?c.zone=this.arrayPredefinedFilters[p].filtersPredefined.zone:c.zone=[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16],c.typeZone=this.arrayPredefinedFilters[p].filtersPredefined.typeZone,l.push({id:p+1,name:y,isSelected:!1,value:n,filters:c})}this.FVfilterGolstats=l,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,p)=>y-p).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 r=this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].filtersPredefined.playingAs.sort().toString();(this.predefinedFiltersPlayingAs[r]||this.predefinedFiltersPlayingAs[r]=="")&&(this.predefinedFiltersPlayingAs[r]==""?t=t.replace(" [jugando como {playing_as}]",this.predefinedFiltersPlayingAs[r]):t=t.replace("{playing_as}",this.predefinedFiltersPlayingAs[r])),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 l=t.split(": ");let n=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1),m=l[1].charAt(0).toUpperCase()+l[1].toLowerCase().slice(1);this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].text=n,this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].title=l[0]+":";const c=m.match(/\*/g);if(c&&c.length)if(c.length%2===0)for(let y=1;y<=c.length;y++)y%2===0||(m=m.replace("*",'<span style="color: #ffff03" >'));else m=m.replaceAll("*","");this.arrayPredefinedFilters[this.indexPredefinedFiltersSelected].titledots=m},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:Sa[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 r=s.category;i[r]||(i[r]={teams:[],players:[]}),s.teams&&(i[r].teams=s.teams.map((l,n)=>{const m=a.get(l[0])||{};return{id:m.id,name:m.name,img:m.logo,total:l[1],top:String(n+1).padStart(2,"0"),categoryName:s.name}})),s.players&&(i[r].players=s.players.map((l,n)=>{var m,c,y,p,f,d,h,u,g,w;const k=o.get(l[0])||{};return{age:k.numberAge,categoryName:s.name,country:(c=(m=k.countryId)==null?void 0:m[0])==null?void 0:c.nationality_id,date:k.date,effectiveness:k.effectiveness||0,games:k.games,id:l[0],img:`https://golstatsimages.blob.core.windows.net/players-profile/${l[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/${(p=(y=k.countryId)==null?void 0:y[0])==null?void 0:p.nationality_id}.jpg`,position:k.position_short,positionId:k.numberPositionId,positionfull:this.positions[k.numberPositionId-1],team:((d=(f=k.teamName)==null?void 0:f[0])==null?void 0:d.acronym)||"",teamid:((u=(h=k.teamName)==null?void 0:h[0])==null?void 0:u.team_id)||"",teamname:((w=(g=k.teamName)==null?void 0:g[0])==null?void 0:w.acronym)||"",top:String(n+1).padStart(2,"0"),total:l[1]}}))}),i},async loadPreloadedTops(){try{if(this.seasonActive!=0){this.preloadedTops=[];const t=we.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=we.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 we.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)}}},CE={ref:"myDivRefTopsFull"},wE={key:0,class:"overlay-loading"},kE=e.createElementVNode("div",{class:"overlay-loading__spinner"},[e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/images-library/balon_liga.png",alt:""})],-1),EE=e.createElementVNode("div",{class:"overlay-loading__text"},"Loading...",-1),TE=[kE,EE],VE=e.createElementVNode("img",{src:"https://golstatsimages.blob.core.windows.net/todoelfut/icn_close.png",style:{width:"10px"}},null,-1),xE=[VE],NE={key:0,class:"cont-leyemd-multipleleagues"},BE=e.createElementVNode("img",{class:"img-leyemd-multipleleagues",src:"http://golstatsimages.blob.core.windows.net/images-library/icn-multiples-ligas.png"},null,-1),FE={key:0,style:{"font-size":"12px","margin-top":"-23px",color:"rgba(255,255,255,0.5)",width:"80%","margin-bottom":"12px","text-align":"center"}},PE={key:0,style:{"margin-left":"10px"}},zE=e.createElementVNode("span",null,"Todas las categorías",-1),AE=[zE],IE=e.createElementVNode("span",null,"Tipo de Jugada",-1),RE=e.createElementVNode("span",null,"Filtro GolStats",-1),ME={key:3,style:{width:"100%",height:"295px"}};function OE(t,i,a,o,s,r){const l=e.resolveComponent("GSCTournamentSelect"),n=e.resolveComponent("GSCSeasonSelect"),m=e.resolveComponent("GscSwitchComponent"),c=e.resolveComponent("GSCFilterperteam"),y=e.resolveComponent("GSCFilters"),p=e.resolveComponent("GSCLabel"),f=e.resolveComponent("GSCTopCategory"),d=e.resolveComponent("GSCTableHeader"),h=e.resolveComponent("GSCRowTable"),u=e.resolveComponent("GSCExpandedInfo");return e.openBlock(),e.createElementBlock("div",CE,[s.loadingActive?(e.openBlock(),e.createElementBlock("div",wE,TE)):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(l,{width:"100%","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.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:r.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:r.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(l,{width:"147px","current-season-id":a.currentSeasonId,"api-url":a.tournamentsApiUrl,"is-clubes-active":a.isClubes,onInput:r.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:r.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(c,{data:s.teams,"team-id":a.teamId,"background-color":"#172531","contain-border-radius":"8px",onClickTeam:r.clickTeam,onClickAll:r.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)=>r.clickOpenFilters&&r.clickOpenFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:$s},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)=>r.clickCloseFilters&&r.clickCloseFilters(...g))},xE,2)):e.createCommentVNode("",!0),s.optionSelected!=="Scouting"&&!a.isSelection?(e.openBlock(),e.createBlock(m,{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:r.changeTabsSubmenu},null,8,["selected-option","font-size","width","onInput"])):e.createCommentVNode("",!0),a.isSelection?(e.openBlock(),e.createBlock(m,{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:r.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)=>r.openMenuFilters&&r.openMenuFilters(...g))},[e.createElementVNode("div",{class:e.normalizeClass(t.$style.groupParent)},[e.createElementVNode("img",{class:e.normalizeClass(t.$style.frameChild),alt:"",src:$s},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:V8},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)=>r.openMenuFilters&&r.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":r.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":r.onFiltersTournamentsTops}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.onFiltersPlays,filters:s.categoriesPlaysTypes,onApply:r.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":r.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":r.onFiltersField,filters:s.fVzone}),null,16,["button-filter-props","filter-type","onUpdate:filters","filters"])),(e.openBlock(),e.createBlock(y,e.mergeProps({"button-filter-props":r.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":r.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":r.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":r.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":r.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":r.onFiltersTournaments}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"])),e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.onFiltersPersonalData}),null,16,["button-filter-props","filter-type","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.onFiltersUniverse}),null,16,["button-filter-props","filter-type","filters","onUpdate:filters"]),e.createVNode(y,e.mergeProps({"button-filter-props":r.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":r.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)=>r.getScoutingData&&r.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":r.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":r.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":r.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":r.onFiltersGolStats,filters:r.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",NE,[BE,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(c,{data:s.teamsscouting,"team-id":s.teamselectrec,"background-color":"#172531","contain-border-radius":"8px",key:s.updateFilterTeamsScouting,onClickTeam:r.clickTeamScouting,onClickAll:r.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",FE," 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",PE,[e.createVNode(p,{"text-value":"Categoría - "+s.categoryName+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.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,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,style:{"margin-left":"10px"}},[e.createVNode(p,{"text-value":g.name+" ","font-size":"11px","font-color":"rgba(255, 255, 255, 0.7)",onClickClose:r.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)=>r.onClickDeleteFilter&&r.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)},AE,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,w)=>(e.openBlock(),e.createElementBlock("div",{key:w,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(f,{"is-female":s.tournamentSelectedObj.is_female,"is-team":s.isTeam,"type-stats":s.fvTypeStats,"is-selection":a.isSelection,onMore:r.onShowFullTable,"border-width":0,preload:s.preloadedTops[g.id],"border-radius":"12px","filters-prop":r.filterChange,category:g.id,"type-table":s.typeTable,categoryName:g.name,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.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(f,{"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":r.filterChange,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTablesfull,onClickprofile:r.clickprofile,onSetopenmedia:r.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(f,{"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":r.filterChangePredefined,season:s.seasonActive,"filter-team":s.teamselect,key:s.updateTables,onClickprofile:r.clickprofile,onSetopenmedia:r.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},[IE,e.createTextVNode(" y un "),RE,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,w)=>(e.openBlock(),e.createElementBlock(e.Fragment,{key:w},[s.teamselectrec==0||s.teamselectrec==g.team_id?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createVNode(h,{type:2,"is-expanded":s.playerexpand==g.id&&s.expand,onMediadata:r.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:w%2===0?a.backgroundOdd:a.backgroundEven,onExpand:r.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=>r.viewprofile(k,g.season_id,g.team_id),background:w%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)=>r.onClickDeleteFilter&&r.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)=>r.getScoutingData&&r.getScoutingData(...g))}," Buscar ",2)):e.createCommentVNode("",!0)],2)):e.createCommentVNode("",!0),s.loadingActive?(e.openBlock(),e.createElementBlock("div",ME)):e.createCommentVNode("",!0)],6))],6)):e.createCommentVNode("",!0)],2)],2)],2)],2)],512)}const LE={$style:_E},$E=ze(SE,[["render",OE],["__cssModules",LE]]),DE={class:"elegibles"},WE=qe(Object.assign({name:"PlayersElegibles"},{__name:"Elegibles",emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=r=>{i("openmedia",r)},o=r=>{i("open-profile-team",r)},s=r=>{i("open-profile-player",r)};return(r,l)=>(e.openBlock(),e.createElementBlock("div",DE,[e.createVNode(e.unref($E),{"is-selection":!0,"default-section":"Jugadores","tournaments-api-url":"https://kefloixzy1.execute-api.us-west-2.amazonaws.com/prod/gs3/tournaments",onOpenmedia:a,onOpenProfileTeam:o,onOpenProfilePlayer:s})]))}}),[["__scopeId","data-v-4a752ebc"]]),jE={class:"tabs"},vE=qe({__name:"PlayersTrackingMain",props:{tournamentId:{type:Number,default:26},teamId:{type:Number,default:392},token:{type:String,default:"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE"}},emits:["openmedia","open-profile-team","open-profile-player"],setup(t,{emit:i}){const a=t,o=["Última convocatoria","En seguimiento","Elegibles"],s=e.ref("Última convocatoria"),r=e.ref({width:0}),l=e.ref(null),n=e.ref(0),m=e.ref(0),c=e.ref([]),y=e.ref([]);e.watch(()=>a.tournamentId,A=>{A&&f()},{immediate:!0}),e.watch(()=>a.teamId,A=>{A&&f()},{immediate:!0});const p=A=>{s.value=A};async function f(){try{if(n.value!==a.tournamentId||m.value!==a.teamId){const A=[h(),d()];n.value=a.tournamentId,m.value=a.teamId;const[Y,Z]=await Promise.all(A);c.value=Y,y.value=Z}}catch(A){console.error("Error filling data",A)}}async function d(){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(A){console.error("Error fetching in followed",A)}}async function h(){try{return(await(await fetch(`https://ts7thxzaik.execute-api.us-west-2.amazonaws.com/prod/last-called/tournaments/${a.tournamentId}/teams/${a.teamId}`,{method:"GET",headers:{Authorization:a.token}})).json()).players||[]}catch(A){console.error("Error fetching last called",A)}}const u=()=>{l.value&&(r.value.width=l.value.offsetWidth)};e.onMounted(()=>{u();const A=new ResizeObserver(u);l.value&&A.observe(l.value)});const g=e.computed(()=>{const A=r.value.width;return A<=460?"10px":A<=650?"12px":A<=768?"14px":"16px"}),w=e.computed(()=>r.value.width<=380?"18px":"22px"),k=e.computed(()=>{switch(s.value){case"Última convocatoria":return ci;case"En seguimiento":return Vr;case"Elegibles":return WE;default:return ci}}),W=A=>{i("openmedia",A)},J=A=>{i("open-profile-team",A)},q=A=>{i("open-profile-player",A)};return(A,Y)=>(e.openBlock(),e.createElementBlock("div",{class:"players-tracking",ref_key:"playerTrackingRef",ref:l},[e.createElementVNode("h1",{class:"title",style:e.normalizeStyle({fontSize:w.value})},"Jugadores bajo seguimiento",4),e.createElementVNode("div",jE,[e.createVNode(e.unref(nr),{type:2,buttons:o,"font-family":"Poppins-Medium","selected-option":s.value,"font-size":g.value,width:"fit-content",borderWidth:"1px",arrow:!1,height:"30px",onInput:p},null,8,["selected-option","font-size"])]),e.createElementVNode("div",{class:e.normalizeClass(["content-container",{"no-padding":s.value==="Elegibles"}])},[(e.openBlock(),e.createBlock(e.resolveDynamicComponent(k.value),{"parent-width":r.value.width,"last-called-players":c.value,"in-followed-players":y.value,onOpenmedia:W,onOpenProfileTeam:J,onOpenProfilePlayer:q},null,40,["parent-width","last-called-players","in-followed-players"]))],2)],512))}},[["__scopeId","data-v-cf684dfd"]]),UE={class:"subcategory-group"},GE={__name:"SubcategoryGroup",props:{subcategoryGroup:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",UE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.subcategoryGroup,o=>(e.openBlock(),e.createBlock(e.unref(j),{key:o.id,modelValue:o.isSelected,"onUpdate:modelValue":s=>o.isSelected=s,label:o.name},null,8,["modelValue","onUpdate:modelValue","label"]))),128))]))}},HE=v(GE,[["__scopeId","data-v-ae6f3d72"]]),qE={class:"filter-subcategories"},JE=Object.freeze(Object.defineProperty({__proto__:null,default:v({__name:"FilterSubcategories",props:{subcategoryGroups:{type:Array,default:()=>[]}},setup(t){return(i,a)=>(e.openBlock(),e.createElementBlock("div",qE,[(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(HE,{subcategoryGroup:o},null,8,["subcategoryGroup"])]))),128))]))}},[["__scopeId","data-v-5edaefc2"]])},Symbol.toStringTag,{value:"Module"})),Ut=t=>(e.pushScopeId("data-v-80d9c265"),t=t(),e.popScopeId(),t),YE={class:"details__header"},ZE=Ut(()=>e.createElementVNode("div",{class:"details__header__title"},"Jugando como",-1)),KE={class:"details__header__checkbox"},XE={class:"details__body"},QE={class:"details__body__playing-as"},eT=["onClick"],tT={class:"details__header"},aT=Ut(()=>e.createElementVNode("div",{class:"details__header__title"},"En: (Elige el lapso de tiempo)",-1)),iT={class:"details__header__checkbox"},oT={class:"details__body"},sT=Ut(()=>e.createElementVNode("div",{class:"details__body__title"},"1er tiempo",-1)),rT={class:"details__body__game-section"},lT=["onClick"],nT={class:"details__body"},dT=Ut(()=>e.createElementVNode("div",{class:"details__body__title"},"2do tiempo",-1)),cT={class:"details__body__game-section"},pT=["onClick"],mT=Object.freeze(Object.defineProperty({__proto__:null,default:v({__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,p)=>(p.value<=3?y.firstHalf.push(p):y.secondHalf.push(p),y),{firstHalf:[],secondHalf:[]})),r=e.computed(()=>({"--border-radius-first-button":`${i.buttonsBorderRadius} 0 0 ${i.buttonsBorderRadius}`,"--border-radius-last-button":`0 ${i.buttonsBorderRadius} ${i.buttonsBorderRadius} 0`}));function l(y){y?i.playingAs.forEach(p=>{p.isSelected=!0}):i.playingAs.forEach((p,f)=>{p.isSelected=f===0})}function n(y){i.playingAs.filter(p=>p.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function m(y){i.gameSections.filter(p=>p.isSelected).length===1&&y.isSelected||(y.isSelected=!y.isSelected)}function c(y){y?i.gameSections.forEach(p=>{p.isSelected=!0}):i.gameSections.forEach((p,f)=>{p.isSelected=f===0})}return(y,p)=>(e.openBlock(),e.createElementBlock("div",{class:"details",style:e.normalizeStyle(r.value)},[e.createElementVNode("div",YE,[ZE,e.createElementVNode("div",KE,[e.createVNode(e.unref(j),{label:"Todos","model-value":a.value,"onUpdate:modelValue":l},null,8,["model-value"])])]),e.createElementVNode("div",XE,[e.createElementVNode("div",QE,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.playingAs,(f,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:h=>n(f)},e.toDisplayString(f.name),11,eT))),128))])]),e.createElementVNode("div",tT,[aT,e.createElementVNode("div",iT,[e.createVNode(e.unref(j),{label:"Todos","model-value":o.value,"onUpdate:modelValue":c},null,8,["model-value"])])]),e.createElementVNode("div",oT,[sT,e.createElementVNode("div",rT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.firstHalf,(f,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:h=>m(f)},e.toDisplayString(f.text),11,lT))),128))])]),e.createElementVNode("div",nT,[dT,e.createElementVNode("div",cT,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(s.value.secondHalf,(f,d)=>(e.openBlock(),e.createElementBlock("div",{key:`pa${d}`,class:e.normalizeClass(["details__body__button",{active:f.isSelected}]),onClick:h=>m(f)},e.toDisplayString(f.text),11,pT))),128))])])],4))}},[["__scopeId","data-v-80d9c265"]])},Symbol.toStringTag,{value:"Module"})),uT={class:"filter-field"},fT=Object.freeze(Object.defineProperty({__proto__:null,default:v({__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",uT,[e.createVNode(e.unref(Go),{width:"100%","background-color":"#2E3B46",value:i.value,"onUpdate:modelValue":a},null,8,["value"])]))}},[["__scopeId","data-v-8103c3e1"]])},Symbol.toStringTag,{value:"Module"}));Be.GSCPlayersTracking=vE,Object.defineProperty(Be,Symbol.toStringTag,{value:"Module"})});
|